Legendre Polynomials

Legendre polynomials are what the angular half of a spherically symmetric problem is made of. Separate the Laplacian in spherical coordinates, drop any azimuthal (ϕ\phi) dependence, and set x=cos⁡θx=\cos\theta: the polar equation collapses to ddx ⁣[(1−x2)dydx]+λy=0\frac{\mathrm{d}}{\mathrm{d}x}\!\big[(1-x^2)\frac{\mathrm{d}y}{\mathrm{d}x}\big]+\lambda y=0. Insist that the solution stay finite at the poles x=±1x=\pm1 — a physical demand, since the potential there is finite — and the separation constant is forced to the ladder λ=ℓ(ℓ+1)\lambda=\ell(\ell+1), ℓ=0,1,2,…\ell=0,1,2,\dots. The regular solution is the polynomial Pℓ(x)P_\ell(x); its companion Qℓ(x)Q_\ell(x) blows up logarithmically at the endpoints and is exiled from the interior of any sphere. Three faces of the same object organize everything that follows. As a Sturm–Liouville eigenfunction on [−1,1][-1,1] with weight unity, PℓP_\ell is automatically orthogonal to its siblings and the family is complete — any square-integrable function has a convergent Legendre series. As a Rodrigues derivative it is a compact closed form, Pℓ=12ℓℓ!dℓdxℓ(x2−1)ℓP_\ell=\frac{1}{2^\ell\ell!}\frac{\mathrm{d}^\ell}{\mathrm{d}x^\ell}(x^2-1)^\ell, ideal for proofs. And as the generating-function coefficient of (1−2xt+t2)−1/2(1-2xt+t^2)^{-1/2} it is no abstract machinery: that function is literally the inverse-distance kernel 1/∣r−r′∣1/|\mathbf r-\mathbf r'| of Newton and Coulomb, so every Legendre index is a multipole order and every axisymmetric potential is a Legendre series. From this hub the theory branches: restore azimuthal dependence and PℓP_\ell is promoted to the associated Legendre functions PℓmP_\ell^m, which dressed with eimϕe^{im\phi} become the spherical harmonics YℓmY_\ell^m; follow the radial coordinate and the same separation delivers the spherical Bessel functions. Legendre is the hub.

Key takeaways
  • The Legendre polynomials Pℓ(x)P_\ell(x) are the polynomial solutions of (1−x2)y′′−2xy′+ℓ(ℓ+1)y=0(1-x^2)y''-2xy'+\ell(\ell+1)y=0 on [−1,1][-1,1] that stay finite at the poles x=±1x=\pm1; regularity is what quantises the eigenvalue to ℓ(ℓ+1)\ell(\ell+1).
  • They form a complete orthogonal set with weight w(x)=1w(x)=1: ∫−11PℓPm dx=22ℓ+1δℓm\int_{-1}^{1}P_\ell P_m\,\mathrm{d}x=\frac{2}{2\ell+1}\delta_{\ell m}, normalised by Pℓ(1)=1P_\ell(1)=1.
  • The generating function (1−2xt+t2)−1/2=∑ℓPℓ(x)tℓ(1-2xt+t^2)^{-1/2}=\sum_\ell P_\ell(x)t^\ell is the Coulomb/Newton kernel 1/∣r−r′∣1/|\mathbf r-\mathbf r'|, so PℓP_\ell is the angular pattern of the ℓ\ell-th multipole.
  • Two closed forms: Rodrigues Pℓ=12ℓℓ!dℓdxℓ(x2−1)ℓP_\ell=\frac{1}{2^\ell\ell!}\frac{\mathrm{d}^\ell}{\mathrm{d}x^\ell}(x^2-1)^\ell, and Bonnet's recurrence (ℓ+1)Pℓ+1=(2ℓ+1)xPℓ−ℓPℓ−1(\ell+1)P_{\ell+1}=(2\ell+1)xP_\ell-\ell P_{\ell-1} for stable numerics.
  • Low orders: P0=1,  P1=x,  P2=12(3x2−1),  P3=12(5x3−3x),  P4=18(35x4−30x2+3)P_0=1,\;P_1=x,\;P_2=\tfrac12(3x^2-1),\;P_3=\tfrac12(5x^3-3x),\;P_4=\tfrac18(35x^4-30x^2+3); each PℓP_\ell has exactly ℓ\ell zeros in (−1,1)(-1,1) and parity (−1)ℓ(-1)^\ell.
  • They are the m=0m=0 spherical harmonics and the building blocks of associated Legendre functions; their zeros are the optimal Gauss–Legendre quadrature nodes.
  • Key idea: Pℓ(x)P_\ell(x) is the unique degree-ℓ\ell polynomial solution of Legendre's equation regular at x=±1x=\pm1 and normalised to Pℓ(1)=1P_\ell(1)=1 — equivalently the coefficients in (1−2xt+t2)−1/2=∑ℓPℓ(x)tℓ(1-2xt+t^2)^{-1/2}=\sum_\ell P_\ell(x)t^\ell, which is precisely the inverse-distance kernel of potential theory.

Where this lives today

