This answer to Why can't Wolfram Alpha calculate $\int_0^{2\pi}\sqrt{(a-\cos\theta)^2+\sin^2\theta}\ d\theta$? includes the following excerpt:
$$\Re(a (a+2))>-1\land \Re((a-2) a)>-1$$ where appear ellptic integrals of the second kind. In fact, this reduces to $$I=4(a+1)E\left(\frac{4 a}{(a+1)^2}\right)$$
Here $E$ is the Complete Elliptic Integral of the Second Kind:
$$E(a) = \int_0^{\pi/2} \sqrt{1 - a \sin^2 t} \ \ dt$$
The expression inside the square root of my expression $(a-\cos\theta)^2+\sin^2\theta$ reduces to $a^2 - 2a \cos \theta + 1$ but I don't see how it ends up in the proper form for $E$.
$$A=(a-\cos(\theta))^2+\sin^2(\theta)=(a^2+1)-2 a \cos (\theta )$$ $$\cos (\theta )=1-2 \sin ^2\left(\frac{\theta }{2}\right)$$ $$A=(a-1)^2+4a\sin ^2\left(\frac{\theta }{2}\right)=(a-1)^2 \left(1+\frac{4 a }{(a-1)^2}\sin ^2\left(\frac{\theta }{2}\right)\right)$$