Evaluate
$$\frac{1}{2\pi}\int_{0}^{2\pi} \frac{d\theta}{(1-2r\cos\theta+r^2)}$$ for $0 < r < 1$ by writing ${\cos\theta}$ = $\frac{1}{2}$($ e^{i\theta}+e^{-i\theta})$ and reducing the given integral to a complex integral over the unit circle.
I believe I am supposed to use the Cauchy Integral formula and find the Taylor series centered at $z_0$ but not sure how to proceed
Factorise the denominator. Write the integrand as a product of infinite series, then as a sum of terms of the form $\int r^k e^{li\theta}$ for integers $k,\,l$ with $k\ge 0$. Use $\int_0^{2\pi}e^{li\theta}d\theta =2\pi\delta_{l0}$ (that's a Kronecker delta there). You'll only have a geometric series of common ratio $r^2$ left to worry about.