Multivariable Calculus — Topic 07

Cylindrical & Spherical
Coordinates

Cartesian coordinates are powerful but clumsy for anything round. Cylindrical coordinates extend polar to 3D, while spherical coordinates describe the world outward from a centre. Both unlock integrals that would be impossible otherwise. This page covers every conversion, every Jacobian, and 10 fully worked examples.

2Coordinate Systems
10Worked Examples
5SVG Diagrams
10Quiz Questions
Share this page
On This Page
  1. Why Not Just Use Cartesian Coordinates?
  2. Cylindrical Coordinates (r, θ, z)
  3. Spherical Coordinates (ρ, θ, φ)
  4. Jacobians: Where dV Comes From
  5. Which System to Use and When
  6. Worked Examples: Cylindrical
  7. Worked Examples, Spherical
  8. Common Surfaces in Each System
  9. Common Mistakes
  10. 10-Question Quiz

§ 01Why Not Just Use Cartesian Coordinates?

Triple integrals in Cartesian form look like ∭ f(x,y,z) dx dy dz. For a box, that is fine. For a sphere, a cone, or a cylinder, the limits of integration become a nightmare of square roots and nested conditions.

Consider computing the volume of the unit sphere x² + y² + z² = 1 in Cartesian coordinates. The outer integral runs from z = −1 to z = 1; the middle from y = −√(1−z²) to y = √(1−z²); the inner from x = −√(1−y²−z²) to x = √(1−y²−z²). Each bound depends on the others, and the integrand f = 1 still requires evaluating three nested square-root expressions.

In spherical coordinates, the same volume is simply ∫₀²π ∫₀π ∫₀¹ ρ²sin φ dρ dφ dθ, constant limits, clean integrand, trivial to evaluate.

The Core Idea The choice of coordinate system should match the symmetry of the problem. When the geometry has cylindrical symmetry (cylinders, cones), use cylindrical coordinates. When the geometry has radial or spherical symmetry (spheres, hemispheres, cones from the origin), use spherical coordinates.

§ 02Cylindrical Coordinates (r, θ, z)

Cylindrical coordinates are the most natural extension of 2D polar coordinates into three dimensions. You simply keep the z-axis as in Cartesian coordinates, but describe the position in the x-y plane using a radial distance r and angle θ.

Point P in cylindrical coordinates
z y x r θ z P(r,θ,z)
The radial distance r is measured in the xy-plane; θ is the angle from the positive x-axis; z is the usual vertical height.
Volume element dV in cylindrical coordinates
dr r dθ dz dV = r dr dθ dz
The volume element stretches r dθ in the circumferential direction, dr radially, and dz vertically — hence dV = r dr dθ dz.

Conversion Formulas: Cylindrical ↔ Cartesian

Cylindrical → Cartesian
From (r, θ, z) to (x, y, z)
x = r cos θ
y = r sin θ
z = z

These are identical to 2D polar, with z passing through unchanged.

Cartesian → Cylindrical
From (x, y, z) to (r, θ, z)
r = √(x² + y²)
θ = arctan(y/x)
z = z

Use the correct quadrant for θ. When x = 0 and y > 0, θ = π/2; when y = 0 and x > 0, θ = 0.

Key Identity
x² + y² = r²

This is the single most useful identity when switching to cylindrical coordinates. Whenever you see x² + y² in a Cartesian integral, replace it immediately with r².

Standard Range of Variables

For a full sweep in cylindrical coordinates: r ≥ 0, 0 ≤ θ ≤ 2π, and z is unrestricted. The variable r must always be non-negative: if a problem yields negative r, something has gone wrong in the setup.

Volume Element
dV = r  dz  dr  dθ

The crucial factor is the extra r: this is the Jacobian of the transformation. Never forget it. The order of dz, dr, dθ can be rearranged to suit the limits, but r must always appear.

§ 03Spherical Coordinates (ρ, θ, φ)

Spherical coordinates describe a point by its distance from the origin ρ (rho), the azimuthal angle θ (the same θ as in cylindrical: rotation in the xy-plane), and the polar angle φ (phi) measured downward from the positive z-axis.

