Hi there. I have some doubts about this exercise. It asks me to use the appropriated coordinates to find the volume of the region indicated below. The region is determined by the first octant under the sphere $\displaystyle x^2+ y^2+ z^2=16$ and inside the cylinder $\displaystyle x^2+ y^2=4x$

The first thing I did was to complete the square with the cylinder: $\displaystyle (x-2)^2+ y^2=4$

And then I thought of using spherical coordinates, this way:

$\displaystyle \displaystyle\int_{0}^{\displaystyle\frac{\pi}{2}} \displaystyle\int_{0}^{\displaystyle\frac{\pi}{4}} \displaystyle\int_{0}^{\sec(\theta)}\rho^2 \sin \phi d\rho d\theta d\phi + \displaystyle\int_{0}^{\displaystyle\frac{\pi}{2}} \displaystyle\int_{0}^{\displaystyle\frac{\pi}{4}} \displaystyle\int_{\sec(\theta)}^{4\cos\theta}\rho ^2 \sin \phi d\rho d\theta d\phi$

Is this okay?

Bye there, thanks for anyhelp.

Edit: mm, now I see it isn't. Unless I think its not, because it doesn't defines the region under the sphere. I think I should use cylindrical coordinates.