The Legendre family runs inside working instruments and codes right now. Every time a routine evaluates an integral by Gauss–Legendre quadrature it uses the zeros of PnP_n as nodes — the default in finite-element solvers, spectral methods, and quantum-chemistry packages, because nn points nail polynomials up to degree 2n−12n-1. In cosmology the sky is a function on a sphere: the cosmic-microwave-background temperature map is expanded in spherical harmonics and compressed into the angular power spectrum CℓC_\ell; Planck measured it to multipole ℓ≈2500\ell\approx2500, and its acoustic peaks pin down the geometry and contents of the universe. Geodesy does the same for the Earth's gravity field — the EGM2008 geoid is a spherical-harmonic series to degree and order 2190, tens of thousands of coefficients that missions like GRACE refine. In quantum scattering, the partial-wave expansion sorts an amplitude by orbital angular momentum ℓ\ell, each channel weighted by Pℓ(cos⁡θ)P_\ell(\cos\theta), and resonances show up as bumps in a particular ℓ\ell-wave. The open frontier is high-degree stability: transforms at ℓ∼104\ell\sim10^4 demand recurrence algorithms that fight underflow and round-off — keeping Bonnet's 1850s recurrence a subject of active research.

The physical picture

Think of every function on [−1,1][-1,1] as a vector, with ∫−11fg dx\int_{-1}^1 fg\,\mathrm{d}x as its dot product. Feed the monomials 1,x,x2,…1,x,x^2,\dots through Gram–Schmidt under that inner product and rescale each so it passes through 11 at x=1x=1: out drops exactly P0,P1,P2,…P_0,P_1,P_2,\dots. They are the natural orthogonal axes for any quantity depending on cos⁡θ\cos\theta over a sphere, just as sines and cosines are on a circle. Higher ℓ\ell means finer angular structure — PℓP_\ell crosses zero exactly ℓ\ell times inside (−1,1)(-1,1), a Sturm oscillation property — so a Legendre series resolves a shape the way higher multipoles resolve a charge distribution. The first figure shows the whole family, pinned together at the right endpoint.

Figure
The five lowest Legendre polynomials P₀ through P₄ on the interval −1 to 1: every curve is pinned to Pₗ(1) = 1 at the right endpoint and to Pₗ(−1) = (−1)^ℓ at the left, while Pₗ crosses zero exactly ℓ times inside the interval — the Sturm oscillation that makes higher ℓ resolve finer angular structure
Pₗ(x) on −1 ≤ x ≤ 1 — all curves meet at Pₗ(1) = 1; Pₗ has exactly ℓ zeros inside −1 0 +1 +1 −1 x = cos θ P₀ P₁ P₂ P₃ P₄

The generating function turns this abstract basis into physics. Drop a point charge at r′\mathbf r' and read its potential at r\mathbf r; expand 1/∣r−r′∣1/|\mathbf r-\mathbf r'| in powers of t=r</r>t=r_</r_> and the angular shape of the ℓ\ell-th term is exactly Pℓ(cos⁡γ)P_\ell(\cos\gamma), with γ\gamma the opening angle between the two vectors. So P0P_0 is the monopole, P1P_1 the dipole pattern, P2P_2 the quadrupole — the Legendre index simply is the multipole order. The second figure carries a real number through it: for a source at r′=1r'=1 seen from r=2r=2 at γ=60∘\gamma=60^\circ, successive multipoles march the partial sum toward the exact kernel value.

Figure
The Coulomb kernel one-over-distance expanded in Legendre polynomials for r = 2, r′ = 1, γ = 60°: the monopole through octupole terms give partial sums 0.500, 0.625, 0.609, 0.582 that converge geometrically to the exact value 0.5774, because the ratio t = r′/r = 0.5 controls the tail
Multipole expansion of 1/|r − r′| as a Legendre series — a real convergent sum O field point r = 2 charge r′ = 1 γ = 60° separation r − r′ Σ (r_in^ℓ / r_out^ℓ⁺¹) Pₗ(cos γ), t = 0.5 ℓ = 0 (monopole): 0.500 ℓ ≤ 1 (dipole): 0.625 ℓ ≤ 2 (quadrupole): 0.609 ℓ ≤ 3 (octupole): 0.582 exact 1/|r − r′| = 0.5774

Two further symmetries earn their keep. Each PℓP_\ell has definite parity (−1)ℓ(-1)^\ell, so even-ℓ\ell terms carry the part of a function symmetric about x=0x=0 and odd-ℓ\ell the antisymmetric part — halving the work when a source has reflection symmetry. And the exact endpoint values Pℓ(1)=1P_\ell(1)=1, Pℓ(−1)=(−1)ℓP_\ell(-1)=(-1)^\ell make the poles the cleanest places to fix boundary coefficients.

The core equations

Everything begins with the eigenvalue problem. Legendre's equation is the ϕ\phi-independent angular piece of ∇2Φ=0\nabla^2\Phi=0 after x=cos⁡θx=\cos\theta; PℓP_\ell is its regular eigenfunction and ℓ(ℓ+1)\ell(\ell+1) its eigenvalue.

(1−x2)d2Pℓdx2−2xdPℓdx+ℓ(ℓ+1)Pℓ=0(1)(1-x^2)\frac{\mathrm{d}^2 P_\ell}{\mathrm{d}x^2}-2x\frac{\mathrm{d}P_\ell}{\mathrm{d}x}+\ell(\ell+1)P_\ell=0 \qquad (1)

where: xx — independent variable, x=cos⁡θ∈[−1,1]x=\cos\theta\in[-1,1]; ℓ\ell — non-negative integer degree, physically the multipole order; ℓ(ℓ+1)\ell(\ell+1) — separation constant, quantised by regularity at x=±1x=\pm1. Reading it: the coefficient (1−x2)(1-x^2) vanishes at the endpoints, making x=±1x=\pm1 regular singular points — why finiteness there is a real constraint. Rodrigues' formula packages the same polynomial as a single differential operation — the workhorse for explicit expressions and orthogonality proofs.

