Calculus 3 • Vectors & 3D Geometry

Spherical Coordinates

A coordinate system that harnesses radial symmetry to simplify three-dimensional integration and geometry.

Three-dimensional axes with spatial movement and a multivariable function.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The need to describe points on a sphere long predates modern mathematics. Ancient astronomers cataloguing star positions on the celestial sphere recognized that two angular measurements — roughly equivalent to what we now call declination and right ascension — were sufficient to locate any point on a spherical surface. When a radial distance from the center is added as a third coordinate, the resulting system can describe every point in three-dimensional space. This framework, known as spherical coordinates, grew out of centuries of astronomical practice, cartographic need, and analytic geometry.

~150 CE • Ptolemy's Almagest

Claudius Ptolemy systematically catalogued over 1,000 stars using ecliptic latitude and longitude — an early form of angular coordinates on a sphere that became the dominant astronomical reference for over a millennium.

1637 • Descartes' La Géométrie

René Descartes formalized Cartesian coordinates, establishing the rectangular framework against which alternative coordinate systems — including spherical — would later be compared and converted.

1736 • Euler's Mechanica

Leonhard Euler introduced the modern convention of using two angles and a radial distance, embedding spherical coordinates into the language of analytical mechanics and paving the way for their use in differential equations.

1799 • Laplace's Mécanique Céleste

Pierre-Simon Laplace exploited spherical coordinates to derive his eponymous equation, demonstrating that problems with radial symmetry — gravitational fields, heat conduction on spheres — become vastly simpler in this system.

1926 • Schrödinger's Wave Equation

Erwin Schrödinger solved the hydrogen atom's wave equation in spherical coordinates, revealing quantized energy levels and orbital shapes — a triumph that cemented the coordinate system's centrality in modern physics.

The recurring theme across these milestones is one of symmetry exploitation. Whenever a physical or geometric problem possesses radial or spherical symmetry, forcing it into a rectangular grid introduces unnecessary algebraic complexity. Spherical coordinates align with the inherent symmetry of the problem, often reducing triple integrals to separable single-variable integrals and collapsing complicated surface equations into elegant expressions. The central question this lesson addresses is: how do we rigorously define, convert between, and compute with spherical coordinates in multivariable calculus?

SECTION 2

Core Principles & Definitions

In the spherical coordinate system, every point P in three-dimensional space is described by three quantities: the radial distance ρ (rho), the polar angle φ (phi), and the azimuthal angle θ (theta). Together these three coordinates specify a unique location in ℝ³, provided we respect the standard conventions on their ranges. The system is a natural extension of polar coordinates in two dimensions: ρ generalizes the radial distance r, φ measures the "tilt" from the positive z-axis, and θ sweeps around the z-axis exactly as it does in polar or cylindrical coordinates.

1

Radial Distance ρ

The distance from the origin O to the point P. By convention, ρ ≥ 0. When ρ = 0, the point is at the origin regardless of the angle values. Surfaces of constant ρ are spheres centered at the origin.
2

Polar Angle φ

The angle measured from the positive z-axis down to the line segment OP. Its range is 0 ≤ φ ≤ π. Surfaces of constant φ are half-cones with vertex at the origin (except φ = 0 or π, which give the z-axis itself).
3

Azimuthal Angle θ

The angle measured in the xy-plane from the positive x-axis to the projection of OP onto the xy-plane, rotating counterclockwise. Its range is 0 ≤ θ < 2π. Surfaces of constant θ are half-planes emanating from the z-axis.
4

Convention Warning

Physics texts often swap the roles of θ and φ, using θ for the polar angle and φ for the azimuthal angle. In this lesson we follow the ISO / mathematics convention where φ is polar and θ is azimuthal. Always check the convention used in your course.
✦

KEY TAKEAWAY

Think of spherical coordinates the way you might aim a telescope: first you extend the tube to the right length (ρ), then you tilt it to the correct elevation above or below the zenith (φ), and finally you rotate the base to face the right compass direction (θ). These three independent adjustments — reach, tilt, and rotation — uniquely determine where the telescope points, just as (ρ, φ, θ) uniquely determines a point in space.

