Spherical Harmonics

Point a microwave telescope at the sky and you get a temperature map on a sphere — the cosmic microwave background, hot and cold blotches wrapped around the celestial sphere. Walk into a geomagnetic observatory and you find Earth's magnetic field tabulated the same way: a pattern on a sphere. How do you analyze such data? On a line you would reach for Fourier series — decompose into sines and cosines, study one wavelength at a time. This article builds the sphere's answer: the spherical harmonics Yℓm(θ,φ)Y_\ell^m(\theta,\varphi), the sphere's Fourier modes. Everything is already on the workbench. Separation of Variables in Spherical Coordinates produced the radial powers and the separation constant ℓ(ℓ+1)\ell(\ell+1); Legendre Polynomials catalogued the axially symmetric angular solutions; Associated Legendre Functions lifted the restriction to m=0m = 0 and built Pℓm(cos⁡θ)P_\ell^m(\cos\theta), the piece that will pair with eimφe^{im\varphi} to restore the full angular dependence. What remains is assembly: bolt Pℓm(cos⁡θ)P_\ell^m(\cos\theta) to eimφe^{im\varphi}, normalize the product once and for all, and prove the family orthonormal and complete — so that any pattern on a sphere can be taken apart into modes and reassembled, one integral per coefficient. The payoff is the general solution of Laplace's equation with no symmetry assumed — the tool the next article turns into the multipole expansion. But the harmonics outgrew electrostatics long ago: Gauss used them to build the first mathematical model of Earth's magnetism in 1839, and cosmologists use the very same functions to compress the CMB sky into the angular power spectrum CℓC_\ell.

Key takeaways
  • A spherical harmonic is an assembled product, Yℓm=Nℓm Pℓm(cos⁡θ) eimφY_\ell^m=N_{\ell m}\,P_\ell^m(\cos\theta)\,e^{im\varphi}, with NℓmN_{\ell m} fixed by unit norm over the sphere.
  • The family is orthonormal and complete: any function on the sphere expands as f=∑cℓmYℓmf=\sum c_{\ell m}Y_\ell^m with cℓm=∫Yℓm∗f dΩc_{\ell m}=\int Y_\ell^{m*}f\,\mathrm{d}\Omega — Fourier's trick, promoted to the sphere.
  • The indices are geography: ℓ\ell counts the total nodal lines on the sphere, of which ∣m∣|m| are meridians and ℓ−∣m∣\ell-|m| are circles of latitude — m=0m=0 zonal, ∣m∣=ℓ|m|=\ell sectoral, the rest tesseral.
  • For large ℓ\ell, harmonics resolve angular features of size ∼180∘/ℓ\sim 180^\circ/\ell — this is why the CMB power spectrum CℓC_\ell is read off against angular scale.
  • Parity: Yℓm(−r^)=(−1)ℓ YℓmY_\ell^m(-\hat{\mathbf r})=(-1)^\ell\,Y_\ell^m. Unsöld's sum rule: ∑m∣Yℓm∣2=(2ℓ+1)/4π\sum_m|Y_\ell^m|^2=(2\ell+1)/4\pi — a filled shell is isotropic.
  • With the radial powers attached, the harmonics generate every solution of Laplace's equation: Φ=∑(Aℓmrℓ+Bℓmr−(ℓ+1))Yℓm\Phi=\sum(A_{\ell m}r^\ell+B_{\ell m}r^{-(\ell+1)})Y_\ell^m.
  • Key idea: spherical harmonics are the simultaneous eigenfunctions of the angular Laplacian (eigenvalue ℓ(ℓ+1)\ell(\ell+1)) and of ∂φ\partial_\varphi (eigenvalue imim); with the radial powers rℓr^\ell, r−(ℓ+1)r^{-(\ell+1)} attached they generate every solution of Laplace's equation in spherical geometry.
The core insight

Spherical harmonics are the simultaneous eigenfunctions of the Laplace–Beltrami operator on S2S^2 (eigenvalue ℓ(ℓ+1)\ell(\ell+1), under the sign convention −∇S22Yℓm=ℓ(ℓ+1)Yℓm-\nabla^2_{S^2}Y_\ell^m = \ell(\ell+1)Y_\ell^m) and of ∂φ\partial_\varphi (eigenvalue imim); multiplied by the radial powers rℓr^\ell or r−(ℓ+1)r^{-(\ell+1)} they generate every solution of Laplace's equation in spherical geometry.

Where this lives today

