Perimeter of an ellipse

Unlike most other elementary shapes, such as the circle and square, there is no closed-form expression for the perimeter of an ellipse. Throughout history, a large number of closed-form approximations and of expressions in terms of integrals or series have been given for the perimeter of an ellipse.
Exact value
Elliptic integral
An ellipse is defined by two axes: the major axis (the longest diameter) of length and the minor axis (the shortest diameter) of length , where the quantities and are the lengths of the semi-major and semi-minor axes respectively. The exact perimeter of an ellipse is given by the integral
where is the eccentricity of the ellipse, defined as
If we define the function
known as the complete elliptic integral of the second kind, the perimeter can be expressed in terms of that function as simply
The integral used to find the perimeter does not have a closed-form solution in terms of elementary functions.
Infinite sums
Another solution for the perimeter, this time using the sum of a infinite series, is
where is the eccentricity of the ellipse.
More rapid convergence may be obtained by expanding in terms of . Found by James Ivory, Bessel and Kummer, there are several equivalent ways to write it. The most concise is in terms of the binomial coefficient with , but it may also be written in terns of the double factorial or integer binomial coefficients: The coefficients are slightly smaller (by a factor of ) than the preceding, but also is numerically much smaller than except at and . For eccentricities less than 0.5 (), the error is at the limits of double-precision floating-point after the term.
Approximations
Because the exact computation involves elliptic integrals, several approximations have been developed over time.
Ramanujan's approximations
Indian mathematician Srinivasa Ramanujan proposed multiple approximations.
First approximation
Second approximation
where .
Final approximation
The final approximation in Ramanujan's notes on the perimeter of the ellipse is regarded as one of his most mysterious equations. It is
where
and is the eccentricity of the ellipse.
Ramanujan did not provide any rationale for this formula.
Simple arithmetic-geometric mean approximation
This formula is simpler than most perimeter formulas but less accurate for highly eccentric ellipses.
Approximations made from programs
In more recent years, computer programs have been used to find and calculate more precise approximations of the perimeter of an ellipse. In an online video about the perimeter of an ellipse, recreational mathematician and YouTuber Matt Parker, using a computer program, calculated numerous approximations for the perimeter of an ellipse. Approximations Parker found include
and