Multivariable Calculus • Multiple Integrals

Triple Integrals: Spherical — Triple integrals in spherical coordinates

Harness the geometry of spheres to evaluate three-dimensional integrals with elegance and efficiency.

Multivariable Calculus emblem with three-dimensional axes, a function, and an orbiting path.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Throughout the history of mathematics and physics, scientists have needed to compute quantities like mass, charge, and gravitational pull for objects with curved, round shapes. Imagine trying to calculate the mass of a solid sphere using rectangular coordinates — you would end up wrestling with square roots and complicated boundary expressions at every step. Spherical coordinates were developed precisely to match the natural symmetry of spheres, cones, and other round shapes, making certain triple integrals far simpler to set up and evaluate.

1600s • Newton & Leibniz Develop Calculus

Isaac Newton and Gottfried Wilhelm Leibniz independently invent calculus, providing the foundational tools for integration and differentiation that would eventually extend to multiple dimensions.

1700s • Euler Formalizes Coordinate Systems

Leonhard Euler systematically describes multiple coordinate systems, including spherical coordinates using the angles θ and φ alongside a radial distance ρ, giving mathematicians a powerful new geometric language.

1780s • Laplace and Gravitational Theory

Pierre-Simon Laplace uses spherical coordinates extensively in his work on celestial mechanics and gravitational potential. His famous Laplace equation is most naturally expressed in spherical form.

1800s • Jacobians and Change of Variables

Carl Gustav Jacob Jacobi develops the theory of determinants for coordinate transformations, giving us the Jacobian factor ρ²sin φ that appears in every spherical triple integral.

1900s • Quantum Mechanics and Modern Applications

Spherical coordinate integrals become indispensable in quantum mechanics for describing electron orbitals and in engineering for antenna radiation patterns, solidifying their place in modern science.

The central question is this: when a region of three-dimensional space has spherical symmetry — like a ball, a cone, or a shell — how can we rewrite a triple integral so the boundaries and the integrand become as simple as possible? The answer lies in converting to spherical coordinates and applying the correct volume element.

SECTION 2

Core Principles & Definitions

Before diving into integration, you need to understand the three spherical coordinates and how they locate a point in space. In Cartesian (rectangular) coordinates, you specify a point by how far it is along the x-, y-, and z-axes. In spherical coordinates, you instead specify how far a point is from the origin, and in which direction you need to look to find it.

1

ρ (rho) — Radial Distance

The distance from the origin to the point. Always non-negative: ρ ≥ 0. Think of it as the length of the line segment from the center of a sphere to a point on or inside it.
2

φ (phi) — Polar Angle

The angle measured down from the positive z-axis to the line connecting the origin to the point. It ranges from 0 to π (0° to 180°). When φ = 0 you point straight up; when φ = π you point straight down.
3

θ (theta) — Azimuthal Angle

The angle measured in the xy-plane from the positive x-axis, sweeping counterclockwise. It ranges from 0 to 2π (0° to 360°). This is the same angle θ you use in polar or cylindrical coordinates.
4

The Jacobian Factor ρ²sin φ

When converting dV = dx dy dz to spherical coordinates, you must include the volume element ρ²sin φ dρ dφ dθ. This factor accounts for how the coordinate grid stretches and compresses at different locations in space.
5

Conversion Formulas

To convert back and forth: x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ. Also, ρ² = x² + y² + z². These relations let you rewrite any function of x, y, z in terms of ρ, φ, θ.
✦

KEY TAKEAWAY

Think of spherical coordinates like a GPS system for space. Instead of saying "go 3 blocks east, 4 blocks north, and 5 floors up" (Cartesian), you say "look in this direction (angles θ and φ) and travel this far (distance ρ)." The extra factor ρ²sin φ is like a correction that accounts for the fact that "slices" of space get bigger as you move away from the origin, just as slices of pizza get wider toward the crust.

SECTION 3

Visualizing Spherical Coordinates

The diagram below illustrates how the three spherical coordinates ρ, φ, and θ locate a point P in three-dimensional space. Notice how ρ extends from the origin O to the point, φ sweeps down from the positive z-axis, and θ sweeps around in the xy-plane.

xyzP(ρ, φ, θ)ρφθOprojection on xy-planeCoordinate Keyρ = radial distanceφ = polar angle (from z)θ = azimuthal angle (in xy)
The point P is located by traveling a distance ρ from the origin, tilting down from the z-axis by angle φ, and rotating around the z-axis by angle θ.

Notice the dashed lines showing how the point P "projects" down onto the xy-plane. The angle θ is measured in that plane, just like in polar coordinates. Meanwhile, φ measures the tilt away from the vertical z-axis. When φ = 0 the point sits on the positive z-axis, and when φ = π/2 the point lies in the xy-plane. Understanding this geometry is essential before writing any spherical integral.

