I encountered this integral given below.
$$\int_{-1}^1 \frac{z-Ru}{(R^2+z^2-2Rzu)^{3/2}}\mathop {\mathrm du}$$
The recommended answer is $$\frac1{z^2}\left\{\frac{z-R}{|z-R|}-\frac{-z-R}{|z+R|}\right\}$$
Although I can solve this by separating the terms in the numerator and then substituting for the expression in the denominator within the brackets as $y^2$. This will pose two conditions: either $z>R$ or $R>z$, in which case I must find the final expression for each condition separately.
However, I am desperate to know how to obtain the elegant expression as given in the recommended answer.