Evaluate the integral
\int_0^(2\pi ) (cos2\theta d\theta )/(1-2acos\theta +a^(2)),a^(2)<1
using contour integration