The largest spherical-harmonic computation in science runs on the oldest light in the universe. Cosmologists expand the CMB temperature map as ΔT=∑aℓmYℓm\Delta T=\sum a_{\ell m}Y_\ell^m — equation (4) verbatim — and compress the physics into the angular power spectrum Cℓ=⟨∣aℓm∣2⟩C_\ell=\langle|a_{\ell m}|^2\rangle, the average power per shell (rotational invariance, the fact that powered Unsöld's theorem, is why averaging over mm is legitimate). The acoustic peaks — the first at ℓ≈220\ell\approx220, our 0.8°0.8° scale — encode the universe's age, geometry, and composition. Gauss's own application never stopped running: the International Geomagnetic Reference Field — currently IGRF-14, epoch 2025, revised every five years — represents Earth's main field as a spherical-harmonic potential to degree 13, 195 Gauss coefficients consumed by every smartphone compass. And a quieter modern home: real-time graphics stores incoming light as low-ℓ\ell coefficients — nine numbers, through ℓ=2\ell=2, capture diffuse lighting to about one percent — while spatial audio (ambisonics) encodes full-sphere sound fields the same way, so every VR headset is doing sphere-data arithmetic with the YℓmY_\ell^m tabulated above.

The physical picture

Think of the sphere's surface as a drumhead with no rim. Its natural vibration patterns are the spherical harmonics, and the two indices are pure geography. The degree ℓ\ell counts the nodal circles — curves where the mode vanishes — so it sets the fineness of the pattern: ℓ=0\ell=0 is featureless, ℓ=1\ell=1 splits the sphere into hemispheres, large ℓ\ell carves patches roughly 180°/ℓ180°/\ell across. The order mm says how those circles are apportioned: ∣m∣|m| run pole-to-pole as meridians, the remaining ℓ−∣m∣\ell-|m| are rings of constant latitude. Three families result: zonal modes (m=0m=0) are stacks of latitude bands; sectoral modes (∣m∣=ℓ|m|=\ell) slice the sphere like an orange; everything in between is tesseral — a curved checkerboard.

The gallery shows the real combinations (patterns in cos⁡mφ\cos m\varphi or sin⁡mφ\sin m\varphi); the complex eimφe^{im\varphi} versions have the same nodal parallels but uniform magnitude around each latitude circle. The Fourier analogy is load-bearing: on a circle the complete orthonormal set is eimφ/2πe^{im\varphi}/\sqrt{2\pi}, one integer counting nodes. The sphere is two-dimensional, so its catalogue needs two integers — plus one inequality, ∣m∣≤ℓ|m|\le\ell, inherited from Associated Legendre Functions, where the derivative construction of PℓmP_\ell^m ran out of polynomial beyond m=ℓm=\ell. Each degree holds 2ℓ+12\ell+1 modes, and everything you do with Fourier series — expand, project, truncate honestly — transfers verbatim. One more picture before the mathematics: the ladder of scales. A degree-ℓ\ell mode spreads ℓ\ell nodal circles over 180°180° of colatitude, so its angular scale is θ≈180°/ℓ\theta\approx180°/\ell — and that is how cosmologists read the CMB: "the first acoustic peak sits at ℓ≈220\ell\approx220" means the sky is patterned most strongly on scales of 0.8°0.8°, a little bigger than the full Moon.

Figure
Degree versus angular scale — the zoom dial from hemispheres to the CMB
each degree l probes the angular scale θ ≈ 180° / l l = 2 — θ about 90° l = 20 — θ about 9° l = 220 — θ about 0.8° the CMB's first acoustic peak increasing l = zooming in

Assembling the harmonics

Begin by naming what we are not re-deriving. Separation of Variables in Spherical Coordinates split Laplace's equation into a radial Euler equation and an angular eigenvalue problem with separation constant ℓ(ℓ+1)\ell(\ell+1); Associated Legendre Functions solved the angular problem — single-valuedness quantized eimφe^{im\varphi} to integer mm, polar regularity selected Pℓm(cos⁡θ)P_\ell^m(\cos\theta) with ∣m∣≤ℓ|m|\le\ell. What survives is one compact eigenvalue statement:

∇S22 Yℓm=−ℓ(ℓ+1) Yℓm,∇S22=1sin⁡θ∂∂θ ⁣(sin⁡θ ∂∂θ)+1sin⁡2θ∂2∂φ2(1)\nabla^2_{S^2}\,Y_\ell^m=-\ell(\ell+1)\,Y_\ell^m,\qquad \nabla^2_{S^2}=\frac{1}{\sin\theta}\frac{\partial}{\partial\theta}\!\left(\sin\theta\,\frac{\partial}{\partial\theta}\right)+\frac{1}{\sin^2\theta}\frac{\partial^2}{\partial\varphi^2} \qquad (1)

where: ∇S22\nabla^2_{S^2} — the angular part of the Laplacian (the Laplace–Beltrami operator on the unit sphere); ℓ=0,1,2,…\ell=0,1,2,\dots — the degree; m=−ℓ,…,ℓm=-\ell,\dots,\ell — the order. It is the sphere's analogue of d2/dφ2 eimφ=−m2eimφ\mathrm{d}^2/\mathrm{d}\varphi^2\,e^{im\varphi}=-m^2e^{im\varphi} on the circle, with ℓ(ℓ+1)\ell(\ell+1) in the role of m2m^2: it certifies the harmonics as the natural modes of the surface. The assembled, normalized object — this article's deliverable — is

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

where: PℓmP_\ell^m — the associated Legendre function, taken phase-free exactly as constructed in the Associated Legendre Functions article, with no Condon–Shortley factor folded into its own Rodrigues formula; (−1)m(-1)^m — the Condon–Shortley phase, adopted here explicitly and only here (the greatest source of sign errors in the subject — see the pitfall box; and if you ever substitute a PℓmP_\ell^m taken from a table that already carries a built-in (−1)m(-1)^m, drop the (−1)m(-1)^m from the prefactor in (2), or the sign will be applied twice); the square root — the normalization constant NℓmN_{\ell m}, which the first derivation earns rather than asserts. The same formula covers negative orders, and the conjugation rule Yℓ−m=(−1)mYℓm∗Y_\ell^{-m} = (-1)^m Y_\ell^{m*} means tables need only list m≥0m\ge0.

Derivation ANormalization and orthonormality of the assembled harmonics

The goal is to fix the constant NℓmN_{\ell m} in Yℓm=NℓmPℓm(cos⁡θ)eimφY_\ell^m=N_{\ell m}P_\ell^m(\cos\theta)e^{im\varphi} by demanding unit norm over the sphere, then establish full orthonormality. The strategy: factor every sphere integral into an azimuthal times a polar integral — the product structure guarantees this — then spend two recalled results, the elementary φ\varphi integral and the associated Legendre norm from the Associated Legendre Functions article. Watch the φ\varphi integral do the heavy lifting for distinct orders, leaving the Legendre machinery only the equal-mm case.

Step 1. Write the norm with x=cos⁡θx=\cos\theta, so dΩ\mathrm{d}\Omega becomes dx dφ\mathrm{d}x\,\mathrm{d}\varphi:

∫∣Yℓm∣2 dΩ=∣Nℓm∣2∫02π ⁣∣eimφ∣2dφ  ∫−11 ⁣[Pℓm(x)]2dx\int|Y_\ell^m|^2\,\mathrm{d}\Omega=|N_{\ell m}|^2\int_0^{2\pi}\!\left|e^{im\varphi}\right|^2\mathrm{d}\varphi\;\int_{-1}^{1}\!\left[P_\ell^m(x)\right]^2\mathrm{d}x

Why it factorizes exactly: the integrand is a pure-φ\varphi factor times a pure-θ\theta factor, and the measure factorizes too — nothing couples the angles.

Step 2. The azimuthal factor is trivial: ∣eimφ∣2=1|e^{im\varphi}|^2=1, so the φ\varphi integral is 2π2\pi for every mm.

Step 3. Quote the polar norm — recalled from the Associated Legendre Functions article, not re-derived, valid for m≥0m \ge 0; negative orders are reached afterward through the conjugation rule rather than by substituting m<0m < 0 here:

∫−11[Pℓm(x)]2dx=22ℓ+1 (ℓ+m)!(ℓ−m)!\int_{-1}^{1}\left[P_\ell^m(x)\right]^2\mathrm{d}x=\frac{2}{2\ell+1}\,\frac{(\ell+m)!}{(\ell-m)!}

Why the factorials: each of the mm derivatives in the construction of PℓmP_\ell^m inflates its magnitude; the ratio is the bookkeeping. At m=0m=0 it collapses to the Legendre norm 2/(2ℓ+1)2/(2\ell+1) — a built-in check.

Step 4. Demand the product equal one and solve:

∣Nℓm∣2⋅2π⋅22ℓ+1(ℓ+m)!(ℓ−m)!=1  ⟹  Nℓm=(−1)m2ℓ+14π (ℓ−m)!(ℓ+m)!|N_{\ell m}|^2\cdot2\pi\cdot\frac{2}{2\ell+1}\frac{(\ell+m)!}{(\ell-m)!}=1 \;\Longrightarrow\; N_{\ell m}=(-1)^m\sqrt{\frac{2\ell+1}{4\pi}\,\frac{(\ell-m)!}{(\ell+m)!}}

The modulus is forced; the phase is convention, and we spend it on the Condon–Shortley factor (−1)m(-1)^m.

Step 5. Orthogonality. For m≠m′m\ne m' the azimuthal integral alone kills the overlap: ∫02πei(m−m′)φdφ=0\int_0^{2\pi}e^{i(m-m')\varphi}\mathrm{d}\varphi=0 for nonzero integer m−m′m-m'. For m=m′m=m' but ℓ≠ℓ′\ell\ne\ell', the polar integral is the fixed-mm orthogonality of the PℓmP_\ell^m, again recalled from Associated Legendre Functions. Every off-diagonal overlap vanishes; every diagonal one is unity by construction. As a consistency check: the sphere integral of ∣Y21∣2|Y_2^1|^2 returns 1.00001.0000; the overlaps of Y21Y_2^1 with Y11Y_1^1 and of Y20Y_2^0 with Y00Y_0^0 are 6×10−176\times10^{-17} and −8×10−18-8\times10^{-18} — zero to machine precision. At m=0m=0 the prefactor reduces to (2ℓ+1)/4π\sqrt{(2\ell+1)/4\pi}, matching the normalized Legendre series.

