Associated Legendre Functions

The associated Legendre functions are what Legendre's polynomials become the moment a problem stops being axially symmetric. Separate Laplace's equation ∇2Φ=0\nabla^2\Phi=0, or the Helmholtz equation, in spherical coordinates and the angular part factors as Θ(θ) Φ(φ)\Theta(\theta)\,\Phi(\varphi); single-valuedness around the axis forces Φ=eimφ\Phi=e^{im\varphi} with integer mm, and the leftover polar factor Θ(θ)\Theta(\theta), written in the variable x=cos⁡θx=\cos\theta, must satisfy the associated Legendre equation — Legendre's own equation plus a repulsive −m2/(1−x2)-m^2/(1-x^2) term that blows up at the poles. Regular solutions on the closed interval [−1,1][-1,1] survive only when the separation constant is ℓ(ℓ+1)\ell(\ell+1) with ℓ\ell a non-negative integer and ℓ≥∣m∣\ell\ge|m|; those survivors are the Pℓm(x)P_\ell^m(x). Two facts organize everything that follows. First, because the −m2/(1−x2)-m^2/(1-x^2) term switches off at m=0m=0, the associated functions are not new objects to discover from scratch — they are manufactured from the Legendre polynomials by differentiating mm times and gluing on a surface factor (1−x2)m/2=sin⁡mθ(1-x^2)^{m/2}=\sin^m\theta. Second, that surface factor is not decoration: it forces the eigenfunction to vanish at the geographic poles whenever the field carries azimuthal swirl, and it is exactly what makes the spherical harmonics single-valued and smooth on the sphere S2S^2. Assemble Pℓm(cos⁡θ)P_\ell^m(\cos\theta) with eimφe^{im\varphi} and a normalizing constant and you have the YℓmY_\ell^m — the eigenfunctions of angular momentum in quantum mechanics, the angular skeleton of every multipole expansion, and the basis in which geophysicists write the shape of the Earth. The second solution QℓmQ_\ell^m, singular at the poles, is discarded on the full sphere but returns in exterior and wedge geometries.

Key takeaways
  • The associated Legendre functions Pℓm(x)P_\ell^m(x) are the regular solutions of the associated Legendre equation — what the polar factor of Laplace's or Helmholtz's equation obeys once the field carries azimuthal dependence eimφe^{im\varphi}.
  • For integer ℓ≥0\ell\ge0 and ∣m∣≤ℓ|m|\le\ell they are built from Legendre polynomials by mm-fold differentiation: Pℓm(x)=(−1)m(1−x2)m/2 dmPℓ/dxmP_\ell^m(x)=(-1)^m(1-x^2)^{m/2}\,\mathrm{d}^m P_\ell/\mathrm{d}x^m.
  • With x=cos⁡θx=\cos\theta they supply the polar-angle factor of the spherical harmonics YℓmY_\ell^m, the joint eigenfunctions of L2L^2 and LzL_z.
  • They are orthogonal on [−1,1][-1,1] at fixed mm with norm 22ℓ+1(ℓ+m)!(ℓ−m)!\frac{2}{2\ell+1}\frac{(\ell+m)!}{(\ell-m)!}, the exact factor that normalizes YℓmY_\ell^m.
  • Positive and negative orders are tied by Pℓ−m=(−1)m(ℓ−m)!(ℓ+m)!PℓmP_\ell^{-m}=(-1)^m\frac{(\ell-m)!}{(\ell+m)!}P_\ell^m, and dense webs of recurrences connect neighbouring ℓ\ell and mm.
  • The (1−x2)m/2=sin⁡mθ(1-x^2)^{m/2}=\sin^m\theta factor makes them genuinely non-polynomial for odd mm; only Pℓ0=PℓP_\ell^0=P_\ell is a true polynomial.
  • Key idea: differentiating Legendre's equation mm times and substituting Θ=(1−x2)m/2u\Theta=(1-x^2)^{m/2}u turns Legendre's polynomials into the regular solutions of the associated equation; the surface factor sin⁡mθ\sin^m\theta enforces regularity at the poles and is exactly what makes spherical harmonics well defined on S2S^2.
The core insight

Differentiating Legendre's equation mm times and substituting Θ=(1−x2)m/2u\Theta=(1-x^2)^{m/2}u turns Legendre's polynomials into the regular solutions of the associated equation; the surface factor sin⁡mθ\sin^m\theta guarantees regularity at the poles and is exactly what makes spherical harmonics well defined on the sphere.

Where this lives today

The associated Legendre functions are the working basis wherever a field lives on a sphere. In geodesy, the Earth's gravity field is a table of spherical-harmonic coefficients — the EGM2008 model runs to degree and order ℓ=m=2159\ell=m=2159, some 4.7 million coefficients each multiplying a normalized Pℓm(sin⁡(latitude))P_\ell^m(\sin(\text{latitude})) — and the GRACE satellites track month-to-month changes in the low-degree terms to weigh melting ice sheets and draining aquifers; the same functions carry the Earth's main magnetic field. In cosmology, the cosmic microwave background temperature map is expanded in YℓmY_\ell^m, and the angular power spectrum CℓC_\ell measured by Planck — with acoustic peaks near ℓ≈220\ell\approx220 — is just the variance of those coefficients, whose extraction from megapixel sky maps drives fast spherical-harmonic transforms. In quantum chemistry they remain the angular half of every orbital, and in NMR the magic angle of example 2 is a routine hardware setting. The persistent open challenge is computational: evaluating PℓmP_\ell^m stably to ℓ∼104\ell\sim10^4 without overflow of the (ℓ+m)!(\ell+m)! factors, which is why modern libraries carry the normalization inside the recurrence.

