The length of an arc of a circle can be computed with sines and cosines. That of an arc of a parabola, with logarithms. But that of an arc of an ellipse cannot be computed with any of the school functions. For the ellipse $x = a\sin\theta$, $y = b\cos\theta$, with eccentricity $e = \sqrt{1 - b^2/a^2}$, the perimeter is

$$4a\int_0^{\pi/2}\sqrt{1 - e^2\sin^2\theta}\;d\theta,$$

and this integral has no elementary antiderivative. Integrals of this kind, with the square root of a polynomial of degree three or four, were called elliptic because of this origin. They turn up everywhere: in the pendulum, in the elastic curve of a bent rod, in the lemniscate, in the motion of a spinning top. The Bernoullis, Fagnano and Euler discovered surprising formulas about them. Legendre set out to put the subject in order.

Three kinds

From his first memoir, of 1786, to the end of his life, Legendre worked on them. His central contribution was to show that every elliptic integral can be reduced, by changes of variable and algebraic operations, to elementary functions and three standard integrals. In the notation he created, with the modulus $k$ between $0$ and $1$ and the amplitude $\varphi$,

$$F(\varphi, k) = \int_0^{\varphi}\frac{d\theta}{\sqrt{1 - k^2\sin^2\theta}}, \qquad E(\varphi, k) = \int_0^{\varphi}\sqrt{1 - k^2\sin^2\theta}\;d\theta,$$

are the integrals of the first and second kind, and a third, $\Pi(\varphi, n, k)$, with a factor $1 + n\sin^2\theta$ in the denominator, is the one of the third kind. When $\varphi = \frac{\pi}{2}$ they are called complete, and one writes $K(k) = F(\frac{\pi}{2}, k)$ and $E(k) = E(\frac{\pi}{2}, k)$. The perimeter of the ellipse is $4a\,E(e)$.

Reducing everything to three functions is only useful if those functions can be computed. Legendre computed them. The second volume of the Treatise on Elliptic Functions, of 1826, contains tables of $F$ and $E$ to nine or ten decimal places, for each degree of the modular angle and of the amplitude: years of work, done by hand.

The pendulum

The most famous example is the simple pendulum. For small oscillations the period is $T_0 = 2\pi\sqrt{L/g}$ and does not depend on the amplitude, as Galileo believed. But for a swing of amplitude $\theta_0$, conservation of energy leads to

$$T = 4\sqrt{\frac{L}{g}}\;K\!\left(\sin\frac{\theta_0}{2}\right).$$

With $\theta_0 = 90^\circ$, the modulus is $\sin 45^\circ = \frac{1}{\sqrt 2}$, $K \approx 1.8541$, and

$$\frac{T}{T_0} = \frac{2}{\pi}K \approx 1.1803:$$

a pendulum released from the horizontal takes $18\%$ longer. Released at $170^\circ$, it takes more than twice as long.

Landen’s ladder

To compute the tables, Legendre did not sum the integral directly. He used a transformation discovered by the Englishman John Landen in 1775, which exchanges the modulus $k$ for a smaller one and multiplies the integral by a known factor. Applying it several times, the modulus goes to zero very fast, and with $k = 0$ the integral is trivial. Gauss realised, independently, that the ladder is equivalent to the arithmetic-geometric mean: starting with $a_0 = 1$ and $b_0 = \sqrt{1 - k^2}$, set

$$a_{n+1} = \frac{a_n + b_n}{2}, \qquad b_{n+1} = \sqrt{a_n b_n}.$$

The two sequences converge to the same number $M$, and $K(k) = \dfrac{\pi}{2M}$. Convergence is so fast that each step roughly doubles the number of correct digits. In the figure, change the pendulum’s amplitude and watch the ladder:

Legendre’s relation

Among the many formulas Legendre found, one is especially beautiful. Calling $k' = \sqrt{1 - k^2}$ the complementary modulus, and $K', E'$ the complete integrals with modulus $k'$, one always has

$$E K' + E' K - K K' = \frac{\pi}{2}.$$

For $k = k' = \frac{1}{\sqrt 2}$ it becomes $2EK - K^2 = \frac{\pi}{2}$. With $K \approx 1.854075$ and $E \approx 1.350644$:

$$2 \cdot 1.350644 \cdot 1.854075 - 1.854075^2 \approx 5.008391 - 3.437594 = 1.570797,$$

and $\frac{\pi}{2} \approx 1.570796$. The difference is only in the sixth decimal place, because of rounding.

Abel and Jacobi

The first volume of the Treatise came out in 1825, the second in 1826. In 1827 two young men, the Norwegian Niels Henrik Abel and the German Carl Jacobi, had at the same time the idea that Legendre had not had in forty years: instead of studying the integral $u = F(\varphi, k)$ as a function of $\varphi$, study the inverse, $\varphi$ as a function of $u$. The inverse functions, which we now call elliptic functions, are to these integrals what the sine is to the integral $\int \frac{dx}{\sqrt{1 - x^2}}$. And, like the sine, they are periodic, but with two periods instead of one. Suddenly the formulas that Legendre had wrung out with such effort appeared as simple consequences of this double periodicity.

Legendre was seventy-five. He could have reacted as he had to Gauss. Instead he wrote to Jacobi of his joy at seeing two young geometers cultivate with such success the subject that had for so long been his favourite. He began a five-year correspondence with him, defended Abel in the Academy and added to the Treatise three supplements expounding the discoveries of the two. He called Abel’s great theorem on the integrals a monumentum aere perennius, a monument more lasting than bronze.

Exercise: the arithmetic-geometric mean by hand

Compute $K\!\left(\frac{1}{\sqrt 2}\right)$ by the arithmetic-geometric mean of $1$ and $\frac{1}{\sqrt 2} \approx 0.707107$.

$a_1 = \frac{1 + 0.707107}{2} = 0.853553$ and $b_1 = \sqrt{0.707107} = 0.840896$. Then $a_2 = 0.847225$ and $b_2 = \sqrt{0.853553 \cdot 0.840896} = 0.847201$. One more step: $a_3 \approx b_3 \approx 0.847213$, agreeing to six places. So

$$K \approx \frac{\pi}{2 \cdot 0.847213} \approx 1.854075.$$

Three steps were enough for six decimal places.

Exercise: the perimeter of an ellipse

An ellipse has semi-axes $a = 2$ and $b = 1$. Given that $E\!\left(\frac{\sqrt 3}{2}\right) \approx 1.211056$, compute the perimeter and compare it with Ramanujan’s approximation, $\pi\left[3(a + b) - \sqrt{(3a + b)(a + 3b)}\right]$.

The eccentricity is $e = \sqrt{1 - \frac{1}{4}} = \frac{\sqrt 3}{2}$, and the perimeter is $4a\,E(e) = 8 \cdot 1.211056 \approx 9.68845$. Ramanujan’s formula gives $\pi(9 - \sqrt{35}) \approx \pi \cdot 3.08392 \approx 9.68842$. The difference is in the fifth decimal place.

Sources: Adrien-Marie Legendre, Exercices de calcul intégral (1811–1817) and Traité des fonctions elliptiques et des intégrales eulériennes (1825–1828, supplements 1828–1832) · Correspondence between Legendre and Jacobi, Journal für die reine und angewandte Mathematik 80 (1875) · Jeremy Gray, The Real and the Complex: A History of Analysis in the 19th Century (2015).


All topics on Adrien-Marie Legendre · ← The method of least squares · The legacy of Legendre →

Image credits.