
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 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
2
a
{\displaystyle 2a}
and the minor axis (the shortest diameter) of length
2
b
{\displaystyle 2b}
, where the quantities
a
{\displaystyle a}
and
b
{\displaystyle b}
are the lengths of the semi-major and semi-minor axes respectively. The exact perimeter
P
{\displaystyle P}
of an ellipse is given by the integral[1]
P
=
4
a
∫
0
π
/
2
1
−
e
2
sin
2
θ
d
θ
,
{\displaystyle P=4a\int _{0}^{\pi /2}{\sqrt {1-e^{2}\sin ^{2}\theta }}\ d\theta ,}
where
e
{\displaystyle e}
is the eccentricity of the ellipse, defined as[2]
e
=
1
−
b
2
a
2
.
{\displaystyle e={\sqrt {1-{\frac {b^{2}}{a^{2}}}}}.}
If we define the function
E
(
x
)
=
∫
0
π
/
2
1
−
x
sin
2
θ
d
θ
,
{\displaystyle E(x)=\int _{0}^{\pi /2}{\sqrt {1-x\sin ^{2}\theta }}\ d\theta ,}
known as the complete elliptic integral of the second kind, the perimeter can be expressed in terms of that function simply as
P
=
4
a
E
(
e
2
)
.
{\displaystyle P=4aE(e^{2}).}
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 an infinite series, is[3]
P
=
2
a
π
(
1
−
∑
n
=
1
∞
(
2
n
!
)
2
(
2
n
⋅
n
!
)
4
⋅
e
2
n
2
n
−
1
)
,
{\displaystyle P=2a\pi \left(1-\sum _{n=1}^{\infty }{\frac {(2n!)^{2}}{(2^{n}\cdot n!)^{4}}}\cdot {\frac {e^{2n}}{2n-1}}\right),}
where
e
{\displaystyle e}
is the eccentricity of the ellipse.
More rapid convergence may be obtained by expanding in terms of
h
=
(
a
−
b
)
2
/
(
a
+
b
)
2
{\displaystyle h=(a-b)^{2}/(a+b)^{2}}
. Found by James Ivory,[4] Bessel[5] and Kummer,[6] there are several equivalent ways to write it. The most concise is in terms of the binomial coefficient with
n
=
1
/
2
{\displaystyle n=1/2}
, but it may also be written in terms of the double factorial or integer binomial coefficients:
P
π
(
a
+
b
)
=
∑
n
=
0
∞
(
1
/
2
n
)
2
h
n
=
∑
n
=
0
∞
(
(
2
n
−
3
)
!
!
(
2
n
)
!
!
)
2
h
n
=
∑
n
=
0
∞
(
(
2
n
−
3
)
!
!
2
n
n
!
)
2
h
n
=
∑
n
=
0
∞
(
1
(
2
n
−
1
)
4
n
(
2
n
n
)
)
2
h
n
=
1
+
h
4
+
h
2
64
+
h
3
256
+
25
h
4
16384
+
49
h
5
65536
+
441
h
6
2
20
+
1089
h
7
2
22
+
⋯
.
{\displaystyle {\begin{aligned}{\frac {P}{\pi (a+b)}}&=\sum _{n=0}^{\infty }{1/2 \choose n}^{2}h^{n}\\&=\sum _{n=0}^{\infty }\left({\frac {(2n-3)!!}{(2n)!!}}\right)^{2}h^{n}\\&=\sum _{n=0}^{\infty }\left({\frac {(2n-3)!!}{2^{n}n!}}\right)^{2}h^{n}\\&=\sum _{n=0}^{\infty }\left({\frac {1}{(2n-1)4^{n}}}{\binom {2n}{n}}\right)^{2}h^{n}\\&=1+{\frac {h}{4}}+{\frac {h^{2}}{64}}+{\frac {h^{3}}{256}}+{\frac {25h^{4}}{16384}}+{\frac {49h^{5}}{65536}}+{\frac {441h^{6}}{2^{20}}}+{\frac {1089h^{7}}{2^{22}}}+\cdots .\end{aligned}}}
The coefficients are slightly smaller (by a factor of
2
n
−
1
{\displaystyle 2n-1}
) than the preceding, but also
e
4
/
16
≤
h
≤
e
4
{\displaystyle e^{4}/16\leq h\leq e^{4}}
is numerically much smaller than
e
2
{\displaystyle e^{2}}
except at
h
=
e
=
0
{\displaystyle h=e=0}
and
h
=
e
=
1
{\displaystyle h=e=1}
. For eccentricities less than 0.5 (
h
<
0.005
{\displaystyle h<0.005}
), the error is at the limits of double-precision floating-point after the
h
4
{\displaystyle h^{4}}
term.[7]
Approximations
Exact evaluation of elliptic integrals may be impractical in some cases due to their computational complexity. As a result, several approximation methods have been developed over time.
Ramanujan's approximations
Indian mathematician Srinivasa Ramanujan proposed multiple approximations.[8][9]
First approximation
P
≈
π
(
3
(
a
+
b
)
−
(
3
a
+
b
)
(
a
+
3
b
)
)
.
{\displaystyle P\approx \pi \left(3(a+b)-{\sqrt {(3a+b)(a+3b)}}\right).}
Second approximation
P
≈
π
(
a
+
b
)
(
1
+
3
h
10
+
4
−
3
h
)
,
{\displaystyle P\approx \pi (a+b)\left(1+{\frac {3h}{10+{\sqrt {4-3h}}}}\right),}
where
h
=
(
a
−
b
)
2
(
a
+
b
)
2
{\displaystyle h={\frac {(a-b)^{2}}{(a+b)^{2}}}}
.
Final approximation
The final approximation in Ramanujan's notes was an improvement on his second approximation. It is regarded as one of his most mysterious equations.
P
≈
π
(
(
a
+
b
)
(
1
+
3
h
10
+
4
−
3
h
)
+
ε
)
≈
π
(
(
a
+
b
)
+
3
(
a
−
b
)
2
10
(
a
+
b
)
+
a
2
+
14
a
b
+
b
2
+
ε
)
{\displaystyle {\begin{aligned}P&\approx \pi \left((a+b)\left(1+{\frac {3h}{10+{\sqrt {4-3h}}}}\right)+\varepsilon \right)\\&\approx \pi \left((a+b)+{\frac {3(a-b)^{2}}{10(a+b)+{\sqrt {a^{2}+14ab+b^{2}}}}}+\varepsilon \right)\end{aligned}}}
where
ε
≈
3
a
e
20
2
36
{\textstyle \varepsilon \approx {\dfrac {3ae^{20}}{2^{36}}}}
and
e
{\displaystyle e}
is the eccentricity of the ellipse.[9]
Ramanujan did not provide any rationale for this formula.
Derivation of Ramanujan's approximations |
|---|
|
Second Approximation Ramanujan's second approximation formula follows from the series representation of the perimeter of an ellipse. The expansion of the general form,
1
+
A
h
B
+
1
−
C
h
=
1
+
A
B
+
1
h
+
A
C
2
(
B
+
1
)
2
h
2
+
A
C
2
(
B
+
3
)
8
(
B
+
1
)
3
h
3
+
⋯
,
{\displaystyle 1+{\frac {Ah}{B+{\sqrt {1-Ch}}}}=1+{\frac {A}{B+1}}h+{\frac {AC}{2(B+1)^{2}}}h^{2}+{\frac {AC^{2}(B+3)}{8(B+1)^{3}}}h^{3}+\cdots ,}
can be compared to the first three terms of the infinite series,
P
π
(
a
+
b
)
=
1
+
1
4
h
+
1
64
h
2
+
1
256
h
3
+
25
16384
h
4
+
49
65536
h
5
⋯
,
{\displaystyle {\frac {P}{\pi (a+b)}}=1+{\frac {1}{4}}h+{\frac {1}{64}}h^{2}+{\frac {1}{256}}h^{3}+{\frac {25}{16384}}h^{4}+{\frac {49}{65536}}h^{5}\cdots ,}
to show that
A
B
+
1
=
1
4
,
A
C
2
(
B
+
1
)
2
=
1
64
,
A
C
2
(
B
+
3
)
8
(
B
+
1
)
3
=
1
256
.
{\displaystyle {\frac {A}{B+1}}={\frac {1}{4}},\quad {\frac {AC}{2(B+1)^{2}}}={\frac {1}{64}},\quad {\frac {AC^{2}(B+3)}{8(B+1)^{3}}}={\frac {1}{256}}.}
Solving the system of equations, we find
A
=
3
2
,
B
=
5
,
C
=
3
4
.
{\displaystyle A={\frac {3}{2}},\quad B=5,\quad C={\frac {3}{4}}.}
Substituting the values into the original equation and simplifying algebraically yields Ramanujan's second approximation formula. This formula is accurate up to the fourth coefficient of the series expansion for the perimeter of an ellipse. Final Approximation Mathematician Mark Villarino demonstrated that each coefficient in the series representation of Ramanujan's approximation, beyond the fourth, is less than that of the exact perimeter's series representation. He also proved that the error in Ramanujan's approximation is
ε
=
π
(
a
+
b
)
⋅
θ
(
a
−
b
a
+
b
)
⋅
(
a
−
b
a
+
b
)
10
{\displaystyle \varepsilon =\pi (a+b)\cdot \theta \left({\frac {a-b}{a+b}}\right)\cdot \left({\frac {a-b}{a+b}}\right)^{10}}
where
θ
{\textstyle \theta }
3
2
17
<
θ
(
a
−
b
a
+
b
)
≤
14
11
(
22
7
−
π
)
.
{\displaystyle {\frac {3}{2^{17}}}<\theta \left({\frac {a-b}{a+b}}\right)\leq {\frac {14}{11}}\left({\frac {22}{7}}-\pi \right).}
[9] By taking
θ
{\textstyle \theta }
ε
≈
π
(
a
+
b
)
⋅
(
3
2
17
)
⋅
(
e
2
4
)
10
=
π
(
a
+
b
)
⋅
3
a
e
20
2
36
.
{\displaystyle \varepsilon \approx \pi (a+b)\cdot \left({\frac {3}{2^{17}}}\right)\cdot \left({\frac {e^{2}}{4}}\right)^{10}=\pi (a+b)\cdot {\dfrac {3ae^{20}}{2^{36}}}.}
A slightly more precise approximate form can be produced by leaving the
(
a
−
b
a
+
b
)
10
{\textstyle \left({\frac {a-b}{a+b}}\right)^{10}}
P
≈
π
(
a
+
b
)
(
1
+
3
h
10
+
4
−
3
h
+
3
h
5
2
17
)
{\displaystyle P\approx \pi (a+b)\left(1+{\frac {3h}{10+{\sqrt {4-3h}}}}+{\frac {3h^{5}}{2^{17}}}\right)}
where
h
=
(
a
−
b
a
+
b
)
2
{\displaystyle h=\left({\frac {a-b}{a+b}}\right)^{2}}
|
See also
References
- Chandrupatla, Tirupathi; Osler, Thomas (2010). "The Perimeter of an Ellipse" (PDF). The Mathematical Scientist. 35 (2): 122–131.
- Abbott, Paul (2009). "On the Perimeter of an Ellipse" (PDF). The Mathematica Journal. 11 (2): 2. doi:10.3888/tmj.11.2-4.
- "Perimeter of Ellipse". www.mathsisfun.com. Retrieved 2025-01-25.
- Ivory, James (1798). "A new series for the rectification of the ellipsis". Transactions of the Royal Society of Edinburgh. 4 (2): 177–190. doi:10.1017/s0080456800030817. S2CID 251572677.
- Bessel, F. W. (2010) [1825]. "The calculation of longitude and latitude from geodesic measurements". Astron. Nachr. 331 (8). Translated by Karney, Charles F. F.; Deakin, Rodney E.: 852–861. arXiv:0908.1824. Bibcode:2010AN....331..852K. doi:10.1002/asna.201011352. S2CID 118760590. English translation of Bessel, F. W. (1825). "Über die Berechnung der geographischen Längen und Breiten aus geodätischen Vermesssungen". Astron. Nachr. (in German). 4 (16): 241–254. arXiv:0908.1823. Bibcode:1825AN......4..241B. doi:10.1002/asna.18260041601. S2CID 118630614.
- Linderholm, Carl E.; Segal, Arthur C. (June 1995). "An Overlooked Series for the Elliptic Perimeter". Mathematics Magazine. 68 (3): 216–220. doi:10.1080/0025570X.1995.11996318.
The authors recently found a power series for the perimeter of an ellipse whose variable is not eccentricity and which converges considerably faster than the standard series. Not finding it in the references available to us, we imagined it might be new. However, the referee informed us that we had rediscovered one of Kummer's quadratic transformations of Gauss's hypergeometric series, dating back to 1837.
which cites to Kummer, Ernst Eduard (1836). "Uber die Hypergeometrische Reihe" [About the hypergeometric series]. Journal für die Reine und Angewandte Mathematik (in German). 15 (1, 2): 39–83, 127–172. doi:10.1515/crll.1836.15.39. - Cook, John D. (28 May 2023). "Comparing approximations for ellipse perimeter". John D. Cook Consulting blog. Retrieved 2024-09-16.
- Roberts, Martin (2019-02-11). "A Formula for the Perimeter of an Ellipse". Extreme Learning. Retrieved 2025-01-25.
- Villarino, Mark B. (20 June 2005). "Ramanujan's Perimeter of an Ellipse". arXiv:math/0506384.