Balls, shells and cones with their tip at the origin are simplest in spherical coordinates: a ball of radius $a$ is just ${}0 \le \rho \le a$. The volume element needs one careful picture.
Key idea
Why it works
Spherical limits are read off the same way. The angle $\theta$ goes around the $z$-axis; $\varphi$ is measured down from the positive $z$-axis, so the upper half of space is ${}0 \le \varphi \le \frac{\pi}{2}$ and the cone $z = \sqrt{x^2 + y^2}$ is $\varphi = \frac{\pi}{4}$; $\rho$ runs out from the origin to the outer surface. A sphere through the origin, such as $x^2 + y^2 + z^2 = 2z$, becomes $\rho^2 = 2\rho\cos\varphi$, that is, $\rho = 2\cos\varphi$ with ${}0 \le \varphi \le \frac{\pi}{2}$. Its volume is ${}2\pi \int_0^{\pi/2} \frac{8}{3}\cos^3\varphi\sin\varphi\,d\varphi = \frac{4\pi}{3}$, the volume of a ball of radius ${}1$.
Worked examples
Worked example: Volume of a ball
- $\int_0^{2\pi}\int_0^{\pi}\int_0^{a} \rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta$: the three integrals separate.
- $\int_0^a \rho^2\,d\rho = \frac{a^3}{3}$, $\int_0^{\pi}\sin\varphi\,d\varphi = 2$, $\int_0^{2\pi}d\theta = 2\pi$.
- $V = \frac{a^3}{3} \cdot 2 \cdot 2\pi = \frac{4}{3}\pi a^3$.
Answer: $\frac{4}{3}\pi a^3$
Worked example: An ice cream cone
- Only the upper limit of $\varphi$ changes: $\int_0^{\pi/3}\sin\varphi\,d\varphi = 1 - \cos\frac{\pi}{3} = \frac{1}{2}$.
- $V = \frac{8}{3} \cdot \frac{1}{2} \cdot 2\pi = \frac{8\pi}{3}$.
Answer: $\frac{8\pi}{3}$
Worked example: A moment
- $z = \rho\cos\varphi$, and the upper half is ${}0 \le \varphi \le \frac{\pi}{2}$.
- $$\int_0^{2\pi}\int_0^{\pi/2}\int_0^a \rho^3\cos\varphi\sin\varphi\,d\rho\,d\varphi\,d\theta = \frac{a^4}{4} \cdot \frac{1}{2} \cdot 2\pi = \frac{\pi a^4}{4}.$$
Answer: $\frac{\pi a^4}{4}$
Common mistake