Legendre Polynomials

Legendre polynomials are an infinite family of orthogonal polynomials on , with of degree . Key result: they form a complete orthogonal basis for and are the polynomial eigenfunctions of the Legendre differential operator. Where they apply: solving Laplace's equation in spherical coordinates, multipole expansions, Gaussian quadrature, and approximation theory. Who/when: introduced by Adrien-Marie Legendre in 1782–1785 in studies of gravitational potential.

The Legendre polynomials are the sequence obtained by orthogonalizing the monomials with respect to the uniform weight on , normalized so that . They arise naturally as the bounded solutions of Legendre's differential equation, which itself emerges when separating variables in Laplace's equation in spherical coordinates. They matter because they are the canonical tool for expanding functions on a sphere or interval, for computing electrostatic and gravitational potentials, and for designing optimal numerical integration rules. A surprising fact: although defined purely algebraically, they encode the angular structure of the inverse-distance kernel exactly — they are literally the coefficients in the Taylor expansion of that physically fundamental quantity.

The Core Insight

A single generating "seed" — the inverse-distance function — encodes the entire family. Expanding it as a power series in produces the as coefficients. Everything else (orthogonality, recurrences, the ODE, the values at ) follows from manipulating this one expression. The deeper unifying theme is orthogonality with respect to the uniform weight on : the Legendre polynomials are the answer to "what is the natural orthogonal polynomial basis for the interval?"

Formal Statement

Legendre Polynomials via Rodrigues' Formula

The -th Legendre polynomial is defined by Rodrigues' formula:

1
⟳ is a degree- polynomial whose -th derivative is degree ; the prefactor fixes the normalization .

Here is the variable (often in physical applications), is the degree, and is a polynomial of exactly degree . The first few are:

2
⟳apply [1] for each , or use the recurrence [7] starting from .

Legendre's Differential Equation

The are the polynomial solutions of the second-order linear ODE

3

equivalently .

⟳substitute from Rodrigues' formula and differentiate, or derive from separation of variables in Laplace's equation where is the separation constant.

This is a Sturm–Liouville problem with weight , eigenvalue , and natural boundary conditions of boundedness at (regular singular points).

Orthogonality and Norm

On the Legendre polynomials satisfy

4

where is the Kronecker delta.

⟳orthogonality (the case) follows from the Sturm–Liouville structure of [3]; the norm follows from integrating Rodrigues' formula by parts times.

Generating Function

For and ,

5
⟳this is the multipole expansion of with , ; expand the square root as a binomial/Taylor series in and collect powers.

Completeness / Legendre Series

Every has a convergent (in norm) expansion

6
⟳project onto each using orthogonality [4]; the coefficient formula inverts to give . Completeness follows from the Stone–Weierstrass theorem (polynomials are dense).

Three-Term Recurrence

The polynomials satisfy

7

with , .

⟳differentiate the generating function [5] with respect to , multiply by , and equate coefficients of .

Why It Holds / Derivation

Orthogonality from the Sturm–Liouville Form

Step 1. Write Legendre's equation [3] in self-adjoint form: . Step 2. Multiply the equation for by and the equation for by :
Step 3. Subtract and integrate over . The left side is a total derivative:
Step 4. The boundary term vanishes because at . Hence
Step 5. For the bracket , forcing the integral to be zero. This proves the structure in [4].

Norm via Rodrigues' Formula

Step 1. Using [1], . Step 2. Integrate by parts times. Each boundary term vanishes because and its first derivatives are zero at . This yields
Step 3. The -th derivative of the degree- polynomial is the constant . Step 4. Thus the integral becomes . Step 5. Using (a Beta-function integral), everything cancels to give , confirming [4].

Adrien-Marie Legendre | 1752–1833

Legendre was a French mathematician who introduced these polynomials in 1782 while computing the gravitational attraction of spheroids ("Recherches sur l'attraction des sphéroïdes homogènes"). He recognized that the inverse-distance kernel could be expanded in a series whose coefficients are functions of the angle between two position vectors — these "Legendre coefficients" later bore his name. He also made foundational contributions to number theory (the law of quadratic reciprocity), elliptic integrals (the Legendre forms), and the method of least squares. Famously, the only authenticated portrait of him is a caricature, long mistaken for a different Legendre.

Building Intuition

Think of the monomials as a set of "directions" in function space that are not perpendicular — they overlap a lot (e.g. ). The Legendre polynomials are exactly what you get by running Gram–Schmidt orthogonalization on the monomials using the inner product . So is "the part of that is perpendicular to all lower-degree polynomials." Geometrically, expanding a function in Legendre series is like finding its coordinates along mutually perpendicular axes — and because the axes are orthogonal, each coordinate is computed independently, with no interference. The oscillation count grows with : has exactly real roots, all inside , so higher-degree terms capture finer wiggles of , exactly like Fourier modes capture higher frequencies.

:::svg[The first four Legendre polynomials on [-1,1]. Note all pass through (1,1) and that P_n has exactly n roots in (-1,1).] -1 1 y=1 P0 P1 P2 P3 x

Worked Examples

Expanding f(x) = x² in Legendre Polynomials

Given: on . Express it as . Step 1. Since is degree 2, only can appear. Write . Step 2. Use the closed forms: , , . Solve for :
Step 3. Verify with the projection formula [6]. For : ✓ Step 4. And by odd-symmetry, . ✓
(dimensionless coefficients)

Electrostatic Potential via Multipole Expansion

Given: A point charge sits on the -axis at distance from the origin. Find the potential at a field point at radius , angle from the -axis, keeping the dipole term. Step 1. The exact potential is . With , factor out and set , . Step 2. By the generating function [5]:
Step 3. Compute terms with :
  • : , term .
  • : , term .
