Double Integral 156
Hard Polar Coordinates and Change of Variables

Using polar coordinates, find the volume of the solid

Using polar coordinates, find the volume of the solid bounded by the sphere: $$ x^2+y^2+z^2=R^2 $$ and the cylinder: $$ x^2+y^2=Rx,\qquad x^2+y^2<Rx. $$

Explanation of Method

This is the classical "Viviani's window" configuration: the cylinder $\left(x-\frac R2\right)^2+y^2=\left(\frac R2\right)^2$ carves a disk out of the sphere, and its polar equation $r=R\cos\theta$ gives the radial bound. The height of the solid is $2\sqrt{R^2-r^2}$ (the sphere's full vertical extent at each point), and a classic pitfall in this integral is mishandling the square root $\sqrt{R^2\sin^2\theta}$, which equals $R|\sin\theta|$, not $R\sin\theta$, once $\theta$ ranges over negative values.

  1. Convert the cylinder to polar form, $r=R\cos\theta$, valid for $\theta\in\left(-\frac\pi2,\frac\pi2\right)$.
  2. Set up the volume integral with height $2\sqrt{R^2-r^2}$.
  3. Evaluate carefully, keeping track of the absolute value that arises from $\sqrt{\sin^2\theta}$.

Step 1 · Polar form of the cylinder

With $x=r\cos\theta,\,y=r\sin\theta$: $x^2+y^2=Rx\Rightarrow r=R\cos\theta$, requiring $\cos\theta\geqslant0$, i.e. $\theta\in\left[-\frac\pi2,\frac\pi2\right]$.

Step 2 · Set up the volume integral

The sphere gives $z=\pm\sqrt{R^2-r^2}$, so the height at each point is $2\sqrt{R^2-r^2}$:

$$ V = 2\int_{-\pi/2}^{\pi/2}\!\int_0^{R\cos\theta}r\sqrt{R^2-r^2}\,dr\,d\theta. $$

Step 3 · Evaluate the inner integral, keeping the absolute value

Substituting $u=R^2-r^2$: at $r=0$, $u=R^2$; at $r=R\cos\theta$, $u=R^2-R^2\cos^2\theta=R^2\sin^2\theta$. So:

$$ \int_0^{R\cos\theta}r\sqrt{R^2-r^2}\,dr = \frac13\left[R^3-\big(R^2\sin^2\theta\big)^{3/2}\right]. $$

Here $\big(R^2\sin^2\theta\big)^{3/2}=R^3|\sin\theta|^3$ — the square root of a squared quantity is the absolute value, not $\sin^3\theta$ itself (which would be negative for $\theta\in\left(-\frac\pi2,0\right)$, an impossible value for a length). So:

$$ \int_0^{R\cos\theta}r\sqrt{R^2-r^2}\,dr = \frac{R^3}3\Big(1-|\sin\theta|^3\Big). $$

Step 4 · Evaluate the outer integral

$$ V = \frac{2R^3}3\int_{-\pi/2}^{\pi/2}\Big(1-|\sin\theta|^3\Big)\,d\theta = \frac{2R^3}3\left[\pi-\int_{-\pi/2}^{\pi/2}|\sin\theta|^3\,d\theta\right]. $$

Since $|\sin\theta|^3$ is even, $\displaystyle\int_{-\pi/2}^{\pi/2}|\sin\theta|^3\,d\theta=2\int_0^{\pi/2}\sin^3\theta\,d\theta=2\cdot\frac23=\frac43$. So:

$$ V = \frac{2R^3}3\left(\pi-\frac43\right) = \frac{2R^3(3\pi-4)}9. $$


Additional Notes

Result

The volume is:

$$ V = \frac{2R^3(3\pi-4)}9. $$