Tutorials › Calculus III › Mass Integrals with Spherical Density

Spherical Triple Integrals · Tutorial 672 of 999

Mass Integrals with Spherical Density

Set up and evaluate mass integrals for spherical regions with radial or position-dependent density.

Intermediate 10 min read

What You'll Learn

  • Relate density, volume, and total mass through a triple integral.
  • Use the spherical volume element with the standard coordinate conventions.
  • Set bounds for a ball, an upper hemisphere, and an octant.
  • Evaluate mass integrals with radial and coordinate-dependent densities.
  • Check results using units, nonnegativity, and direct substitution.

From Density to Total Mass

A solid need not have the same density everywhere. If one part of a ball is denser than another, its mass cannot be found by multiplying the whole volume by a single constant density. Instead, add the contributions from small pieces throughout the solid.

In spherical coordinates, those pieces are described by distance \(\rho\) from the origin, polar angle \(\phi\) measured down from the positive \(z\)-axis, and azimuthal angle \(\theta\) measured in the \(xy\)-plane from the positive \(x\)-axis. The corresponding Cartesian coordinates are \(x=\rho\sin\phi\cos\theta\), \(y=\rho\sin\phi\sin\theta\), and \(z=\rho\cos\phi\).

Definition: If a solid region \(E\) has nonnegative mass density \(\delta(x,y,z)\), its mass is \(M=\iiint_E \delta(x,y,z)\,dV\). In spherical coordinates, the volume element is \(dV=\rho^2\sin\phi\,d\rho\,d\phi\,d\theta\). Thus, when the region is described by spherical bounds, $$ M=\iiint_E \delta(\rho\sin\phi\cos\theta,\rho\sin\phi\sin\theta,\rho\cos\phi)\,\rho^2\sin\phi\,d\rho\,d\phi\,d\theta. $$ The density must be integrable over the region for this mass integral to be finite.

When density is already given as a function of spherical coordinates, write it as \(\delta(\rho,\phi,\theta)\) and substitute it directly. The key is to include both the density and the spherical volume factor \(\rho^2\sin\phi\). The limits must describe the solid itself; density does not change the region's bounds.

Why the Spherical Volume Factor Appears

A small spherical-coordinate box has approximate side lengths \(d\rho\) in the radial direction, \(\rho\,d\phi\) in the polar direction, and \(\rho\sin\phi\,d\theta\) in the azimuthal direction. The latter two lengths are arc lengths: the circle traced by changing \(\phi\) has radius \(\rho\), while the circle traced by changing \(\theta\) has radius \(\rho\sin\phi\).

Multiplying these three lengths gives the approximate volume of the small box. The exact volume element is obtained in the limit as the box dimensions shrink:

$$ dV\approx (d\rho)(\rho\,d\phi)(\rho\sin\phi\,d\theta) =\rho^2\sin\phi\,d\rho\,d\phi\,d\theta. $$

Mass in a small volume is approximately its density at that location times its volume. Adding these local contributions over the region, and taking the limit of finer subdivisions, gives the triple integral in the definition. This also explains why a density depending on position must remain inside the integral: its value can change from one small volume to another.

Radial Density in a Ball

A radial density depends only on the distance from the origin: \(\delta(\rho,\phi,\theta)=f(\rho)\). For a full ball of radius \(R\), the bounds are \(0\leq\rho\leq R\), \(0\leq\phi\leq\pi\), and \(0\leq\theta\leq2\pi\). The angular factors can be evaluated independently of the radial density:

$$ M=\int_0^R f(\rho)\rho^2\,d\rho \int_0^\pi\sin\phi\,d\phi \int_0^{2\pi}d\theta =4\pi\int_0^R f(\rho)\rho^2\,d\rho. $$

This reduction applies to a full ball centered at the origin with radial density. It does not automatically apply to a region that covers only part of the sphere, because its angular bounds may not contribute the full factor \(4\pi\).