Step 4. Sum monopole + dipole: .
(The next term, : , contributes only V, so the expansion converges quickly.)

Common Misconceptions

The normalization is NOT to unit norm. A frequent error is assuming . In fact it equals — the Legendre polynomials are orthogonal but not orthonormal. If you need an orthonormal set, use . Forgetting the factor in the coefficient formula [6] is the single most common source of wrong Legendre series. Legendre polynomials live on , not arbitrary intervals. To expand a function on you must first change variables: let to map , then apply the standard formulas. Skipping this rescaling destroys orthogonality.

One might guess that since are "nice" polynomials, the Legendre series of any continuous function converges pointwise everywhere. False. Like Fourier series, Legendre series can fail to converge pointwise at points of discontinuity or even at isolated continuous points for badly behaved functions; near a jump discontinuity they exhibit a Gibbs phenomenon with overshoot. Convergence is guaranteed in the norm (by completeness [6]), and pointwise only under additional smoothness (e.g. piecewise ). The mere fact that the basis functions are smooth polynomials does not transfer smoothness to the partial sums of a rough target.

Connections

Legendre polynomials sit at the center of a web of related ideas. They are the case of the Associated Legendre Functions, which combine with to build the Spherical Harmonics — the angular eigenfunctions on the sphere. They are a special case () of the Jacobi Polynomials and the limiting case () of the Gegenbauer Polynomials. As orthogonal polynomials they belong to the general theory of Sturm-Liouville Theory, and their roots are the optimal nodes in Gaussian Quadrature. The expansion [6] is the analogue, for the interval , of Fourier Series on a circle, both being instances of eigenfunction expansions for self-adjoint operators in Hilbert Spaces.

Real-World Applications

  1. Electrostatics & gravitation (multipole expansion): Potentials of charge/mass distributions are expanded in via [5]; the terms are the monopole, dipole, and quadrupole.
  2. Geodesy & geophysics: Earth's gravitational and magnetic fields are modeled with spherical harmonics (built from ); satellite missions like GRACE report results as Legendre/spherical-harmonic coefficients.
  3. Gaussian quadrature (Gauss–Legendre): The roots of give nodes that integrate polynomials up to degree exactly — the backbone of high-accuracy numerical integration in engineering software.
  4. Quantum mechanics: Angular parts of hydrogen-atom wavefunctions and rigid-rotor states are spherical harmonics; the orbital angular momentum eigenvalue is the of equation [3].
  5. Computer graphics & rendering: "Spherical harmonic lighting" precomputes diffuse illumination by projecting environment light onto low-order , enabling real-time global illumination.
  6. Antenna theory & acoustics: Radiation patterns and scattering from spheres are decomposed into Legendre/spherical-harmonic modes.
  7. Statistics & approximation: Legendre series provide orthogonal polynomial regression and serve as a building block for spectral methods in solving PDEs.

Historical Development

  • 1782: Adrien-Marie Legendre introduces the polynomials in his memoir on the attraction of spheroids, as coefficients in the expansion of the inverse-distance potential.
  • 1785: Legendre publishes further results, establishing key properties and the connection to gravitational potentials.
  • 1782–1799: Pierre-Simon Laplace develops spherical harmonics in the Mécanique Céleste, embedding Legendre's functions in the broader theory of harmonic analysis on the sphere.
  • 1816: Olinde Rodrigues publishes the differentiation formula [1] (now called Rodrigues' formula) in his doctoral work.
  • 1837: Charles Sturm and Joseph Liouville develop the general eigenvalue theory of second-order ODEs, retroactively explaining the orthogonality and completeness of .
  • 1814 / 1826: Gauss (1814) and later Jacobi (1826) develop Gaussian quadrature, identifying the roots of as optimal integration nodes.
  • 1875–1880s: Heine and others systematize the theory of orthogonal polynomials, placing Legendre polynomials within a general framework.
  • 1885: Edward Heine's treatise consolidates results on spherical and Legendre functions.
  • 20th century: With the rise of quantum mechanics (1920s) and digital computation (1950s onward), Legendre polynomials become indispensable in physics and numerical analysis; modern stable algorithms (e.g. via the recurrence [7]) make Gauss–Legendre quadrature routine.

Subtleties & Limits

While the theory of Legendre polynomials on is classically complete, several research-adjacent subtleties persist. (1) Efficient computation of high-order Gauss–Legendre nodes: classical Newton iteration on becomes ill-conditioned for very large ; asymptotic-expansion-based methods (Bogaert, 2014) achieving work per node are still being refined. (2) Optimal convergence rates of Legendre spectral methods for PDEs with corner singularities, and how to mitigate the Gibbs phenomenon via filtering or reprojection (e.g. Gegenbauer reconstruction). (3) Sharp Lebesgue-constant and pointwise-convergence estimates for Legendre series of functions of limited regularity remain an active topic in approximation theory. These are practical/analytical refinements rather than open foundational questions — the existence, orthogonality, and completeness are fully settled.

See Also

Associated Legendre Functions · Spherical Harmonics · Jacobi Polynomials · Gegenbauer Polynomials · Chebyshev Polynomials · Hermite Polynomials · Sturm-Liouville Theory · Gaussian Quadrature · Fourier Series · Laplace's Equation

Before this

Where this leads

  • Spherical Harmonics — Legendre polynomials are the building blocks of angular eigenfunctions on the sphere.
  • Sturm-Liouville Theory — generalizes the orthogonality/completeness to broad classes of eigenvalue problems.
  • Gaussian Quadrature — uses the roots of $P_n$ for optimal numerical integration.
  • Spectral Methods — Legendre expansions form the basis of high-accuracy PDE solvers.
  • Multipole Expansion — the generating function directly yields the multipole series in physics.