Is there a direct method to prove that, if $r>1$ $$I=\int_0^{2\pi}\frac{r^2+r(\cos(t)-\sin(t))}{1+2r\cos(t)+r^2}dt=2\pi$$
I ask this question because this integral can be thought as an integral of a 1-form along a circle: $\omega=\frac{x-y}{x^2+y^2}dx+\frac{x+y}{x^2+y^2}dy$ and $\gamma=(1+r\cos(t),r\sin(t))$ for $t\in[0,2\pi]$ and if I'm not mistaken this curve is homotopic to the unit circle centered in $(0,0)$ if $r>1$, then the integral is equal to the integral along this curve that is $2\pi.$ Is my argument correct?