The physical picture

Think of the sphere as a globe and ask where a standing angular field is allowed to vanish. Two integers answer. The order mm counts nodal meridians — lines of longitude where the field is zero — because the azimuthal factor cos⁡(mφ)\cos(m\varphi) has 2m2m zeros around a circuit. The remaining ℓ−m\ell-m counts nodal parallels — circles of latitude where the polar factor Pℓm(cos⁡θ)P_\ell^m(\cos\theta) changes sign — and the two always sum to ℓ\ell nodal lines. A pure Pℓ0=PℓP_\ell^0=P_\ell has no azimuthal nodes and lives as rings of latitude; a sectoral harmonic with m=ℓm=\ell has no latitude rings and slices the globe like an orange. The first figure draws one concrete case and states the counting relation.

Figure
Nodal pattern of the harmonic ℓ = 3, m = 2 on the sphere: the order sets 2 nodal meridians, the degree sets ℓ − m = 1 nodal parallel here the equator, and the two always sum to ℓ = 3 nodal lines; because m is nonzero the surface factor sinᵐθ forces Pₗᵐ = 0 at both poles
Nodal count on the sphere: meridians = |m|, parallels = ℓ − |m|, total = ℓ + − − + equator: nodal parallel nodal meridians Pₗᵐ = 0 at the poles ℓ = 3, m = 2 nodal meridians = |m| = 2 nodal parallels = ℓ − |m| = 1 total nodal lines = ℓ = 3 P₃² = 15 x (1 − x²), zero at x = 0

Now watch the functions themselves. Differentiating a Legendre polynomial mm times sharpens its wiggles and lowers its degree to ℓ−m\ell-m; multiplying by sin⁡mθ\sin^m\theta then clamps the result to zero at the poles and pushes its weight toward the equator, more so the larger ∣m∣|m|. The result is a family of curves on [−1,1][-1,1] sharing a degree ℓ\ell but differing in how many times they cross zero and how hard they are pinned at the ends. The second figure plots the full ℓ=2\ell=2 triplet with exact values, so the pattern — order raises the pole-pinning, and m=0m=0 alone survives at the poles — is visible as real numbers.

Figure
The complete ℓ = 2 family plotted exactly on x = cosθ from −1 to 1: P₂⁰ = ½(3x² − 1) with P₂⁰(0) = −0.5 and P₂⁰(±1) = 1, the odd P₂¹ = −3x√(1−x²) reaching ∓1.5 at x = ±1/√2 ≈ ±0.707, and the sectoral P₂² = 3(1−x²) peaking at P₂²(0) = 3; both nonzero-order curves vanish at the poles while only P₂⁰ does not
The ℓ = 2 triplet: same degree, different order — order pins the poles harder 3 2 1 0 −1 −0.5 0.5 1 x = cosθ P₂²(0) = 3 P₂⁰(0) = −0.5 P₂¹ min = −1.5 at x = 0.707 P₂⁰ P₂¹ P₂²

The core equations

Everything begins with the ODE the polar factor must obey. Separating Laplace's or Helmholtz's equation in spherical coordinates and writing x=cos⁡θx=\cos\theta leaves Θ(x)\Theta(x) satisfying the associated Legendre equation — Legendre's equation plus an extra centrifugal-looking term whose strength is set by the azimuthal number mm.

(1−x2)d2Θdx2−2xdΘdx+[ℓ(ℓ+1)−m21−x2]Θ=0(1)(1-x^2)\frac{\mathrm{d}^2\Theta}{\mathrm{d}x^2}-2x\frac{\mathrm{d}\Theta}{\mathrm{d}x}+\left[\ell(\ell+1)-\frac{m^2}{1-x^2}\right]\Theta=0 \qquad (1)

where: xx — =cos⁡θ=\cos\theta, cosine of the polar angle, x∈[−1,1]x\in[-1,1]; ℓ\ell — degree, a non-negative integer for solutions regular on [−1,1][-1,1]; mm — order (azimuthal number), integer with ∣m∣≤ℓ|m|\le\ell; Θ\Theta — polar-angle factor. Reading: the −m2/(1−x2)-m^2/(1-x^2) term is the whole story — finite in the interior, singular at the poles, and taming it selects the physical solutions. The functions are not solved from scratch. Because that term vanishes at m=0m=0, they are generated from the Legendre polynomials by differentiating mm times and attaching the surface factor.

Pℓm(x)=(−1)m(1−x2)m/2dmdxmPℓ(x)(2)P_\ell^m(x)=(-1)^m(1-x^2)^{m/2}\frac{\mathrm{d}^m}{\mathrm{d}x^m}P_\ell(x) \qquad (2)