Worked Example: A Ball with Density Increasing with Distance

A ball of radius \(R\) metres has density \(\delta(\rho)=\delta_0(1+\rho/R)\), where \(\delta_0\) is measured in kilograms per cubic metre. Find its mass.

The region is a full ball, so use the radial formula. The density is nonnegative for \(0\leq\rho\leq R\). Substituting it gives

$$ \begin{aligned} M &=4\pi\int_0^R \delta_0\left(1+\frac{\rho}{R}\right)\rho^2\,d\rho\\ &=4\pi\delta_0\int_0^R\left(\rho^2+\frac{\rho^3}{R}\right)\,d\rho\\ &=4\pi\delta_0\left(\frac{R^3}{3}+\frac{R^4}{4R}\right)\\ &=4\pi\delta_0 R^3\left(\frac{1}{3}+\frac{1}{4}\right) =\frac{7\pi}{3}\delta_0R^3. \end{aligned} $$

For the check, the result has units \((\text{kg}/\text{m}^3)(\text{m}^3)=\text{kg}\). The density is positive throughout the ball, and so is the computed mass. Substituting \(R=1\) metre and \(\delta_0=1\) kilogram per cubic metre gives \(M=7\pi/3\) kilograms, approximately \(7.33\) kilograms to two decimal places.

Density That Depends on Position

For a density that depends on one or more coordinates, first express those coordinates in spherical form. For example, the vertical coordinate is \(z=\rho\cos\phi\), while \(x/\rho=\sin\phi\cos\theta\) when \(\rho>0\). Then multiply the resulting density by \(\rho^2\sin\phi\) before integrating.

Worked Example: A Height-Dependent Density in an Upper Hemisphere

Consider the upper hemisphere of radius \(R\), with density \(\delta(x,y,z)=\delta_0(1+z/R)\). Here \(\delta_0\) is measured in kilograms per cubic metre. Since \(0\leq z\leq R\) in this region, the density is nonnegative. Find the mass.

The spherical bounds are \(0\leq\rho\leq R\), \(0\leq\phi\leq\pi/2\), and \(0\leq\theta\leq2\pi\). Substituting \(z=\rho\cos\phi\) gives

$$ \begin{aligned} M &=\delta_0\int_0^R\int_0^{\pi/2}\int_0^{2\pi} \left(1+\frac{\rho\cos\phi}{R}\right) \rho^2\sin\phi\,d\theta\,d\phi\,d\rho\\ &=2\pi\delta_0\int_0^R\rho^2\,d\rho \int_0^{\pi/2}\left(1+\frac{\rho\cos\phi}{R}\right)\sin\phi\,d\phi\\ &=2\pi\delta_0\int_0^R\rho^2\left(1+\frac{\rho}{2R}\right)\,d\rho\\ &=2\pi\delta_0\left(\frac{R^3}{3}+\frac{R^4}{8R}\right)\\ &=2\pi\delta_0R^3\left(\frac{1}{3}+\frac{1}{8}\right) =\frac{11\pi}{12}\delta_0R^3. \end{aligned} $$

The angular integral used here is \(\int_0^{\pi/2}\sin\phi\,d\phi=1\) and \(\int_0^{\pi/2}\cos\phi\sin\phi\,d\phi=1/2\). As a check, the mass has units of kilograms and is positive. If the height-dependent part of the density were removed, the mass would be \(\delta_0\) times the upper hemisphere's volume, \(2\pi R^3/3\); the added term increases the mass by \(\pi\delta_0R^3/4\). Their sum is \(11\pi\delta_0R^3/12\), as computed.

Worked Example: An Angular Density in an Octant

Let \(E\) be the part of a ball of radius \(R\) in the first octant, where \(x,y,z\geq0\). Suppose its density is \(\delta=\delta_0(1+x/\rho)\) for \(\rho>0\). The value at the origin does not affect the integral. Find the mass.

