I am trying to find an expression for the following Definite Integral for the range $0 \leq a <1$: $$D = \int_0^{2\pi} \frac{\sin^2\theta}{(1-a\cos\theta)^3}\,d\theta.$$
which gives (Wolfram Alpha)
$$D= \left[ \frac{\sin \theta(\cos \theta - a)}{2(a^2-1)(a \cos\theta-1)^2} +\frac{\tanh^{-1}\left( \frac{(a+1)\tan(\theta/2)}{\sqrt{a^2-1}} \right)}{(a^2-1)^{3/2}}\right]_0^{2\pi} .$$
which can be expressed as $$D= \left[ \frac{(a^2-1)^{1/2}\sin \theta(\cos \theta - a)+2 (a \cos\theta-1)^2\tanh^{-1}\left( \frac{(a+1)\tan(\theta/2)}{\sqrt{a^2-1}} \right)}{2(a^2-1)^{3/2}(a \cos\theta-1)^2} \right]_0^{2\pi} .$$
This expression involves discontinuities and complex numbers which is beyond my present abilities to handle.
UPDATE
I accepted Jack's answer although I did not follow all the steps. In particular the first equation:-
It is not difficult to check that for any $a\in\mathbb{R}$ such that $|a|<1$ we have $$ \int_{0}^{2\pi}\frac{d\theta}{1-a\cos\theta} = \frac{2\pi}{\sqrt{1-a^2}}\tag{1}$$
but I found an explanation for this in the Kepler-based answer from \u\user5713492 to this question re solving $\int\frac{dx}{a+b\cos{x}}$. Other responders also referred to this equation.
Also interetsing is this article - warning PDF! linked to by \u\Adhvaitha.