01 / 21

Spherical
Coordinates

Master the spherical coordinate system with \(\rho\), \(\theta\), and \(\varphi\): learn how to describe any point in 3D space and convert between coordinate systems.

Calculus 3

What Are Spherical Coordinates?

In 3D space, every point can be described by three numbers. While Cartesian coordinates use \((x, y, z)\), spherical coordinates use a distance and two angles to locate a point relative to the origin.

\(\rho\) (rho)
Distance from the origin to the point. Always \(\rho \geq 0\).
\(\theta\) (theta)
Angle in the \(xy\)-plane from the positive \(x\)-axis. Range: \(0 \leq \theta \leq 2\pi\).
\(\varphi\) (phi)
Angle from the positive \(z\)-axis down to the point. Range: \(0 \leq \varphi \leq \pi\).

Visualizing the System

\(z\)
\(x\)
\(y\)
\(P(\rho, \theta, \varphi)\)
\(\varphi\)
\(\theta\)
\(\rho\)
O

Why Use Spherical Coordinates?

Many physical and mathematical problems have spherical symmetry: the geometry looks the same from all directions around a central point. In these situations, spherical coordinates dramatically simplify computations.

Spheres
A sphere of radius \(a\) is simply \(\rho = a\): one equation instead of \(x^2 + y^2 + z^2 = a^2\).
Cones
A cone is \(\varphi = c\): constant angle from the \(z\)-axis defines it perfectly.
Integration
Triple integrals over spherical regions become much easier with the spherical volume element.

The Conversion Formulas

Understanding Each Formula

P O
\(z = \rho \cos \varphi\)
\(r = \rho \sin \varphi\)
\(\rho\)
\(\varphi\)

The projection onto the \(xy\)-plane has length \(\rho\sin\varphi\). From there, standard polar coordinates give \(x = r\cos\theta\) and \(y = r\sin\theta\), where \(r = \rho\sin\varphi\). The height is \(z = \rho\cos\varphi\).

Spherical vs Cylindrical

Spherical \((\rho, \theta, \varphi)\) Cylindrical \((r, \theta, z)\)
First coordinate \(\rho\): distance to origin \(r\): distance to \(z\)-axis
Second coordinate \(\theta\): azimuthal angle \(\theta\): azimuthal angle
Third coordinate \(\varphi\): polar angle from \(z\) \(z\): height
Best for Spheres, cones Cylinders, tubes
Volume element \(\rho^2 \sin\varphi\, d\rho\, d\varphi\, d\theta\) \(r\, dr\, d\theta\, dz\)

The Volume Element

The factor \(\rho^2 \sin\varphi\) is the Jacobian of the transformation. It accounts for how the coordinate grid stretches as \(\rho\) and \(\varphi\) change. This factor is essential for correctly evaluating triple integrals.

How to Convert a Point

1
Compute \(\rho\): Find \(\rho = \sqrt{x^2 + y^2 + z^2}\).
2
Find \(\varphi\): Use \(\varphi = \arccos\!\left(\dfrac{z}{\rho}\right)\). Check: \(0 \leq \varphi \leq \pi\).
3
Find \(\theta\): Use \(\theta = \arctan\!\left(\dfrac{y}{x}\right)\). Adjust for the correct quadrant using the signs of \(x\) and \(y\).
4
Verify: Convert back using \(x = \rho\sin\varphi\cos\theta\), etc., to check your answer.

Example 1: Cartesian to Spherical

Convert the point \((1, 1, \sqrt{2})\) to spherical coordinates.

1
Find \(\rho\): \(\rho = \sqrt{1^2 + 1^2 + (\sqrt{2})^2} = \sqrt{1 + 1 + 2} = \sqrt{4} = 2\)
2
Find \(\varphi\): \(\varphi = \arccos\!\left(\dfrac{\sqrt{2}}{2}\right) = \dfrac{\pi}{4}\)
3
Find \(\theta\): \(\theta = \arctan\!\left(\dfrac{1}{1}\right) = \dfrac{\pi}{4}\) (first quadrant)

Example 2: Spherical to Cartesian

Convert the spherical point \(\left(4,\; \dfrac{\pi}{3},\; \dfrac{\pi}{6}\right)\) to Cartesian.

