I have that $l/r = 1+e.\cos(x)$, for $l = a(1-e^2)$ (constant).
The question asks for the mean distance over angle of the planet from the sun, where the planet moves on an elliptical orbit with the sun at a focus. and gives the formula (and answer):
$$\frac{1}{2\pi} \int^{2\pi}_0 r \, dx = a(1-e^2)^{\frac{1}{2}}$$
I know I am meant to use the substitution $t = \tan(x/2)$, and then use a substitution again later, but my integral results in a function arctan, and I don't know how to get a constant from that.
Any help much appreciated, thank you.