⚠ Notation Warning — Two Conventions Exist In physics, the polar angle (from z-axis) is called θ and the azimuthal angle is φ — the opposite of the maths convention. This page uses the mathematics convention: ρ is radial distance, θ is the azimuthal angle in the xy-plane (0 ≤ θ ≤ 2π), and φ is the polar angle from the z-axis (0 ≤ φ ≤ π).
Point P in spherical coordinates
z y x ρ φ θ P(ρ,θ,φ)
φ (phi) is measured from the positive z-axis downward (0 ≤ φ ≤ π). θ (theta) is the same azimuthal sweep as in cylindrical (0 ≤ θ ≤ 2π).
Derivation of conversion: ρ sinφ is the xy-radius
z O ρ ρ cosφ ρ sinφ φ P
The horizontal distance from the z-axis is ρ sinφ; the height above the xy-plane is ρ cosφ. These are the key intermediate quantities.

Conversion Formulas: Spherical ↔ Cartesian

Spherical → Cartesian
From (ρ, θ, φ) to (x, y, z)
x = ρ sinφ cosθ
y = ρ sinφ sinθ
z = ρ cosφ

Note: the xy-radius (distance from z-axis) is ρ sinφ, not ρ itself. Apply the usual 2D polar formulas to that radius to get x and y.

Cartesian → Spherical
From (x, y, z) to (ρ, θ, φ)
ρ = √(x²+y²+z²)
θ = arctan(y/x)
φ = arccos(z/ρ)

ρ is the full 3D distance from the origin (always ≥ 0). θ comes from the projection onto the xy-plane. φ is measured from the positive z-axis.

Critical Identity
x² + y² + z² = ρ²

This is the spherical equivalent of r² = x² + y². Any time you see the sum of three squares, spherical coordinates will simplify things dramatically.

Volume Element
dV = ρ² sinφ  dρ  dφ  dθ

The Jacobian factor is ρ² sinφ, two factors now, not just one. Neither ρ² nor sinφ can ever be omitted. Note also that sinφ ≥ 0 for φ ∈ [0, π], which is why no absolute value is needed.

Standard Limits of Integration

For a full sphere of radius R, the standard limits are: 0 ≤ ρ ≤ R, 0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π. For an upper hemisphere only, restrict φ ∈ [0, π/2].

§ 04Jacobians: Where dV Comes From

When you change variables in a triple integral, the volume element dV transforms by a factor called the Jacobian determinant. For a transformation (x, y, z) → (u, v, w), the Jacobian is the determinant of the matrix of partial derivatives ∂(x,y,z)/∂(u,v,w).

Jacobian for Cylindrical Coordinates

With x = r cosθ, y = r sinθ, z = z, the Jacobian matrix is:

Jacobian matrix ∂(x,y,z)/∂(r,θ,z)
cosθ −r sinθ 0 sinθ r cosθ 0 0 0 1
Expanding along the third column (which has a single non-zero entry of 1), the determinant reduces to the 2×2 determinant of the top-left block.

Expanding: det = 1 · (cosθ · r cosθ − (−r sinθ) · sinθ) = r cos²θ + r sin²θ = r. Hence dV = r dr dθ dz.

Jacobian for Spherical Coordinates

The full 3×3 Jacobian for spherical coordinates has determinant ρ² sinφ. The derivation is lengthier but the result is fundamental:

Jacobian — Spherical
J = ρ² sinφ

Since φ ∈ [0, π], we have sinφ ≥ 0 throughout the domain, so |J| = J. The volume element dV = ρ² sinφ dρ dφ dθ is always positive, as required for an area element.

The Two Jacobians — Memorise These Cylindrical: dV = r dr dθ dz  |  Spherical: dV = ρ² sinφ dρ dφ dθ
Forgetting the Jacobian factor is the single most common error in coordinate-change problems.

§ 05Which System to Use and When

Feature / GeometryUse CylindricalUse SphericalUse Cartesian
Defining surfaceCylinder x²+y²=r², cone z=√(x²+y²)Sphere x²+y²+z²=R²Plane, box, tetrahedron
Volume elementr dr dθ dzρ² sinφ dρ dφ dθdx dy dz
Key identityx²+y² = r²x²+y²+z² = ρ²No simplification
Typical limits0≤r≤R, 0≤θ≤2π, a≤z≤b0≤ρ≤R, 0≤θ≤2π, 0≤φ≤πNested, often complex
Best forCylinders, cones, radial in xy-planeSpheres, hemispheres, cones from originRectangular regions, planes
Number of Jacobian factors1 (just r)2 (ρ² and sinφ)1 (factor is 1)

