I want to calculate the mass of a surface defined by $x^2+y^2+z^2=a^2$, $z\geq{0}$, (a semisphere) knowing that the density of the surface is proportional to the distance to the plane $XY$
I know I have to calculate the integral $$\int_{S}z\space dS$$
Parametrizing the surface using spherical coordinates
$$x=a·sin(\phi)cos(\theta), y=a·sin(\phi)sin(\theta),z=a·cos(\phi)$$ For $0<\phi<\pi/2$ and $0<\theta<2\pi$.
Therefore I have to solve $$\int_0^{2\pi}\int_{0}^{\pi/2}a·cos(\phi)\space |\frac{\partial}{\partial \phi}\times \frac{\partial}{\partial \theta}|d\phi d\theta$$
Now, calculating $|\frac{\partial}{\partial \phi}\times \frac{\partial}{\partial \theta}|$ is very tedious, and this should be an easy problem. Is there any other easier way to do this prolem? (assuming what I did is correct and a way to solve it, if not, correct me)
The integral to calculate the mass should be
$$\int_{S}z\space dS =\int_0^{2\pi}\int_{0}^{\pi/2} a^3·\cos \phi \sin \phi\,d\phi \,d\theta$$