I was given the function:
$$ \frac{R+z}{z(R-z)} $$
And I was asked to integrate it around a closed contour to prove:
$$\frac1{2\pi} \int_0^{2\pi} \frac{R^2-r^2}{R^2-2Rr\cos\theta+r^2} d\theta =1$$
I've seen people get a proof quite easily by using the residue theorem, but I have not studied it yet so I am not supposed to do it.
My attempt:
Let $\gamma = re^{it}$,
$$\int_\gamma f dz = \int_\gamma \frac1z + \frac2{R-z} dz$$ $$\Rightarrow \int_\gamma f dz = \int_0^{2\pi} \frac{ire^{it}}{re^{it}}dt + \int_0^{2\pi} \frac{2ire^{it}}{R-re^{it}}dt$$ $$ = 2\pi i + \int_0^{2\pi} \frac{2Rr\cos t + 2r}{R^2+2Rr\cos t + r^2} dt$$
But I don't know what else should I do. Any ideas?
Edit: Sorry I had a typo, the function to integrate was $ \frac{R+z}{z(R-z)} $ and not $ \frac{R-z}{z(R-z)} $
I would like to thank everyone. Your answers were very useful and helped me to approach the problem in different ways. Unfortunately, none of them was the answer I was expecting to get to.
The final solution I finally came to was this (considering the themes I have studied):
for any $0<r<R$, let $\gamma = re^{it}$, then:
$$\int_\gamma f dz = \int_\gamma \frac1z + \frac2{R-z} dz$$ $$\Rightarrow \int_\gamma f dz = \int_0^{2\pi} \frac{ire^{it}}{re^{it}}dt + \int_0^{2\pi} \frac{2ire^{it}}{R-re^{it}}dt$$ $$ = 2\pi i + \int_0^{2\pi} \frac{2ire^{it}}{R-re^{it}} dt$$
Since $r<R$, the right function is holomorphic inside $\gamma$, which means $2\pi i + \int_0^{2\pi} \frac{2ire^{it}}{R-re^{it}} dt = 2\pi i$.
So we can make:
$$ 2\pi i = \int_0^{\pi} \frac{(R+re^{it})ire^{it}}{(R-re^{it})re^{it}}dt$$ $$ \Rightarrow 2\pi i = i \int_0^{2\pi} \frac{R+re^{it}}{R-re^{it}} dt \\ = i \int_0^{2\pi} \frac{R+r\cos t + ir\sin t}{R-r\cos t - ir\sin t}\left( \frac{R-r\cos t + ir\sin t}{R-r\cos t + ir\sin t} \right) dt \\ = i\int_0^{2\pi} \frac{R^2 - r^2+2iRr\sin t}{R^2 -2rR\cos t + r^2} dt $$
By taking the real and imaginary parts in both $2\pi i$ and the integral we get:
$$ 2\pi = \int_0^{2\pi} \frac{R^2 - r^2}{R^2 -2rR\cos t + r^2} dt \\ \Rightarrow 1 = \frac{1}{2\pi} \int_0^{2\pi} \frac{R^2 - r^2}{R^2 -2rR\cos t + r^2} dt$$