The Decision Flowchart

1
Does the region involve x² + y² + z² (a sphere or ball)? → Spherical coordinates.
2
Does the region involve x² + y² (a cylinder or cone) with unrestricted z? → Cylindrical coordinates.
3
Is the region a rectangular box or bounded by planes only? → Cartesian coordinates.
4
Still unsure? Write out the Cartesian limits explicitly and see if they simplify with either substitution.

§ 06Worked Examples — Cylindrical Coordinates

Example 01 Volume of a cylinder: x² + y² ≤ 4, 0 ≤ z ≤ 5
Setup

The region is a solid cylinder of radius 2 and height 5. In cylindrical coordinates: 0 ≤ r ≤ 2, 0 ≤ θ ≤ 2π, 0 ≤ z ≤ 5.

V = ∫₀²π ∫₀² ∫₀⁵ r  dz  dr  dθ
z-integral
∫₀⁵ dz = 5

So V = ∫₀²π ∫₀² 5r  dr  dθ

r-integral
∫₀² 5r  dr = 5 [r²/2]₀² = 5 · 2 = 10
θ-integral
∫₀²π 10  dθ = 20π
Result
V = 20π ≈ 62.83

Confirmed by πr²h = π(4)(5) = 20π ✓

Example 02 ∭ (x² + y²) dV over the cylinder x² + y² ≤ 9, −2 ≤ z ≤ 2
Recognise

x² + y² = r² in cylindrical coordinates. The integrand becomes r². Limits: 0 ≤ r ≤ 3, 0 ≤ θ ≤ 2π, −2 ≤ z ≤ 2.

∭ r² · r  dz  dr  dθ = ∫₀²π ∫₀³ ∫₋₂² r³  dz  dr  dθ
z-integral
∫₋₂² dz = 4
r-integral
∫₀³ 4r³  dr = 4[r⁴/4]₀³ = 81
θ-integral
∫₀²π 81  dθ = 162π
Result
∭ (x²+y²) dV = 162π
Example 03 Volume inside the cone z = √(x² + y²) below z = 4
Describe Region

The region is above the cone and below the plane z = 4. In cylindrical: z = r (since z = √(x²+y²) = r). The cone meets z = 4 at r = 4. For fixed r and θ, z runs from r (the cone) up to 4.

V = ∫₀²π ∫₀⁴ ∫ᵣ⁴ r  dz  dr  dθ
z-integral
∫ᵣ⁴ dz = 4 − r
r-integral
∫₀⁴ r(4−r) dr = ∫₀⁴ (4r − r²) dr = [2r² − r³/3]₀⁴ = 32 − 64/3 = 32/3
θ-integral
∫₀²π (32/3) dθ = 64π/3
Result
V = 64π/3 ≈ 67.02
Example 04 Convert ∫₋₂² ∫₋√(4−y²)^√(4−y²) ∫₀^√(4−x²−y²) z dz dx dy to cylindrical and evaluate
Identify Region

x² + y² ≤ 4 (circle of radius 2 in xy-plane), and 0 ≤ z ≤ √(4−x²−y²). The upper limit on z is √(4−r²), the upper hemisphere of a sphere of radius 2.

Rewrite
∫₀²π ∫₀² ∫₀^√(4−r²) z · r  dz  dr  dθ
z-integral
∫₀^√(4−r²) z  dz = [z²/2]₀^√(4−r²) = (4−r²)/2
r-integral
∫₀² r · (4−r²)/2  dr = ½ ∫₀² (4r−r³) dr = ½ [2r²−r⁴/4]₀² = ½(8−4) = 2
θ-integral
∫₀²π 2 dθ = 4π
Result
∭ z  dV = 4π
Example 05 Mass of a solid hemisphere with density δ(r,θ,z) = r using cylindrical coordinates
Region

Upper hemisphere of radius 3: 0 ≤ r ≤ 3, 0 ≤ θ ≤ 2π, 0 ≤ z ≤ √(9−r²). Density δ = r (heavier near the outer edge).

