Skip to content

Spherical Harmonics

Spherical harmonics are the orthonormal angular functions on the unit sphere. They are the spherical analogue of Fourier modes: a square-integrable function of direction can be expanded in them, and rotationally invariant kernels can be decomposed with them.

This page is the mathematical reference for normalization, completeness, and phase convention. The physical angular-momentum interpretation is developed in Spherical Harmonics as Angular-Momentum States.

Write a direction on the unit sphere as

Ω=(θ,ϕ),0≤θ≤π,0≤ϕ<2π.\begin{gathered} \Omega=(\theta,\phi),\\ 0\le\theta\le\pi, \qquad 0\le\phi<2\pi. \end{gathered}

The sphere measure is

dΩ=sin⁡θ dθ dϕ.d\Omega = \sin\theta\,d\theta\,d\phi.

The inner product for angular functions is

⟨f,g⟩S2=∫S2f(Ω)∗g(Ω) dΩ.\langle f,g\rangle_{S^2} = \int_{S^2} f(\Omega)^*g(\Omega)\,d\Omega.

The factor sin⁡θ\sin\theta is part of the geometry. Omitting it changes the problem.

This page uses the Condon–Shortley phase convention. With the associated Legendre convention used on Associated Legendre Functions, for m≥0m\ge0,

Yℓm(θ,ϕ)=NℓmPℓm(cos⁡θ)eimϕ,Y_\ell^m(\theta,\phi) = N_{\ell m} P_\ell^m(\cos\theta) e^{im\phi},

where

Nℓm=(−1)m2ℓ+14π(ℓ−m)!(ℓ+m)!.N_{\ell m} = (-1)^m \sqrt{ \frac{2\ell+1}{4\pi} \frac{(\ell-m)!}{(\ell+m)!} }.

The allowed nonnegative labels are

ℓ=0,1,2,…,m=0,1,…,ℓ.\ell=0,1,2,\ldots, \qquad m=0,1,\ldots,\ell.

For negative mm, define

Yℓ−m=(−1)m(Yℓm)∗,m>0.Y_\ell^{-m} = (-1)^m \left(Y_\ell^m\right)^*, \qquad m>0.

The m=0m=0 case reduces to

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

The sign convention matters. Some references absorb the Condon–Shortley phase into PℓmP_\ell^m instead of writing it explicitly in YℓmY_\ell^m.

The first few functions fix signs and normalization more reliably than a verbal convention:

Y00=14π,Y10=34πcos⁡θ,Y1±1=∓38πsin⁡θ e±iϕ,Y20=516π(3cos⁡2θ−1).\begin{aligned} Y_0^0 &= \frac{1}{\sqrt{4\pi}},\\ Y_1^0 &= \sqrt{\frac{3}{4\pi}}\cos\theta,\\ Y_1^{\mathord\pm1} &= \mp \sqrt{\frac{3}{8\pi}} \sin\theta\,e^{\mathord\pm i\phi},\\ Y_2^0 &= \sqrt{\frac{5}{16\pi}} \left( 3\cos^2\theta-1 \right). \end{aligned}

These formulas use the convention stated above. A table that gives Y11Y_1^1 with the opposite sign is using a different associated-Legendre or spherical-harmonic phase convention.

Plots often use radius proportional to ∣Yℓm∣\lvert Y_\ell^m\rvert and color to show sign or phase. Such a surface is a visualization convention, not the three-dimensional probability density of a particle. A physical orbital also contains a radial factor.

The angular Laplacian on the unit sphere is

ΔS2=1sin⁡θ∂∂θ(sin⁡θ∂∂θ)+1sin⁡2θ∂2∂ϕ2.\Delta_{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\phi^2}.

Spherical harmonics satisfy

ΔS2Yℓm=−ℓ(ℓ+1)Yℓm.\Delta_{S^2}Y_\ell^m = -\ell(\ell+1)Y_\ell^m.

In quantum mechanics,

L2=−ℏ2ΔS2,Lz=−iℏ∂∂ϕ,L^2 = -\hbar^2\Delta_{S^2}, \qquad L_z = -i\hbar\frac{\partial}{\partial\phi},

