01 / 21

Triple Integrals in
Spherical Coordinates

Master the art of integrating over spheres, cones, and radial regions using \( \rho \), \( \phi \), and \( \theta \) with the crucial Jacobian factor \( \rho^2 \sin \phi \).

Calculus 3

What Are Spherical Coordinates?

Spherical coordinates locate a point in 3D space using three values instead of the Cartesian \( (x, y, z) \). Every point is described by its distance from the origin and two angles.

\( \rho \) : Radial Distance
Distance from the origin to the point. Always \( \rho \geq 0 \).
\( \phi \) : Polar Angle
Angle down from the positive \( z \)-axis. Range: \( 0 \leq \phi \leq \pi \).
\( \theta \) : Azimuthal Angle
Angle in the \( xy \)-plane from the positive \( x \)-axis. Range: \( 0 \leq \theta \leq 2\pi \).

Visualizing \( (\rho, \phi, \theta) \)

\(z\) \(x\) \(y\) \(O\) \(P\) \( \rho \) \( \phi \) \( \theta \)

Conversion Formulas

To convert between Cartesian and spherical coordinates, use these fundamental relationships:

Spherical → Cartesian
$$ x = \rho \sin \phi \cos \theta $$ $$ y = \rho \sin \phi \sin \theta $$ $$ z = \rho \cos \phi $$
Cartesian → Spherical
$$ \rho = \sqrt{x^2 + y^2 + z^2} $$ $$ \phi = \arccos \!\left(\frac{z}{\rho}\right) $$ $$ \theta = \arctan \!\left(\frac{y}{x}\right) $$

The Volume Element \( dV \)

When changing from Cartesian to spherical coordinates, the volume element \( dx\,dy\,dz \) transforms via the Jacobian determinant:

The factor \( \rho^2 \sin \phi \) accounts for how the coordinate grid stretches and curves as you move away from the origin and away from the poles.

\( \rho\,d\phi \) \( d\rho \) \( \rho \sin \phi\,d\theta \) Volume = \( \rho^2 \sin \phi\,d\rho\,d\phi\,d\theta \)

The Triple Integral Formula

Where \( f(\rho,\phi,\theta) \) means you rewrite the integrand using the conversion formulas. The standard order of integration is \( d\rho \) first (innermost), then \( d\phi \), then \( d\theta \) (outermost).

1
Replace the integrand \( f(x,y,z) \) with \( f(\rho\sin \phi\cos \theta,\;\rho\sin \phi\sin \theta,\;\rho\cos \phi) \).
2
Replace \( dV \) with \( \rho^2\sin \phi\;d\rho\;d\phi\;d\theta \).
3
Determine the limits for \( \rho \), \( \phi \), and \( \theta \) from the region \( E \).

Standard Limits for Common Regions

Region \( \rho \) \( \phi \) \( \theta \)
Full sphere of radius \( R \) \( 0 \to R \) \( 0 \to \pi \) \( 0 \to 2\pi \)
Upper hemisphere \( 0 \to R \) \( 0 \to \frac{\pi}{2} \) \( 0 \to 2\pi \)
Cone \( \phi = \alpha \) (inside) \( 0 \to R \) \( 0 \to \alpha \) \( 0 \to 2\pi \)
First octant of sphere \( 0 \to R \) \( 0 \to \frac{\pi}{2} \) \( 0 \to \frac{\pi}{2} \)

Spherical vs Cylindrical vs Cartesian

Feature Spherical Cylindrical Cartesian
Coordinates \( (\rho, \phi, \theta) \) \( (r, \theta, z) \) \( (x, y, z) \)
Volume element \( \rho^2\sin \phi \) \( r \) \( 1 \)
Best for Spheres, cones Cylinders, pipes Boxes, planes
Key equation \( \rho = R \) \( r = R \) \( x = a \)

How to Set Up the Integral

1
Sketch the region \( E \) and identify its symmetry. Look for spheres, cones, or hemispheres.
2
Determine \( \theta \) limits from the azimuthal extent. Full revolution = \( 0 \) to \( 2\pi \).
3
Determine \( \phi \) limits from the polar extent. Upper half-space = \( 0 \) to \( \pi/2 \).
4
Determine \( \rho \) limits. Often \( 0 \) to a radius, but can depend on \( \phi \).
5
Convert the integrand and multiply by \( \rho^2\sin \phi \). Then integrate inside-out.

Example 1: Volume of a Sphere

Find the volume of a sphere of radius \( R \) using a triple integral in spherical coordinates.

