I need to calculate the following:
$ \int_{-2}^{2} \int_{-\sqrt{4-x^2}}^{\sqrt{4-x^2}} \int_{0}^{\sqrt{4-x^2-y^2}} z^2\sqrt{x^2+y^2+z^2} dzdydx $
I sketched this and I can see this is some kind a of a dome, which has ${0\leq z \leq 2}$.
I know how to work with polar coordinates, this seems like a problem fitting for spehrical coordinates, i.e. :
$$ x \to p\sin\phi \cos\theta $$
$$y \to p\sin\phi \sin\theta$$
$$z \to p\cos\phi $$
knowing that $ p = \sqrt{x^2+y^2+z^2} $ I can deduce that ${ 0 \leq p \leq 2}$, but how do I continue to find the angles?
Here, from the integrals, you can easily deduce that:
The function to integrate is $f(x,y,z)=z^2\sqrt{x^2+y^2+z^2}$ and the boundaries to integrate over are: $0 \leq z \leq \sqrt{4-x^2-y^2}$, $-\sqrt{4-x^2} \leq y \leq \sqrt{4-x^2}$ and $-2 \leq x \leq 2$.
Basically, you are integrating over a hemisphere of radius $2$, which lies on the positive side of the $z$ axis.
So, let
$$ x \to p\sin\phi \cos\theta $$
$$y \to p\sin\phi \sin\theta$$
$$z \to p\cos\phi $$
with the limits $ 0 \leq p \leq 2$, $ 0 \leq \phi \leq \pi/2$ and $ 0 \leq \theta \leq 2\pi$.
So the integral will become,
$ \displaystyle \int_{0}^{2} \int_{0}^{\pi/2} \int_{0}^{2\pi} (p^2\cos^2 \phi)(p) p^2\sin \phi \ d\theta d\phi dp$
$= (2\pi) \ \dfrac{p^6}{6}\bigg|_{0}^{2} \ \dfrac{-\cos^3 \phi}{3}\bigg|_{0}^{\pi/2} $
$=\dfrac{64}{9} \pi$