M = ∫₀²π ∫₀³ ∫₀^√(9−r²) r · r  dz  dr  dθ = ∫₀²π ∫₀³ ∫₀^√(9−r²) r²  dz  dr  dθ
z-integral
∫₀^√(9−r²) dz = √(9−r²)
r-integral

Let u = 9 − r², du = −2r dr, so r dr = −du/2. When r = 0, u = 9; when r = 3, u = 0.

∫₀³ r² √(9−r²) dr = ∫₀³ r · r √(9−r²) dr

Use integration: ∫₀³ r²√(9−r²) dr = (9/4)(π·9/2) ... via trig sub: let r = 3 sinα, dr = 3 cosα dα, √(9−r²) = 3cosα:

= ∫₀^(π/2) 9sin²α · 3cosα · 3cosα dα = 81 ∫₀^(π/2) sin²α cos²α dα = 81 · π/16 = 81π/16
θ-integral
∫₀²π (81π/16) dθ = 81π²/8
Result
M = 81π²/8 ≈ 99.77

§ 07Worked Examples — Spherical Coordinates

Example 06 Volume of a sphere of radius R
Setup

The ball B: ρ ≤ R, with full ranges 0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π.

V = ∫₀²π ∫₀π ∫₀ᴿ ρ² sinφ  dρ  dφ  dθ
ρ-integral
∫₀ᴿ ρ² dρ = R³/3
φ-integral
∫₀π sinφ  dφ = [−cosφ]₀π = (−cos π) − (−cos 0) = 1 + 1 = 2
θ-integral
∫₀²π dθ = 2π
Result
V = (R³/3)(2)(2π) = 4πR³/3 ✓

The classical formula, derived in two lines.

Example 07 ∭ e^(x²+y²+z²)^(3/2) dV over the unit ball
Recognise

x² + y² + z² = ρ², so (x²+y²+z²)^(3/2) = ρ³. The integrand becomes e^(ρ³). This is impossible in Cartesian but trivial in spherical.

∭ e^(ρ³) · ρ² sinφ  dρ  dφ  dθ

Limits: 0 ≤ ρ ≤ 1, 0 ≤ φ ≤ π, 0 ≤ θ ≤ 2π.

Separate

The integrand factors completely: ρ² e^(ρ³) depends only on ρ; sinφ depends only on φ; nothing depends on θ.

[∫₀¹ ρ² e^(ρ³) dρ] · [∫₀π sinφ dφ] · [∫₀²π dθ]
ρ-integral

Let u = ρ³, du = 3ρ² dρ:

∫₀¹ ρ² e^(ρ³) dρ = (1/3)∫₀¹ eᵘ du = (e−1)/3
Combine
= (e−1)/3 · 2 · 2π = 4π(e−1)/3
Result
∭ e^(ρ³) dV = 4π(e−1)/3 ≈ 8.76
Example 08 Volume of the region inside sphere ρ = 2 and above cone φ = π/3
Region

Above the cone means smaller φ (closer to the z-axis). The region: 0 ≤ ρ ≤ 2, 0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π/3.

V = ∫₀²π ∫₀^(π/3) ∫₀² ρ² sinφ  dρ  dφ  dθ
ρ-integral
∫₀² ρ² dρ = 8/3
φ-integral
∫₀^(π/3) sinφ dφ = [−cosφ]₀^(π/3) = −cos(π/3) + cos(0) = −1/2 + 1 = 1/2
θ-integral
∫₀²π dθ = 2π
Result
V = (8/3)(1/2)(2π) = 8π/3
Example 09 ∭ z dV over upper hemisphere of radius a
Translate

z = ρ cosφ. Upper hemisphere: 0 ≤ ρ ≤ a, 0 ≤ φ ≤ π/2, 0 ≤ θ ≤ 2π.

∫₀²π ∫₀^(π/2) ∫₀ᵃ (ρ cosφ) · ρ² sinφ  dρ  dφ  dθ = ∫₀²π ∫₀^(π/2) ∫₀ᵃ ρ³ sinφ cosφ  dρ  dφ  dθ
ρ-integral
∫₀ᵃ ρ³ dρ = a⁴/4
φ-integral