1
Inner (\( \rho \)): \( \displaystyle\int_0^{R}\rho^2\,d\rho = \frac{R^3}{3} \)
2
Middle (\( \phi \)): \( \displaystyle\int_0^{\pi}\sin \phi\,d\phi = [-\cos \phi]_0^{\pi} = 2 \)
3
Outer (\( \theta \)): \( \displaystyle\int_0^{2\pi}d\theta = 2\pi \)

Example 2: Integral over an Upper Hemisphere

Evaluate \( \displaystyle\iiint_E z\,dV \) where \( E \) is the upper hemisphere \( x^2+y^2+z^2 \leq 4 \), \( z \geq 0 \).

1
\( \rho \): \( \displaystyle\int_0^{2}\rho^3\,d\rho = \frac{16}{4} = 4 \)
2
\( \phi \): \( \displaystyle\int_0^{\pi/2}\sin \phi\cos \phi\,d\phi = \frac{1}{2}\int_0^{\pi/2}\sin(2\phi)\,d\phi = \frac{1}{2} \)
3
\( \theta \): \( 2\pi \). Result: \( 4 \cdot \tfrac{1}{2} \cdot 2\pi = 4\pi \)

Example 3: Spherical Shell

Find \( \displaystyle\iiint_E (x^2+y^2+z^2)\,dV \) where \( E \) is the region between the spheres \( \rho = 1 \) and \( \rho = 3 \).

1
\( \rho \): \( \displaystyle\int_1^{3}\rho^4\,d\rho = \frac{\rho^5}{5}\Big|_1^3 = \frac{243-1}{5} = \frac{242}{5} \)
2
\( \phi \): \( \displaystyle\int_0^{\pi}\sin \phi\,d\phi = 2 \)
3
\( \theta \): \( 2\pi \). Result: \( \dfrac{242}{5}\cdot 2\cdot 2\pi = \dfrac{968\pi}{5} \)

Example 4: Inside a Cone and Sphere

Find the volume of the region inside the sphere \( \rho = 2 \) and inside the cone \( \phi = \pi/3 \).

\(z\) \(O\) \( \rho = 2 \) \( \phi = \pi/3 \)

Why \( \rho^2\sin \phi \)?

The factor \( \rho^2\sin \phi \) is the absolute value of the Jacobian of the transformation from Cartesian to spherical coordinates:

Evaluating this 3×3 determinant gives \( \rho^2\sin \phi \). Intuitively, at distance \( \rho \) from the origin, the "grid spacing" scales by \( \rho \) in two angular directions (giving \( \rho^2 \)), and the \( \sin \phi \) corrects for convergence at the poles.

Common Mistakes to Avoid

✕ Forgetting \( \rho^2\sin \phi \)
The most common error. You must always include the Jacobian factor when converting \( dV \).
✕ Wrong \( \phi \) range
\( \phi \) goes from \( 0 \) to \( \pi \), not \( 2\pi \). The upper half is \( 0 \) to \( \pi/2 \), not \( 0 \) to \( \pi \).
✕ Mixing up \( \phi \) and \( \theta \)
Some textbooks swap the notation. In the physics convention, \( \theta \) is the polar angle. Always check your book's convention.
✕ Wrong integrand conversion
If \( f = z^2 \), you need \( (\rho\cos \phi)^2 = \rho^2\cos^2 \phi \), not just \( \rho\cos \phi \).
✕ \( \sin \phi \) sign errors
\( \int\sin \phi\,d\phi = -\cos \phi \). Don't forget the negative sign when evaluating.

Summary: Key Formulas

Conversion
\( x = \rho\sin \phi\cos \theta \)
\( y = \rho\sin \phi\sin \theta \)
\( z = \rho\cos \phi \)
Volume Element
\( dV = \rho^2\sin \phi\;d\rho\;d\phi\;d\theta \)
Ranges
\( \rho \geq 0 \)
\( 0 \leq \phi \leq \pi \)
\( 0 \leq \theta \leq 2\pi \)

Question 1 of 5

What is the volume element \( dV \) in spherical coordinates?

Question 2 of 5

For the upper hemisphere of a sphere of radius 5, what are the correct limits for \( \phi \)?

Question 3 of 5

Evaluate \( \displaystyle\int_0^{2\pi}\int_0^{\pi}\int_0^{1}\rho^2\sin \phi\;d\rho\;d\phi\;d\theta \).

Question 4 of 5

To convert the integrand \( z^2 \) to spherical coordinates, you write:

Question 5 of 5

Which coordinate system is best suited for evaluating \( \displaystyle\iiint_E dV \) where \( E \) is bounded by \( x^2+y^2+z^2=9 \) and the cone \( z = \sqrt{x^2+y^2} \)?