SECTION 3

Visual Explanation

xyzP(ρ, φ, θ)ρP′ (projection)θφSpherical Coordinate Systemρ — radial distance from O to Pφ — polar angle from +z axisθ — azimuthal angle in xy-plane
The diagram shows a right-handed coordinate frame with the positive z-axis pointing upward. The point P is located by first measuring the radial distance ρ from the origin, then the polar angle φ from the positive z-axis, and finally the azimuthal angle θ in the xy-plane. The dashed vertical line drops P onto its projection P′ in the xy-plane.

Several geometric observations follow directly from the diagram. The projection of P onto the xy-plane, labeled P′, lies at a distance ρ sin φ from the origin — this is the cylindrical radius. The height of P above the xy-plane is ρ cos φ. These relationships are precisely what generate the conversion formulas between spherical and Cartesian coordinates, which we derive in the next section. Notice also that φ = 0 places P on the positive z-axis, φ = π/2 places P in the xy-plane, and φ = π places P on the negative z-axis, so φ sweeps through a half-turn, not a full turn.

SECTION 4

Mathematical Framework

Conversion: Spherical → Cartesian

From the geometry of the previous section, the Cartesian coordinates (x, y, z) of a point with spherical coordinates (ρ, φ, θ) are obtained by decomposing the position vector. The projection onto the xy-plane has length ρ sin φ, which then resolves into x and y components via the azimuthal angle θ. The z-component is the vertical leg of the right triangle formed by ρ and φ.

SPHERICAL TO CARTESIAN

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

where ρ ≥ 0, 0 ≤ φ ≤ π, and 0 ≤ θ < 2π. Here ρ sin φ is the cylindrical radius r.

Conversion: Cartesian → Spherical

Inverting the conversion formulas gives the spherical coordinates of a point whose Cartesian coordinates are known. The radial distance is the standard Euclidean norm, the polar angle is recovered via the arccosine (or arctangent) of the z-component relative to ρ, and the azimuthal angle is the same as in polar coordinates.

CARTESIAN TO SPHERICAL

ρ=√(x2+y2+z2),φ=arccos(z/ρ),θ=arctan(y/x)ρ = √(x² + y² + z²), φ = arccos(z / ρ), θ = arctan(y / x)

Use the two-argument arctangent (atan2) for θ to handle all four quadrants correctly. When ρ = 0, the angles are undefined.

The Volume Element in Spherical Coordinates

When performing triple integrals, the differential volume element dV = dx dy dz in Cartesian coordinates must be replaced by the corresponding expression in spherical coordinates. This replacement comes from computing the Jacobian determinant of the coordinate transformation. The Jacobian of the mapping (ρ, φ, θ) → (x, y, z) is the determinant of the 3 × 3 matrix of partial derivatives, and after a standard (if somewhat tedious) determinant computation, one obtains the scale factor ρ² sin φ.

SPHERICAL VOLUME ELEMENT

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

The factor ρ² accounts for radial stretching (shells grow as ρ²), while sin φ accounts for the convergence of meridians toward the poles. This is the single most important formula for evaluating triple integrals in spherical coordinates.

SURFACE AREA ELEMENT ON A SPHERE

dS=ρ2sinφdφdθ(onthesphereρ=const)dS = ρ² sin φ dφ dθ (on the sphere ρ = const)

Setting ρ constant in the volume element gives the area element on a sphere of radius ρ. Integrating over the full range of φ and θ recovers the familiar formula 4πρ².

SECTION 5

Coordinate Surfaces & Common Equations

One of the great advantages of spherical coordinates is the simplicity with which many important surfaces can be described. A sphere of radius a centered at the origin, which requires the equation x² + y² + z² = a² in Cartesian form, becomes the single equation ρ = a. Similarly, a cone of half-angle α about the z-axis is simply φ = α, and a half-plane through the z-axis is θ = c for some constant c. Below is a reference table of common surfaces and their spherical-coordinate equations.