Pℓ(x)=12ℓ ℓ!dℓdxℓ(x2−1)ℓ(2)P_\ell(x)=\frac{1}{2^\ell\,\ell!}\frac{\mathrm{d}^\ell}{\mathrm{d}x^\ell}\big(x^2-1\big)^\ell \qquad (2)

where: dℓ/dxℓ\mathrm{d}^\ell/\mathrm{d}x^\ell — ℓ\ell-fold ordinary derivative; 2ℓℓ!2^\ell\ell! — normalisation constant fixed so that Pℓ(1)=1P_\ell(1)=1. Reading it: differentiating a degree-2ℓ2\ell polynomial ℓ\ell times leaves degree ℓ\ell. The generating function is the identity that makes Legendre polynomials physical rather than merely orthogonal — expanding its algebraic left side in tt produces the whole family as coefficients.

g(x,t)=(1−2xt+t2)−1/2=∑ℓ=0∞Pℓ(x) tℓ,∣t∣<1(3)g(x,t)=\big(1-2xt+t^2\big)^{-1/2}=\sum_{\ell=0}^{\infty}P_\ell(x)\,t^\ell,\qquad |t|<1 \qquad (3)

where: tt — expansion parameter, physically r</r>r_</r_>; x=cos⁡γx=\cos\gamma — cosine of the angle between field and source points. Reading it: the bracket is ∣r−r′∣2/r>2|\mathbf r-\mathbf r'|^2/r_>^2, so gg is the inverse-distance kernel — every statement about PℓP_\ell is one about a potential. Bonnet's three-term recurrence connects neighbouring degrees and is the numerically stable way to evaluate PℓP_\ell (upward recursion, well-conditioned for ∣x∣≤1|x|\le1).

(ℓ+1)Pℓ+1(x)=(2ℓ+1) x Pℓ(x)−ℓ Pℓ−1(x)(4)(\ell+1)P_{\ell+1}(x)=(2\ell+1)\,x\,P_\ell(x)-\ell\,P_{\ell-1}(x) \qquad (4)

where: Pℓ±1P_{\ell\pm1} — neighbouring-degree polynomials; start from P0=1P_0=1, P1=xP_1=x. Reading it: ℓ=1\ell=1 gives 2P2=3x2−12P_2=3x^2-1, i.e. P2=12(3x2−1)P_2=\tfrac12(3x^2-1) — the recurrence builds the table. Orthogonality with weight unity, plus the explicit norm, make the family a genuine basis.

∫−11Pℓ(x)Pm(x) dx=22ℓ+1 δℓm(5)\int_{-1}^{1}P_\ell(x)P_m(x)\,\mathrm{d}x=\frac{2}{2\ell+1}\,\delta_{\ell m} \qquad (5)

where: δℓm\delta_{\ell m} — Kronecker delta; 2/(2ℓ+1)2/(2\ell+1) — the squared L2L^2 norm of PℓP_\ell on [−1,1][-1,1]. Reading it: distinct degrees are orthogonal; the norm shrinks like 1/ℓ1/\ell. Completeness turns orthogonality into an expansion: any square-integrable function is a Legendre series, coefficients read off by projection.

f(x)=∑ℓ=0∞cℓPℓ(x),cℓ=2ℓ+12∫−11f(x)Pℓ(x) dx(6)f(x)=\sum_{\ell=0}^{\infty}c_\ell P_\ell(x),\qquad c_\ell=\frac{2\ell+1}{2}\int_{-1}^{1}f(x)P_\ell(x)\,\mathrm{d}x \qquad (6)

where: ff — any function with ∫−11f2 dx<∞\int_{-1}^1 f^2\,\mathrm{d}x<\infty; cℓc_\ell — coefficient, from projecting ff onto PℓP_\ell and dividing by the norm. Reading it: the factor (2ℓ+1)/2(2\ell+1)/2 is the reciprocal norm from equation (5). The multipole expansion is the generating function in physical variables — the single most used consequence of the theory.

