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.
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 equation is the second-order linear ODE
Derivation hint: Separate variables in in spherical coordinates; the polar-angle equation in takes this form with separation constant . Here 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 .
The Legendre polynomials are given explicitly by
Derivation hint: is a polynomial annihilated by a clever operator; differentiating times produces a degree- solution of Legendre's equation; the prefactor enforces . The first few are , , , , .
The generating function packs all Legendre polynomials into one expansion:
Derivation hint: Expand in powers of ; the binomial coefficients organize into Legendre polynomials of .
For integers , the associated Legendre functions are
Derivation hint: Substitute into the associated Legendre equation; the function satisfies the resulting ODE, recovering up to the Condon–Shortley phase . with the factor being the Condon–Shortley phase (conventions vary). They satisfy the associated Legendre equation
Derivation hint: This is the full polar equation from separating when the azimuthal solution is , contributing the term. Note , and for .
The Legendre polynomials are orthogonal on :
Derivation hint: Write Legendre's equation in Sturm–Liouville form ; subtract the equations for , integrate, and the boundary term vanishes because at the endpoints. The associated functions obey, for fixed ,
Derivation hint: Same Sturm–Liouville argument on Eq. [5] (with weight 1 since the term has no -derivative); the factorial factor comes from repeated integration by parts in Rodrigues' form. 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
Step 1. Cast Legendre's equation into self-adjoint form. Multiplying Eq. [1] is unnecessary; it is already exact:
This is a Sturm–Liouville problem with , weight , eigenvalue .
Step 2. Write the same equation for with eigenvalue . Multiply the equation by and the equation by , then subtract:
Step 3. The first two terms combine into a total derivative (Lagrange's identity):
Step 4. Integrate over . The left side equals because vanishes at both endpoints. Thus
For , , forcing the integral to vanish.
Step 5. For the normalization , use the generating function. Squaring Eq. [3] and integrating:
The left integral evaluates to . Matching powers of gives .
∎Step 1. Let . Then , so .
Step 2. Differentiate exactly times using the Leibniz rule. Each side produces a chain of terms; collecting them yields
Step 3. Let . The previous line reads
which is exactly Legendre's equation [1]. Hence — and any constant multiple — solves it.
Step 4. The prefactor normalizes so that : evaluating the highest-order contribution near gives the factor , which the prefactor cancels.
∎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
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, so
Step 3 — evaluate . Use the recurrence , giving . At both are and cancel.
Step 4 — plug in . , , so ... computing cleanly: , so .
Step 5 — next term . , so .
(dimensionless; coefficients carry the units of ).
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 ),
Step 3 — subtract. Using , even- terms cancel and odd- terms double:
Step 4 — leading () dipole term. With and dipole moment ,
The Legendre expansion automatically names the dipole, octupole, ... terms.
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,
diverges logarithmically at the poles . The physical requirement of boundedness on the whole sphere is what discards and quantizes to integers; without that boundary condition the polynomial family alone would be an incomplete answer.
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
Historical Development
Subtleties & Limits
Convergence of Legendre series at endpoints and jumps. Like Fourier series, Legendre expansions of discontinuous functions exhibit a Gibbs phenomenon near jumps — an overshoot that does not vanish as more terms are added — and convergence at is delicate, depending on the function's endpoint behavior. The precise pointwise convergence theory (Haar-type conditions, rates of decay of ) is subtle and parallels but is not identical to the trigonometric case.
Non-integer and complex degree. For non-integer , Eq. [1] has no polynomial solution; the bounded-on-the-sphere requirement is what quantizes . The general Legendre functions of complex degree and order are full-fledged hypergeometric special functions, with branch cuts and analytic-continuation issues that go well beyond the polynomial story — important in scattering theory and the Regge-pole formalism of high-energy physics.
Numerical stability at high order. The factorial factors in normalization (Eq. [7]) overflow rapidly; high-degree geomagnetic and gravity models (degree > 2000) require carefully designed recursive, normalized algorithms to evaluate without loss of precision — an active engineering concern.
See Also
Spherical Harmonics · Sturm-Liouville Theory · Bessel Functions · Jacobi Polynomials · Multipole Expansion · Gaussian Quadrature · Laplace's Equation · Gegenbauer Polynomials