Three Coordinate Surfaces in Spherical Coordinatesρ = constantSphereφφ = constantCone (half-angle φ)θθ = constantHalf-plane through z-axis
Left: a sphere of constant ρ. Center: a cone formed by constant φ (the polar angle measured from the z-axis). Right: a half-plane formed by constant θ (the azimuthal angle in the xy-plane). These three families of surfaces intersect orthogonally at every point, forming the spherical coordinate grid.
SurfaceCartesian EquationSpherical Equation
Sphere of radius ax² + y² + z² = a²ρ = a
Cone, half-angle αz² = (x² + y²) cot² αφ = α
xy-planez = 0φ = π/2
Positive z-axisx = 0, y = 0, z > 0φ = 0
Half-plane y = x tan c, x ≥ 0y/x = tan c, x ≥ 0θ = c

Common surfaces in Cartesian vs. spherical form

SECTION 6

Worked Example: Volume of a Spherical Cap

Compute the volume of the region inside the sphere ρ = 4 that lies above the cone φ = π/3. This region is a spherical cap — the portion of the ball near the "north pole." We will set up and evaluate the triple integral in spherical coordinates.

Volume of a Spherical Cap (ρ ≤ 4, φ ≤ π/3)

  1. 1

    Step 1 — Identify the integration region

    The sphere ρ = 4 bounds the radial distance: 0 ≤ ρ ≤ 4. The cone φ = π/3 bounds the polar angle from above: 0 ≤ φ ≤ π/3. The azimuthal angle sweeps a full revolution: 0 ≤ θ ≤ 2π. The region is therefore defined by all three constraints simultaneously.
  2. 2

    Step 2 — Write the integral with the volume element

    The volume is V = ∫∫∫ dV. In spherical coordinates dV = ρ² sin φ dρ dφ dθ. Substituting the limits:
    V = ∫₀²π ∫₀^(π/3) ∫₀⁴ ρ² sin φ dρ dφ dθ
  3. 3

    Step 3 — Evaluate the ρ-integral

    ∫₀⁴ ρ² dρ = [ρ³/3]₀⁴ = 64/3.
    64/3
  4. 4

    Step 4 — Evaluate the φ-integral

    ∫₀^(π/3) sin φ dφ = [−cos φ]₀^(π/3) = −cos(π/3) + cos(0) = −1/2 + 1 = 1/2.
    1/2
  5. 5

    Step 5 — Evaluate the θ-integral and combine

    ∫₀²π dθ = 2π. Multiplying all three results together: V = (64/3)(1/2)(2π) = 64π/3.
    V = 64π/3 ≈ 67.02 cubic units
💡

Sanity Check

The full sphere of radius 4 has volume (4/3)π(4)³ = 256π/3. Our cap equals 64π/3, which is exactly one-quarter of the sphere. This makes geometric sense: the cone φ = π/3 cuts off a cap whose height is 4 − 4 cos(π/3) = 4 − 2 = 2, which is half the radius, and the exact volume formula for a spherical cap confirms 64π/3.

SECTION 7

Spherical vs. Cylindrical vs. Cartesian

Choosing the right coordinate system is often the key step that determines whether an integral is tractable or nightmarishly complicated. The decision hinges on the symmetry of the region and the integrand. Below is a comparison of the three coordinate systems encountered in Calculus 3, with guidance on when each one shines.

FeatureCartesian (x, y, z)Cylindrical (r, θ, z)Spherical (ρ, φ, θ)
Volume elementdx dy dzr dr dθ dzρ² sin φ dρ dφ dθ
Best symmetryRectangular boxes, planesCylinders, tubes, axial symmetrySpheres, cones, radial symmetry
Sphere equationx² + y² + z² = R²r² + z² = R²ρ = R
Cone equationz = c√(x² + y²)z = crφ = const
Coordinate singularityNoner = 0 (z-axis)ρ = 0 (origin), φ = 0, π (poles)
Typical applicationRectangular solids, linear PDEsPipes, washers, revolving solidsGravitational/electric fields, planetary models

