Skip to content

Legendre Polynomials

Legendre polynomials are the polynomial eigenfunctions that appear when rotationally symmetric problems are reduced to an angular equation with azimuthal quantum number m=0m=0. They are also the building blocks behind associated Legendre functions, spherical harmonics, multipole expansions, and partial-wave methods.

This page uses the standard convention

Pℓ(1)=1,ℓ=0,1,2,….P_\ell(1)=1, \qquad \ell=0,1,2,\ldots.

The full angular-momentum wavefunctions are Spherical Harmonics. Legendre polynomials are the m=0m=0 polynomial core and the function Pℓ(cos⁡γ)P_\ell(\cos\gamma) that appears in rotationally invariant kernels.

The Legendre polynomial of degree ℓ\ell is

Pℓ(x)=12ℓℓ!dℓdxℓ(x2−1)ℓ,ℓ=0,1,2,….P_\ell(x) = \frac{1}{2^\ell \ell!} \frac{d^\ell}{dx^\ell} \left(x^2-1\right)^\ell, \qquad \ell=0,1,2,\ldots.

The first few are

P0(x)=1,P1(x)=x,P2(x)=12(3x2−1),P3(x)=12(5x3−3x).\begin{aligned} P_0(x)&=1,\\ P_1(x)&=x,\\ P_2(x)&=\frac12(3x^2-1),\\ P_3(x)&=\frac12(5x^3-3x). \end{aligned}

The parity is

Pℓ(−x)=(−1)ℓPℓ(x),P_\ell(-x)=(-1)^\ell P_\ell(x),

so even ℓ\ell gives an even polynomial and odd ℓ\ell gives an odd polynomial.

Legendre polynomials are generated by

11−2xt+t2=∑ℓ=0∞Pℓ(x)tℓ,∣t∣<1.\frac{1}{\sqrt{1-2xt+t^2}} = \sum_{\ell=0}^{\infty} P_\ell(x)t^\ell, \qquad \lvert t\rvert<1.

This is useful in potential theory. For two position vectors r\mathbf r and r′\mathbf r', with angle γ\gamma between them and

r<=min⁡(r,r′),r>=max⁡(r,r′),r_{<} = \min(r,r'), \qquad r_{>} = \max(r,r'),

one has the multipole expansion

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

This formula is one reason Legendre polynomials appear in electrostatics, Coulomb problems, and central-potential calculations.

Legendre polynomials satisfy Legendre’s differential equation

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

Equivalently,

−ddx[(1−x2)dPℓdx]=ℓ(ℓ+1)Pℓ.- \frac{d}{dx} \left[ (1-x^2) \frac{dP_\ell}{dx} \right] = \ell(\ell+1)P_\ell.

This is a Sturm–Liouville equation on [−1,1][-1,1] with weight 11. The endpoints are singular because the coefficient 1−x21-x^2 vanishes at x=±1x=\pm1, but the polynomial solutions are regular.

Legendre polynomials obey

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

The normalized version is therefore

P^ℓ(x)=2ℓ+12 Pℓ(x),\widehat P_\ell(x) = \sqrt{\frac{2\ell+1}{2}}\,P_\ell(x),

with

∫−11P^ℓ(x)P^ℓ′(x) dx=δℓℓ′.\int_{-1}^{1} \widehat P_\ell(x)\widehat P_{\ell'}(x)\,dx = \delta_{\ell\ell'}.

For suitable functions on [−1,1][-1,1], one may expand

f(x)=∑ℓ=0∞aℓPℓ(x),f(x) = \sum_{\ell=0}^{\infty} a_\ell P_\ell(x),

with coefficients

aℓ=2ℓ+12∫−11f(x)Pℓ(x) dx.a_\ell = \frac{2\ell+1}{2} \int_{-1}^{1} f(x)P_\ell(x)\,dx.

As usual, the convergence statement depends on the regularity of ff and on whether one means pointwise, mean-square, or distributional convergence.

The main three-term recurrence is