Use the identity sinφ cosφ = sin(2φ)/2:

∫₀^(π/2) sinφ cosφ dφ = [sin²φ/2]₀^(π/2) = 1/2
θ-integral
∫₀²π dθ = 2π
Result
∭ z dV = (a⁴/4)(1/2)(2π) = πa⁴/4
Example 10 Region between sphere ρ = 1 and sphere ρ = 2; integrand f = 1/ρ⁴
Region

A spherical shell: 1 ≤ ρ ≤ 2, full sphere (0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π).

I = ∫₀²π ∫₀π ∫₁² (1/ρ⁴) · ρ² sinφ  dρ  dφ  dθ = ∫₀²π ∫₀π ∫₁² ρ⁻² sinφ  dρ  dφ  dθ
ρ-integral
∫₁² ρ⁻² dρ = [−ρ⁻¹]₁² = −1/2 + 1 = 1/2
φ-integral
∫₀π sinφ dφ = 2
θ-integral
∫₀²π dθ = 2π
Result
I = (1/2)(2)(2π) = 2π

§ 08Common Surfaces in Each Coordinate System

Knowing how standard surfaces look in each coordinate system saves enormous time in setting up limits.

Cylindrical
r = c (constant)
A vertical cylinder of radius c centred on the z-axis.
Cylindrical
z = r (or z = cr)
A cone with vertex at origin opening upward. The half-angle satisfies tanα = 1/c.
Cylindrical
θ = α (constant)
A vertical half-plane through the z-axis, making angle α with the xz-plane.
Cylindrical
z = c (constant)
A horizontal plane at height c — same as in Cartesian.
Spherical
ρ = c (constant)
A sphere of radius c centred at the origin.
Spherical
φ = α (constant)
A cone with half-angle α measured from the z-axis. φ = π/2 is the xy-plane; φ = 0 is the positive z-axis.
Spherical
θ = α (constant)
A vertical half-plane — same role as θ in cylindrical.
Spherical
ρ = 2a cosφ
A sphere of radius a centred at (0, 0, a) — shifted up along the z-axis. Derived by completing the square in ρ² = 2aρcosφ → ρ² − 2az = 0 → x²+y²+(z−a)² = a².

The Cone φ = π/4 vs. the Cone z = r

These are the same cone. In spherical: φ = π/4 means the angle from the z-axis is 45°, so z/ρ = cosφ = 1/√2 and the xy-radius over ρ = sinφ = 1/√2, giving z = xy-radius, which in cylindrical means z = r. Always confirm your surfaces using both descriptions.

§ 09Common Mistakes

Mistake 1 — Forgetting the Jacobian Writing dV = dr dθ dz (cylindrical) instead of r dr dθ dz, or dV = dρ dφ dθ (spherical) instead of ρ² sinφ dρ dφ dθ. This gives an answer that is off by a factor of r or ρ² sinφ — every time.
Mistake 2 — Wrong φ Convention In physics, φ is azimuthal and θ is polar — the opposite of the maths convention. If your textbook uses the physics convention, the spherical Jacobian is still ρ² sinθ but with a different letter. Always check which angle is measured from the z-axis.
Mistake 3 — Letting r or ρ Go Negative In cylindrical and spherical coordinates, r ≥ 0 and ρ ≥ 0 always. If your limits give a negative lower bound, you have set up the integral incorrectly.
Mistake 4 — Wrong φ Limits for Hemisphere For the upper hemisphere, the correct range is 0 ≤ φ ≤ π/2 (not 0 ≤ φ ≤ π). The full sphere uses φ ∈ [0, π]. Using the wrong upper limit for the upper hemisphere gives twice the correct answer.
Mistake 5 — Confusing z = r (a cone) with r = z (also a cone) Both express the same cone z = r (or equivalently r = z). But students sometimes misread the Cartesian form z = √(x²+y²) and set limits as if z were a parabola. The surface z = r in cylindrical is always a cone with vertex at the origin; substituting confirms z² = r² = x²+y² which factors as the cone equation.

§ 1010-Question Quiz

Test your understanding of cylindrical and spherical coordinates. Each question gives immediate feedback.

Quiz — Cylindrical & Spherical Coordinates  |  10 Questions

Cookie Settings