I want to integrate a function $f(x,y,z)$ inside the sphere of radius 4 centered at the origin but below the paraboloid $z = x^2 + y^2$ opening upward.
I think switching to spherical coordinates is best since cylindrical might take more than two integrals and rectangular might be too complicated to integrate.
Now $\theta$ should go from $0$ to $2\pi$. And for the upper half of the sphere $\rho$ should start at the paraboloid and end at the sphere, so from $\csc \phi \cot \phi$ to $2$.
But I am stuck on the starting bound for $\phi$. For the upper half of the sphere $\phi$ ends at $\pi/2$. But how to solve for $\phi$ when starting at a point on the paraboloid? I only get results that I can't solve for $\phi$.
Use cylindrical coordinates:
$0 \leq \theta \leq 2 \pi$
$0 \leq r \leq 2$
$-r^2 \leq z \leq {\rm Min}[\sqrt{4 - r^2}, r^2]$
$$\int\limits_{\theta = 0}^{2 \pi} \int\limits_{r=0}^2 \int\limits_{z=-\sqrt{4 - r^2}}^{{\rm Min}[\sqrt{4 - r^2}, r^2]} f(r,\theta,z)\ r\ d\theta\ dr\ dz$$
where you must express $f$ in cylindrical coordinates.