1752 – 1833 • Polynomials, Primes, and the Method of Least Squares
French mathematician whose contributions to number theory, analysis, and geometry shaped the foundations of 19th-century mathematics, though his fame was often eclipsed by his contemporaries.
Adrien-Marie Legendre was born on 18 September 1752 in Paris (some sources say Toulouse) into a wealthy bourgeois family. His comfortable financial situation allowed him to pursue mathematics without economic pressure — at least until the French Revolution devastated his fortune.
Legendre was educated at the Collège Mazarin (also called the Collège des Quatre-Nations) in Paris, one of the finest schools in France. There he studied under the Abbé Joseph-François Marie, a distinguished mathematician and physicist who recognised Legendre's exceptional talent.
He defended his thesis in mathematics and physics in 1770, at age 18, and began teaching at the École Militaire in Paris. His early research focused on celestial mechanics and ballistics — practical problems that led him toward the mathematical tools he would later develop.
Founded by Cardinal Mazarin in 1661, this elite Parisian institution provided rigorous training in mathematics, philosophy, and the sciences.
Legendre's family wealth gave him independence to pursue pure mathematics — a luxury that the Revolution would strip away.
Teaching at the École Militaire connected Legendre to practical problems in ballistics and geodesy that would motivate his work on least squares and elliptic integrals.
Legendre's career spanned the turbulent era from the late Ancien Régime through the Revolution, Napoleon, and the Restoration. In 1782, he won the prize of the Berlin Academy for his work on ballistics. In 1783, he was elected to the Académie des Sciences.
He participated in the Anglo-French geodetic survey (1787) that connected the Paris and Greenwich observatories, applying his developing expertise in least squares and spherical geometry. During the Revolution, he lost his fortune but survived, unlike many colleagues.
Legendre held various official positions: he served on the commission that standardised weights and measures (leading to the metric system), and was appointed to posts at the Bureau des Longitudes and the École Normale. His final years were marked by political disfavour under the Restoration, and he died in poverty on 10 January 1833.
Wins Berlin Academy prize for ballistic trajectory research.
Publishes Éléments de géométrie — the most influential geometry textbook for a century.
Essai sur la théorie des nombres — first devoted textbook on number theory.
Publishes the method of least squares in Nouvelles méthodes.
Three-volume Traité des fonctions elliptiques — his magnum opus.
Legendre worked during the most turbulent period in French history, a time when Paris was nevertheless the undisputed capital of world mathematics.
Lagrange, Laplace, Monge, Fourier, Cauchy, and Legendre formed an extraordinary constellation. Paris's mathematical culture, supported by institutions like the École Polytechnique, was unmatched.
The Revolution disrupted but also reorganised French science. The metric system, the École Polytechnique, and the Bureau des Longitudes all emerged from revolutionary reforms.
The early 19th century saw a push for rigorous proof in analysis (Cauchy, Abel). Legendre's work, while often more computational than axiomatic, laid the foundations others would formalise.
"It has long been recognised in the practice of the sciences of observation that, among the results of a set of observations, we must prefer those in which the sum of the squares of the errors is as small as possible."
— Adrien-Marie Legendre, Nouvelles méthodes pour la détermination des orbites des comètes (1805)Legendre polynomials P_n(x) are solutions to Legendre's differential equation. They form a complete orthogonal basis on [-1, 1], fundamental to physics, engineering, and approximation theory.
Legendre introduced these polynomials in 1782 while studying the gravitational attraction of ellipsoids. He needed to expand the Newtonian potential 1/|r - r'| in a series, and the Legendre polynomials emerged as the coefficients.
The key properties that make them so powerful:
∫ P_m(x) P_n(x) dx = 0 for m ≠ n, integrated over [-1, 1]. This allows any reasonable function to be expanded in a Legendre series.(n+1)P_{n+1}(x) = (2n+1)xP_n(x) - nP_{n-1}(x), enabling efficient computation.P_n(x) = (1/2^n n!) d^n/dx^n (x^2-1)^n, giving a closed-form expression.1/sqrt(1 - 2xt + t^2) = Σ P_n(x) t^n, connecting them to potential theory.The associated Legendre functions extend these to spherical harmonics, which are indispensable in physics.
Legendre polynomials arise naturally when expanding the gravitational potential of a mass distribution in multipole moments — the mathematical language of celestial mechanics.
On the sphere, Legendre polynomials combine with trigonometric functions to form spherical harmonics Y_l^m(θ, φ), the "Fourier analysis" of the sphere.
The zeros of Legendre polynomials provide optimal nodes for numerical integration, achieving maximum accuracy for polynomial integrands.
The angular part of the hydrogen atom's wave function is expressed in associated Legendre functions — Legendre's 1782 work describing electron orbitals 150 years later.
Legendre published the method of least squares in 1805: find the line (or curve) that minimises the sum of squared residuals. This became the most widely used estimation method in all of science.
Legendre published the method of least squares in 1805 in his appendix to Nouvelles méthodes pour la détermination des orbites des comètes. He presented it as a practical technique for fitting observational data to theoretical curves, calling it méthode des moindres quarrés.
In 1809, Carl Friedrich Gauss published Theoria motus corporum coelestium, which also presented the method of least squares — but Gauss claimed he had been using it since 1795. Gauss provided no dated evidence for this claim, but his spectacular prediction of the orbit of Ceres (1801) lent it plausibility.
Legendre was furious. He wrote to Gauss, protesting the priority claim. Gauss, characteristically, was unmoved. The dispute embittered Legendre for the rest of his life.
Modern historians generally credit Legendre with first publication and Gauss with independent discovery and deeper theoretical justification (connecting least squares to the normal distribution via maximum likelihood).
First clear publication (1805). Presented as a practical method with worked examples. Named the method. Made it accessible to working scientists.
Claims use since 1795. Published 1809 with theoretical foundation connecting least squares to the normal (Gaussian) distribution. Never acknowledged Legendre's priority.
Both deserve credit. Legendre published first; Gauss provided deeper theory. The dispute reflects the 19th century's evolving norms around priority and publication.
Legendre's Essai sur la théorie des nombres (1798, expanded 1808) was the first textbook devoted to number theory. It introduced several key concepts:
The Legendre Symbol (a/p): For an odd prime p and integer a, this symbol equals +1 if a is a quadratic residue mod p, -1 if not, and 0 if p divides a. It provides compact notation for quadratic reciprocity.
The Law of Quadratic Reciprocity: Legendre conjectured and partially proved this "golden theorem" of number theory. For distinct odd primes p and q: (p/q)(q/p) = (-1)^{(p-1)(q-1)/4}. Gauss gave the first complete proof in 1801.
The Prime Counting Function: Legendre proposed that π(n) ≈ n / (ln(n) - 1.08366), an early approximation to the Prime Number Theorem. Though the constant was later shown to be exactly 1 (by Gauss's Li(n) approximation), Legendre's empirical work was pioneering.
Legendre's Conjecture: There exists a prime between n² and (n+1)² for every positive integer n. This remains unproven to this day.
A number a is a quadratic residue mod p if x² ≡ a (mod p) has a solution. The Legendre symbol encodes this information elegantly.
Legendre proved the case n = 5 of Fermat's Last Theorem (with Dirichlet, 1825), building on earlier work for n = 3 and n = 4.
Legendre's conjecture (a prime between consecutive perfect squares) remains one of the oldest unsolved problems in number theory, over 200 years later.
Legendre was a mathematician of extraordinary breadth and diligence rather than revolutionary flashes of insight. His method was characterised by:
His Éléments de géométrie (1794) replaced Euclid's Elements as the standard geometry textbook, serving this role for over a century in both Europe and the United States.
"Of all the principles that can be proposed for this purpose, I think there is none more general, more exact, or easier to apply, than that which we have used in this work; it consists of making the sum of the squares of the errors a minimum."
— Legendre, Nouvelles méthodes (1805)Legendre's greatest gift was synthesis. He took scattered results and organised them into coherent, teachable frameworks that trained generations of mathematicians.
Legendre's career was shaped by productive collaborations with Lagrange and Laplace, a bitter rivalry with Gauss, and the transformative work of the younger generation (Abel, Jacobi) who built on his foundations.
Legendre's career was haunted by Carl Friedrich Gauss. Again and again, Legendre would publish a result only to have Gauss claim prior discovery — often plausibly, given Gauss's extraordinary abilities, but always without prior publication.
The least squares dispute (1805 vs. 1809) was the most painful, but not the only one. Legendre's work on quadratic reciprocity was superseded by Gauss's complete proof in Disquisitiones Arithmeticae (1801). His approximation to the prime counting function was refined by Gauss's logarithmic integral.
Perhaps most poignantly, Legendre spent 40 years developing elliptic integrals, only to see Abel and Jacobi (both in their twenties) transform the entire field in 1827–29 by inverting Legendre's integrals into elliptic functions. To his great credit, Legendre recognised their genius immediately, calling Abel's work "a monument more lasting than bronze."
Adding insult to injury, the only widely circulated "portrait of Legendre" for centuries turned out to be of the wrong person — politician Louis Legendre. The real mathematician's face was essentially lost to history until a caricature was rediscovered.
Under the Bourbon Restoration, Legendre lost his pension for refusing to vote for the government's candidate for the Institut. He spent his final years in near-poverty.
Despite his bitterness toward Gauss, Legendre was generous to Abel and Jacobi, championing their revolutionary work even though it superseded his own.
Linear regression, the workhorse of statistics and machine learning, is built on Legendre's method. Every regression line, every fitted model in science, traces back to his 1805 appendix.
Spherical harmonics (built from Legendre polynomials) describe electron orbitals, gravitational fields, magnetic fields, and the cosmic microwave background radiation.
The Legendre symbol, quadratic residues, and his work on quadratic reciprocity remain central to algebraic number theory and cryptography (e.g., the Jacobi symbol generalisation).
Legendre's Éléments de géométrie was translated into dozens of languages and shaped geometry education worldwide for over a century. Its influence persists in how geometry is taught today.
Earth's gravitational field is modelled as a Legendre polynomial expansion. The GRACE and GOCE satellite missions measure gravity anomalies using spherical harmonic coefficients.
Spectral methods in climate models expand atmospheric variables in spherical harmonics (Legendre + Fourier), enabling efficient global simulations.
Spherical harmonic expansions based on Legendre polynomials are used in diffusion tensor imaging (DTI) to map neural pathways in the brain.
The Legendre symbol and quadratic residuosity underpin several cryptographic protocols, including the Goldwasser-Micali encryption scheme.
Least squares regression is the foundation of linear models, and its extensions (ridge, lasso) are among the most used algorithms in data science.
Electromagnetic radiation patterns are expressed in spherical harmonics. Antenna engineers use Legendre polynomial expansions to design and analyse beam patterns.
H. Davenport (8th ed., 2008). Elegant introduction to number theory that covers quadratic residues, the Legendre symbol, and reciprocity in the tradition Legendre established.
Per Christian Hansen, V. Pereyra, G. Scherer (2012). Comprehensive treatment of least squares from Legendre's original idea to modern computational methods.
John Stillwell (3rd ed., 2010). Places Legendre's work in context, with excellent chapters on number theory, elliptic functions, and the evolution of geometric ideas.
George Andrews, Richard Askey, Ranjan Roy (1999). The definitive reference on Legendre polynomials and their generalisations, with historical notes and modern applications.
Jay Goldman (1998). A historical introduction to number theory covering Legendre's contributions alongside those of Euler, Gauss, and Dirichlet.
Álvaro Lozano-Robledo (2011). Traces the path from Legendre's elliptic integrals to the modern theory that proved Fermat's Last Theorem.
"These discoveries of Messrs Abel and Jacobi, which go far beyond what we had foreseen, are not less glorious for their authors than they are useful for science, and they constitute a monument more lasting than bronze."
— Adrien-Marie Legendre, on the work of Abel and Jacobi (1830)Adrien-Marie Legendre • 1752–1833 • The diligent architect whose polynomials, least squares, and number theory underpin modern science.