Comparison of coordinate systems in ℝ³

✦

WHEN TO USE SPHERICAL COORDINATES

If the boundary of your integration region involves x² + y² + z² (spheres) or z/√(x² + y² + z²) (cones), spherical coordinates will likely simplify the problem. A useful heuristic: whenever the integrand or the boundary can be written purely in terms of ρ, φ, and θ without algebraic gymnastics, you are in the right system. Conversely, if the region has a flat top or bottom (constant z) combined with circular cross-sections, cylindrical coordinates may be the better choice.

SECTION 8

Connections to Advanced Theory

Spherical coordinates are not merely a Calculus 3 convenience; they form the backbone of several advanced mathematical and physical theories. Once you move into courses on partial differential equations, electrodynamics, quantum mechanics, or differential geometry, you will encounter these coordinates in deeper and more nuanced ways.

Calculus 3 TopicAdvanced Extension
Volume element dV = ρ² sin φ dρ dφ dθIn Riemannian geometry, this becomes the metric tensor gᵢⱼ and the general volume form √|g| dx¹ dx² dx³.
Conversion formulas x = ρ sin φ cos θ, etc.Generalized to curvilinear coordinate transformations; the Jacobian matrix encodes local stretching and rotation of the coordinate grid.
Triple integrals over spheres and conesLaplace's equation ∇²f = 0 separates in spherical coordinates, yielding spherical harmonics Yₗᵐ(φ, θ) — the eigenfunctions of angular momentum in quantum mechanics.
Gradient, divergence, curl in spherical coordinatesMaxwell's equations in spherical form govern radiation patterns of antennas, scattering of electromagnetic waves, and multipole expansions.

How Calculus 3 spherical coordinate concepts generalize in advanced coursework

Perhaps the most elegant outcome is the theory of spherical harmonics, which arise when one solves Laplace's equation in spherical coordinates using separation of variables. The angular part of the solution yields an orthonormal basis for functions on the sphere, analogous to the Fourier series for functions on a circle. Spherical harmonics appear in gravitational field modeling (geophysics), electron orbital shapes (quantum chemistry), and 3D graphics rendering (ambient lighting). Mastering the mechanics of spherical coordinates in Calculus 3 lays the essential groundwork for all of these applications.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why the volume element in spherical coordinates includes the factor ρ² sin φ rather than simply dρ dφ dθ. What geometric meaning does each factor (ρ² and sin φ) carry?
Show answer
The factor ρ² arises because, at a distance ρ from the origin, a small change dρ sweeps out a shell of area proportional to ρ² (just as the surface area of a sphere is 4πρ²). The factor sin φ accounts for the fact that circles of constant latitude (constant φ) on the unit sphere shrink as φ approaches 0 or π — they are largest at the equator (φ = π/2, where sin φ = 1) and degenerate to points at the poles (sin 0 = sin π = 0). Together, ρ² sin φ corrects for the non-uniform spacing of the spherical grid lines so that the integral accurately measures volume.

Question 2: BASIC CALCULATION

Convert the Cartesian point (1, −1, √2) to spherical coordinates (ρ, φ, θ).
Show answer
First compute ρ = √(1² + (−1)² + (√2)²) = √(1 + 1 + 2) = √4 = 2. Next, φ = arccos(z/ρ) = arccos(√2 / 2) = π/4. Finally, θ = atan2(−1, 1). Since x > 0 and y < 0, the point lies in the fourth quadrant of the xy-plane, so θ = 2π − π/4 = 7π/4 (equivalently, −π/4 if negative angles are permitted). The spherical coordinates are (2, π/4, 7π/4).

Question 3: INTERMEDIATE