In this octant, \(0\leq\phi\leq\pi/2\) and \(0\leq\theta\leq\pi/2\), with \(0\leq\rho\leq R\). Since \(x/\rho=\sin\phi\cos\theta\), the density is nonnegative. The integral is

$$ \begin{aligned} M &=\delta_0\int_0^R\int_0^{\pi/2}\int_0^{\pi/2} (1+\sin\phi\cos\theta)\rho^2\sin\phi\,d\theta\,d\phi\,d\rho\\ &=\delta_0\left(\int_0^R\rho^2\,d\rho\right) \left(\int_0^{\pi/2}\int_0^{\pi/2} (\sin\phi+\sin^2\phi\cos\theta)\,d\theta\,d\phi\right)\\ &=\delta_0\frac{R^3}{3} \left(\frac{\pi}{2}+\frac{\pi}{4}\right)\\ &=\frac{\pi}{4}\delta_0R^3. \end{aligned} $$

For the angular calculation, the first term contributes \((\int_0^{\pi/2}\sin\phi\,d\phi)(\int_0^{\pi/2}d\theta)=\pi/2\). The second contributes \((\int_0^{\pi/2}\sin^2\phi\,d\phi)(\int_0^{\pi/2}\cos\theta\,d\theta)=(\pi/4)(1)=\pi/4\). The result has mass units, is positive, and exceeds the mass for constant density \(\delta_0\) in this octant, which would be \(\delta_0(\pi R^3/6)\). This increase is consistent with the added nonnegative density term.

A Common Mistake: Omitting the Volume Factor

A frequent error is to integrate the density over the angular and radial bounds but forget the factor \(\rho^2\) in the spherical volume element. For the ball in the first worked example, omitting \(\rho^2\) would produce the incorrect calculation

$$ M_{\text{wrong}} =4\pi\delta_0\int_0^R\left(1+\frac{\rho}{R}\right)\,d\rho =4\pi\delta_0\left(R+\frac{R}{2}\right) =6\pi\delta_0R. $$

This is not a mass: its units are \((\text{kg}/\text{m}^3)(\text{m})=\text{kg}/\text{m}^2\), rather than kilograms. Restoring the missing factor gives

$$ M=4\pi\delta_0\int_0^R\left(1+\frac{\rho}{R}\right)\rho^2\,d\rho =\frac{7\pi}{3}\delta_0R^3, $$

which has the correct units. The factor \(\rho^2\sin\phi\) belongs to the volume element in every spherical mass integral; it is not part of the density and should not be omitted when the density changes.

A Reliable Setup

Before evaluating a spherical mass integral, identify the region and density separately. The following sequence keeps those decisions distinct:

1
Describe the solid.
Translate its radial and angular extent into bounds for \(\rho\), \(\phi\), and \(\theta\).
2
Rewrite the density.
Replace Cartesian coordinates using \(x=\rho\sin\phi\cos\theta\), \(y=\rho\sin\phi\sin\theta\), and \(z=\rho\cos\phi\), when needed.
3
Include the volume element.
Multiply the density by \(\rho^2\sin\phi\) and attach the three differentials.
4
Evaluate and check.
Compute the integral, then check that its units and sign are consistent with mass.

The setup is valid when the chosen spherical bounds describe the region and the density is integrable there. If the region or density has different formulas on different parts, split the integral accordingly and add the resulting masses.

Check Your Understanding

For each question, identify the region, density, and spherical volume factor before carrying out any integration.

  1. Write the mass integral for a full ball of radius \(a\) with density \(\delta(\rho)=c\rho^2\), where \(c>0\).
  2. What spherical-coordinate expression replaces \(z\) in a density that depends on height?
  3. Give the spherical bounds for the first-octant part of a ball of radius \(R\).
  4. Why must a position-dependent density remain inside the triple integral?
  5. What units should result when density is measured in kilograms per cubic metre and the volume element in cubic metres?