With the constant earned, here is the working stock through ℓ=2\ell=2 — the patterns that carry most of the multipole physics to come:

harmonicexplicit formprefactor valuepattern
Y00Y_0^014π\dfrac{1}{\sqrt{4\pi}}0.282090.28209isotropic
Y10Y_1^034πcos⁡θ\sqrt{\dfrac{3}{4\pi}}\cos\theta0.488600.48860zonal: north ++, south −-
Y1±1Y_1^{\pm1}∓38πsin⁡θ e±iφ\mp\sqrt{\dfrac{3}{8\pi}}\sin\theta\,e^{\pm i\varphi}0.345490.34549sectoral: equatorial belt
Y20Y_2^0516π (3cos⁡2θ−1)\sqrt{\dfrac{5}{16\pi}}\,(3\cos^2\theta-1)0.315390.31539zonal: poles ++, equator −-
Y2±1Y_2^{\pm1}∓158πsin⁡θcos⁡θ e±iφ\mp\sqrt{\dfrac{15}{8\pi}}\sin\theta\cos\theta\,e^{\pm i\varphi}0.772540.77254tesseral: four-quadrant
Y2±2Y_2^{\pm2}1532πsin⁡2θ e±2iφ\sqrt{\dfrac{15}{32\pi}}\sin^2\theta\,e^{\pm2i\varphi}0.386270.38627sectoral: four orange slices

Read the table with the gallery in mind: Y00Y_0^0 is the sphere's "DC level" — its coefficient is 4π\sqrt{4\pi} times the angular average; Y10∝cos⁡θ=z/rY_1^0\propto\cos\theta=z/r is the hemisphere split; Y20∝P2(cos⁡θ)Y_2^0\propto P_2(\cos\theta) is poles-versus-equator, the shape of every quadrupole to come; the ∣m∣=ℓ|m|=\ell entries carry sin⁡ℓθ\sin^\ell\theta, hugging the equator as an orange-slice pattern must. And note where the minus signs sit: the ∓\mp on odd-mm entries is the Condon–Shortley phase of equation (2). Our Associated Legendre Functions article deliberately kept PℓmP_\ell^m phase-free, so the (−1)m(-1)^m lives here, in the harmonic's prefactor, and nowhere else — Jackson's choice too; other books bury it inside PℓmP_\ell^m. Parity comes almost free and matters for multipoles. Inversion, r^→−r^\hat{\mathbf r}\to-\hat{\mathbf r}, acts as θ→π−θ\theta\to\pi-\theta, φ→φ+π\varphi\to\varphi+\pi: the azimuthal factor picks up eimπ=(−1)me^{im\pi}=(-1)^m, and Pℓm(−x)=(−1)ℓ+mPℓm(x)P_\ell^m(-x)=(-1)^{\ell+m}P_\ell^m(x) — one sign flip per derivative on top of the Legendre parity. The product is

