Mathwords logoMathwords

Spherical Coordinates — Definition, Formula & Examples

Spherical coordinates are a system for locating points in three-dimensional space using three values: the distance from the origin (ρ\rho), the angle down from the positive zz-axis (ϕ\phi), and the angle of rotation around the zz-axis (θ\theta). They are especially useful for problems with spherical symmetry, such as spheres and cones.

A point PP in R3\mathbb{R}^3 is represented in spherical coordinates by the ordered triple (ρ,ϕ,θ)(\rho, \phi, \theta), where ρ0\rho \geq 0 is the distance from PP to the origin, ϕ[0,π]\phi \in [0, \pi] is the angle between the positive zz-axis and the line segment OP\overline{OP}, and θ[0,2π)\theta \in [0, 2\pi) is the angle measured counterclockwise from the positive xx-axis to the projection of OP\overline{OP} onto the xyxy-plane. This convention follows the ISO/physics standard; some mathematics textbooks swap the roles of ϕ\phi and θ\theta.

Key Formula

x=ρsinϕcosθ,y=ρsinϕsinθ,z=ρcosϕx = \rho\sin\phi\cos\theta, \quad y = \rho\sin\phi\sin\theta, \quad z = \rho\cos\phi
Where:
  • ρ\rho = Distance from the origin to the point (radius), with ρ ≥ 0
  • ϕ\phi = Polar angle measured from the positive z-axis, 0 ≤ φ ≤ π
  • θ\theta = Azimuthal angle measured from the positive x-axis in the xy-plane, 0 ≤ θ < 2π

How It Works

To convert between spherical and Cartesian coordinates, you use trigonometric relationships that decompose the radial distance into its xx, yy, and zz components. The angle ϕ\phi controls how far the point is from the zz-axis (vertical tilt), while θ\theta controls the direction within the xyxy-plane (horizontal rotation). These coordinates simplify integration over spherical regions because the geometry aligns naturally with spheres, cones, and other radially symmetric shapes. When setting up a triple integral in spherical coordinates, the volume element becomes ρ2sinϕdρdϕdθ\rho^2 \sin\phi\, d\rho\, d\phi\, d\theta, which accounts for the non-uniform spacing of the coordinate grid.

Worked Example

Problem: Convert the Cartesian point (1, √3, 2) to spherical coordinates (ρ, φ, θ).
Find ρ: Compute the distance from the origin using the 3D distance formula.
ρ=x2+y2+z2=1+3+4=8=22\rho = \sqrt{x^2 + y^2 + z^2} = \sqrt{1 + 3 + 4} = \sqrt{8} = 2\sqrt{2}
Find φ: Use the relationship between z and ρ to find the polar angle.
cosϕ=zρ=222=12    ϕ=π4\cos\phi = \frac{z}{\rho} = \frac{2}{2\sqrt{2}} = \frac{1}{\sqrt{2}} \implies \phi = \frac{\pi}{4}
Find θ: Project the point onto the xy-plane and find the angle from the positive x-axis. Since x = 1 and y = √3, both are positive (first quadrant).
tanθ=yx=31=3    θ=π3\tan\theta = \frac{y}{x} = \frac{\sqrt{3}}{1} = \sqrt{3} \implies \theta = \frac{\pi}{3}
Answer: The spherical coordinates are (22,  π4,  π3)\left(2\sqrt{2},\; \dfrac{\pi}{4},\; \dfrac{\pi}{3}\right).

Another Example

Problem: Set up the volume element for a triple integral in spherical coordinates and find the volume of a sphere of radius 3.
Volume element: The Jacobian for spherical coordinates gives the volume element.
dV=ρ2sinϕdρdϕdθdV = \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta
Set bounds: For a full sphere of radius 3: ρ ranges from 0 to 3, φ from 0 to π, and θ from 0 to 2π.
V=02π0π03ρ2sinϕdρdϕdθV = \int_0^{2\pi}\int_0^{\pi}\int_0^{3} \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta
Evaluate: Integrate each variable separately since the integrand factors.
V=(02πdθ)(0πsinϕdϕ)(03ρ2dρ)=(2π)(2)(9)=36πV = \left(\int_0^{2\pi} d\theta\right)\left(\int_0^{\pi} \sin\phi\, d\phi\right)\left(\int_0^{3} \rho^2\, d\rho\right) = (2\pi)(2)(9) = 36\pi
Answer: The volume of the sphere is 36π36\pi cubic units, which matches 43π(3)3=36π\frac{4}{3}\pi(3)^3 = 36\pi.

Why It Matters

Spherical coordinates are essential in multivariable calculus (Calculus III) whenever you integrate over spheres, cones, or other radially symmetric regions — the volume element ρ2sinϕ\rho^2\sin\phi dramatically simplifies what would otherwise be complicated Cartesian integrals. They also appear throughout physics: electromagnetic fields, gravitational potentials, and quantum mechanics all rely on spherical coordinate representations. Engineers working in antenna design, geophysics, and 3D computer graphics use these coordinates routinely.

Common Mistakes

Mistake: Forgetting the ρ²sin φ factor in the volume element
Correction: The volume element in spherical coordinates is dV = ρ² sin φ dρ dφ dθ, not simply dρ dφ dθ. This Jacobian factor accounts for the way spherical grid cells grow with distance and vary with polar angle.
Mistake: Mixing up the convention for φ and θ
Correction: Physics and ISO standards use φ for the polar angle (from the z-axis) and θ for azimuthal. Many math textbooks swap them. Check your source and stay consistent within a single problem.

Related Terms