SECTION 4

Mathematical Framework

The key to setting up a triple integral in spherical coordinates is the volume element (also called the differential of volume). In Cartesian coordinates, the volume element is simply dV = dx dy dz. When we switch to spherical coordinates, the shape of each tiny "box" of volume changes — it becomes a curved wedge — and we must account for this with the Jacobian determinant.

CONVERSION FORMULAS

x=ρsinφcosθ,y=ρsinφsinθ,z=ρcosφx = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ

These three equations let you express any Cartesian function f(x, y, z) in terms of the spherical variables ρ, φ, and θ.

SPHERICAL VOLUME ELEMENT

dV=ρ2sinφdρdφdθdV = ρ² sin φ dρ dφ dθ

The factor ρ² sin φ is the Jacobian. It corrects for the fact that coordinate "boxes" near the poles (φ near 0 or π) are smaller than those near the equator (φ = π/2), and boxes far from the origin (large ρ) are larger than boxes near it.

GENERAL TRIPLE INTEGRAL IN SPHERICAL COORDINATES

∫∫∫Ef(x,y,z)dV=∫02π∫0π∫0Rf(ρsinφcosθ,ρsinφsinθ,ρcosφ)⋅ρ2sinφdρdφdθ∫∫∫_E f(x,y,z) dV = ∫₀²π ∫₀^π ∫₀^R f(ρ sinφ cosθ, ρ sinφ sinθ, ρ cosφ) · ρ² sinφ dρ dφ dθ

Here E is the region of integration (shown for a full sphere of radius R). The limits on θ run from 0 to 2π, on φ from 0 to π, and on ρ from 0 to R. For other shapes, these limits will change accordingly.

INVERSE RELATION

ρ=√(x2+y2+z2)ρ = √(x² + y² + z²)

This is especially useful because any integrand that contains x² + y² + z² simplifies to just ρ² in spherical coordinates, which often makes the integral much easier to evaluate.

The order of integration matters for setting up limits. The standard order is dρ dφ dθ (inside to outside), but you can rearrange it as needed, provided you adjust the limits correctly. For regions with full spherical symmetry, the three integrals often separate into independent factors, making evaluation straightforward.

SECTION 5

Understanding the Volume Element ρ² sin φ

One of the trickiest parts of spherical integrals is understanding why the factor ρ² sin φ appears. The diagram below shows a tiny spherical volume element — the curved wedge shape that results when you increase each of ρ, φ, and θ by a small amount. The three edges of this wedge have different lengths depending on where you are in space.

Spherical Volume Element (dV)dρρ dφρ sinφ dθEdge LengthsRadial edge: dρPolar edge: ρ dφAzimuthal edge: ρ sin φ dθVolume ≈ dρ × ρ dφ × ρ sinφ dθdV = ρ² sinφ dρ dφ dθWhy Each Factor?• One ρ from the polar arc length• Another ρ from the azimuthal arc• sin φ shrinks the azimuthal circle near the poles (φ → 0 or π)
The spherical volume element is a curved wedge with three edges: dρ (radial), ρ dφ (polar arc), and ρ sin φ dθ (azimuthal arc). Multiplying these three edge lengths gives the volume dV = ρ² sin φ dρ dφ dθ.

Here is the geometric intuition. When you stand at distance ρ from the origin and tilt by angle φ from the z-axis, the circle you trace as θ changes has radius ρ sin φ, not just ρ. Near the poles (φ close to 0 or π), that circle is tiny, so sin φ is near zero and the wedge is thin. Near the equator (φ = π/2), sin φ = 1 and the wedge is at its widest. The factor ρ² comes from the fact that both the polar and azimuthal arcs grow in proportion to ρ — farther from the origin means bigger wedges.

⚠

Common Mistake Alert

The single most common error when setting up a spherical integral is forgetting the Jacobian factor ρ² sin φ. If you write dV = dρ dφ dθ without the Jacobian, your answer will be wrong. Always include ρ² sin φ when converting from Cartesian to spherical.

SECTION 6

Worked Example: Volume of a Sphere

Let's use a spherical triple integral to derive the well-known formula for the volume of a sphere of radius R. This serves as a perfect first example because the region has complete spherical symmetry, so all three integrals separate cleanly.