so the same functions also obey

L2Yℓm=ℏ2ℓ(ℓ+1)Yℓm,LzYℓm=ℏmYℓm.\begin{aligned} L^2Y_\ell^m &= \hbar^2\ell(\ell+1)Y_\ell^m, \\ L_zY_\ell^m &= \hbar mY_\ell^m. \end{aligned}

The mathematical statement is the Laplacian eigenvalue problem on the sphere. The physical statement is that these functions carry orbital angular momentum labels.

Separating an angular function as

Y(θ,ϕ)=Θ(θ)Φ(ϕ)Y(\theta,\phi) = \Theta(\theta)\Phi(\phi)

first gives azimuthal modes

Φ(ϕ)=eimϕ.\Phi(\phi)=e^{im\phi}.

Single-valuedness under ϕ↦ϕ+2π\phi\mapsto\phi+2\pi requires m∈Zm\in\mathbb Z. The polar equation becomes the associated Legendre equation after x=cos⁡θx=\cos\theta. Regularity at both poles selects

ℓ=0,1,2,…,∣m∣≤ℓ.\ell=0,1,2,\ldots, \qquad \lvert m\rvert\le\ell.

For each ℓ\ell, there are 2ℓ+12\ell+1 allowed values of mm. The eigenvalue ℓ(ℓ+1)\ell(\ell+1) is therefore (2ℓ+1)(2\ell+1)-fold degenerate for the scalar Laplacian on the sphere.

In the angular representation,

L±=ℏe±iϕ(±∂∂θ+icot⁡θ∂∂ϕ).L_\pm = \hbar e^{\mathord\pm i\phi} \left( \mathord\pm\frac{\partial}{\partial\theta} +i\cot\theta\frac{\partial}{\partial\phi} \right).

Their action is

L±Yℓm=ℏℓ(ℓ+1)−m(m±1)×Yℓm±1.\begin{aligned} L_\pm Y_\ell^m &= \hbar \sqrt{ \ell(\ell+1)-m(m\mathord\pm1) }\\ &\quad\times Y_\ell^{m\mathord\pm1}. \end{aligned}

The coefficient vanishes at m=±ℓm=\pm\ell, so a fixed-ℓ\ell multiplet is finite. The positive square-root convention is tied to the Condon–Shortley phase. The algebraic derivation belongs in Angular Momentum Algebra.

The normalized spherical harmonics obey

∫S2Yℓm(Ω)∗Yℓ′m′(Ω) dΩ=δℓℓ′δmm′.\int_{S^2} Y_\ell^m(\Omega)^* Y_{\ell'}^{m'}(\Omega)\,d\Omega = \delta_{\ell\ell'}\delta_{mm'}.

The orthogonality in ϕ\phi comes from Fourier modes eimϕe^{im\phi}. The polar orthogonality comes from associated Legendre functions with the correct weight; the general weighted-polynomial viewpoint is summarized in Orthogonal Polynomials.

For suitable square-integrable angular functions,

f(Ω)=∑ℓ=0∞∑m=−ℓℓcℓmYℓm(Ω),f(\Omega) = \sum_{\ell=0}^{\infty} \sum_{m=-\ell}^{\ell} c_{\ell m}Y_\ell^m(\Omega),

where

cℓm=∫S2Yℓm(Ω)∗f(Ω) dΩ.c_{\ell m} = \int_{S^2} Y_\ell^m(\Omega)^* f(\Omega)\,d\Omega.

The completeness relation can be written distributionally as

∑ℓ=0∞∑m=−ℓℓYℓm(Ω)Yℓm(Ω′)∗=δ(Ω,Ω′).\sum_{\ell=0}^{\infty} \sum_{m=-\ell}^{\ell} Y_\ell^m(\Omega) Y_\ell^m(\Omega')^* = \delta(\Omega,\Omega').

This is the angular analogue of Fourier completeness. It should be interpreted under an integral, not as an ordinary pointwise equality.

The corresponding Parseval identity is