Yℓm(−r^)=(−1)ℓ+m(−1)m Yℓm(r^)=(−1)ℓ Yℓm(r^)(3)Y_\ell^m(-\hat{\mathbf r})=(-1)^{\ell+m}(-1)^m\,Y_\ell^m(\hat{\mathbf r})=(-1)^\ell\,Y_\ell^m(\hat{\mathbf r}) \qquad (3)

where: the mm-dependence has cancelled ((−1)2m=1(-1)^{2m}=1), leaving a parity set by the degree alone. All 2ℓ+12\ell+1 members of a shell transform identically — which is why an inversion-symmetric charge distribution can have no dipole and no octupole moment: its potential simply cannot contain odd-ℓ\ell angular structure.

Fourier's trick on the sphere

Orthonormality is the tool; completeness is the license. The harmonics exhaust the eigenfunctions of the self-adjoint operator (1), and such eigenfunctions span the space — the Sturm–Liouville logic that underwrote Fourier series in Separation of Variables in Cartesian Coordinates. Every square-integrable pattern on the sphere is therefore expandable:

f(θ,φ)=∑ℓ=0∞∑m=−ℓℓcℓm Yℓm(θ,φ),cℓm=∫Yℓm∗(θ,φ) f(θ,φ) dΩ(4)f(\theta,\varphi)=\sum_{\ell=0}^{\infty}\sum_{m=-\ell}^{\ell}c_{\ell m}\,Y_\ell^m(\theta,\varphi),\qquad c_{\ell m}=\int Y_\ell^{m*}(\theta,\varphi)\,f(\theta,\varphi)\,\mathrm{d}\Omega \qquad (4)

