Short introduction
For a calculation I am working on I need to determine the arc length $l$ of a part of an ellipse in terms of the major axis $2a$, the minor axis $2b$ and the angle $\phi$.
I thought until now that this was a classical problem which results in an incomplete elliptic integral of the second kind: $$\tag{1} l=a E\left(\phi \left|\sqrt{1-\frac{b^2}{a^2}}\right.\right) $$
But I recently found out that this is incorrect. In fact this is only true when $\phi=0$ or $\phi=\pi/2$. So I set out to solve the problem and find out what the correct function is
My calculations
If I have an ellipse given by: $$\tag{2} \frac{x^2}{a^2}+\frac{y^2}{b^2}=1 $$ I can parameterize the system with $x=r\cos\phi$ and $y=r\sin\phi$ which results in: $$\tag{3} r=\frac{a b}{\sqrt{a^2\sin^2\phi+b^2\cos^2\phi}} $$
I can find a differential part of the arc length $dl$ as: $dl=\sqrt{r^2+\left(\frac{dr}{d\phi}\right)^2}$
and by solving the integral I find something which involves both an incomplete elliptic integral of the first and second kind. To give an example: $$\tag{4} \int_0^{\pi/3} \sqrt{r^2+\left(\frac{dr}{d\phi}\right)^2} d\phi= -i b F\left(i \sinh^{-1} \left(\frac{a^2/b^2}{\sqrt{3}a/b}\right) \right) +i b E\left(i \sinh ^{-1}\left(\frac{a^2/b^2}{\sqrt{3}a/b}\right)\right)+\frac{\sqrt{3} a \sqrt{\frac{3 a^4+b^4}{3 a^2+b^2}}}{b}$$
and I can't even find an answer for the general form
$$\tag{5} \int_0^{P} \sqrt{r^2+\left(\frac{dr}{d\phi}\right)^2} d\phi$$
Question
My main question is: am I on the right track with my calculation or am I messing up somewhere and is something of the form of Eq. 1 possible to calculate the arclength to an arbitrary angle?