∫S2∣f(Ω)∣2 dΩ=∑ℓ=0∞∑m=−ℓℓ∣cℓm∣2.\int_{S^2} \lvert f(\Omega)\rvert^2\,d\Omega = \sum_{\ell=0}^{\infty} \sum_{m=-\ell}^{\ell} \lvert c_{\ell m}\rvert^2.

The ℓ=0\ell=0 coefficient extracts the spherical average:

c00=14π∫S2f(Ω) dΩ,14π∫S2f(Ω) dΩ=c004π.\begin{aligned} c_{00} &= \frac{1}{\sqrt{4\pi}} \int_{S^2}f(\Omega)\,d\Omega,\\ \frac{1}{4\pi} \int_{S^2}f(\Omega)\,d\Omega &= \frac{c_{00}}{\sqrt{4\pi}}. \end{aligned}

In coordinates, the delta distribution on the sphere can be written

δ(Ω,Ω′)=δ(θ−θ′)δ2π(ϕ−ϕ′)sin⁡θ,\delta(\Omega,\Omega') = \frac{ \delta(\theta-\theta') \delta_{2\pi}(\phi-\phi') }{ \sin\theta },

where δ2π\delta_{2\pi} is the periodic delta in the azimuthal angle. The 1/sin⁡θ1/\sin\theta factor compensates the integration measure. At a pole, an invariant or chart-based description avoids coordinate ambiguity.

For fixed ℓ\ell, summing over mm gives a rotationally invariant kernel:

∑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).

Here γ\gamma is the angle between the two directions,

