Legendre Polynomials and Associated Legendre Functions
One line: Legendre polynomials are the orthogonal polynomial solutions to Legendre's differential equation on , and the associated Legendre functions generalize them to handle the angular part of problems with azimuthal dependence. Key result: form a complete orthogonal basis for with , and the associated functions build the spherical harmonics. Where it applies: Solutions of Laplace's and Helmholtz's equations in spherical coordinates — electrostatics, gravitation, quantum mechanics (hydrogen atom), geophysics, and antenna theory. Who/when: Introduced by Adrien-Marie Legendre (1782) studying gravitational potentials; the associated functions developed through the 19th century by Ferrers, Heine, and others.The Legendre polynomials are a sequence of polynomials, one for each non-negative integer , of degree , defined on and mutually orthogonal under the uniform weight. They arise naturally whenever one separates variables in Laplace's Equation in spherical coordinates with no azimuthal () dependence. The associated Legendre functions extend this to nonzero azimuthal quantum numbers and are the polar-angle ingredients of the Spherical Harmonics. A surprising fact: although they look like specialized special functions, appear as the coefficients in the generating function — exactly the expansion of a Coulomb/Newton potential in powers of distance ratios, which is why multipole expansions exist.
The Core Insight
A self-adjoint second-order differential operator on a finite interval, with the right boundary behavior, produces a complete orthogonal family of eigenfunctions. For the angular Laplacian on the sphere, that operator is the Legendre operator, its eigenfunctions are the Legendre polynomials (when ) and associated Legendre functions (when ), and their eigenvalues encode angular momentum. Everything else — Rodrigues' formula, recurrences, generating functions, orthogonality — flows from this one Sturm–Liouville structure.
Formal Statement
Legendre's Differential Equation
Legendre's equation is the second-order linear ODEHere is the independent variable (typically ), the unknown function, and the degree (a real parameter; bounded polynomial solutions exist only for ). When is a non-negative integer, the polynomial solution normalized so that is the Legendre polynomial .
Rodrigues' Formula
The Legendre polynomials are given explicitly by
The first few are , , , , .
Generating Function
The generating function packs all Legendre polynomials into one expansion:
Associated Legendre Functions
For integers , the associated Legendre functions are
with the factor being the Condon–Shortley phase (conventions vary). They satisfy the associated Legendre equation
Note , and for .
Orthogonality and Completeness
The Legendre polynomials are orthogonal on :
The associated functions obey, for fixed ,
Both families are complete in (for fixed in the associated case), so any square-integrable function admits a convergent Legendre series with .
Why It Holds / Derivation
Orthogonality via Sturm–Liouville
Step 1. Cast Legendre's equation into self-adjoint form. Multiplying Eq. [1] is unnecessary; it is already exact:Rodrigues' Formula Solves Legendre's Equation
Step 1. Let . Then , so . Step 2. Differentiate exactly times using the Leibniz rule. Each side produces a chain of terms; collecting them yieldsAdrien-Marie Legendre | 1752–1833
A French mathematician whose name attaches to an extraordinary range of results — least squares, elliptic integrals, the prime-counting conjecture, and these polynomials. In 1782 he introduced what he called fonctions de Legendre (later named coefficients) while studying the Newtonian gravitational attraction of spheroids — exactly the multipole problem encoded in Eq. [3]. Legendre worked partly in the shadow of Laplace, who extended the angular theory to the full sphere (Laplace's coefficients, now Spherical Harmonics). A famous portrait long thought to be Legendre was discovered in 2005 to depict a different man; the only authentic likeness is a 1820 caricature.
Building Intuition
Think of as the range of as sweeps a sphere from north pole to south pole. Legendre polynomials are the natural "harmonics" of that one-dimensional interval, just as are the harmonics of a vibrating string. is constant (a uniform sphere), is a dipole pattern (top vs. bottom), is a quadrupole (squashing/stretching), and higher pack more zeros — exactly of them inside — meaning finer angular oscillation.
The index in the associated functions counts oscillations around the equator (azimuthal wiggles), which is why enters only when the problem depends on . The factor in Eq. [4] forces these functions to vanish at the poles when — physically, a pattern with azimuthal structure cannot have a well-defined value exactly on the rotation axis.
The generating function [3] is the deepest intuition: it is the statement that the inverse distance between two points expands cleanly in the ratio of their radii. Multipole expansions in physics are not a trick layered on top — they are the Legendre generating function in disguise.
:::svg[The first four Legendre polynomials on , showing increasing numbers of interior zeros]
Worked Examples
Legendre Series of a Step Potential
Given: Expand (a hemispherical sign function) in Legendre polynomials. Step 1 — coefficient formula. . Since is odd, only odd survive. Step 2 — exploit symmetry. For odd , is even, soMultipole Expansion of a Potential
Given: Two point charges at and at (a physical dipole). Find the potential at a field point with , in SI units. Step 1 — exact potential. . Step 2 — apply the generating function. With and (for ) or (for ),Common Misconceptions
The two parameters are not interchangeable. In , the degree (often written in physics) and the order play distinct roles: sets the eigenvalue and total angular structure; sets azimuthal oscillation and must satisfy . Writing with gives identically zero, not an error to "fix." The Condon–Shortley phase is a convention, not a theorem. Different textbooks (and software like older versions of Mathematica vs. SciPy) include or omit it, and may also fold it into the spherical harmonics instead. Always check which convention a formula assumes before combining results. "Associated Legendre functions are polynomials" — false for odd . The factor is a polynomial only when is even; for odd it contains , so is not a polynomial in (though it is a nice function of ).One might guess that every solution of Legendre's equation [1] is a polynomial. It is not. For integer , the equation has a second, linearly independent solution — the Legendre function of the second kind — which is singular at . For example,
Connections
Legendre polynomials are the special case of the Jacobi Polynomials and the case of the Gegenbauer Polynomials, placing them in the broad family of Classical Orthogonal Polynomials. Their defining ODE is one instance of the Sturm-Liouville Theory framework, which guarantees the orthogonality and completeness used throughout. Multiplying by produces the Spherical Harmonics , the angular eigenfunctions of the Laplace's Equation operator on the sphere and of the quantum Angular Momentum operator . The generating function [3] is the engine of the Multipole Expansion in electromagnetism and gravitation, and the recurrence relations connect to the theory of Three-Term Recurrence Relations satisfied by all orthogonal polynomials.
Real-World Applications
- Electrostatic & gravitational multipoles. Expanding via Eq. [3] yields the monopole/dipole/quadrupole series used to characterize charge distributions, molecular interactions, and planetary gravity fields.
- Hydrogen atom (quantum mechanics). The angular wavefunctions are spherical harmonics built from ; and are the orbital and magnetic quantum numbers labeling s, p, d, f orbitals.
- Geodesy & geomagnetism. Earth's gravity field (the geoid) and magnetic field are tabulated as spherical harmonic coefficients — directly the associated Legendre expansion — in models like EGM2008 and IGRF.
- Gauss–Legendre quadrature. The roots of are the optimal sampling nodes for numerical integration, exactly integrating polynomials up to degree .
- Antenna radiation patterns. Far-field angular distributions of spherical and conical antennas are expanded in Legendre/associated Legendre functions.
- Computer graphics — precomputed radiance transfer. Real-time global illumination encodes lighting environments in low-order spherical-harmonic (Legendre-based) coefficients.
- Heat conduction & diffusion in spheres. Steady-state temperature in a ball with prescribed surface temperature is a Legendre series in .
Historical Development
- 1782 — Adrien-Marie Legendre introduces the polynomials studying the gravitational attraction of spheroids; he calls them coefficients.
- 1785 — Pierre-Simon Laplace develops the full theory of "Laplace coefficients" (spherical harmonics) for the same potential problems, generalizing to azimuthal dependence.
- 1816 — Olinde Rodrigues publishes the differentiation formula now bearing his name (Eq. [2]), though it circulated and was rediscovered by others.
- 1837 — Heine and contemporaries systematize the associated Legendre functions and the function of the second kind .
- 1877 — N.M. Ferrers gives the associated functions in the modern form used on (Ferrers functions).
- 1875–1894 — E.W. Hobson's work culminates in his treatise The Theory of Spherical and Ellipsoidal Harmonics (1931), the definitive 19th-century synthesis.
- 1929 — Condon and Shortley fix the phase convention in their book The Theory of Atomic Spectra, standardizing usage in physics.
- 1814–1826 — Carl Friedrich Gauss develops Gauss–Legendre quadrature, exploiting the roots of for numerical integration.
- 20th c. — Spherical harmonics built from become foundational in quantum mechanics (1920s), geophysics, and later computer graphics.