(ℓ+1)Pℓ+1(x)=(2ℓ+1)xPℓ(x)−ℓPℓ−1(x),ℓ≥1.(\ell+1)P_{\ell+1}(x) = (2\ell+1)xP_\ell(x) -\ell P_{\ell-1}(x), \qquad \ell\ge1.

A useful derivative identity is

(1−x2)dPℓdx=ℓ[Pℓ−1(x)−xPℓ(x)].(1-x^2)\frac{dP_\ell}{dx} = \ell \left[ P_{\ell-1}(x)-xP_\ell(x) \right].

These identities are useful for manipulating angular integrals, deriving selection rules, and checking symbolic or numerical expressions.

For a central potential V(r)V(r), spherical coordinates match the symmetry. The angular part of the stationary Schrödinger equation involves the angular Laplacian. If the solution is independent of ϕ\phi, the polar equation can be written as

1sin⁡θddθ(sin⁡θdΘdθ)+ℓ(ℓ+1)Θ=0.\frac{1}{\sin\theta} \frac{d}{d\theta} \left( \sin\theta \frac{d\Theta}{d\theta} \right) + \ell(\ell+1)\Theta =0.

Set

x=cos⁡θ.x=\cos\theta.

Then this equation becomes Legendre’s equation, and the regular solutions are

Θ(θ)=Pℓ(cos⁡θ).\Theta(\theta) = P_\ell(\cos\theta).

For full angular dependence, the functions are spherical harmonics. In the Condon–Shortley convention,

Yℓ0(θ,ϕ)=2ℓ+14π Pℓ(cos⁡θ).Y_\ell^0(\theta,\phi) = \sqrt{\frac{2\ell+1}{4\pi}}\, P_\ell(\cos\theta).

For m≠0m\ne0, one needs Associated Legendre Functions. Those belong to their own page because the phase convention, normalization, and endpoint behavior require separate care.

The spherical-harmonic addition theorem contains Legendre polynomials:

∑m=−ℓℓYℓm(Ω)∗Yℓm(Ω′)=2ℓ+14πPℓ(cos⁡γ),\sum_{m=-\ell}^{\ell} Y_\ell^m(\Omega)^* Y_\ell^m(\Omega') = \frac{2\ell+1}{4\pi} P_\ell(\cos\gamma),

where γ\gamma is the angle between directions Ω\Omega and Ω′\Omega'. This identity expresses rotational invariance: after summing over mm, the answer can depend only on the angle between the two directions.

This is why Pℓ(cos⁡γ)P_\ell(\cos\gamma) appears in multipole expansions, central-force Green functions, scattering partial waves, and angular correlation functions.

  • Forgetting the normalization convention Pℓ(1)=1P_\ell(1)=1.
  • Using unweighted orthogonality formulas from another polynomial family.
  • Confusing Legendre polynomials PℓP_\ell with associated Legendre functions PℓmP_\ell^m.
  • Treating Pℓ(cos⁡θ)P_\ell(\cos\theta) as the whole spherical harmonic for m≠0m\ne0.
  • Forgetting the spherical measure sin⁡θ dθ dϕ\sin\theta\,d\theta\,d\phi when converting angular integrals to integrals over x=cos⁡θx=\cos\theta.
  • Assuming visual orbital shapes are direct plots of PℓP_\ell alone; physical angular wavefunctions are spherical harmonics.
  • NIST Digital Library of Mathematical Functions, Chapters 14 and 18.
  • F. W. J. Olver, D. W. Lozier, R. F. Boisvert, and C. W. Clark, eds., NIST Handbook of Mathematical Functions, Cambridge University Press, 2010.
  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, Dover, 1965.
  • G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, 7th ed., Academic Press, 2013.
  • A. R. Edmonds, Angular Momentum in Quantum Mechanics, Princeton University Press, 1957.
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
  1. Use Rodrigues’ formula to compute P0P_0, P1P_1, and P2P_2.
Solution

For ℓ=0\ell=0,

P0(x)=1.P_0(x)=1.

For ℓ=1\ell=1,

P1(x)=12ddx(x2−1)=x.P_1(x) = \frac12 \frac{d}{dx}(x^2-1) = x.

For ℓ=2\ell=2,

P2(x)=18d2dx2(x2−1)2.P_2(x) = \frac{1}{8} \frac{d^2}{dx^2} (x^2-1)^2.

Since

(x2−1)2=x4−2x2+1,(x^2-1)^2 = x^4-2x^2+1,

the second derivative is 12x2−412x^2-4. Therefore

P2(x)=12(3x2−1).P_2(x)=\frac12(3x^2-1).
  1. Use the recurrence relation to compute P3P_3 from P2P_2 and P1P_1.
Solution

Set ℓ=2\ell=2 in

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

Then

3P3=5xP2−2P1=52x(3x2−1)−2x.3P_3 = 5xP_2-2P_1 = \frac52 x(3x^2-1)-2x.

Thus

P3(x)=12(5x3−3x).P_3(x) = \frac12(5x^3-3x).
  1. Verify the orthogonality of P0P_0 and P2P_2.
Solution

Using P0=1P_0=1 and P2=(3x2−1)/2P_2=(3x^2-1)/2,

∫−11P0(x)P2(x) dx=12∫−11(3x2−1) dx.\int_{-1}^{1}P_0(x)P_2(x)\,dx = \frac12 \int_{-1}^{1} (3x^2-1)\,dx.

The integral is

12[3⋅23−2]=0.\frac12 \left[ 3\cdot\frac{2}{3}-2 \right] =0.
  1. Show that Yℓ0Y_\ell^0 is normalized on the unit sphere if the Legendre orthogonality formula is assumed.
Solution

For

Yℓ0(θ,ϕ)=2ℓ+14πPℓ(cos⁡θ),Y_\ell^0(\theta,\phi) = \sqrt{\frac{2\ell+1}{4\pi}} P_\ell(\cos\theta),

the norm is

∫02π∫0π∣Yℓ0∣2sin⁡θ dθ dϕ.\int_0^{2\pi}\int_0^\pi \lvert Y_\ell^0\rvert^2 \sin\theta\,d\theta\,d\phi.

Set x=cos⁡θx=\cos\theta, so sin⁡θ dθ=−dx\sin\theta\,d\theta=-dx. The integral becomes

2π2ℓ+14π∫−11Pℓ(x)2 dx.2\pi \frac{2\ell+1}{4\pi} \int_{-1}^{1} P_\ell(x)^2\,dx.

Using

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

the result is 11.

  1. Explain why Pℓ(cos⁡θ)P_\ell(\cos\theta) describes only the m=0m=0 angular dependence.
Solution

The function Pℓ(cos⁡θ)P_\ell(\cos\theta) has no ϕ\phi dependence, so it is an eigenfunction of LzL_z with m=0m=0. General angular-momentum eigenfunctions also carry the phase factor eimϕe^{im\phi} and associated Legendre functions Pℓm(cos⁡θ)P_\ell^m(\cos\theta). Those full functions are spherical harmonics.

  1. Derive the expansion coefficient formula for a Legendre series.
Solution

Assume

f(x)=∑ℓ=0∞aℓPℓ(x).f(x) = \sum_{\ell=0}^{\infty} a_\ell P_\ell(x).

Multiply by Pℓ′(x)P_{\ell'}(x) and integrate from −1-1 to 11:

∫−11f(x)Pℓ′(x) dx=∑ℓ=0∞aℓ∫−11Pℓ(x)Pℓ′(x) dx.\int_{-1}^{1} f(x)P_{\ell'}(x)\,dx = \sum_{\ell=0}^{\infty} a_\ell \int_{-1}^{1} P_\ell(x)P_{\ell'}(x)\,dx.

Orthogonality leaves only ℓ=ℓ′\ell=\ell':

∫−11f(x)Pℓ′(x) dx=aℓ′22ℓ′+1.\int_{-1}^{1} f(x)P_{\ell'}(x)\,dx = a_{\ell'} \frac{2}{2\ell'+1}.

Therefore

aℓ′=2ℓ′+12∫−11f(x)Pℓ′(x) dx.a_{\ell'} = \frac{2\ell'+1}{2} \int_{-1}^{1} f(x)P_{\ell'}(x)\,dx.