where: Pℓ(x)P_\ell(x) — Legendre polynomial of degree ℓ\ell; (−1)m(-1)^m — Condon–Shortley phase (a convention, see the warning); (1−x2)m/2(1-x^2)^{m/2} — =sin⁡mθ=\sin^m\theta, the surface factor pinning the function to zero at the poles. Reading: the derivative lowers the degree to ℓ−m\ell-m and sin⁡mθ\sin^m\theta carries the pole behaviour, so PℓmP_\ell^m is a degree-(ℓ−m)(\ell-m) polynomial times sin⁡mθ\sin^m\theta. Substituting Legendre's Rodrigues formula gives a single closed expression valid for both signs of mm, differentiating (x2−1)ℓ(x^2-1)^\ell a total of ℓ+m\ell+m times.

Pℓm(x)=(−1)m2ℓ ℓ!(1−x2)m/2dℓ+mdxℓ+m(x2−1)ℓ(3)P_\ell^m(x)=\frac{(-1)^m}{2^\ell\,\ell!}(1-x^2)^{m/2}\frac{\mathrm{d}^{\ell+m}}{\mathrm{d}x^{\ell+m}}(x^2-1)^\ell \qquad (3)

where: 2ℓ ℓ!2^\ell\,\ell! — normalization from the Legendre Rodrigues formula; ℓ+m\ell+m — total order of differentiation, valid for −ℓ≤m≤ℓ-\ell\le m\le\ell. Reading: since (x2−1)ℓ(x^2-1)^\ell has degree 2ℓ2\ell, differentiating ℓ+m\ell+m times leaves degree ℓ−m\ell-m, consistent with (2). At fixed order mm the equation is a Sturm–Liouville problem with weight one, so eigenfunctions of different degree are orthogonal and the norm is a clean factorial ratio.

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