1∣r−r′∣=∑ℓ=0∞r< ℓr> ℓ+1 Pℓ(cos⁡γ)(7)\frac{1}{|\mathbf r-\mathbf r'|}=\sum_{\ell=0}^{\infty}\frac{r_<^{\,\ell}}{r_>^{\,\ell+1}}\,P_\ell(\cos\gamma) \qquad (7)

where: r<, r>r_<,\,r_> — the smaller and larger of ∣r∣,∣r′∣|\mathbf r|,|\mathbf r'|; γ\gamma — angle between r\mathbf r and r′\mathbf r'. Reading it: convergence is set by t=r</r><1t=r_</r_><1, so the series converges geometrically away from r=r′\mathbf r=\mathbf r'. Finally a derivative recurrence, useful for quadrature weights and term-by-term integration of a series.

(2ℓ+1)Pℓ(x)=Pℓ+1′(x)−Pℓ−1′(x)(8)(2\ell+1)P_\ell(x)=P_{\ell+1}'(x)-P_{\ell-1}'(x) \qquad (8)

where: Pℓ′P_\ell' — first derivative with respect to xx. Reading it: integrating over [−1,1][-1,1] collapses the right side to boundary terms — the trick behind many Legendre integrals.

Derivation AFrom regularity at the poles to the quantised eigenvalue

The goal is to show why the eigenvalue is locked to the ladder ℓ(ℓ+1)\ell(\ell+1) and why the eigenfunction is a polynomial rather than an infinite series. We insert a power series into equation (1), read off the two-step recurrence it forces on the coefficients, examine how the series behaves as x→±1x\to\pm1, and find that finiteness at the poles — a physical demand on a potential — can only be met if the series chops off. That truncation both quantises the eigenvalue and makes the solution a polynomial of definite degree.

Step 1. Seek y=∑n≥0anxny=\sum_{n\ge0}a_n x^n and substitute into (1−x2)y′′−2xy′+λy=0(1-x^2)y''-2xy'+\lambda y=0. Matching the coefficient of xnx^n gives the two-step recurrence an+2=n(n+1)−λ(n+1)(n+2) ana_{n+2}=\dfrac{n(n+1)-\lambda}{(n+1)(n+2)}\,a_n, which links even coefficients among themselves and odd among themselves. Why: the equation has even symmetry, so the even and odd series are independent solutions — exactly the two families we expect from a second-order ODE.

Step 2. Examine the tail. For large nn, an+2/an→1a_{n+2}/a_n\to1, so the series behaves like ∑x2k∼(1−x2)−1\sum x^{2k}\sim(1-x^2)^{-1}, diverging as x→±1x\to\pm1. A potential that blows up at the poles is unphysical, so a generic λ\lambda is not allowed. Why: the endpoints x=±1x=\pm1 are the poles of the sphere, ordinary points of space where the field must stay finite.

Step 3. The only escape is termination: if n(n+1)−λn(n+1)-\lambda vanishes at some n=ℓn=\ell, then aℓ+2=0a_{\ell+2}=0 and the series stops at a polynomial of degree ℓ\ell. That requires λ=ℓ(ℓ+1)\lambda=\ell(\ell+1) with ℓ\ell a non-negative integer, and the companion series is killed by zeroing its seed. Why: quantisation is born here — a boundary-regularity demand, not any external postulate, selects the discrete spectrum ℓ(ℓ+1)\ell(\ell+1).

Step 4. Fix the normalisation by Pℓ(1)=1P_\ell(1)=1; the discarded second solution, continued as an infinite series, is Qℓ(x)Q_\ell(x), diverging logarithmically at x=±1x=\pm1. Why: this pins PℓP_\ell uniquely and explains why QℓQ_\ell survives only for regions that exclude the poles, such as shells. *Check: substituting P2=12(3x2−1)P_2=\tfrac12(3x^2-1) into equation (1) with ℓ=2\ell=2 gives (1−x2)(3)−2x(3x)+6⋅12(3x2−1)=3−3x2−6x2+9x2−3=0(1-x^2)(3)-2x(3x)+6\cdot\tfrac12(3x^2-1)=3-3x^2-6x^2+9x^2-3=0.*

Go deeper · Derivation B · 1 minBonnet's recurrence straight from the generating function
Derivation BBonnet's recurrence straight from the generating function

The aim is to manufacture the three-term recurrence (4) without writing down a single polynomial, using only the generating function (3). The manoeuvre is classic: differentiate g(x,t)g(x,t) with respect to tt, notice the derivative obeys a tidy first-order relation in tt, clear the denominator, and match the coefficient of a general power tℓt^\ell on the two sides. Because gg encodes the entire family at once, one differentiation yields a relation valid for all ℓ\ell — far cheaper than proving the recurrence polynomial by polynomial.

Step 1. Differentiate g=(1−2xt+t2)−1/2g=(1-2xt+t^2)^{-1/2} in tt:

∂g∂t=x−t(1−2xt+t2)3/2=x−t1−2xt+t2 g.\frac{\partial g}{\partial t}=\frac{x-t}{(1-2xt+t^2)^{3/2}}=\frac{x-t}{1-2xt+t^2}\,g.

Hence (1−2xt+t2) ∂tg=(x−t) g(1-2xt+t^2)\,\partial_t g=(x-t)\,g. Why: this replaces the awkward 3/23/2 power with the original gg, giving an exact first-order relation between gg and its tt-derivative that the series must inherit.

Step 2. Insert the series g=∑ℓPℓtℓg=\sum_\ell P_\ell t^\ell and ∂tg=∑ℓℓPℓtℓ−1\partial_t g=\sum_\ell \ell P_\ell t^{\ell-1}:

(1−2xt+t2)∑ℓℓPℓtℓ−1=(x−t)∑ℓPℓtℓ.(1-2xt+t^2)\sum_\ell \ell P_\ell t^{\ell-1}=(x-t)\sum_\ell P_\ell t^\ell.

Why: turning the functional relation into a statement about coefficients is what converts calculus into an algebraic recurrence.

Step 3. Collect the coefficient of tℓt^\ell: the left side gives (ℓ+1)Pℓ+1−2xℓPℓ+(ℓ−1)Pℓ−1(\ell+1)P_{\ell+1}-2x\ell P_\ell+(\ell-1)P_{\ell-1}, the right side xPℓ−Pℓ−1xP_\ell-P_{\ell-1}. Equate and simplify to

(ℓ+1)Pℓ+1=(2ℓ+1) x Pℓ−ℓ Pℓ−1.(\ell+1)P_{\ell+1}=(2\ell+1)\,x\,P_\ell-\ell\,P_{\ell-1}.

Why: matching one power of tt delivers Bonnet's recurrence in a line, valid for every ℓ≥1\ell\ge1.

Step 4. Seed with g=1+xt+O(t2)g=1+xt+O(t^2), giving P0=1P_0=1, P1=xP_1=x, and crank: ℓ=1\ell=1 yields P2=12(3x2−1)P_2=\tfrac12(3x^2-1), then P3=12(5x3−3x)P_3=\tfrac12(5x^3-3x), then P4=18(35x4−30x2+3)P_4=\tfrac18(35x^4-30x^2+3). Why: the recurrence plus two seeds reproduces the entire table and is the stable algorithm used in practice. *As a consistency check: upward recursion from P0=1,P1=xP_0=1,P_1=x reproduces P2,P3,P4P_2,P_3,P_4 exactly, and Pℓ(1)=1P_\ell(1)=1 at every step since (ℓ+1)⋅1=(2ℓ+1)⋅1−ℓ⋅1(\ell+1)\cdot1=(2\ell+1)\cdot1-\ell\cdot1.*

Go deeper · Derivation C · 1 minOrthogonality and the norm 2 over (2ℓ+1)
Derivation COrthogonality and the norm 2 over (2ℓ+1)

The target is the full orthonormality statement (5): distinct Legendre polynomials are orthogonal on [−1,1][-1,1], and the squared norm of PℓP_\ell is 2/(2ℓ+1)2/(2\ell+1). Orthogonality follows from the self-adjoint (Sturm–Liouville) structure, with the boundary term killed by the same factor (1−x2)(1-x^2) that vanishes at the poles. The norm is then extracted by a slick integral: square g(x,t)g(x,t), integrate over xx, keep only the diagonal by orthogonality, and recognise the elementary left-hand integral as a logarithmic series in tt whose coefficients read off the norm.

Step 1. Write equation (1) in self-adjoint form, ddx[(1−x2)Pℓ′]+ℓ(ℓ+1)Pℓ=0\frac{\mathrm{d}}{\mathrm{d}x}[(1-x^2)P_\ell']+\ell(\ell+1)P_\ell=0, i.e. ddx[p y′]+λw y=0\frac{\mathrm{d}}{\mathrm{d}x}[p\,y']+\lambda w\,y=0 with p=1−x2p=1-x^2, weight w=1w=1. Multiply the ℓ\ell-equation by PmP_m, the mm-equation by PℓP_\ell, and subtract to get a total derivative:

ddx ⁣[(1−x2)(PℓPm′−PmPℓ′)]=[ℓ(ℓ+1)−m(m+1)]PℓPm.\frac{\mathrm{d}}{\mathrm{d}x}\!\big[(1-x^2)(P_\ell P_m'-P_m P_\ell')\big]=\big[\ell(\ell+1)-m(m+1)\big]P_\ell P_m.

Why: the self-adjoint form is what makes the left side an exact derivative, so integrating it will only leave boundary data.

Step 2. Integrate over [−1,1][-1,1]. The boundary term carries the factor p=1−x2p=1-x^2, which is zero at both x=±1x=\pm1, so it vanishes and

[ℓ(ℓ+1)−m(m+1)]∫−11PℓPm dx=0.\big[\ell(\ell+1)-m(m+1)\big]\int_{-1}^{1}P_\ell P_m\,\mathrm{d}x=0.

For ℓ≠m\ell\neq m the bracket is nonzero, forcing ∫−11PℓPm dx=0\int_{-1}^1 P_\ell P_m\,\mathrm{d}x=0. Why: orthogonality is a free gift of the endpoints being the singular points p(±1)=0p(\pm1)=0 — no integration by parts survives.

Step 3. For the norm, square the generating function and integrate:

∫−11g(x,t)2 dx=∫−11dx1−2xt+t2=∑ℓ,mtℓ+m∫−11PℓPm dx=∑ℓt2ℓ ⁣∫−11Pℓ2 dx,\int_{-1}^{1}g(x,t)^2\,\mathrm{d}x=\int_{-1}^{1}\frac{\mathrm{d}x}{1-2xt+t^2}=\sum_{\ell,m}t^{\ell+m}\int_{-1}^{1}P_\ell P_m\,\mathrm{d}x=\sum_{\ell}t^{2\ell}\!\int_{-1}^{1}P_\ell^2\,\mathrm{d}x,

the last step using the orthogonality just proved. Why: squaring generates every cross term, but orthogonality annihilates all but the diagonal, leaving a clean sum over the norms alone.

Step 4. Do the elementary integral: ∫−11dx1−2xt+t2=12tln⁡1+t1−t=∑ℓ≥022ℓ+1t2ℓ\int_{-1}^1\frac{\mathrm{d}x}{1-2xt+t^2}=\frac{1}{2t}\ln\frac{1+t}{1-t}=\sum_{\ell\ge0}\frac{2}{2\ell+1}t^{2\ell}. Matching the coefficient of t2ℓt^{2\ell} against Step 3 gives

∫−11Pℓ2(x) dx=22ℓ+1.\int_{-1}^{1}P_\ell^2(x)\,\mathrm{d}x=\frac{2}{2\ell+1}.

Why: the entire norm sequence drops out of one logarithmic expansion — no polynomial is integrated directly. *As a concrete check: the series 12ln⁡1+t1−t=∑ℓt2ℓ+1/(2ℓ+1)\tfrac12\ln\frac{1+t}{1-t}=\sum_\ell t^{2\ell+1}/(2\ell+1) is standard, and direct integration gives ∫−11P22 dx=∫−1114(3x2−1)2dx=2/5=2/(2⋅2+1)\int_{-1}^1 P_2^2\,\mathrm{d}x=\int_{-1}^1\tfrac14(3x^2-1)^2\mathrm{d}x=2/5=2/(2\cdot2+1).*

Limiting cases

CaseResultMeaning
Endpoint valuesPℓ(1)=1,  Pℓ(−1)=(−1)ℓP_\ell(1)=1,\ \ P_\ell(-1)=(-1)^\ellFixes the normalisation; read straight off gg at x=±1x=\pm1, where (1∓t)−1=∑tℓ(±1)ℓ(1\mp t)^{-1}=\sum t^\ell(\pm1)^\ell.
Value at the originP2k(0)=(−1)k(2k)!22k(k!)2,  P2k+1(0)=0P_{2k}(0)=\dfrac{(-1)^k(2k)!}{2^{2k}(k!)^2},\ \ P_{2k+1}(0)=0Odd polynomials vanish at x=0x=0 by parity; even ones give 1,−12,38,…1,-\tfrac12,\tfrac38,\dots (so P2(0)=−12P_2(0)=-\tfrac12, P4(0)=38P_4(0)=\tfrac38).
Large-ℓ\ell (Laplace–Heine)Pℓ(cos⁡θ)∼2πℓsin⁡θ cos⁡ ⁣[(ℓ+12)θ−π4]P_\ell(\cos\theta)\sim\sqrt{\dfrac{2}{\pi\ell\sin\theta}}\,\cos\!\big[(\ell+\tfrac12)\theta-\tfrac{\pi}{4}\big]For fixed θ∈(0,π)\theta\in(0,\pi) as ℓ→∞\ell\to\infty: oscillatory, amplitude ∼ℓ−1/2\sim\ell^{-1/2}, away from the poles.
Near the pole (Mehler–Heine)lim⁡ℓ→∞Pℓ ⁣(cos⁡xℓ)=J0(x)\lim_{\ell\to\infty}P_\ell\!\big(\cos\tfrac{x}{\ell}\big)=J_0(x)Zooming into the forward direction turns the polynomial into a Bessel function — the bridge from spherical to cylindrical geometry.
ParityPℓ(−x)=(−1)ℓPℓ(x)P_\ell(-x)=(-1)^\ell P_\ell(x)Even index gives an even polynomial, odd index an odd one; immediate from the t→−t, x→−xt\to-t,\,x\to-x symmetry of gg.

Worked examples

1 · Gauss–Legendre quadrature: the zeros do the integrating (confidence builder)

The two-point Gauss–Legendre rule places its nodes at the zeros of P2(x)=12(3x2−1)P_2(x)=\tfrac12(3x^2-1). Find the nodes and weights, then estimate ∫−11ex dx\int_{-1}^1 e^x\,\mathrm{d}x and compare with the exact value.

Step 1. The nodes are the roots of P2P_2: 3x2−1=0⇒x1,2=±1/3=±0.577353x^2-1=0\Rightarrow x_{1,2}=\pm1/\sqrt3=\pm0.57735. By symmetry the weights are equal, and since the rule must reproduce ∫−111 dx=2\int_{-1}^1 1\,\mathrm{d}x=2, each is w1=w2=1w_1=w_2=1. (The general formula wi=2/[(1−xi2)P2′(xi)2]w_i=2/[(1-x_i^2)P_2'(x_i)^2] with P2′=3xP_2'=3x gives wi=2/[23⋅3]=1w_i=2/[\tfrac23\cdot3]=1.)

Step 2. Apply the rule: ∫−11ex dx≈w1ex1+w2ex2=e−0.57735+e+0.57735=0.56138+1.78131=2.34270\int_{-1}^1 e^x\,\mathrm{d}x\approx w_1 e^{x_1}+w_2 e^{x_2}=e^{-0.57735}+e^{+0.57735}=0.56138+1.78131=\mathbf{2.34270}.

Step 3. Compare: the exact integral is e−e−1=2.71828−0.36788=2.35040e-e^{-1}=2.71828-0.36788=\mathbf{2.35040}, so the two-point rule lands within 0.00770.0077, a relative error of 0.33%0.33\% — from just two function evaluations. That is the payoff: with nodes at PnP_n's zeros, the nn-point rule integrates every polynomial up to degree 2n−12n-1 exactly, so it "sees" the cubic part of exe^x for free. The three-point rule (nodes 0,±3/5=±0.774600,\pm\sqrt{3/5}=\pm0.77460, weights 89,59,59\tfrac89,\tfrac59,\tfrac59) gives 2.350342.35034, cutting the error to 0.003%0.003\%. Two zeros of P2P_2 integrate exe^x to 0.33%; three zeros of P3P_3 reach 0.003%.

2 · A boundary-value problem on a sphere

A sphere of radius aa is held at surface potential V(θ)=V0cos⁡2θV(\theta)=V_0\cos^2\theta, with no charge outside. Find the potential everywhere outside the sphere.

Step 1. Azimuthal symmetry makes the exterior solution of ∇2Φ=0\nabla^2\Phi=0 a Legendre series in decaying powers: Φ(r,θ)=∑ℓAℓ r−(ℓ+1)Pℓ(cos⁡θ)\Phi(r,\theta)=\sum_\ell A_\ell\,r^{-(\ell+1)}P_\ell(\cos\theta). The task reduces to matching the boundary data — pure algebra, no integrals if we recognise the combination.

Step 2. Express the boundary data in Legendre polynomials. Since P2(cos⁡θ)=12(3cos⁡2θ−1)P_2(\cos\theta)=\tfrac12(3\cos^2\theta-1), invert: cos⁡2θ=13[2P2+1]=13P0+23P2\cos^2\theta=\tfrac13[2P_2+1]=\tfrac13 P_0+\tfrac23 P_2. So V(θ)=V0[13P0+23P2]V(\theta)=V_0[\tfrac13 P_0+\tfrac23 P_2] — only ℓ=0\ell=0 and ℓ=2\ell=2 appear, all other AℓA_\ell vanish.

Step 3. Match at r=ar=a term by term: A0a−1=13V0A_0 a^{-1}=\tfrac13 V_0 and A2a−3=23V0A_2 a^{-3}=\tfrac23 V_0, giving A0=13V0aA_0=\tfrac13 V_0 a and A2=23V0a3A_2=\tfrac23 V_0 a^3. Hence

Φ(r,θ)=V03 ar+2V03 a3r3 P2(cos⁡θ),r≥a.\Phi(r,\theta)=\frac{V_0}{3}\,\frac{a}{r}+\frac{2V_0}{3}\,\frac{a^3}{r^3}\,P_2(\cos\theta),\qquad r\ge a.

Step 4. Read the physics. The ℓ=0\ell=0 piece 13V0 a/r\tfrac13 V_0\,a/r is a monopole — the sphere carries net charge Q=4πε0⋅13V0aQ=4\pi\varepsilon_0\cdot\tfrac13 V_0 a, the angular average of the surface potential. The ℓ=2\ell=2 piece is a pure quadrupole, decaying as a3/r3a^3/r^3; there is no dipole because cos⁡2θ\cos^2\theta is even. Far away the monopole dominates; close in, the quadrupole distortion shows through. Φ=13V0(a/r)+23V0(a3/r3)P2(cos⁡θ)\Phi = \tfrac13 V_0(a/r) + \tfrac23 V_0(a^3/r^3)P_2(\cos\theta): a monopole plus a quadrupole, no dipole.

Physics of the portrait

Legendre polynomials are where three enterprises — the shape of the Earth, the stability of the solar system, and the theory of orthogonal functions — turned out to be the same mathematics. The man whose name they carry met them while asking a concrete question about gravity.

Origins · 1 minAdrien-Marie Legendre and how this was discovered
AL
Adrien-Marie Legendre
1752–1833 · potential theory and celestial mechanics

Adrien-Marie Legendre introduced the polynomials that bear his name in a 1782 memoir on the gravitational attraction of spheroids — the practical problem of computing the pull of a slightly flattened, spinning body like the Earth. Expanding the Newtonian potential 1/∣r−r′∣1/|\mathbf r-\mathbf r'| in powers of the distance ratio, he found the coefficients were a new family of polynomials in cos⁡γ\cos\gamma, and proved their orthogonality and recurrence long before anyone spoke of Sturm–Liouville theory. Pierre-Simon Laplace, working the same celestial mechanics, immediately deployed them (and their ϕ\phi-dependent cousins, the spherical harmonics) against planetary perturbations, so that for decades they were known simply as the "coefficients of Laplace." Legendre was one of the great systematisers of eighteenth-century analysis — elliptic integrals, the method of least squares (1805, sparking a bitter priority dispute with Gauss), number theory — yet it is these harmonics of the sphere that keep his name in daily use. The closed differential form came later from Olinde Rodrigues (1816) and the three-term recurrence from Ossian Bonnet; but the object, and the instinct that a potential is best organised by its multipoles, are Legendre's.

History
1782
— Legendre introduces the polynomials in his memoir on the attraction of spheroids
1785
— Laplace extends them to the full spherical harmonics in his lunar and planetary theory
1816
— Olinde Rodrigues publishes the differential-operator (Rodrigues) formula for Pₗ
1861
— Heine's Handbuch der Kugelfunctionen systematises the theory of Legendre and spherical functions
1885
— Stieltjes proves that the zeros of Pₗ are the equilibrium positions of charges in a logarithmic potential

Going further

Texts. Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 15 (Legendre functions) · Hassani, Mathematical Physics, Ch. on classical orthogonal polynomials and Sturm–Liouville theory · Stone & Goldbart, Mathematics for Physics, Sturm–Liouville and special-function chapters · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 5–6 · Jackson, Classical Electrodynamics, 3rd ed., Ch. 3 (multipole expansion) · Abramowitz & Stegun, Handbook of Mathematical Functions, Ch. 8 (tables and asymptotics). All key results can be checked numerically: Bonnet's recurrence and Rodrigues' formula reproduce P0P_0–P4P_4; the norm 2/(2ℓ+1)2/(2\ell+1) is confirmed by the squared-generating-function argument and by direct integration of P22P_2^2; the two- and three-point Gauss–Legendre estimates of ∫−11ex dx\int_{-1}^1 e^x\,\mathrm{d}x are 2.342702.34270 and 2.350342.35034 against the exact value 2.350402.35040; the multipole partial sums for r=2,r′=1,γ=60∘r=2,r'=1,\gamma=60^\circ march as 0.500,0.625,0.609,0.582→0.57740.500,0.625,0.609,0.582\to0.5774; and the decomposition cos⁡2θ=13P0+23P2\cos^2\theta=\tfrac13P_0+\tfrac23P_2 holds exactly. Laplace–Heine and Mehler–Heine asymptotics are treated in Abramowitz & Stegun Ch. 8.

Prerequisites. Orthogonal Polynomials: General Theory · Generating Functions for Special Functions · The Gamma Function. Leads to. Associated Legendre Functions · Spherical Harmonics · Recurrence Relations for Special Functions · Spherical Bessel Functions.

Ask the tutor: Want to see how the same Pℓ(cos⁡θ)P_\ell(\cos\theta) grows azimuthal structure into the associated Legendre functions and spherical harmonics — or how its zeros power the quadrature inside your solver? Ask, and we will build it from here.

Are Legendre polynomials the same thing as spherical harmonics?

Not quite — they are the azimuthally symmetric special case. A spherical harmonic Yℓm(θ,ϕ)Y_\ell^m(\theta,\phi) depends on both angles; setting m=0m=0 removes the ϕ\phi-dependence and leaves a Legendre polynomial up to a constant: Pℓ(cos⁡θ)=4π/(2ℓ+1) Yℓ0P_\ell(\cos\theta)=\sqrt{4\pi/(2\ell+1)}\,Y_\ell^0. The general YℓmY_\ell^m are the associated Legendre functions Pℓm(cos⁡θ)P_\ell^m(\cos\theta) times eimϕe^{im\phi}, and the plain PℓP_\ell is just Pℓ0P_\ell^0. So whenever a problem has rotational symmetry about an axis — a uniform field, an on-axis charge — the full spherical-harmonic machinery collapses to a single Legendre series in cos⁡θ\cos\theta.

Why does the generating function have that particular square-root form?

Because it is a disguised distance. The separation between two points at radii r>,r<r_>,r_< with opening angle γ\gamma is ∣r−r′∣=r>2+r<2−2r>r<cos⁡γ|\mathbf r-\mathbf r'|=\sqrt{r_>^2+r_<^2-2r_>r_<\cos\gamma}. Factor out r>r_> and set t=r</r>t=r_</r_>, x=cos⁡γx=\cos\gamma: the bracket becomes r>1−2xt+t2r_>\sqrt{1-2xt+t^2}, so 1/∣r−r′∣=(1/r>)g(x,t)1/|\mathbf r-\mathbf r'|=(1/r_>)g(x,t). The generating function is not chosen for convenience — it is the Newtonian/Coulomb kernel itself, which is why its coefficients in tt are the multipole patterns and why PℓP_\ell shows up in every potential problem.

When do I need Q_ℓ, the second solution?

Whenever your region excludes the poles x=±1x=\pm1. The two solutions are PℓP_\ell (finite on all of [−1,1][-1,1]) and QℓQ_\ell (finite on the open interval but diverging logarithmically at the endpoints). For the interior of a solid sphere, or wherever the polar axis θ=0,π\theta=0,\pi is in the domain, QℓQ_\ell is unphysical and dropped. But for a region that avoids the axis — a cone, or the space between two coaxial cones — QℓQ_\ell is regular and both solutions are needed. It is exactly like keeping the divergent 1/r1/r radial solution of Laplace's equation when the origin lies outside your domain.

How do I actually compute P_ℓ(x) for large ℓ on a computer?

Use Bonnet's recurrence upward, not Rodrigues' formula. Start from P0=1P_0=1, P1=xP_1=x and iterate Pℓ+1=[(2ℓ+1)xPℓ−ℓPℓ−1]/(ℓ+1)P_{\ell+1}=[(2\ell+1)xP_\ell-\ell P_{\ell-1}]/(\ell+1). For ∣x∣≤1|x|\le1 this is numerically stable — the polynomials stay bounded by ∣Pℓ(x)∣≤1|P_\ell(x)|\le1, so nothing overflows and errors do not amplify. Rodrigues' formula, by contrast, needs ℓ\ell-fold differentiation and suffers catastrophic cancellation; it is a proof tool, not a computational one. For the zeros (quadrature nodes), use Newton's method seeded with xi≈cos⁡[π(i−14)/(ℓ+12)]x_i\approx\cos[\pi(i-\tfrac14)/(\ell+\tfrac12)], evaluating PℓP_\ell and Pℓ′P_\ell' via the recurrence.

What is the connection to Bessel functions?

It is a limit linking spherical and cylindrical geometry. Away from the poles, a high-degree Pℓ(cos⁡θ)P_\ell(\cos\theta) oscillates like a damped cosine (Laplace–Heine), the spherical analogue of a plane wave. Zoom into the forward direction with argument cos⁡(x/ℓ)\cos(x/\ell) and let ℓ→∞\ell\to\infty: the Mehler–Heine formula gives Pℓ(cos⁡(x/ℓ))→J0(x)P_\ell(\cos(x/\ell))\to J_0(x) — the polynomial becomes a Bessel function. Physically, a tiny patch of a huge sphere looks flat, and the harmonics on a flat patch with circular symmetry are Bessel functions. That is why the two families are neighbours in every course.

Why is P_ℓ(1) = 1 chosen instead of unit norm?

Because x=1x=1 is the physically meaningful point: it is γ=0\gamma=0, two directions aligned. Then Pℓ(1)=1P_\ell(1)=1 means every multipole contributes with unit weight along the axis, so the on-axis potential of a point charge is the geometric series ∑tℓ=1/(1−t)=1/(r>−r<)\sum t^\ell=1/(1-t)=1/(r_>-r_<), the elementary result. Unit L2L^2 normalisation would instead scatter factors of (2ℓ+1)/2\sqrt{(2\ell+1)/2} through every formula. The price of Pℓ(1)=1P_\ell(1)=1 is the explicit norm 2/(2ℓ+1)2/(2\ell+1) you must divide by for series coefficients — a small cost for clean endpoint and generating-function values.

Before this

Where this leads