## Mass and Density

### Learning Outcomes

• Determine the mass of a one-dimensional object from its linear density function
• Determine the mass of a two-dimensional circular object from its radial density function

We can use integration to develop a formula for calculating mass based on a density function. First we consider a thin rod or wire. Orient the rod so it aligns with the $x\text{-axis,}$ with the left end of the rod at $x=a$ and the right end of the rod at $x=b$ (Figure 1). Note that although we depict the rod with some thickness in the figures, for mathematical purposes we assume the rod is thin enough to be treated as a one-dimensional object.

Figure 1. We can calculate the mass of a thin rod oriented along the $x\text{-axis}$ by integrating its density function.

If the rod has constant density $\rho ,$ given in terms of mass per unit length, then the mass of the rod is just the product of the density and the length of the rod: $(b-a)\rho .$ If the density of the rod is not constant, however, the problem becomes a little more challenging. When the density of the rod varies from point to point, we use a linear density function, $\rho (x),$ to denote the density of the rod at any point, $x.$ Let $\rho (x)$ be an integrable linear density function. Now, for $i=0,1,2\text{,…},n$ let $P=\left\{{x}_{i}\right\}$ be a regular partition of the interval $\left[a,b\right],$ and for $i=1,2\text{,…},n$ choose an arbitrary point ${x}_{i}^{*}\in \left[{x}_{i-1},{x}_{i}\right].$ Figure 2 shows a representative segment of the rod.

Figure 2. A representative segment of the rod.

The mass ${m}_{i}$ of the segment of the rod from ${x}_{i-1}$ to ${x}_{i}$ is approximated by

${m}_{i}\approx \rho ({x}_{i}^{*})({x}_{i}-{x}_{i-1})=\rho ({x}_{i}^{*})\text{Δ}x.$

Adding the masses of all the segments gives us an approximation for the mass of the entire rod:

$m=\displaystyle\sum_{i=1}^{n} {m}_{i}\approx \displaystyle\sum_{i=1}^{n} \rho ({x}_{i}^{*})\text{Δ}x.$

This is a Riemann sum. Taking the limit as $n\to \infty ,$ we get an expression for the exact mass of the rod:

$m=\underset{n\to \infty }{\text{lim}}\displaystyle\sum_{i=1}^{n} \rho ({x}_{i}^{*})\text{Δ}x={\displaystyle\int }_{a}^{b}\rho (x)dx.$

We state this result in the following theorem.

### Mass–Density Formula of a One-Dimensional Object

Given a thin rod oriented along the $x\text{-axis}$ over the interval $\left[a,b\right],$ let $\rho (x)$ denote a linear density function giving the density of the rod at a point $x$ in the interval. Then the mass of the rod is given by

$m={\displaystyle\int }_{a}^{b}\rho (x)dx$

We apply this theorem in the next example.

### Example: Calculating Mass from Linear Density

Consider a thin rod oriented on the $x$-axis over the interval $\left[\frac{\pi}{2},\pi \right].$ If the density of the rod is given by $\rho (x)= \sin x,$ what is the mass of the rod?

### Try It

Consider a thin rod oriented on the $x$-axis over the interval $\left[1,3\right].$ If the density of the rod is given by $\rho (x)=2{x}^{2}+3,$ what is the mass of the rod?

Watch the following video to see the worked solution to the above Try It.

### Try It

We now extend this concept to find the mass of a two-dimensional disk of radius $r.$ As with the rod we looked at in the one-dimensional case, here we assume the disk is thin enough that, for mathematical purposes, we can treat it as a two-dimensional object. We assume the density is given in terms of mass per unit area (called area density), and further assume the density varies only along the disk’s radius (called radial density). We orient the disk in the $xy\text{-plane,}$ with the center at the origin. Then, the density of the disk can be treated as a function of $x,$ denoted $\rho (x).$ We assume $\rho (x)$ is integrable. Because density is a function of $x,$ we partition the interval from $\left[0,r\right]$ along the $x\text{-axis}.$ For $i=0,1,2\text{,…},n,$ let $P=\left\{{x}_{i}\right\}$ be a regular partition of the interval $\left[0,r\right],$ and for $i=1,2\text{,…},n,$ choose an arbitrary point ${x}_{i}^{*}\in \left[{x}_{i-1},{x}_{i}\right].$ Now, use the partition to break up the disk into thin (two-dimensional) washers. A disk and a representative washer are depicted in the following figure.

Figure 3. (a) A thin disk in the xy-plane. (b) A representative washer.

We now approximate the density and area of the washer to calculate an approximate mass, ${m}_{i}.$ Note that the area of the washer is given by

$\begin{array}{cc}\hfill {A}_{i}& =\pi {({x}_{i})}^{2}-\pi {({x}_{i-1})}^{2}\hfill \\ & =\pi \left[{x}_{i}^{2}-{x}_{i-1}^{2}\right]\hfill \\ & =\pi ({x}_{i}+{x}_{i-1})({x}_{i}-{x}_{i-1})\hfill \\ & =\pi ({x}_{i}+{x}_{i-1})\text{Δ}x.\hfill \end{array}$

You may recall that we had an expression similar to this when we were computing volumes by shells. As we did there, we use ${x}_{i}^{*}\approx ({x}_{i}+{x}_{i-1})\text{/}2$ to approximate the average radius of the washer. We obtain

${A}_{i}=\pi ({x}_{i}+{x}_{i-1})\text{Δ}x\approx 2\pi {x}_{i}^{*}\text{Δ}x.$

Using $\rho ({x}_{i}^{*})$ to approximate the density of the washer, we approximate the mass of the washer by

${m}_{i}\approx 2\pi {x}_{i}^{*}\rho ({x}_{i}^{*})\text{Δ}x.$

Adding up the masses of the washers, we see the mass $m$ of the entire disk is approximated by

$m=\displaystyle\sum_{i=1}^{n} {m}_{i}\approx \displaystyle\sum_{i=1}^{n} 2\pi {x}_{i}^{*}\rho ({x}_{i}^{*})\text{Δ}x.$

We again recognize this as a Riemann sum, and take the limit as $n\to \infty .$ This gives us

$m=\underset{n\to \infty }{\text{lim}} \displaystyle\sum_{i=1}^{n} 2\pi {x}_{i}^{*}\rho ({x}_{i}^{*})\text{Δ}x={\displaystyle\int }_{0}^{r}2\pi x\rho (x)dx.$

We summarize these findings in the following theorem.

### Mass–Density Formula of a Circular Object

Let $\rho (x)$ be an integrable function representing the radial density of a disk of radius $r.$ Then the mass of the disk is given by

$m={\displaystyle\int }_{0}^{r}2\pi x\rho (x)dx$

### Example: Calculating Mass from Radial Density

Let $\rho (x)=\sqrt{x}$ represent the radial density of a disk. Calculate the mass of a disk of radius 4.

### Try It

Let $\rho (x)=3x+2$ represent the radial density of a disk. Calculate the mass of a disk of radius 2.

Watch the following video to see the worked solution to the above Try It.