I need prove that:
$$\int_{0}^{2\pi} \frac{R^{2}-r^{2}}{R^{2}-2Rr\cos \theta +r^{2}} d\theta= 2\pi$$
By deformation theorem, with $0<r<R$.
Professor gave us the hint to use the function $f(z)= \frac{R+z}{z(R-z)}$, and define an adequate $\gamma : [a,b]\rightarrow \mathbb{C}$ circular curve and with deformation theorem, we could find the integral. But I have been able to find the curve $\gamma$. Any advice is very helpful