Find the volume of a solid sphere of radius R

  1. 1

    Step 1 — Set Up the Integral

    The volume of a region E is V = ∫∫∫_E dV. Since the sphere is centered at the origin, we convert to spherical coordinates. The integrand f = 1 (we are computing volume, not weighting by any function). The volume element is dV = ρ² sin φ dρ dφ dθ.
  2. 2

    Step 2 — Determine the Limits of Integration

    For a full sphere of radius R: ρ ranges from 0 to R, φ ranges from 0 to π (top to bottom), and θ ranges from 0 to 2π (all the way around). So our integral is:
    V = ∫₀²π ∫₀^π ∫₀^R ρ² sin φ dρ dφ dθ
  3. 3

    Step 3 — Evaluate the ρ Integral (innermost)

    Holding φ and θ fixed, integrate with respect to ρ:
    ∫₀^R ρ² dρ = [ρ³/3]₀^R = R³/3
  4. 4

    Step 4 — Evaluate the φ Integral (middle)

    Now integrate sin φ with respect to φ:
    ∫₀^π sin φ dφ = [−cos φ]₀^π = −cos π − (−cos 0) = −(−1) − (−1) = 2
  5. 5

    Step 5 — Evaluate the θ Integral (outermost)

    Finally, integrate with respect to θ:
    ∫₀²π dθ = 2π
  6. 6

    Step 6 — Multiply All Three Results

    Combine the three independent results:
    V = (R³/3)(2)(2π) = 4πR³/3 ✓

We recovered the classic formula V = 4πR³/3, confirming that our setup was correct. Notice how neatly the integral separated into three independent one-variable integrals — this is one of the great advantages of spherical coordinates when the region has full spherical symmetry.

SECTION 7

Comparing Coordinate Systems

Spherical coordinates are not always the best choice. The table below compares Cartesian, cylindrical, and spherical coordinates so you can decide which system to use for a given problem.

FeatureCartesian (x, y, z)Cylindrical (r, θ, z)Spherical (ρ, φ, θ)
Volume elementdx dy dzr dr dθ dzρ² sin φ dρ dφ dθ
Best for shapesBoxes, rectangular prismsCylinders, tubes, disksSpheres, cones, hemispheres
x² + y² + z² simplifies toStays x² + y² + z²r² + z²ρ² (simplest!)
Setup difficulty for sphereComplicated square-root limitsModerate — z limits involve √Simple constant limits
Number of coordinates3 (x, y, z)3 (r, θ, z)3 (ρ, φ, θ)

Comparison of coordinate systems for triple integrals

🎯

WHEN TO USE SPHERICAL

Use spherical coordinates whenever the region of integration looks like a sphere, shell, cone, or combination of these, or when the integrand contains x² + y² + z² (which becomes the much simpler ρ²). If the shape is more like a cylinder or tube, try cylindrical instead. If it's a box, stick with Cartesian.

SECTION 8

Connections to Advanced Topics

Spherical triple integrals are not just a calculus exercise — they connect to powerful ideas in physics and higher mathematics. Understanding them now prepares you for several important topics you may encounter in college courses.

This LessonAdvanced Extension
Volume element ρ² sin φ dρ dφ dθGeneral Jacobian determinants for arbitrary coordinate transformations (e.g., ellipsoidal coordinates)
Integrating f = 1 to find volumeIntegrating density functions ρ(x,y,z) to find mass, center of mass, and moments of inertia
Constant limits on ρ, φ, θ for a full sphereVariable limits for regions bounded by cones (φ = constant), spheres of different radii, or cardioid surfaces
Spherical coordinate systemLaplace's equation, spherical harmonics in quantum mechanics, and gravitational potential theory

How this lesson's concepts extend to advanced mathematics and physics

In physics, you will encounter the Laplacian operator written in spherical coordinates, and you will solve partial differential equations using spherical harmonics — special functions that arise naturally from separating variables in spherical geometry. The electron orbitals you may have seen in chemistry (s, p, d, f) are direct visual representations of these spherical harmonics. The triple integrals you learn here form the computational backbone of all these applications.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why the volume element in spherical coordinates is dV = ρ² sin φ dρ dφ dθ rather than simply dV = dρ dφ dθ. What would go wrong if you forgot the factor ρ² sin φ?
Show answer
The factor ρ² sin φ is the Jacobian that accounts for how the coordinate grid stretches and compresses at different locations. Each small "box" in spherical coordinates is a curved wedge with edges of length dρ, ρ dφ, and ρ sin φ dθ. Multiplying these three lengths gives the volume of the wedge, which is ρ² sin φ dρ dφ dθ. If you omit this factor, you are treating every tiny wedge as if it has the same size, regardless of its distance from the origin or its latitude, which produces an incorrect answer. For instance, computing the volume of a unit sphere without the Jacobian would give ∫₀¹∫₀^π∫₀²π dρ dφ dθ = 2π², whereas the correct answer is 4π/3.

Question 2: BASIC CALCULATION