1
Identify: \(\rho = 4\), \(\theta = \dfrac{\pi}{3}\), \(\varphi = \dfrac{\pi}{6}\)
2
Compute \(x\): \(x = 4\sin\!\left(\dfrac{\pi}{6}\right)\cos\!\left(\dfrac{\pi}{3}\right) = 4 \cdot \dfrac{1}{2} \cdot \dfrac{1}{2} = 1\)
3
Compute \(y\): \(y = 4\sin\!\left(\dfrac{\pi}{6}\right)\sin\!\left(\dfrac{\pi}{3}\right) = 4 \cdot \dfrac{1}{2} \cdot \dfrac{\sqrt{3}}{2} = \sqrt{3}\)
4
Compute \(z\): \(z = 4\cos\!\left(\dfrac{\pi}{6}\right) = 4 \cdot \dfrac{\sqrt{3}}{2} = 2\sqrt{3}\)

Example 3: Converting an Equation

Convert the sphere \(x^2 + y^2 + z^2 = 9\) to spherical coordinates.

1
Recognize: The left side is exactly \(\rho^2\), since \(\rho^2 = x^2 + y^2 + z^2\).
2
Substitute: \(\rho^2 = 9\), so \(\rho = 3\).

Similarly, the cone \(z = \sqrt{x^2 + y^2}\) becomes \(\varphi = \dfrac{\pi}{4}\) in spherical coordinates: one equation in one variable.

Special Surfaces

\(\rho = c\)
A sphere centered at the origin with radius \(c\).
\(\varphi = c\)
A cone with half-angle \(c\), vertex at the origin. When \(c = \pi/2\), it is the \(xy\)-plane.
\(\theta = c\)
A half-plane containing the \(z\)-axis, at angle \(c\) from the positive \(x\)-axis.
\(\rho = c\) (sphere)
\(\varphi = c\) (cone)
\(\theta = c\) (half-plane)

Triple Integrals in Spherical

1
Replace \(x, y, z\) with spherical expressions in the integrand.
2
Multiply by the Jacobian: \(\rho^2 \sin\varphi\).
3
Determine bounds for \(\rho\), \(\varphi\), and \(\theta\) from the region \(E\).

Common Mistakes

Swapping \(\theta\) and \(\varphi\)
Some textbooks swap the notation. In physics, \(\theta\) is often the polar angle. In math (ISO convention), \(\varphi\) is the polar angle from the \(z\)-axis. Always check your source.
Forgetting the Jacobian
When converting integrals, you must include \(\rho^2 \sin\varphi\). Writing just \(d\rho\, d\varphi\, d\theta\) without it gives a wrong answer.
Wrong \(\theta\) quadrant
\(\arctan(y/x)\) only gives angles in \((-\pi/2, \pi/2)\). If \(x < 0\), you must add \(\pi\) to get the correct \(\theta\).

Conversion Reference Table

Direction Formula
\(x\) from spherical \(\rho \sin\varphi \cos\theta\)
\(y\) from spherical \(\rho \sin\varphi \sin\theta\)
\(z\) from spherical \(\rho \cos\varphi\)
\(\rho\) from Cartesian \(\sqrt{x^2 + y^2 + z^2}\)
\(\varphi\) from Cartesian \(\arccos\left(\dfrac{z}{\rho}\right)\)
\(\theta\) from Cartesian \(\arctan\left(\dfrac{y}{x}\right)\)
Volume element \(\rho^2 \sin\varphi\, d\rho\, d\varphi\, d\theta\)

Question 1 of 5

What is the spherical coordinate \(\rho\) for the Cartesian point \((0, 3, 4)\)?

Question 2 of 5

Convert \(\left(2,\; \dfrac{\pi}{4},\; \dfrac{\pi}{2}\right)\) from spherical to Cartesian. What is the \(z\)-coordinate?

Question 3 of 5

The equation \(\varphi = \dfrac{\pi}{3}\) in spherical coordinates describes which surface?

Question 4 of 5

When converting a triple integral to spherical coordinates, which Jacobian factor must be included?

Question 5 of 5

A point has spherical coordinates \(\left(6,\; \dfrac{\pi}{6},\; \dfrac{\pi}{4}\right)\). What is its \(x\)-coordinate?