I would like to compute the following integral. This is for a complex analysis course but I managed to around some other integrals using real analysis methodologies. Hopefully one might be able to do for this one too.

$$\int\_{0}^{2\pi} \frac{1}{a-\cos(x)}dx, \text{ with } a > 1.$$

Any suggestion will be greatly appreciated.