cos⁡γ=cos⁡θcos⁡θ′+sin⁡θsin⁡θ′cos⁡(ϕ−ϕ′).\begin{aligned} \cos\gamma &= \cos\theta\cos\theta' \\ &\quad+ \sin\theta\sin\theta'\cos(\phi-\phi'). \end{aligned}

The addition theorem explains why Legendre Polynomials appear in multipole expansions, central Green functions, and partial-wave scattering after angular variables are summed or averaged.

For r≠r′r\ne r', the addition theorem gives

1∣r−r′∣=4π∑ℓ=0∞12ℓ+1r<ℓr>ℓ+1×∑m=−ℓℓYℓm(Ω)Yℓm(Ω′)∗,\begin{aligned} \frac{1}{ \lvert\mathbf r-\mathbf r'\rvert } &= 4\pi \sum_{\ell=0}^{\infty} \frac{1}{2\ell+1} \frac{r_<^\ell}{r_>^{\ell+1}}\\ &\quad\times \sum_{m=-\ell}^{\ell} Y_\ell^m(\Omega) Y_\ell^m(\Omega')^*, \end{aligned}

where

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

The radial coefficient depends only on ℓ\ell, while the angular dependence is resolved into the complete multiplet. This separation is central to electrostatic multipoles, central-potential Green functions, and partial-wave methods.

For fixed ℓ\ell, the span of

{Yℓ−ℓ,…,Yℓℓ}\left\lbrace Y_\ell^{-\ell}, \ldots, Y_\ell^\ell \right\rbrace

is invariant under rotations. A rotation mixes the mm components through a unitary (2ℓ+1)(2\ell+1)-dimensional matrix. Those matrices are the irreducible rotation matrices described in Wigner D-Matrices.

The precise index order and complex conjugation depend on whether a source uses active rotations of functions or passive rotations of coordinates. The invariant statement is that rotations never mix different ℓ\ell sectors for the sphere Laplacian.

With the convention on this page,

(Yℓm)∗=(−1)mYℓ−m.\left(Y_\ell^m\right)^* = (-1)^mY_\ell^{-m}.

Under spatial inversion, the coordinates transform as

Ω↦−Ω,(θ,ϕ)↦(π−θ,ϕ+π),\begin{gathered} \Omega\mapsto-\Omega,\\ (\theta,\phi) \mapsto (\pi-\theta,\phi+\pi), \end{gathered}

and

Yℓm(−Ω)=(−1)ℓYℓm(Ω).Y_\ell^m(-\Omega) = (-1)^\ell Y_\ell^m(\Omega).

Thus scalar central-potential angular wavefunctions with orbital label ℓ\ell have parity (−1)ℓ(-1)^\ell.

Complex harmonics diagonalize LzL_z and are usually the natural quantum basis. For real scalar fields and visualization, one can instead use real linear combinations. For m>0m>0, one convention is

Yℓm(c)=Yℓ−m+(−1)mYℓm2,Yℓm(s)=Yℓ−m−(−1)mYℓmi2.\begin{aligned} Y_{\ell m}^{(c)} &= \frac{ Y_\ell^{-m} +(-1)^mY_\ell^m }{\sqrt2},\\ Y_{\ell m}^{(s)} &= \frac{ Y_\ell^{-m} -(-1)^mY_\ell^m }{i\sqrt2}. \end{aligned}

Together with Yℓ0Y_\ell^0, these form a real orthonormal basis for the same fixed-ℓ\ell subspace. Different communities attach different signs and names to the real combinations. A real harmonic with m>0m>0 is not an eigenfunction of LzL_z, because it combines the +m+m and −m-m sectors.

For a central potential, the angular part of the stationary Schrödinger equation separates on the sphere. The angular functions are YℓmY_\ell^m, while the radial dynamics is carried by R(r)R(r) or the reduced radial function u(r)=rR(r)u(r)=rR(r).

The full wavefunction often has the form

ψ(r,θ,ϕ)=Rnℓ(r)Yℓm(θ,ϕ)\psi(r,\theta,\phi) = R_{n\ell}(r)Y_\ell^m(\theta,\phi)

for a bound central-potential problem. The spherical harmonic is not hydrogen-specific; it is the angular basis dictated by rotation symmetry.

For angular quadrature, the substitution

x=cos⁡θx=\cos\theta

turns the measure into

dΩ=dϕ dx.d\Omega=d\phi\,dx.

This makes Gauss–Legendre nodes in xx and a uniform periodic grid in ϕ\phi a natural product rule. For a function band-limited at ℓmax⁡\ell_{\max}, Nθ≥ℓmax⁡+1N_\theta\ge\ell_{\max}+1 Gauss–Legendre nodes and Nϕ≥2ℓmax⁡+1N_\phi\ge2\ell_{\max}+1 equally spaced azimuthal nodes are sufficient for many exact transform and orthogonality checks, provided the implementation uses consistent normalization and indexing.

Useful diagnostics are:

  • reconstruct a known low-order harmonic from its coefficients;
  • verify the orthonormality matrix numerically;
  • check Parseval’s identity;
  • rotate a fixed-ℓ\ell coefficient vector and confirm norm preservation;
  • increase both angular resolutions to expose aliasing.

Sampling uniformly in θ\theta while omitting sin⁡θ\sin\theta overweights the poles and does not approximate the sphere measure.

  • Forgetting the measure dΩ=sin⁡θ dθ dϕd\Omega=\sin\theta\,d\theta\,d\phi.
  • Mixing phase conventions for PℓmP_\ell^m and YℓmY_\ell^m.
  • Confusing the magnetic quantum number mm with particle mass.
  • Treating Pℓ(cos⁡θ)P_\ell(\cos\theta) as the whole spherical harmonic when m≠0m\ne0.
  • Interpreting orbital plots as literal particle trajectories rather than angular probability-density visualizations.
  • Using completeness as a pointwise identity instead of a distributional identity under an integral.
  • Forgetting that spin states are not functions on the ordinary sphere; spin uses representation theory, not scalar spherical harmonics.
  • Treating a real tesseral harmonic as an LzL_z eigenfunction.
  • Comparing rotated coefficients without checking active versus passive conventions.
  • Sampling uniformly in θ\theta without the geometric weight.
  • NIST Digital Library of Mathematical Functions, Chapter 14, Legendre and Related Functions.
  • A. R. Edmonds, Angular Momentum in Quantum Mechanics, Princeton University Press, 1957.
  • D. A. Varshalovich, A. N. Moskalev, and V. K. Khersonskii, Quantum Theory of Angular Momentum, World Scientific, 1988.
  • G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, 7th ed., Academic Press, 2013.
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
  1. Expand f(θ,ϕ)=cos⁡θf(\theta,\phi)=\cos\theta in spherical harmonics.
Solution

From the low-order formula,

Y10(θ,ϕ)=34πcos⁡θ.Y_1^0(\theta,\phi) = \sqrt{\frac{3}{4\pi}}\cos\theta.

Therefore,

cos⁡θ=4π3Y10(θ,ϕ).\cos\theta = \sqrt{\frac{4\pi}{3}} Y_1^0(\theta,\phi).

All other coefficients vanish. Direct projection gives

c10=∫S2Y10(Ω)∗cos⁡θ dΩ=4π3.\begin{aligned} c_{10} &= \int_{S^2} Y_1^0(\Omega)^* \cos\theta\,d\Omega\\ &= \sqrt{\frac{4\pi}{3}}. \end{aligned}
  1. Verify explicitly that

    Y11=−38πsin⁡θ eiϕY_1^1 = -\sqrt{\frac{3}{8\pi}} \sin\theta\,e^{i\phi}

    is normalized.

Solution

Compute

∫S2∣Y11∣2dΩ=38π∫02πdϕ∫0πsin⁡3θ dθ=38π(2π)(43)=1.\begin{aligned} \int_{S^2} \left\lvert Y_1^1 \right\rvert^2 d\Omega &= \frac{3}{8\pi} \int_0^{2\pi}d\phi \int_0^\pi \sin^3\theta\,d\theta\\ &= \frac{3}{8\pi} (2\pi) \left(\frac{4}{3}\right)\\ &= 1. \end{aligned}

The phase eiϕe^{i\phi} has unit modulus, and the extra sin⁡θ\sin\theta comes from the sphere measure.

  1. Use the addition theorem with Ω′=Ω\Omega'=\Omega to evaluate ∑m=−ℓℓ∣Yℓm(Ω)∣2\sum_{m=-\ell}^{\ell}\lvert Y_\ell^m(\Omega)\rvert^2.
Solution

When Ω′=Ω\Omega'=\Omega, the angle between the directions is γ=0\gamma=0, so

Pℓ(cos⁡γ)=Pℓ(1)=1.P_\ell(\cos\gamma) = P_\ell(1) =1.

The addition theorem gives

∑m=−ℓℓ∣Yℓm(Ω)∣2=2ℓ+14π.\sum_{m=-\ell}^{\ell} \left\lvert Y_\ell^m(\Omega) \right\rvert^2 = \frac{2\ell+1}{4\pi}.

The result is independent of direction, as rotational invariance requires. It also shows that the total density of a complete fixed-ℓ\ell multiplet is isotropic.

  1. Use the differential form of L+L_+ to verify

    L+Y10=2 ℏY11.L_+Y_1^0 = \sqrt2\,\hbar Y_1^1.
Solution

Because Y10Y_1^0 has no ϕ\phi dependence,

L+Y10=ℏeiϕ∂∂θ(34πcos⁡θ)=−ℏ34πsin⁡θ eiϕ.\begin{aligned} L_+Y_1^0 &= \hbar e^{i\phi} \frac{\partial}{\partial\theta} \left( \sqrt{\frac{3}{4\pi}}\cos\theta \right)\\ &= -\hbar \sqrt{\frac{3}{4\pi}} \sin\theta\,e^{i\phi}. \end{aligned}

Using

Y11=−38πsin⁡θ eiϕ,Y_1^1 = -\sqrt{\frac{3}{8\pi}} \sin\theta\,e^{i\phi},

the right side becomes

2 ℏY11.\sqrt2\,\hbar Y_1^1.

This agrees with the algebraic coefficient

ℏℓ(ℓ+1)−m(m+1)=2 ℏ\hbar \sqrt{ \ell(\ell+1)-m(m+1) } = \sqrt2\,\hbar

for ℓ=1\ell=1 and m=0m=0.