where: ff — any reasonable function on the sphere (a boundary potential, a temperature map, a planet's field); cℓmc_{\ell m} — its generalized Fourier coefficients, one number per mode. The coefficient formula is derived from the expansion:

Go deeper · Derivation B · 1 minExtracting the coefficients — Fourier's trick on the sphere
Derivation BExtracting the coefficients — Fourier's trick on the sphere

The goal is the coefficient formula in equation (4): assuming a function on the sphere expands in harmonics, isolate any single coefficient cℓ′m′c_{\ell'm'} by one integral. The strategy is Fourier's trick verbatim: multiply by the conjugate of one chosen basis function, integrate, and let orthonormality assassinate every term of the double sum except the chosen one. The one new feature versus the Cartesian version is the conjugate — the basis is complex now — and a mini-expansion tests the machinery on a function whose answer we know by inspection.

Step 1. Hit the assumed expansion with a chosen test harmonic Yℓ′m′∗Y_{\ell'}^{m'*} and integrate:

∫Yℓ′m′∗ f dΩ=∑ℓ=0∞∑m=−ℓℓcℓm∫Yℓ′m′∗ Yℓm dΩ\int Y_{\ell'}^{m'*}\,f\,\mathrm{d}\Omega=\sum_{\ell=0}^{\infty}\sum_{m=-\ell}^{\ell}c_{\ell m}\int Y_{\ell'}^{m'*}\,Y_\ell^m\,\mathrm{d}\Omega

Why the conjugate: the inner product on complex functions is ∫g∗h\int g^*h. Forget the star and the m′≠0m'\ne0 projections silently pick up the wrong mode — real bases never punished this.

Step 2. Spend orthonormality: every integral on the right is δℓℓ′δmm′\delta_{\ell\ell'}\delta_{mm'}, so the infinite double sum collapses to the single term cℓ′m′c_{\ell'm'}. One multiplication, one integration, one Kronecker massacre — and each coefficient is measured independently: refining a truncation never disturbs coefficients already computed.

Step 3. Mini-expansion as a live test: f=cos⁡θf=\cos\theta is proportional to Y10Y_1^0, so exactly one coefficient should survive.

c10=∫Y10∗cos⁡θ dΩ=34π∫cos⁡2θ dΩ=34π⋅4π3=4π3≈2.047c_{10}=\int Y_1^{0*}\cos\theta\,\mathrm{d}\Omega=\sqrt{\frac{3}{4\pi}}\int\cos^2\theta\,\mathrm{d}\Omega=\sqrt{\frac{3}{4\pi}}\cdot\frac{4\pi}{3}=\sqrt{\frac{4\pi}{3}}\approx2.047

Step 4. Confirm: c10Y10=4π/3⋅3/4πcos⁡θ=cos⁡θc_{10}Y_1^0=\sqrt{4\pi/3}\cdot\sqrt{3/4\pi}\cos\theta=\cos\theta exactly; c00c_{00} vanishes by hemisphere cancellation, all m≠0m\ne0 die in the φ\varphi integral, and all ℓ≥2\ell\ge2 die by Legendre orthogonality since cos⁡θ=P1\cos\theta=P_1. As a numerical check: quadrature returns c10=2.0467=4π/3c_{10}=2.0467=\sqrt{4\pi/3} and ∣c00∣,∣c2m∣<10−15|c_{00}|,|c_{2m}|<10^{-15}; the genuinely φ\varphi-dependent case is Worked Example 1.

Now the destination of this five-article arc. Separation of Variables in Spherical Coordinates proved that the radial factor multiplying a degree-ℓ\ell angular mode must be A rℓ+B r−(ℓ+1)A\,r^\ell+B\,r^{-(\ell+1)} — recalled, not re-derived. Attach the complete angular catalogue and superpose:

Φ(r,θ,φ)=∑ℓ=0∞∑m=−ℓℓ(Aℓm rℓ+Bℓm r−(ℓ+1)) Yℓm(θ,φ)(5)\Phi(r,\theta,\varphi)=\sum_{\ell=0}^{\infty}\sum_{m=-\ell}^{\ell}\Big(A_{\ell m}\,r^{\ell}+B_{\ell m}\,r^{-(\ell+1)}\Big)\,Y_\ell^m(\theta,\varphi) \qquad (5)

where: AℓmA_{\ell m} — interior coefficients, kept when the region contains the origin (where r−(ℓ+1)r^{-(\ell+1)} blows up); BℓmB_{\ell m} — exterior coefficients, kept when the region reaches infinity (where rℓr^\ell blows up). This is the general solution of Laplace's equation with no symmetry assumed — the azimuthally symmetric series of earlier articles is its m=0m=0 slice. For a sphere of radius RR held at V(θ,φ)V(\theta,\varphi) the recipe is mechanical: project the data with (4), set Aℓm=cℓm/RℓA_{\ell m}=c_{\ell m}/R^\ell inside and Bℓm=cℓmRℓ+1B_{\ell m}=c_{\ell m}R^{\ell+1} outside, and let the first uniqueness theorem certify the result as the answer. The exterior series is also a signpost: its ℓ\ell-th term dies as 1/rℓ+11/r^{\ell+1} — monopole, dipole, quadrupole, each falling one power faster. Attaching those coefficients to an actual charge density is the business of the next article, Multipole Expansion of the Potential.

The sum rule and the addition theorem

Two structural theorems complete the toolkit. First: what does a complete shell — all 2ℓ+12\ell+1 modes of one degree, summed in quadrature — look like? Each individual ∣Yℓm∣2|Y_\ell^m|^2 is lumpy. The sum is not:

∑m=−ℓℓ∣Yℓm(θ,φ)∣2=2ℓ+14π(6)\sum_{m=-\ell}^{\ell}\left|Y_\ell^m(\theta,\varphi)\right|^2=\frac{2\ell+1}{4\pi} \qquad (6)

where: the right side is a pure number — no θ\theta, no φ\varphi. This is Unsöld's theorem (1927, atomic physics): a filled shell is perfectly isotropic. It is why closed-shell atoms are spherical though every orbital is lumpy — and a ferocious check on any harmonics table: sum the squares at a random point and (2ℓ+1)/4π(2\ell+1)/4\pi must appear.

Go deeper · Derivation C · 1 minUnsöld's theorem — a filled shell is isotropic
Derivation CUnsöld's theorem — a filled shell is isotropic

The goal is equation (6): the shell sum of ∣Yℓm∣2|Y_\ell^m|^2 is the constant (2ℓ+1)/4π(2\ell+1)/4\pi. The strategy is a two-move argument that never touches a Legendre function: show the sum is rotation-invariant — forcing it constant on the sphere — then fix the constant by integrating once. The rotation move leans on one structural fact: rotating a degree-ℓ\ell harmonic yields another degree-ℓ\ell eigenfunction, because the operator in (1) has no preferred axis. An explicit check at ℓ=1\ell=1 closes the loop.

Step 1. Define Sℓ(θ,φ)=∑m∣Yℓm∣2S_\ell(\theta,\varphi)=\sum_m|Y_\ell^m|^2 and rotate. Each rotated harmonic is still an eigenfunction of ∇S22\nabla^2_{S^2} with eigenvalue ℓ(ℓ+1)\ell(\ell+1), hence a combination of the same shell:

Yℓm(R−1n^)=∑m′Dm′m Yℓm′(n^)Y_\ell^m(\mathcal R^{-1}\hat{\mathbf n})=\sum_{m'}D_{m'm}\,Y_\ell^{m'}(\hat{\mathbf n})

Why DD is unitary: rotations preserve the area element, hence all inner products; an orthonormal set maps to an orthonormal set, and a change of basis between orthonormal bases is unitary.

Step 2. Compute the shell sum at the rotated point, using unitarity ∑mDm′mDm′′m∗=δm′m′′\sum_m D_{m'm}D^*_{m''m}=\delta_{m'm''}:

Sℓ(R−1n^)=∑m′,m′′(∑mDm′mDm′′m∗)Yℓm′Yℓm′′∗=Sℓ(n^)S_\ell(\mathcal R^{-1}\hat{\mathbf n})=\sum_{m',m''}\Big(\sum_m D_{m'm}D^*_{m''m}\Big)Y_\ell^{m'}Y_\ell^{m''*}=S_\ell(\hat{\mathbf n})

Rotations connect every point to every other, so SℓS_\ell is constant.

Step 3. Fix it by integrating: each term integrates to 11 by normalization, there are 2ℓ+12\ell+1 terms, and the sphere has area 4π4\pi:

Sℓ⋅4π=2ℓ+1  ⟹  Sℓ=2ℓ+14πS_\ell\cdot4\pi=2\ell+1 \;\Longrightarrow\; S_\ell=\frac{2\ell+1}{4\pi}

Step 4. Explicit check at ℓ=1\ell=1, straight from the table:

S1=34πcos⁡2θ+2⋅38πsin⁡2θ=34π(cos⁡2θ+sin⁡2θ)=34πS_1=\frac{3}{4\pi}\cos^2\theta+2\cdot\frac{3}{8\pi}\sin^2\theta=\frac{3}{4\pi}\left(\cos^2\theta+\sin^2\theta\right)=\frac{3}{4\pi}

The lumpy cos⁡2\cos^2 of the zonal mode and the equatorial belt of the sectoral pair fit like puzzle pieces. As a numerical check: 3/4π=0.2387323/4\pi=0.238732 holds at arbitrary points on the sphere; the five-term ℓ=2\ell=2 sum returns 0.39788736=5/4π0.39788736=5/4\pi at both (57°,123°)(57°,123°) and (17°,286°)(17°,286°) — the brute-force verification is Worked Example 2.

The second theorem powers the entire multipole program. It relates a Legendre polynomial of the angle between two directions to harmonics of each direction separately:

Pℓ(cos⁡γ)=4π2ℓ+1∑m=−ℓℓYℓm∗(θ′,φ′) Yℓm(θ,φ)(7)P_\ell(\cos\gamma)=\frac{4\pi}{2\ell+1}\sum_{m=-\ell}^{\ell}Y_\ell^{m*}(\theta',\varphi')\,Y_\ell^m(\theta,\varphi) \qquad (7)

where: γ\gamma — the angle between directions (θ,φ)(\theta,\varphi) and (θ′,φ′)(\theta',\varphi'), with cos⁡γ=cos⁡θcos⁡θ′+sin⁡θsin⁡θ′cos⁡(φ−φ′)\cos\gamma=\cos\theta\cos\theta'+\sin\theta\sin\theta'\cos(\varphi-\varphi'). This is the addition theorem, and its job is separation of variables for geometry: the left side tangles the two directions inside one function; the right side is a finite sum of products, each factor depending on one direction only — exactly what converts the Coulomb kernel 1/∣r−r′∣1/|\mathbf r-\mathbf r'| into independent multipole contributions. We state it and check it; we do not prove it — the honest proof needs the rotation group (Jackson §3.6) and belongs to a graduate course. But the lowest nontrivial case yields to hand algebra. At ℓ=1\ell=1 the right side reads, from the table,

4π3[34πcos⁡θcos⁡θ′+2⋅38πsin⁡θsin⁡θ′ ei(φ−φ′)+e−i(φ−φ′)2]=cos⁡θcos⁡θ′+sin⁡θsin⁡θ′cos⁡(φ−φ′)\frac{4\pi}{3}\left[\frac{3}{4\pi}\cos\theta\cos\theta'+2\cdot\frac{3}{8\pi}\sin\theta\sin\theta'\,\frac{e^{i(\varphi-\varphi')}+e^{-i(\varphi-\varphi')}}{2}\right]=\cos\theta\cos\theta'+\sin\theta\sin\theta'\cos(\varphi-\varphi')

where: the m=0m=0 term produced the first piece; the m=±1m=\pm1 terms — their Condon–Shortley signs entering squared, (∓1)(∓1)=+1(\mp1)(\mp1)=+1, hence harmless — combined their exponentials into the cosine. That is the spherical law of cosines for cos⁡γ=P1(cos⁡γ)\cos\gamma=P_1(\cos\gamma): the theorem checks. (Numerically, for directions (40.1°,108.9°)(40.1°,108.9°) and (120.3°,252.1°)(120.3°,252.1°), cos⁡γ=−0.831237\cos\gamma=-0.831237 and the ℓ=1\ell=1 sum returns −0.831237-0.831237; the ℓ=2\ell=2 sum returns P2=0.536434P_2=0.536434.) Two dividends: at γ=0\gamma=0, since Pℓ(1)=1P_\ell(1)=1, equation (7) collapses to Unsöld's theorem — the addition theorem talking to itself. And inserted into the Legendre expansion of 1/∣r−r′∣1/|\mathbf r-\mathbf r'| (the generating-function result owned by Legendre Polynomials), it separates source angles from field angles — the multipole expansion for arbitrary geometry falls out, the opening move of the next article.

Limiting cases

caseresultmeaning
axial symmetry, m=0m=0Yℓ0=2ℓ+14π Pℓ(cos⁡θ)Y_\ell^0=\sqrt{\dfrac{2\ell+1}{4\pi}}\,P_\ell(\cos\theta)the Legendre-series technology is the m=0m=0 slice of this article
ℓ=0\ell=0Y00=1/4πY_0^0=1/\sqrt{4\pi}, constanttruncation at ℓ=0\ell=0 keeps only the angular average — isotropy
large ℓ\ellfeatures of scale θ≈180°/ℓ\theta\approx180°/\ellthe CMB dictionary: multipole number reads as inverse angular scale
inversion r^→−r^\hat{\mathbf r}\to-\hat{\mathbf r}factor (−1)ℓ(-1)^\ellodd-ℓ\ell content forbidden for inversion-symmetric sources
coincident directions in (7)Unsöld sum rulethe addition theorem at γ=0\gamma=0 is the isotropy of a filled shell

The first row deserves respect: every azimuthally symmetric boundary-value problem of the earlier articles was secretly a spherical-harmonic expansion with all m≠0m\ne0 modes silenced by symmetry.

Worked examples

1 · Expanding a real pattern in complex modes (confidence builder)

Expand f=sin⁡θcos⁡φf=\sin\theta\cos\varphi in spherical harmonics, exactly. Verify numerically at θ=60°\theta=60°, φ=45°\varphi=45°.

Step 1. Diagnose before integrating. In Cartesian disguise f=x/rf=x/r, a degree-1 pattern — only ℓ=1\ell=1 survives. The φ\varphi-content cos⁡φ=12(eiφ+e−iφ)\cos\varphi=\frac{1}{2}(e^{i\varphi}+e^{-i\varphi}) feeds only m=±1m=\pm1. Two coefficients to find.

Step 2. Match against the table instead of integrating (legitimate, and faster). Inverting Y1±1Y_1^{\pm1} gives sin⁡θ eiφ=−8π/3 Y11\sin\theta\,e^{i\varphi}=-\sqrt{8\pi/3}\,Y_1^1 and sin⁡θ e−iφ=+8π/3 Y1−1\sin\theta\,e^{-i\varphi}=+\sqrt{8\pi/3}\,Y_1^{-1}, so

f=sin⁡θ eiφ+sin⁡θ e−iφ2=−2π3 Y11+2π3 Y1−1f=\frac{\sin\theta\,e^{i\varphi}+\sin\theta\,e^{-i\varphi}}{2}=-\sqrt{\frac{2\pi}{3}}\,Y_1^1+\sqrt{\frac{2\pi}{3}}\,Y_1^{-1}

and c1,±1=∓2π/3≈∓1.4472c_{1,\pm1}=\mp\sqrt{2\pi/3}\approx\mp1.4472, all other cℓm=0c_{\ell m}=0. Direct numerical projection with (4) confirms: c11=−1.447203c_{11}=-1.447203, c1,−1=+1.447203c_{1,-1}=+1.447203, with c10c_{10}, c21c_{21} vanishing to 10−1510^{-15}. The signature of a real function: cℓ,−m=(−1)mcℓm∗c_{\ell,-m}=(-1)^m c_{\ell m}^* — here c1,−1=−c11c_{1,-1}=-c_{11}, as required.

Step 3. Reconstruct at θ=60°\theta=60°, φ=45°\varphi=45°: Y11=−3/8πsin⁡60° eiπ/4=−(0.21157+0.21157 i)Y_1^1=-\sqrt{3/8\pi}\sin60°\,e^{i\pi/4}=-(0.21157+0.21157\,i) and Y1−1=+0.21157−0.21157 iY_1^{-1}=+0.21157-0.21157\,i. Weighting by the coefficients:

−2π3 Y11=0.30619+0.30619 i,+2π3 Y1−1=0.30619−0.30619 i-\sqrt{\tfrac{2\pi}{3}}\,Y_1^1=0.30619+0.30619\,i,\qquad +\sqrt{\tfrac{2\pi}{3}}\,Y_1^{-1}=0.30619-0.30619\,i

Step 4. Add: the imaginary parts cancel — ff is real — leaving 0.61237\mathbf{0.61237}. Direct evaluation: sin⁡60°cos⁡45°=0.86603×0.70711=0.61237\sin60°\cos45°=0.86603\times0.70711=\mathbf{0.61237}. Exact — a live demonstration of how a real pattern lives in a complex basis: a conjugate pair of modes whose imaginary lumps annihilate.

2 · Auditing Unsöld at degree 2 (exam level)

Verify Unsöld's theorem for ℓ=2\ell=2 by brute force at θ=57°\theta=57°, φ=123°\varphi=123°: evaluate all five ∣Y2m∣2|Y_2^m|^2 and sum.

Step 1. Ingredients: cos⁡57°=0.54464\cos57°=0.54464, so cos⁡2θ=0.29663\cos^2\theta=0.29663; sin⁡57°=0.83867\sin57°=0.83867, so sin⁡2θ=0.70337\sin^2\theta=0.70337. No ∣Yℓm∣2|Y_\ell^m|^2 depends on φ\varphi — the modulus of eimφe^{im\varphi} is 1 — so the 123°123° is a red herring. (Notice this before computing.)

Step 2. The zonal term: Y20=0.31539 (3×0.29663−1)=−0.03473Y_2^0=0.31539\,(3\times0.29663-1)=-0.03473, so ∣Y20∣2=0.00121|Y_2^0|^2=0.00121. Tiny — 57°57° sits almost on the nodal cone of P2P_2 at 54.7°54.7°.

Step 3. The tesseral pair: ∣Y2±1∣2=158πsin⁡2θcos⁡2θ=0.59683×0.70337×0.29663=0.12452|Y_2^{\pm1}|^2=\frac{15}{8\pi}\sin^2\theta\cos^2\theta=0.59683\times0.70337\times0.29663=0.12452 each, contributing 0.249050.24905. The sectoral pair: ∣Y2±2∣2=1532πsin⁡4θ=0.14921×(0.70337)2=0.07382|Y_2^{\pm2}|^2=\frac{15}{32\pi}\sin^4\theta=0.14921\times(0.70337)^2=0.07382 each, contributing 0.147630.14763.

Step 4. Sum the shell:

0.00121+0.24905+0.14763=0.39789=54π=0.397887…0.00121+0.24905+0.14763=\mathbf{0.39789}=\frac{5}{4\pi}=0.397887\ldots

The theorem holds to the last digit. Physically: where the zonal mode goes silent (its nodal cone), the tesseral pair — near its maximum at 45°45° — picks up the slack. Every dip in one pattern is filled by the others, everywhere, exactly.

Origins · 1 minCarl Friedrich Gauss and how this was discovered
CF
Carl Friedrich Gauss
1777–1855 · Göttingen, the observatory and the Magnetic Union

Gauss spent his last two decades on a problem that sounds administrative and turned out to be foundational: what is Earth's magnetic field, mathematically? With Wilhelm Weber he founded the Magnetischer Verein — observatories from Dublin to Beijing taking synchronized readings — and in the 1839 memoir Allgemeine Theorie des Erdmagnetismus did what no one had done before: expanded a real, measured, global magnetic scalar potential in spherical harmonics. He determined 24 coefficients (every mode through degree 4), showed the field's sources are overwhelmingly internal to the planet — settling a century of speculation — and predicted the south magnetic pole close to where Ross's expedition placed it. Geomagnetic coefficients are called Gauss coefficients to this day, and the modern IGRF is literally the same expansion with more terms and satellite data. A characteristic performance from the prince of mathematicians: treat a planet as a boundary-value problem — and win.

History
1782
— Laplace, computing the attraction of spheroids, expands potentials in two-angle functions soon called Laplace coefficients — spherical harmonics in embryo.
1839
— Gauss's Allgemeine Theorie des Erdmagnetismus makes the first spherical-harmonic fit of the global magnetic scalar potential: Earth's magnetism to degree 4, 24 coefficients, internal origin proven.
1927
— Unsöld proves the shell-sum rule, explaining in one line why closed-shell atoms are spherical.
1935
— Condon and Shortley's Theory of Atomic Spectra codifies the phase convention that still bears their names.
1992
— COBE detects the CMB's temperature anisotropy, turning the sky's low-degree harmonic coefficients into cosmological data.
2018
— Planck's final release pins the angular power spectrum out to degree 2500 — a spherical-harmonic analysis with millions of measured mode amplitudes.

Going further

References. Jackson, Classical Electrodynamics, 3rd ed., §3.5–3.6 · Griffiths, Introduction to Electrodynamics, 4th ed., §3.3.2 & §3.4 · Zangwill, Modern Electrodynamics, §7.4–7.5 · Arfken & Weber, Mathematical Methods for Physicists The normalization prefactor squared times the associated-Legendre norm 2(ℓ+m)!/[(2ℓ+1)(ℓ−m)!]2(\ell+m)!/[(2\ell+1)(\ell-m)!] and the 2π2\pi azimuthal integral give unity. The radial Euler indices are s=ℓ,−(ℓ+1)s=\ell,-(\ell+1), from s(s+1)=ℓ(ℓ+1)s(s+1)=\ell(\ell+1). The low-ℓ\ell harmonics are Y00=1/4πY_0^0=1/\sqrt{4\pi}, Y10=3/4πcos⁡θY_1^0=\sqrt{3/4\pi}\cos\theta, Y1±1=∓3/8πsin⁡θ e±iφY_1^{\pm1}=\mp\sqrt{3/8\pi}\sin\theta\,e^{\pm i\varphi}; the Condon–Shortley phase convention follows Jackson. Anchor values used throughout: c1,±1=∓2π/3=∓1.44720c_{1,\pm1}=\mp\sqrt{2\pi/3}=\mp1.44720 with reconstruction 0.612370.61237 at (60°,45°)(60°,45°); Unsöld sums 0.2387320.238732 and 0.3978870.397887; the ℓ=1,2\ell=1,2 addition-theorem identities; and the parity rule at four (ℓ,m)(\ell,m) pairs.

Builds on: Separation of Variables in Spherical Coordinates · Legendre Polynomials · Laplace's Equation · Boundary Conditions for the Potential Leads to: Uniqueness Theorems for the Potential · Image Charges for a Conducting Sphere · Poisson's Equation

Why do we bother with complex harmonics when every physical pattern is real?

Convenience, not necessity. The real combinations ∝cos⁡mφ\propto\cos m\varphi and sin⁡mφ\sin m\varphi are an equally good orthonormal basis — geodesy and chemistry use them exclusively (the pxp_x, pyp_y orbitals are the real forms of Y1±1Y_1^{\pm1}). The complex set wins because eimφe^{im\varphi} is an eigenfunction of ∂φ\partial_\varphi — rotations about the axis act by a phase — and because the addition theorem, the conjugation rule, and quantum mechanics take their cleanest forms with it. A real function simply obeys cℓ,−m=(−1)mcℓm∗c_{\ell,-m}=(-1)^m c_{\ell m}^*, exhibited in Worked Example 1.

Where exactly does the Condon–Shortley phase live in this series, and why does anyone want it?

Here — following Jackson — the (−1)m(-1)^m sits in the prefactor of YℓmY_\ell^m, and the PℓmP_\ell^m of the Associated Legendre Functions article are phase-free. Some books absorb it into PℓmP_\ell^m instead; the harmonics come out identical either way, provided both pieces come from the same book. Why want the phase at all? It makes quantum-mechanical ladder operators act with uniform plus signs and gives the conjugation rule its standard form — bookkeeping chosen by Condon and Shortley in 1935. Fields that never touch ladder operators, like geodesy, happily drop it.

Why are there exactly 2l+1 harmonics of each degree?

Count the orders: mm runs over the integers from −ℓ-\ell to +ℓ+\ell — 2ℓ+12\ell+1 values — and the bound ∣m∣≤ℓ|m|\le\ell was derived in Associated Legendre Functions: constructing PℓmP_\ell^m takes ∣m∣|m| derivatives of a degree-ℓ\ell polynomial, and the (ℓ+1)(\ell+1)-th derivative kills it. Deeper phrasing: the degree-ℓ\ell harmonics span the space of homogeneous degree-ℓ\ell harmonic polynomials on the sphere, which is (2ℓ+1)(2\ell+1)-dimensional. Quantum mechanics re-derives the same count as the multiplicity of angular momentum ℓ\ell — same functions, different costume.

If my problem is symmetric about the z-axis, do I need any of this?

No — and knowing why is the point. Azimuthal symmetry means no φ\varphi-dependence, so Fourier's trick returns zero for every m≠0m\ne0 coefficient, and the expansion collapses to Yℓ0=(2ℓ+1)/4π Pℓ(cos⁡θ)Y_\ell^0=\sqrt{(2\ell+1)/4\pi}\,P_\ell(\cos\theta) — the Legendre series of Separation of Variables in Spherical Coordinates, with identical results. The full machinery earns its keep once the data have genuine longitude dependence: an off-axis point charge, a tilted external field, a real planet.

What does the degree l actually correspond to physically?

Angular scale, via θ≈180°/ℓ\theta\approx180°/\ell. A degree-ℓ\ell mode has ℓ\ell nodal circles, so its features are about 180°/ℓ180°/\ell across — ℓ\ell is the sphere's wavenumber, with eigenvalue ℓ(ℓ+1)\ell(\ell+1) in the role of k2k^2. Cosmology uses the dictionary raw: a feature at multipole ℓ\ell in the CMB spectrum is a feature at angular scale 180°/ℓ180°/\ell on the sky. It also echoes in the radial factors: higher ℓ\ell falls off faster, r−(ℓ+1)r^{-(\ell+1)} — finer angular detail is harder to see from far away.

The addition theorem looks like abstract bookkeeping — what will it actually do for me?

It performs a separation no ordinary algebra achieves. The kernel 1/∣r−r′∣1/|\mathbf r-\mathbf r'| depends on the angle γ\gamma between source and field directions — two sets of angles tangled inside cos⁡γ\cos\gamma, and the Legendre expansion of the kernel leaves Pℓ(cos⁡γ)P_\ell(\cos\gamma) still tangled. The addition theorem unties it: a finite sum of products, source factor times field factor. Integrate over the source and each term becomes a fixed number — a multipole moment — multiplying a pure function of field direction. The next article is this maneuver executed with care; the same identity underlies partial-wave scattering and CMB statistics.

How do the CMB's C-ell values relate to the coefficients in this article?

Directly: the anisotropy is expanded exactly as in equation (4), with aℓma_{\ell m} extracted from the sky map by Fourier's trick. Theories predict only statistics — the universe is one random realization — and rotational invariance forces ⟨aℓmaℓ′m′∗⟩=Cℓ δℓℓ′δmm′\langle a_{\ell m}a_{\ell'm'}^*\rangle=C_\ell\,\delta_{\ell\ell'}\delta_{mm'}: one number per shell, by the same logic that proved Unsöld's theorem. The peaks of CℓC_\ell at ℓ≈220,540,…\ell\approx220,540,\dots are sound waves in the primordial plasma, read through the θ≈180°/ℓ\theta\approx180°/\ell dictionary; fitting six cosmological parameters to that curve measured the universe's matter budget.

Before this

Where this leads