I'm trying to calculate the following surface integral $$\int \int_{s_r} \frac{z-R}{(x^2+y^2+(z-R)^2)^{3/2}} dS $$, where $s_r=\{(x,y,z)\in \mathbb{R}^3 : x^2+y^2+z^2=r^2 \}. $
I've switched to spherical coordinates but don't really know how to do it.
Use parametric representation to solve the surface integral
\begin{array}{l} x = r\sin \phi \cos \theta \\ y = r\sin \phi \sin \theta \\ z = r\cos \phi \end{array} Where, $$0 \le \phi \le \pi ,\,\,\,0 \le \theta \le 2\pi $$ That is, $${\rm{r}}\left( {\phi ,\theta } \right) = r\sin \phi \cos \theta \widehat i + r\sin \phi \sin \theta \widehat j + r\cos \phi \widehat k$$ Compute the cross product of the Tangent Vectors
$${T_\phi } \times {T_\theta } = \left| {\matrix{ {\widehat i} & {\widehat j} & {\widehat k} \cr {{{\partial x} \over {\partial \phi }}} & {{{\partial y} \over {\partial \phi }}} & {{{\partial z} \over {\partial \phi }}} \cr {{{\partial x} \over {\partial \theta }}} & {{{\partial y} \over {\partial \theta }}} & {{{\partial z} \over {\partial \theta }}} \cr } } \right|$$ This will give, $$\left| {{T_\phi } \times {T_\theta }} \right| = {r^2}\sin \phi $$
Now Calculate the integral,
$$\displaylines{ \int\!\!\!\int_{{s_r}} {{{z - R} \over {{{({x^2} + {y^2} + {{(z - R)}^2})}^{3/2}}}}dS} \cr = \int\!\!\!\int_D {\left( {{{r\cos \phi - R} \over {{{({{\left( {r\sin \phi \cos \theta } \right)}^2} + {{\left( {r\sin \phi \sin \theta } \right)}^2} + {{(r\cos \phi - R)}^2})}^{3/2}}}}} \right)\left| {{T_\phi } \times {T_\theta }} \right|dA} \cr = \int\!\!\!\int_D {\left( {{{r\cos \phi - R} \over {{{\left( {{r^2} + {R^2} - 2rR\cos \phi } \right)}^{3/2}}}}} \right)\left( {r^2\sin \phi } \right)dA} \cr = \int\limits_0^{2\pi } {\int\limits_0^\pi {\left( {{{r\cos \phi - R} \over {{{\left( {{r^2} + {R^2} - 2rR\cos \phi } \right)}^{3/2}}}}} \right)\left( {r^2\sin \phi } \right)d\phi d\theta } } \cr} $$
solve this integral.