logo

Perimeter of an Ellipse 📂Geometry

Perimeter of an Ellipse

Most materials do not provide a detailed explanation of how the elliptic integral of the second kind is derived. Even if they do, many are incorrect1 so I wrote the ‘accurate’ and ‘detailed’ content myself. For reference, the content in Boas’ Mathematical Methods in the Physical Sciences, 3rd edition, is also incorrect.

Formula

The perimeter of an ellipse with semi-major axis aa, semi-minor axis bb, and eccentricity k2k^{2} is calculated as follows.

E=4a0π21k2cos2θdθ,k2=a2b2a2 E=4a\int _{0} ^{{\textstyle \frac{\pi}{2}}} \sqrt{ 1-k^{2}\cos^{2} \theta } d\theta,\quad k^{2}=\frac{a^{2}-b^{2}}{a^{2}}

Derivation

First, let’s express a point P=(x,y)P=(x,y) on the ellipse through an angle. However, this angle is not the angle formed by PP, origin OO, and axis xx. It’s the angle formed by the origin OO and the xx axis when a perpendicular (horizontal) line drawn from PP intersects the circle x2+y2=a2(x2+y2=b2)x^{2}+y^{2}=a^{2}(x^{2}+y^{2}=b^{2}). Refer to the diagram below. Ellipse x2a2+y2b2=1(a>b>0){\textstyle \frac{x^{2}}{a^{2}}}+\frac{y^{2}}{b^{2}}=1 (a>b>0) and two circles x2+y2=a2x^{2}+y^{2}=a^{2}, x2+y2=b2x^{2}+y^{2}=b^{2} are drawn.

5F20FF7A0.png

From the diagram above, it is clear that x=acosθx=a\cos \theta. Substituting this into the equation of the ellipse gives the following.

a2cos2θa2+y2b2=1    cos2θ+y2b2=1 \begin{align*} &&\frac{a^{2}\cos^{2}\theta}{a^{2}}+\frac{y^{2}}{b^{2}}&=1 \\ \implies &&\cos ^{2}\theta+\frac{y^{2}}{b^{2}}&=1 \end{align*}

Therefore, y=bsinθy=b\sin \theta. Then, the perimeter of the ellipse EE can be calculated as follows.

E=02π(dxdθ)2+(dydθ)2dθ=02π(asinθ)2+(bcosθ)2dθ=02πa2sin2θ+b2cos2θdθ=02πa2a2cos2θ+b2cos2θ=02πa1a2b2a2cos2θdθ \begin{align*} E &= \int _{0} ^{2\pi} \sqrt{ \left( \frac{dx}{d\theta} \right)^{2} + \left( \frac{dy}{d\theta} \right)^{2}}d\theta \\ &= \int _{0} ^{2\pi} \sqrt{ \left( -a\sin \theta \right)^{2} + \left( b\cos \theta \right)^{2}}d\theta \\ &=\int _{0} ^{2\pi} \sqrt{ a^{2}\sin^{2}\theta+ b^{2}\cos^{2} \theta } d\theta \\ &=\int _{0} ^{2\pi} \sqrt{ a^{2}-a^{2}\cos^{2}\theta+ b^{2}\cos^{2} \theta } \\ &=\int _{0} ^{2\pi} a\sqrt{ 1-\frac{a^{2}-b^{2}}{a^{2}}\cos^{2} \theta } d\theta \end{align*}

Here, a2b2a2(b<a)\sqrt{\frac{a^{2}-b^{2}}{a^{2}}}(b<a) represents the eccentricity of the ellipse, denoted as ϵ\epsilon or kk. By calculating the perimeter of the first quadrant and multiplying by 4, the final perimeter of the ellipse is as follows.

E=4a0π21k2cos2θdθ,k2=a2b2a2 E=4a\int _{0} ^{{\textstyle \frac{\pi}{2}}} \sqrt{ 1-k^{2}\cos^{2} \theta } d\theta,\quad k^{2}=\frac{a^{2}-b^{2}}{a^{2}}

If the ellipse is longer towards the yy axis, such that the condition is b>a>0b>a>0, the diagram is as below.

2.png

Then, the perimeter of the ellipse is as follows.

E=4b0π21k2sin2θdθ,k2=b2a2b2 E=4b\int _{0} ^{{\textstyle \frac{\pi}{2}}} \sqrt{ 1-k^{2}\sin^{2} \theta } d\theta ,\quad k^{2}=\frac{b^{2}-a^{2} }{b^{2}}

Elliptic Integral of the Second Kind

This integral is specifically called the Elliptic Integral of the Second Kind, or the Complete Elliptic Integral of the Second Kind, and is denoted as follows.

E(k)=0π21k2sin2θdθ E(k) = \int_{0}^{{\textstyle \frac{\pi}{2}}}\sqrt{ 1-k^{2}\sin^{2} \theta } d\theta

Calculation

This elliptic integral cannot be represented by elementary functions and can only be calculated numerically. The value of the integral depending on kk is as follows.

untitled.png If b=1.1547b=1.1547 and a=1a=1, then k=0.5k=0.5. Since E(0.5)=1.351E(0.5)=1.351, the perimeter of the ellipse x2+y21.15472=1 x^{2}+\frac{ y^{2}}{1.1547^{2}}=1 is as follows.

4bE(k)=4×1.1547×1.351=6.239 4bE(k)=4\times 1.1547 \times 1.351=6.239


  1. Wikipedia lacks the derivation process, and Namuwiki is incorrect. ↩︎