I'm having a hard time trying to resolve this integral : $$\int_{0}^{2\pi}\frac{\mathrm dx}{(1-a\cos x)^2}$$ where $a$ is a positive real constant.
I tried using substitution, but I'm stuck by the fact that the integral must be computed between $0$ and $2\pi$, which leads to integration between $X$ and $X$ (where $X$ can be $0$ or $1$ anything following the substitution in the boundaries). I'm not looking for the full result if the computation is complicated, just some lead to start off...
Thanks
UPDATE : seeing the answers proposed, I checked that indeed $|a|<1$.
The polar equation of an ellipse (with respect to a focus, taking the aphelion as the point associated to $\theta=0$) is $$ \rho(\theta) = \frac{\ell}{1-e\cos\theta} $$ where, in terms of the standard parameters, $\ell$ is the semi-latus rectum $\frac{b^2}{a}$ and $e$ is the eccentricity $\frac{c}{a}$.
The area enclosed by such ellipse is $\pi a b $ or $$ \frac{1}{2}\int_{0}^{2\pi}\frac{\ell^2}{(1-e\cos\theta)^2}\,d\theta, $$ so we get that for any $e\in[0,1)$ the following identity holds: $$ \int_{0}^{2\pi}\frac{d\theta}{(1-e\cos\theta)^2}= \frac{2\pi a b}{\ell^2}=2\pi\left(\frac{a}{b}\right)^3=\frac{2\pi}{\left(\frac{b^2}{a^2}\right)^{3/2}}={\frac{2\pi}{(1-e^2)^{3/2}}}. $$ The same holds if, in the LHS, we replace $e$ with $-e$, since $ \rho(\theta) = \frac{\ell}{1+e\cos\theta} $ is the polar equation of the same ellipse, with the perihelion being taken as the point associated to $\theta=0$. So we get that for any $a\in(-1,1)$ $$ \int_{0}^{2\pi}\frac{d\theta}{(1-a\cos\theta)^2}= \color{blue}{\frac{2\pi}{(1-a^2)^{3/2}}}. $$