Evaluate the triple integral ∫∫∫_E dV where E is the solid sphere x² + y² + z² ≤ 4. (That is, find the volume of a sphere of radius 2.)
Show answer
Convert to spherical coordinates. The sphere x² + y² + z² ≤ 4 corresponds to ρ ≤ 2, with φ from 0 to π and θ from 0 to 2π. The integral becomes ∫₀²π ∫₀^π ∫₀² ρ² sin φ dρ dφ dθ. Evaluating the ρ-integral: ∫₀² ρ² dρ = 8/3. The φ-integral: ∫₀^π sin φ dφ = 2. The θ-integral: ∫₀²π dθ = 2π. Multiplying: (8/3)(2)(2π) = 32π/3. This matches V = 4π(2)³/3 = 32π/3.

Question 3: INTERMEDIATE

Evaluate ∫∫∫_E (x² + y² + z²) dV where E is the solid sphere of radius 3 centered at the origin.
Show answer
In spherical coordinates, x² + y² + z² = ρ². The integral becomes ∫₀²π ∫₀^π ∫₀³ ρ² · ρ² sin φ dρ dφ dθ = ∫₀²π ∫₀^π ∫₀³ ρ⁴ sin φ dρ dφ dθ. The ρ-integral gives ∫₀³ ρ⁴ dρ = 3⁵/5 = 243/5. The φ-integral gives ∫₀^π sin φ dφ = 2. The θ-integral gives 2π. Multiplying all three: (243/5)(2)(2π) = 972π/5. Notice how the integrand simplified beautifully from x² + y² + z² to just ρ², which is exactly why spherical coordinates were the right choice.

Question 4: APPLIED

A solid ball of radius 5 cm has density function δ(x, y, z) = 2(x² + y² + z²) grams per cubic centimeter. Find its total mass using a spherical triple integral.
Show answer
Mass equals ∫∫∫_E δ dV. In spherical coordinates, δ = 2ρ² and dV = ρ² sin φ dρ dφ dθ. So M = ∫₀²π ∫₀^π ∫₀⁵ 2ρ² · ρ² sin φ dρ dφ dθ = 2 ∫₀²π dθ ∫₀^π sin φ dφ ∫₀⁵ ρ⁴ dρ. Evaluating each factor: ∫₀²π dθ = 2π; ∫₀^π sin φ dφ = 2; ∫₀⁵ ρ⁴ dρ = 5⁵/5 = 625. Therefore M = 2(2π)(2)(625) = 5000π grams, or approximately 15,708 grams (about 15.7 kg). The density function increases with distance from the center, meaning the outer layers are denser than the core.

Question 5: CRITICAL THINKING

Set up (but do not fully evaluate) the triple integral in spherical coordinates for the volume of the region inside the sphere ρ = 4 and above the cone φ = π/6. Explain how the cone condition affects the limits and describe what the region looks like.
Show answer
The condition "above the cone φ = π/6" means we want points where the polar angle φ is between 0 and π/6 — that is, the narrow cone-shaped cap near the positive z-axis. The sphere ρ = 4 provides the outer boundary. The region looks like an ice-cream-cone shape: a cone whose half-angle is 30° (π/6), filled in from the origin out to a spherical cap at distance 4. The integral is V = ∫₀²π ∫₀^(π/6) ∫₀⁴ ρ² sin φ dρ dφ dθ. The θ-integral gives 2π (full rotation around z-axis). The ρ-integral gives 64/3. The φ-integral gives ∫₀^(π/6) sin φ dφ = [−cos φ]₀^(π/6) = 1 − cos(π/6) = 1 − (√3/2) = (2 − √3)/2. Multiplying: V = (2π)(64/3)((2 − √3)/2) = 64π(2 − √3)/3. The key insight is that the cone constrains only the φ-limits, keeping them from 0 to π/6 instead of the full 0 to π.

SUMMARY

Lesson Summary

Summary

A triple integral in spherical coordinates uses three variables — ρ (radial distance), φ (polar angle from the z-axis), and θ (azimuthal angle in the xy-plane) — to describe regions with spherical symmetry. The crucial volume element is dV = ρ² sin φ dρ dφ dθ, where the factor ρ² sin φ is the Jacobian determinant that accounts for the stretching of coordinate "boxes" at different locations in space.

Spherical coordinates are the ideal choice when the region of integration is a sphere, hemisphere, cone, or spherical shell, or when the integrand contains x² + y² + z², which simplifies to just ρ². The conversion formulas x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ let you rewrite any Cartesian integrand, and the standard limits for a full sphere are ρ ∈ [0, R], φ ∈ [0, π], θ ∈ [0, 2π]. Mastering this technique prepares you for applications in physics, engineering, and higher mathematics.

Varsity Tutors • Multivariable Calculus • Triple Integrals: Spherical — Triple integrals in spherical coordinates