Mathwords logoMathwords

Triple Integral in Spherical Coordinates — Formula & Example

A triple integral in spherical coordinates adds up a quantity over a 3D region using distance from the origin and two angles instead of x, y, and z. It turns integrals over balls, cones, and spherical shells into integrals with constant or simple limits.

Let EE be a solid region described in spherical coordinates by a≤ρ≤ba \le \rho \le b, α≤θ≤β\alpha \le \theta \le \beta, and g1(θ)≤ϕ≤g2(θ)g_1(\theta) \le \phi \le g_2(\theta), with ρ≥0\rho \ge 0, 0≤ϕ≤π0 \le \phi \le \pi, and β−α≤2π\beta - \alpha \le 2\pi. For ff continuous on EE, the triple integral of ff over EE equals the iterated integral of f(ρsin⁡ϕcos⁡θ, ρsin⁡ϕsin⁡θ, ρcos⁡ϕ) ρ2sin⁡ϕf(\rho\sin\phi\cos\theta,\, \rho\sin\phi\sin\theta,\, \rho\cos\phi)\,\rho^2\sin\phi over the corresponding limits. The factor ρ2sin⁡ϕ\rho^2\sin\phi is the absolute value of the Jacobian determinant of the change of variables (ρ,ϕ,θ)↦(x,y,z)(\rho, \phi, \theta) \mapsto (x, y, z).

Key Formula

∭Ef(x,y,z) dV=∫αβ∫g1(θ)g2(θ)∫abf(ρsin⁡ϕcos⁡θ, ρsin⁡ϕsin⁡θ, ρcos⁡ϕ) ρ2sin⁡ϕ  dρ dϕ dθ\iiint_E f(x,y,z)\,dV = \int_{\alpha}^{\beta}\int_{g_1(\theta)}^{g_2(\theta)}\int_{a}^{b} f(\rho\sin\phi\cos\theta,\ \rho\sin\phi\sin\theta,\ \rho\cos\phi)\,\rho^2\sin\phi\; d\rho\, d\phi\, d\theta
Where:
  • ρ\rho = Distance from the origin, with ρ≥0\rho \ge 0
  • ϕ\phi = Polar angle measured down from the positive z-axis, with 0≤ϕ≤π0 \le \phi \le \pi
  • θ\theta = Azimuthal angle in the xy-plane, measured from the positive x-axis
  • ρ2sin⁡ϕ\rho^2\sin\phi = Jacobian factor that converts dρ dϕ dθd\rho\,d\phi\,d\theta into the volume element dVdV
  • EE = The solid region of integration

Worked Example

Problem: Evaluate ∭Ez dV\iiint_E z\,dV, where EE is the upper half of the ball x2+y2+z2≤4x^2 + y^2 + z^2 \le 4 (the part with z≥0z \ge 0).
Step 1: Describe the region and convert the integrand. The ball has radius 2, so 0≤ρ≤20 \le \rho \le 2. The upper half means ϕ\phi runs only from 00 (the positive z-axis) to π/2\pi/2 (the xy-plane), and 0≤θ≤2π0 \le \theta \le 2\pi. Replace zz with ρcos⁡ϕ\rho\cos\phi and multiply by ρ2sin⁡ϕ\rho^2\sin\phi.
∭Ez dV=∫02π∫0π/2∫02(ρcos⁡ϕ) ρ2sin⁡ϕ  dρ dϕ dθ=∫02π∫0π/2∫02ρ3cos⁡ϕsin⁡ϕ  dρ dϕ dθ\iiint_E z\,dV = \int_0^{2\pi}\int_0^{\pi/2}\int_0^{2} (\rho\cos\phi)\,\rho^2\sin\phi\; d\rho\, d\phi\, d\theta = \int_0^{2\pi}\int_0^{\pi/2}\int_0^{2} \rho^3\cos\phi\sin\phi\; d\rho\, d\phi\, d\theta
Step 2: The limits are constants and the integrand is a product of one-variable factors, so the integral splits into three single integrals.
∫02ρ3 dρ=244=4,∫0π/2cos⁡ϕsin⁡ϕ dϕ=[12sin⁡2ϕ]0π/2=12,∫02πdθ=2π\int_0^{2}\rho^3\,d\rho = \frac{2^4}{4} = 4, \qquad \int_0^{\pi/2}\cos\phi\sin\phi\,d\phi = \left[\tfrac{1}{2}\sin^2\phi\right]_0^{\pi/2} = \frac{1}{2}, \qquad \int_0^{2\pi} d\theta = 2\pi
Step 3: Multiply the three results.
∭Ez dV=4⋅12⋅2π=4π\iiint_E z\,dV = 4 \cdot \frac{1}{2} \cdot 2\pi = 4\pi
Answer: ∭Ez dV=4π\iiint_E z\,dV = 4\pi. As a check, the hemisphere has volume 16π3\frac{16\pi}{3} and its centroid sits at height zˉ=38(2)=34\bar z = \frac{3}{8}(2) = \frac{3}{4}. Their product is 16π3⋅34=4π\frac{16\pi}{3}\cdot\frac{3}{4} = 4\pi.

Why It Matters

Physics courses use spherical triple integrals to find the total charge or mass of a sphere whose density depends on distance from the center. They also appear in Gauss's law problems in electromagnetism and in computing moments of inertia of balls and shells. In multivariable calculus, they are the standard tool for centroids of hemispheres and for volumes of cone-and-sphere solids such as an ice cream cone.

Common Mistakes

Mistake: Letting the polar angle ϕ\phi run from 00 to 2π2\pi, the way θ\theta does.
Correction: The angle ϕ\phi only needs to sweep from the positive z-axis (ϕ=0\phi = 0) to the negative z-axis (ϕ=π\phi = \pi) to cover all of space. A full ball uses 0≤ϕ≤π0 \le \phi \le \pi, and an upper hemisphere uses 0≤ϕ≤π/20 \le \phi \le \pi/2. Going past π\pi makes sin⁡ϕ\sin\phi negative and cancels part of your answer.

Related Terms

  • Integral — The accumulation idea this 3D integral uses
  • Triple Integral — The general integral this page evaluates in spherical form
  • Spherical Coordinates — Defines rho, phi, and theta used in the limits
  • Jacobian — Its determinant produces the rho squared sine phi factor
  • Divergence Theorem — Converts flux through spheres into these volume integrals
  • Laplacian — Often rewritten in spherical form for radially symmetric problems
  • Divergence — Common integrand when applying the divergence theorem over balls