Set up (but do not evaluate) the triple integral in spherical coordinates for the volume of the region that lies inside the sphere ρ = 6 and outside the cone φ = π/6.
Show answer
The region is inside the sphere (0 ≤ ρ ≤ 6) but outside the cone (φ ≥ π/6), so the polar angle runs from π/6 to π. The azimuthal angle sweeps a full revolution: 0 ≤ θ ≤ 2π. With the spherical volume element dV = ρ² sin φ dρ dφ dθ, the integral is V = ∫₀²π ∫_{π/6}^{π} ∫₀⁶ ρ² sin φ dρ dφ dθ. Note that the key decision is the lower limit on φ: the region outside the cone corresponds to larger values of φ (further from the z-axis), hence φ starts at π/6 rather than ending there.

Question 4: APPLIED

A solid ball of radius R has mass density δ(ρ) = k/ρ (for ρ > 0), where k is a positive constant with appropriate units. Find the total mass of the ball in terms of k and R.
Show answer
The mass is M = ∫∫∫ δ dV = ∫₀²π ∫₀^π ∫₀^R (k/ρ) ρ² sin φ dρ dφ dθ = ∫₀²π ∫₀^π ∫₀^R kρ sin φ dρ dφ dθ. Evaluating the ρ-integral: ∫₀^R kρ dρ = kR²/2. The φ-integral: ∫₀^π sin φ dφ = 2. The θ-integral: ∫₀²π dθ = 2π. Multiplying: M = (kR²/2)(2)(2π) = 2πkR². The density diverges at the origin (ρ → 0), but the volume element's ρ² factor makes the integrand kρ sin φ, which vanishes at the origin, so the integral converges without difficulty.

Question 5: CRITICAL THINKING

Consider the integral ∫∫∫_E (x2+y2+z2)−3/2(x² + y² + z²)^{−3/2} dV, where E is the region between the spheres ρ = 1 and ρ = 3. Explain why this integral is improper in Cartesian coordinates but not in spherical coordinates (given the stated bounds), and then evaluate it.
Show answer
In Cartesian coordinates the integrand (x2+y2+z2)−3/2(x² + y² + z²)^{−3/2} = ρ^(−3) has a singularity at the origin. However, the region E excludes the origin because ρ ≥ 1, so no singularity is encountered in either coordinate system — the integral is proper. In spherical coordinates the integrand becomes ρ^(−3), and with the volume element ρ² sin φ dρ dφ dθ, the full integrand simplifies to ρ^(−3) × ρ² sin φ = ρ^(−1) sin φ. The integral is: ∫₀²π ∫₀^π ∫₁³ ρ^(−1) sin φ dρ dφ dθ = (∫₀²π dθ)(∫₀^π sin φ dφ)(∫₁³ ρ^(−1) dρ) = (2π)(2)(ln 3) = 4π ln 3. The key pedagogical point is that spherical coordinates convert the complicated algebraic expression (x2+y2+z2)−3/2(x² + y² + z²)^{−3/2} into the simple monomial ρ^(−3), making both the setup and evaluation straightforward.

SUMMARY

Spherical Coordinates — Summary

Summary

The spherical coordinate system locates a point in ℝ³ using three quantities: the radial distance ρ from the origin, the polar angle φ measured from the positive z-axis (0 ≤ φ ≤ π), and the azimuthal angle θ measured in the xy-plane (0 ≤ θ < 2π). The conversion formulas x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ connect spherical and Cartesian representations. Surfaces of constant ρ are spheres, surfaces of constant φ are cones, and surfaces of constant θ are half-planes through the z-axis.

The volume element dV = ρ² sin φ dρ dφ dθ is the essential tool for evaluating triple integrals in spherical coordinates; the factor ρ² accounts for radial growth of spherical shells, and sin φ accounts for the convergence of meridians at the poles. Spherical coordinates are the preferred choice whenever the region of integration or the integrand exhibits radial or spherical symmetry, and they generalize naturally into advanced topics such as spherical harmonics, Laplace's equation, and the metric tensors of Riemannian geometry.

Varsity Tutors • Calculus 3 • Spherical Coordinates