I am having a real issue solving this integral. So a bit of background I am solving the following problem.
question 2.7 after doing the various equation with the electric field I got the following integral:
$$\frac{2\pi\sigma}{4\pi\epsilon}\int_{0}^{\pi}\frac{(R^2\sin\theta)(z-R\cos\theta)}{(z^2+R^2-2zR\cos\theta)^{3/2}}d\theta$$ after simplifying through substitution I get the following integral which is I honestly have no idea how to approach.
$$R\int \frac{z-w}{(z^2+R^2-2zw)^{3/2}}dw$$
I have not put limits in or anything as I am literally trying to figure out this integral.
I have searched the net and all that seems to come up is a standard solution of: $$\frac{wz-R^2}{z^2\sqrt{R^2+z^2-2w}}$$
but no where is a explanation of how this solution was found. Could someone please help me with a way to tackle this type of integral
Here is the integral before I made the second substitution to simplify the equation more.
$$E=\frac{2\pi\sigma}{4\pi\epsilon}\int_{-1}^{1} \frac{R^2(z-Ru)}{z^2+R^2-2xRu}du$$
