I am trying to evaluate a surface integral
$$\int \int_S z \space dS$$
where
$S$ is the surface
$$x^2+y^2+z^2=a^2, \space z \in [0,a]$$
I am a little confused on what to do here, because although my first instinct was to use spherical coordinates I only have two integrands. If I try to use $x=a\cos(\theta), \space y=a\sin(\theta), z=z$ then the equation does not work out.
It seems as though I am missing something very basic but I cannot get my mind around it.
May I have some assistance, please?
If you are parametrizing in spherical coordinates,
For a sphere of radius $a$, $|r'_{\theta} \times r'_{\phi}|$ is simply $a^2 \sin \phi$. If you do not remember it, you can parametrize as below and take derivative wrt $\theta$, $\phi$ and do the cross product.
$r(\theta, \phi) = (a \cos\theta \sin\phi, a\sin\theta \sin\phi, a \cos\phi)$
$|r'_{\theta} \times r'_{\phi}| = a^2 \sin \phi$
So your integral is $\displaystyle \int_0^{2\pi} \int_0^{\pi/2} a \cos\phi \cdot a^2 \sin \phi \ d\phi \ d\theta$
Similarly if you parametrize in cylindrical coordinates, it will be
$r(\rho,\theta) = (\rho \cos\theta, \rho \sin \theta, \sqrt{a^2-\rho^2})$
Now can you find $|r'_{\rho} \times r'_{\theta}|$ and integrate in cylindrical coordinates? Let me know if you have questions.