Let $a > R > 0$. Calculate the volume of the body constricted by $x^2+y^2+z^2 \leq a^2$ and $x^2+y^2 \leq R^2$
I don't know where to start with this problem. The constraints form a cylinder which body I need to integrate the volume of. Only hint that I've gotten is that it might be helpful to use polar-coordinates. Would really appreciate help!
Here is an easy way to calculate this volume, IMO.
Let's denote $I$ be this volume , and $J$ be the complement of $I$ (in the sphere). We have then $I+J = \frac{4}{3}\pi a^3$.
The volume $J$ is defined by the 2 inequalities: $x^2+y^2+z^2 \le a^2$ and $x^2+y^2 >R^2$. We deduce then $a^2-z^2 > R^2$ or $ -\sqrt{a^2-R^2}< z<\sqrt{a^2-R^2} $
We have \begin{align} J &= \int_{-\sqrt{a^2-R^2}< z<\sqrt{a^2-R^2}} \left( \int_{R^2<x^2+y^2 \le a^2-z^2}dxdy \right) dz\\ \end{align} It's evident that the inner integral is the surface are of a circle ring and is equal to $\pi \left((a^2-z^2) -R^2\right)$. Then \begin{align} J &= \int_{-\sqrt{a^2-R^2}< z<\sqrt{a^2-R^2}} \pi \left((a^2-R^2) -z^2\right) dz \\ &= 2\pi (a^2-R^2)\sqrt{a^2-R^2}- \frac{2}{3} \pi (a^2-R^2)^{\frac{3}{2}} \\ &= \frac{4}{3} \pi (a^2-R^2)^{\frac{3}{2}} \\ \end{align}
Finally, we have $$I = \frac{4}{3}\pi a^3 - J = \frac{4}{3}\pi a^3 -\frac{4}{3} \pi (a^2-R^2)^{\frac{3}{2}} $$