I need to calculate $$\iint_D \sqrt{x^2+y^2+z^2} dx dy dz$$ where $D=\{ (x,y,z):x^2+y^2+z^2\leq z\}$ .
After substituting $x=r\cos\theta\sin\phi , y=r\sin\theta\sin\phi , z=r\cos\phi $ into the inequality $x^2+y^2+z^2\leq z$, I received that $0\leq r \leq\cos \phi$ so as far as I understand this $\phi$ should be in $[-\frac{\pi}{2} , \frac{\pi}{2}] $ . The problem is that when I calculate it with these boundaries I get the integral is zero, and when I calculate it for $\phi \in [0 , \frac{\pi}{2}] $ and multiply by $2$, I get $\frac{\pi}{10}$.
So:
Why is it not correct to take $\phi \in [-\frac{\pi}{2} , \frac{\pi}{2}] $?
Thanks in advance.