where: δℓℓ′\delta_{\ell\ell'} — Kronecker delta; (ℓ±m)!(\ell\pm m)! — factorials from the normalization integral. Reading: at m=0m=0 this collapses to the Legendre norm 2/(2ℓ+1)2/(2\ell+1), and the growing factorial ratio is why high-mm functions must be rescaled for orthonormal harmonics. Two three-term recurrences let one climb the tables without differentiating again — one steps in degree at fixed order, the other in order at fixed degree.

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

where: Pℓ±1mP_{\ell\pm1}^m — neighbouring-degree functions at the same order. Reading: the workhorse of numerical evaluation, run upward in ℓ\ell from a seed at ℓ=m\ell=m.

Pℓm+1=2mx1−x2 Pℓm−[ℓ(ℓ+1)−m(m−1)] Pℓm−1(6)P_{\ell}^{m+1}=\frac{2mx}{\sqrt{1-x^2}}\,P_\ell^m-[\ell(\ell+1)-m(m-1)]\,P_\ell^{m-1} \qquad (6)

where: Pℓm±1P_\ell^{m\pm1} — neighbouring-order functions at the same degree. Reading: the 1/1−x21/\sqrt{1-x^2} makes this the awkward one near the poles, so codes raise mm through the sectoral seed instead. Dressed with the azimuthal exponential and the square root of the norm in (4), the functions become the orthonormal spherical harmonics — the destination of the construction.

Yℓm(θ,φ)=2ℓ+14π(ℓ−m)!(ℓ+m)!  Pℓm(cos⁡θ) eimφ(7)Y_\ell^m(\theta,\varphi)=\sqrt{\frac{2\ell+1}{4\pi}\frac{(\ell-m)!}{(\ell+m)!}}\;P_\ell^m(\cos\theta)\,e^{im\varphi} \qquad (7)

where: YℓmY_\ell^m — orthonormal spherical harmonic; eimφe^{im\varphi} — azimuthal factor; θ,φ\theta,\varphi — polar and azimuthal angles. Reading: the prefactor is exactly 1/norm1/\sqrt{\text{norm}} from (4), which is why ∫∣Yℓm∣2 dΩ=1\int|Y_\ell^m|^2\,\mathrm{d}\Omega=1. There is a second orthogonality, at fixed degree running over the order, with the pole-weighted measure 1/(1−x2)1/(1-x^2) that the m2m^2 term itself supplies.

∫−11Pℓm(x) Pℓm′(x)1−x2 dx=(ℓ+m)!m (ℓ−m)! δmm′(m≠0)(8)\int_{-1}^{1}\frac{P_\ell^m(x)\,P_\ell^{m'}(x)}{1-x^2}\,\mathrm{d}x=\frac{(\ell+m)!}{m\,(\ell-m)!}\,\delta_{mm'}\qquad(m\neq0) \qquad (8)

where: 1/(1−x2)1/(1-x^2) — weight arising because, at fixed ℓ\ell, it is m2m^2 that plays the Sturm–Liouville eigenvalue. Reading: this pairs orders rather than degrees, underlying expansions in mm at a fixed multipole.

Derivation AManufacturing the associated functions from Legendre's equation

The goal is to show that the differentiation recipe (2) is not pulled from nowhere but forced by Legendre's equation itself: if PℓP_\ell solves it, then its mm-th derivative solves a shifted equation, and dressing that derivative with (1−x2)m/2(1-x^2)^{m/2} restores the full associated equation (1) with the −m2/(1−x2)-m^2/(1-x^2) term. We differentiate mm times with Leibniz's rule, read off the intermediate equation, then substitute the surface factor and check the pole term reappears exactly.

Step 1. Start from Legendre's equation (1−x2)Pℓ′′−2xPℓ′+ℓ(ℓ+1)Pℓ=0(1-x^2)P_\ell''-2xP_\ell'+\ell(\ell+1)P_\ell=0 and differentiate it mm times using the Leibniz rule dm(fg)=∑(mk)f(k)g(m−k)\mathrm{d}^m(fg)=\sum\binom{m}{k}f^{(k)}g^{(m-k)}. Only the first three derivatives of the polynomial coefficients survive, and writing w=dmPℓ/dxmw=\mathrm{d}^mP_\ell/\mathrm{d}x^m the result collapses to (1−x2)w′′−2(m+1)xw′+[ℓ(ℓ+1)−m(m+1)]w=0(1-x^2)w''-2(m+1)xw'+[\ell(\ell+1)-m(m+1)]w=0. Why: differentiation commutes past the eigenvalue but shifts the first-order coefficient from 2x2x to 2(m+1)x2(m+1)x and lowers the eigenvalue by m(m+1)m(m+1) — this is the associated equation in undressed "derivative" form.

Step 2. Introduce the surface factor by setting Θ=(1−x2)m/2w\Theta=(1-x^2)^{m/2}w. Differentiating twice and substituting is bookkeeping: the factor (1−x2)m/2(1-x^2)^{m/2} generates derivative terms that cancel the shifted −2(m+1)x-2(m+1)x coefficient and produce a new algebraic term. Why: the sin⁡mθ\sin^m\theta dressing trades the extra first-derivative slope for a potential term, moving the mm-dependence from the transport coefficient into a pole term.

Step 3. Collect the surviving terms. The algebraic piece is exactly −m2/(1−x2)-m^2/(1-x^2), and the eigenvalue returns to ℓ(ℓ+1)\ell(\ell+1), so Θ\Theta obeys (1−x2)Θ′′−2xΘ′+[ℓ(ℓ+1)−m2/(1−x2)]Θ=0(1-x^2)\Theta''-2x\Theta'+[\ell(\ell+1)-m^2/(1-x^2)]\Theta=0 — the associated Legendre equation (1) verbatim. Why: this confirms Θ∝Pℓm\Theta\propto P_\ell^m; the sign (−1)m(-1)^m and the 2ℓℓ!2^\ell\ell! factor are then fixed by convention and Legendre's Rodrigues formula to give (2) and (3).

Step 4. Sanity-check the degree count: PℓP_\ell has degree ℓ\ell, differentiating mm times leaves degree ℓ−m\ell-m, and multiplying by sin⁡mθ\sin^m\theta (non-polynomial for odd mm) gives the stated structure; at m=ℓm=\ell the polynomial part is constant, leaving the pure sectoral sin⁡ℓθ\sin^\ell\theta. Why: this reproduces the ladder-top value Pℓℓ=(−1)ℓ(2ℓ−1)!!sin⁡ℓθP_\ell^\ell=(-1)^\ell(2\ell-1)!!\sin^\ell\theta used below as the seed for the numerical recurrence.

Go deeper · Derivation B · 1 minOrthogonality and the normalization integral
Derivation BOrthogonality and the normalization integral

The goal is to prove the fixed-order orthogonality (4) and pin down the factorial norm 22ℓ+1(ℓ+m)!(ℓ−m)!\frac{2}{2\ell+1}\frac{(\ell+m)!}{(\ell-m)!} that makes the spherical harmonics orthonormal. We put the equation into self-adjoint Sturm–Liouville form, use the vanishing coefficient at the endpoints to kill the boundary term, then evaluate the diagonal norm by repeated integration by parts down to the known Legendre norm.

Step 1. Rewrite (1) in self-adjoint form ddx ⁣[(1−x2)dPℓmdx]+[ℓ(ℓ+1)−m21−x2]Pℓm=0\frac{\mathrm{d}}{\mathrm{d}x}\!\left[(1-x^2)\frac{\mathrm{d}P_\ell^m}{\mathrm{d}x}\right]+\left[\ell(\ell+1)-\frac{m^2}{1-x^2}\right]P_\ell^m=0. At fixed mm this is a regular Sturm–Liouville eigenproblem with weight w(x)=1w(x)=1, eigenvalue λ=ℓ(ℓ+1)\lambda=\ell(\ell+1), and coefficient p(x)=1−x2p(x)=1-x^2 that vanishes at both endpoints. Why: self-adjointness guarantees real eigenvalues and orthogonal eigenfunctions, and the vanishing of pp at x=±1x=\pm1 is what kills the boundary term without extra conditions.

Step 2. Take the equations for PℓmP_\ell^m and Pℓ′mP_{\ell'}^m, multiply crosswise, subtract, and integrate over [−1,1][-1,1]. The derivative terms combine into a total derivative whose integral is (1−x2)(Pℓm′Pℓ′m−PℓmPℓ′m′)(1-x^2)(P_\ell^m{}'P_{\ell'}^m-P_\ell^m P_{\ell'}^m{}') evaluated at ±1\pm1 — and it vanishes because (1−x2)→0(1-x^2)\to0 there, leaving [ℓ(ℓ+1)−ℓ′(ℓ′+1)]∫PℓmPℓ′m dx=0[\ell(\ell+1)-\ell'(\ell'+1)]\int P_\ell^m P_{\ell'}^m\,\mathrm{d}x=0. Why: distinct eigenvalues force orthogonality for ℓ≠ℓ′\ell\neq\ell' — the Sturm–Liouville engine, not any special property of Legendre functions.

Step 3. For the diagonal ℓ=ℓ′\ell=\ell' insert Pℓm=(−1)m(1−x2)m/2Pℓ(m)P_\ell^m=(-1)^m(1-x^2)^{m/2}P_\ell^{(m)} so that (Pℓm)2=(1−x2)m(Pℓ(m))2(P_\ell^m)^2=(1-x^2)^m(P_\ell^{(m)})^2, and integrate by parts mm times. Each step is boundary-free because (1−x2)m(1-x^2)^m and its derivatives up to order m−1m-1 vanish at ±1\pm1. Why: this converts the associated-function norm into the plain Legendre norm times an accumulated factorial factor, with no explicit series.

Step 4. The reduction terminates at ∫−11Pℓ2 dx=2/(2ℓ+1)\int_{-1}^{1}P_\ell^2\,\mathrm{d}x=2/(2\ell+1), and the factors picked up multiply to (ℓ+m)!/(ℓ−m)!(\ell+m)!/(\ell-m)!, giving ∫−11(Pℓm)2 dx=22ℓ+1(ℓ+m)!(ℓ−m)!\int_{-1}^{1}(P_\ell^m)^2\,\mathrm{d}x=\frac{2}{2\ell+1}\frac{(\ell+m)!}{(\ell-m)!}. At m=0m=0 this is 2/(2ℓ+1)2/(2\ell+1), and it is exactly the reciprocal of the squared prefactor in (7), so ∫∣Yℓm∣2dΩ=1\int|Y_\ell^m|^2\mathrm{d}\Omega=1. Why: the factorial ratio is the whole content of the normalization — why the harmonic prefactor carries (ℓ−m)!/(ℓ+m)!\sqrt{(\ell-m)!/(\ell+m)!} and why high-order functions grow rapidly.

Go deeper · Derivation C · 2 minQuantization from regularity at the poles
Derivation CQuantization from regularity at the poles

The goal is to explain why the separation constant is forced to be ℓ(ℓ+1)\ell(\ell+1) with ℓ\ell a non-negative integer no smaller than ∣m∣|m|, rather than any of the continuum of values the ODE would otherwise allow. The mechanism is a boundary condition: the endpoints x=±1x=\pm1 are regular singular points, Frobenius analysis gives two indicial roots, only one is finite, and demanding finiteness at both poles terminates the power series — which happens only for integer eigenvalues.

Step 1. Locate the singular points. In (1) the leading coefficient (1−x2)(1-x^2) vanishes at x=±1x=\pm1, making both endpoints regular singular points. A Frobenius substitution Θ∼(1−x)s\Theta\sim(1-x)^s near x=1x=1 gives the indicial equation s2−(m/2)2=0s^2-(m/2)^2=0, so the two roots are s=±m/2s=\pm m/2 (equivalently ±∣m∣/2\pm|m|/2). Why: the behaviour of any solution near a pole is one of these two powers, and the physics lives entirely in which one a given solution picks up.

Step 2. Select the regular root. s=+∣m∣/2s=+|m|/2 gives Θ∼(1−x)∣m∣/2\Theta\sim(1-x)^{|m|/2}, finite at x=1x=1; s=−∣m∣/2s=-|m|/2 diverges. Requiring finiteness at both x=±1x=\pm1 isolates the surface factor (1−x2)∣m∣/2(1-x^2)^{|m|/2} that both associated functions share. Why: this is the ODE derivation of the sin⁡mθ\sin^m\theta factor — not put in by hand but the only pole behaviour compatible with a bounded field, and what distinguishes PℓmP_\ell^m from the divergent QℓmQ_\ell^m.

Step 3. Substitute Θ=(1−x2)∣m∣/2u(x)\Theta=(1-x^2)^{|m|/2}u(x) and reduce to a polynomial equation for uu. Solving uu as a power series gives a recurrence whose coefficients grow without bound unless the series terminates; termination requires the eigenvalue to equal ℓ(ℓ+1)\ell(\ell+1) for some integer ℓ≥∣m∣\ell\ge|m|, and a non-terminating series diverges like (1−x2)−∣m∣/2(1-x^2)^{-|m|/2} at the poles. Why: quantization is a solvability condition — only the integer eigenvalues yield a polynomial uu, hence a bounded Θ\Theta regular at both poles.

Step 4. Read off the spectrum: ℓ∈{0,1,2,… }\ell\in\{0,1,2,\dots\} and, for each ℓ\ell, m∈{−ℓ,…,ℓ}m\in\{-\ell,\dots,\ell\}. This is precisely the quantization L2→ℏ2ℓ(ℓ+1)L^2\to\hbar^2\ell(\ell+1), Lz→ℏmL_z\to\hbar m of orbital angular momentum, and the (2ℓ+1)(2\ell+1)-fold degeneracy in mm. Why: what looks like a technical demand for boundedness on [−1,1][-1,1] is, physically, the requirement that the quantum wavefunction be single-valued and finite on the sphere — angular-momentum quantization is a regularity condition in disguise.

Limiting cases

CaseResultMeaning
m=0m=0Pℓ0(x)=Pℓ(x)P_\ell^0(x)=P_\ell(x)reduces to the ordinary Legendre polynomials; the surface factor is unity and the m2m^2 term is gone
m=ℓm=\ell (top of the ladder)Pℓℓ(x)=(−1)ℓ(2ℓ−1)!! (1−x2)ℓ/2P_\ell^\ell(x)=(-1)^\ell(2\ell-1)!!\,(1-x^2)^{\ell/2}a pure sectoral sin⁡ℓθ\sin^\ell\theta with a constant polynomial part; here (2ℓ−1)!!=1⋅3⋯(2ℓ−1)(2\ell-1)!!=1\cdot3\cdots(2\ell-1)
Poles x→±1x\to\pm1Pℓm(±1)=0 (m≠0)P_\ell^m(\pm1)=0\ (m\neq0), Pℓ0(±1)=(±1)ℓP_\ell^0(\pm1)=(\pm1)^\ellnon-zero order must vanish at the poles — the geometric root of single-valuedness on the sphere
Negative orderPℓ−m(x)=(−1)m(ℓ−m)!(ℓ+m)!Pℓm(x)P_\ell^{-m}(x)=(-1)^m\frac{(\ell-m)!}{(\ell+m)!}P_\ell^m(x)negative mm is proportional to positive mm; only ∣m∣|m| carries new information
ℓ=m=0\ell=m=0P00(x)=1P_0^0(x)=1the monopole; constant on the sphere, Y00=1/4πY_0^0=1/\sqrt{4\pi}

Worked examples

1 · Building the ℓ = 2 family and checking its norm (confidence builder)

Construct P20P_2^0, P21P_2^1, and P22P_2^2 from the differentiation formula (2), confirm the top-of-the-ladder value, and verify the normalization integral (4) for m=1m=1 by direct integration.

Step 1. Start from P2(x)=12(3x2−1)P_2(x)=\tfrac12(3x^2-1), so P2′=3xP_2'=3x and P2′′=3P_2''=3. Order zero is trivial: P20=P2P_2^0=P_2, giving P20(0)=−0.5P_2^0(0)=\mathbf{-0.5} and P20(±1)=1P_2^0(\pm1)=\mathbf{1}, the green curve.

Step 2. Order one uses one derivative and the surface factor: P21=(−1)(1−x2)1/2P2′=−3x1−x2=−3cos⁡θsin⁡θP_2^1=(-1)(1-x^2)^{1/2}P_2'=-3x\sqrt{1-x^2}=-3\cos\theta\sin\theta. It is odd, vanishes at x=0x=0 and both poles, and its extrema at x=±1/2≈±0.707x=\pm1/\sqrt2\approx\pm0.707 give P21=∓3⋅12⋅12=∓1.5P_2^1=\mp3\cdot\tfrac1{\sqrt2}\cdot\tfrac1{\sqrt2}=\mathbf{\mp1.5}.

Step 3. Order two uses two derivatives: P22=(1−x2)P2′′=3(1−x2)=3sin⁡2θP_2^2=(1-x^2)P_2''=3(1-x^2)=3\sin^2\theta, peaking at P22(0)=3P_2^2(0)=\mathbf{3}. Check the ladder-top formula (−1)2(2⋅2−1)!!(1−x2)(-1)^2(2\cdot2-1)!!(1-x^2) with 3!!=1⋅3=33!!=1\cdot3=3 — consistent.

Step 4. Verify the norm for m=1m=1 directly: ∫−11(P21)2 dx=∫−119x2(1−x2) dx=9 ⁣(23−25)=9⋅415=2.4\int_{-1}^{1}(P_2^1)^2\,\mathrm{d}x=\int_{-1}^{1}9x^2(1-x^2)\,\mathrm{d}x=9\!\left(\tfrac{2}{3}-\tfrac{2}{5}\right)=9\cdot\tfrac{4}{15}=\mathbf{2.4}. Formula (4) predicts 25⋅3!1!=125=2.4\frac{2}{5}\cdot\frac{3!}{1!}=\frac{12}{5}=\mathbf{2.4} — they match exactly, confirming both the construction and the factorial norm.

2 · The quadrupole harmonic and the magic angle

The polar factor of the Y20Y_2^0 harmonic is P20(cos⁡θ)=12(3cos⁡2θ−1)P_2^0(\cos\theta)=\tfrac12(3\cos^2\theta-1). Find the latitude of its nodal cone, normalize it into Y20Y_2^0, and identify the concrete number where this angle appears in physics.

Step 1. The nodal parallels are where P20=0P_2^0=0: 3cos⁡2θ−1=0⇒cos⁡θ=1/3=0.57743\cos^2\theta-1=0\Rightarrow\cos\theta=1/\sqrt3=0.5774, so θ=arccos⁡(0.5774)=54.74∘\theta=\arccos(0.5774)=\mathbf{54.74^\circ} and its supplement 125.26∘125.26^\circ — the two symmetric cones matching the count ℓ−m=2\ell-m=2 nodal circles.

Step 2. Normalize using (7) with ℓ=2\ell=2, m=0m=0: Y20=516π (3cos⁡2θ−1)Y_2^0=\sqrt{\frac{5}{16\pi}}\,(3\cos^2\theta-1). Check: ∫−11[12(3x2−1)]2dx=25\int_{-1}^1[\tfrac12(3x^2-1)]^2\mathrm{d}x=\frac{2}{5}, and 2π⋅516π⋅25=12\pi\cdot\frac{5}{16\pi}\cdot\frac{2}{5}=\mathbf{1}, so Y20Y_2^0 is correctly normalized.

Step 3. Interpret the angle. θ=54.74∘\theta=54.74^\circ is the magic angle of NMR: spinning a sample about an axis tilted at this angle makes 12(3cos⁡2θ−1)\tfrac12(3\cos^2\theta-1) average to zero, cancelling dipolar broadening and chemical-shift anisotropy. It is also the conical node of the dz2d_{z^2} orbital, whose angular part is Y20Y_2^0.

Step 4. The payoff: the quadrupole harmonic Y20∝3cos⁡2θ−1Y_2^0\propto3\cos^2\theta-1 vanishes on a cone at θ=54.74∘\theta=54.74^\circ — exactly the magic angle MAS-NMR exploits and the nodal cone of the dz2d_{z^2} orbital. One function fixes both a spinning geometry and the shape of a chemical bond.

Physics of the portrait

The associated Legendre functions are the meeting point of three problems that looked unrelated: the shape of the Earth, the vibrations of a sphere, and the quantum spectrum of angular momentum. No single person owns them, so the portrait is of the object itself and the hands that shaped it.

Origins · 1 minassociated Legendre functions and how this was discovered
AL
associated Legendre functions
the regular polar factors Pₗᵐ(x) of the associated Legendre equation, 1782 to 1930 · angular structure of fields on the sphere

The story starts with Adrien-Marie Legendre, who in 1782 introduced his polynomials while expanding the Newtonian potential of a spheroid — the "figure of the Earth" problem — and with Pierre-Simon Laplace, whose work on the gravitational potential produced the spherical harmonics wholesale, associated functions included, as the natural angular basis on the sphere. For decades they were tools of celestial mechanics and geodesy, not a named family. The nineteenth century made them respectable: Sturm–Liouville theory in the 1830s revealed the orthogonality and eigenvalue structure behind them, and Norman Macleod Ferrers gave the associated functions their first systematic treatment in 1877 — which is why PℓmP_\ell^m on the cut [−1,1][-1,1] are still called Ferrers functions, to distinguish them from the complex-argument versions E. W. Hobson later analysed in his definitive 1931 treatise. The functions were then reborn in physics: Schrödinger's 1926 wave mechanics made Pℓm(cos⁡θ)P_\ell^m(\cos\theta) the angular part of the hydrogen atom, and Edward Condon and George Shortley's 1935 Theory of Atomic Spectra fixed the (−1)m(-1)^m phase convention that still bears their names and quietly governs every ladder-operator sign in quantum mechanics. A curve first drawn to weigh the Earth had become the alphabet of angular momentum.

History
1782
— Legendre introduces his polynomials expanding the potential of a spheroid
1785
— Laplace develops spherical harmonics for the gravitational potential
1837
— Sturm and Liouville establish the eigenvalue theory behind the orthogonality
1877
— Ferrers gives the first systematic treatment of the associated functions
1926
— Schrödinger's wave mechanics makes them the angular part of the hydrogen atom
1935
— Condon and Shortley fix the (−1)ᵐ phase convention in atomic spectroscopy

Going further

Texts. Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 15 (Legendre functions and spherical harmonics) · Hassani, Mathematical Physics, 2nd ed., Ch. 13–14 (Sturm–Liouville systems and special functions) · Stone & Goldbart, Mathematics for Physics, Ch. 8–9 (Sturm–Liouville theory and special functions) · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 6 · Nakahara, Geometry, Topology and Physics, §3.5 (harmonics on manifolds) · Abramowitz & Stegun, Ch. 8, and the NIST DLMF, Ch. 14, for formulas and conventions.

Provenance. A verifier should reconfirm: the associated Legendre equation and its self-adjoint form (Arfken Ch. 15; Hassani Ch. 13); the differentiation and Rodrigues definitions with the Condon–Shortley phase (Arfken; DLMF 14.6–14.7); the fixed-mm norm and the fixed-ℓ\ell weight-1/(1−x2)1/(1-x^2) relation (Arfken; A&S 8.14); the degree and order recurrences (A&S 8.5; DLMF 14.10); special values P20,P21,P22P_2^0,P_2^1,P_2^2, PℓℓP_\ell^\ell, and the negative-order relation (A&S 8.6; DLMF 14.9); the spherical-harmonic normalization (Arfken Ch. 15). The worked numbers (P21P_2^1 norm =12/5=2.4=12/5=2.4; arccos⁡(1/3)=54.74∘\arccos(1/\sqrt3)=54.74^\circ) were recomputed here. Modern anchors (EGM2008 to ℓ=2159\ell=2159, Planck CℓC_\ell peak near ℓ≈220\ell\approx220) are standard published values.

Builds on: Legendre Polynomials · Orthogonal Polynomials: General Theory · Gamma Function. Leads to: Spherical Harmonics · Recurrence Relations for Special Functions · Generating Functions for Special Functions.

Ask the tutor: ask me why the sin⁡mθ\sin^m\theta factor is forced by regularity at the poles, or to hand-build any PℓmP_\ell^m and turn it into its spherical harmonic YℓmY_\ell^m.

Why are they called "functions" and not "polynomials"?

Because for odd order mm they genuinely are not polynomials. The surface factor (1−x2)m/2=sin⁡mθ(1-x^2)^{m/2}=\sin^m\theta is a polynomial only when mm is even; for odd mm it carries an irreducible 1−x2\sqrt{1-x^2}, so PℓmP_\ell^m is a degree-(ℓ−m)(\ell-m) polynomial times that square root. Only the m=0m=0 member Pℓ0=PℓP_\ell^0=P_\ell is a polynomial for every ℓ\ell. The name "function" is the honest umbrella covering both cases, and it leaves room for the second solution QℓmQ_\ell^m, which is not remotely polynomial.

What is the second solution Qₗᵐ, and when do I need it?

The associated Legendre equation is second order, so it has two independent solutions. PℓmP_\ell^m is the one finite at the poles x=±1x=\pm1; the other, QℓmQ_\ell^m, has logarithmic or branch-point singularities there. On the full sphere you discard QℓmQ_\ell^m because a physical field cannot blow up on the axis — that discarding is exactly what quantizes ℓ\ell. But QℓmQ_\ell^m is indispensable when the axis is not in your domain: exterior problems and conical, wedge, or toroidal geometries keep both solutions, fixing their ratio by boundary conditions at surfaces that exclude x=±1x=\pm1.

Why does the field have to vanish at the poles when m ≠ 0?

Because otherwise it would be multivalued there. Near a pole the azimuthal angle φ\varphi is undefined — every longitude meets at one point — so a field carrying eimφe^{im\varphi} with m≠0m\neq0 would take many values at once unless its amplitude is zero. The mathematics enforces this: the Frobenius analysis at x=±1x=\pm1 offers (1−x)±∣m∣/2(1-x)^{\pm|m|/2}, and only the ++ root, which vanishes at the pole for m≠0m\neq0, is finite. Regularity on the sphere and single-valuedness are the same requirement seen from two sides.

Where exactly does angular-momentum quantization come from here?

From the demand that the solution be bounded at both poles. The eigenvalue is ℓ(ℓ+1)\ell(\ell+1), and for a generic value the power series does not terminate — it then diverges like (1−x2)−∣m∣/2(1-x^2)^{-|m|/2} at the poles. Only when ℓ\ell is a non-negative integer with ℓ≥∣m∣\ell\ge|m| does the series close into a bounded polynomial times sin⁡mθ\sin^m\theta. That integer ℓ\ell is the same ℓ\ell in L2=ℏ2ℓ(ℓ+1)L^2=\hbar^2\ell(\ell+1), and the range −ℓ≤m≤ℓ-\ell\le m\le\ell is the (2ℓ+1)(2\ell+1)-fold degeneracy of Lz=ℏmL_z=\hbar m. Quantization is a boundary condition, not an extra postulate.

Do I ever need negative m, or is the absolute value enough?

For building a basis, ∣m∣|m| is enough: Pℓ−m=(−1)m(ℓ−m)!(ℓ+m)!PℓmP_\ell^{-m}=(-1)^m\frac{(\ell-m)!}{(\ell+m)!}P_\ell^m, so the negative-order function is a known constant times the positive one and carries no new shape. But you still want the labels −ℓ≤m≤ℓ-\ell\le m\le\ell because the azimuthal factor eimφe^{im\varphi} distinguishes +m+m from −m-m physically — they are counter-rotating states with Lz=±ℏmL_z=\pm\hbar m. So the functions Pℓ∣m∣P_\ell^{|m|} span everything, while the harmonics YℓmY_\ell^m genuinely need both signs to represent both senses of rotation and to form a complete orthonormal set on the sphere.

Why do numerical codes fight with the factorial normalization?

Because (ℓ+m)!(\ell+m)! overflows fast. An unnormalized PℓmP_\ell^m at high degree can exceed the double-precision range (about 1030810^{308}) near ℓ≈150\ell\approx150 for the largest orders, so computing it first and dividing by the norm afterward overflows before the division ever happens. Geodesy and cosmology libraries fold the normalization into the recurrence itself, propagating fully-normalized values at every step — the only way to reach the degrees ℓ∼103\ell\sim10^3 to 10410^4 that gravity and CMB models demand.

Before this

Where this leads