The Angular Wavefunctions and Spherical Harmonics

Why does a p orbital have a node through the nucleus? An s orbital never does. Both are solutions to the same Schrödinger equation. Yet they carry entirely different geometric personalities. Consider a dumbbell versus a sphere. Or a four-lobed clover versus something even more intricate. The geometry is not chosen by chemists to make textbook diagrams pretty. It is forced on the hydrogen atom by the mathematics of rotation itself. Every orbital shape you have ever drawn is a visible signature. It comes from a function called a spherical harmonic. Understanding where that function comes from explains why quantum numbers ll and mm exist. It also explains why they take only the integer values they do. This matters because the angular wavefunctions are the universal part of atomic and molecular structure. The radial wavefunction changes from atom to atom. It also changes from orbital to orbital within an atom. It even changes, in a hand-wavy way, from molecule to molecule. This happens when we build hybrid and molecular orbitals. But the angular part is different. It answers "how does the wavefunction depend on direction from the nucleus?" This part is always a spherical harmonic. That holds regardless of what central potential is holding the electron. It appears identically in the hydrogen atom. It appears in the rigid rotor model of molecular rotation. It appears in multipole expansions of electrostatics. And it appears in the vector-coupling schemes used throughout spectroscopy. Learn it once, and you have learned a piece of mathematics. It recurs across all of chemistry wherever spherical symmetry appears. The big picture is this. Separation of Variables in Spherical Coordinates splits the hydrogen Schrödinger equation. It becomes a radial equation and an angular equation. The angular equation turns out to be identical to another problem. That problem is the eigenvalue problem for the angular momentum operators L^2\hat{L}^2 and L^z\hat{L}_z. Solving it really means answering one question. What functions on a sphere are simultaneous eigenfunctions of total angular momentum squared and its z-projection? The answer is the spherical harmonics Ylm(θ,ϕ)Y_l^m(\theta,\phi). These functions must be single-valued and finite on the sphere. That requirement is precisely what forces ll to be a non-negative integer. It also forces mm to run over −l,…,+l-l, \dots, +l in integer steps. Quantization is not an assumption bolted onto the theory. It is a mathematical inevitability of demanding well-behaved functions on a closed surface. This article walks through that derivation in full. First, separating θ\theta from ϕ\phi. Then, solving the azimuthal equation to get quantized mm. Next, solving the polar equation (the associated Legendre equation) to get quantized ll. Finally, assembling the normalized spherical harmonics. It then works three concrete examples. These include verifying orthonormality for Y10Y_1^0, building a real pxp_x orbital from complex harmonics, and computing an expectation value for Y21Y_2^1. It then surveys where these functions show up. Topics include NMR and EPR angular dependence, multipole electrostatics, rotational spectroscopy, and the shapes that organize the entire periodic table. This is the mathematics underneath every orbital lobe you have ever drawn.

Key takeaways
  • Separating the angular Schrödinger equation in spherical coordinates gives Θ(θ)Φ(ϕ)\Theta(\theta)\Phi(\phi), and single-valuedness of Φ(ϕ)=eimϕ\Phi(\phi) = e^{im\phi} forces mm to be an integer.
  • The polar equation for Θ(θ)\Theta(\theta) is the associated Legendre equation; finiteness at the poles (θ=0,π\theta = 0, \pi) forces ll to be a non-negative integer with ∣m∣≤l|m| \le l.
  • The resulting functions Ylm(θ,ϕ)Y_l^m(\theta,\phi) are simultaneous eigenfunctions of L^2\hat{L}^2 (eigenvalue l(l+1)ℏ2l(l+1)\hbar^2) and L^z\hat{L}_z (eigenvalue mℏm\hbar).
  • Spherical harmonics form a complete orthonormal set on the sphere: any well-behaved angular function can be expanded in them, just like a Fourier series.
  • Real combinations of Y1+1Y_1^{+1} and Y1−1Y_1^{-1} give the familiar px,pyp_x, p_y orbitals; similar combinations for l=2l=2 give the five dd orbitals.
  • The quantum numbers ll and mm that organize atomic structure are not postulated — they are the eigenvalue labels required by the boundary conditions on a sphere.
  • Key idea: demanding that a wavefunction be single-valued and finite everywhere on a sphere is enough, by itself, to quantize angular momentum into the integer ladder l=0,1,2,…l = 0,1,2,\dots and m=−l,…,+lm = -l,\dots,+l.

Where this lives today

The angular parts of atomic orbitals are not a historical curiosity confined to introductory chemistry — they are load-bearing infrastructure across modern chemical science. Every Gaussian-type or Slater-type basis function used in electronic structure software (Gaussian, ORCA, Psi4, and the rest) is built by multiplying a radial Gaussian or exponential by a real spherical harmonic (or a Cartesian polynomial equivalent), so every DFT or Hartree–Fock calculation you run implicitly re-derives this angular machinery millions of times per second. In NMR and EPR spectroscopy, the angular dependence of dipolar coupling, chemical shift anisotropy, and zero-field splitting tensors are expanded directly in second-rank spherical harmonics (l=2l=2), and the famous "magic angle" of 54.7°54.7° used in solid-state NMR spinning is the specific angle at which P2(cos⁡θ)=12(3cos⁡2θ−1)P_2(\cos\theta) = \tfrac12(3\cos^2\theta - 1) vanishes — a direct descendant of the Legendre polynomials derived above. In molecular rotational spectroscopy, the rigid-rotor eigenfunctions are exactly the spherical harmonics, and microwave and far-infrared spectra of gas-phase molecules (used in radioastronomy to identify interstellar molecules, and in atmospheric chemistry to monitor trace gases) are interpreted directly through l(l+1)l(l+1) energy-level spacing. Multipole expansions of molecular electrostatic potentials — used to model intermolecular forces in force-field development for drug design and materials simulation — are literally expansions in spherical harmonics of increasing ll, with l=0l=0 giving the total charge, l=1l=1 the dipole, l=2l=2 the quadrupole, and so on. Crystal-field and ligand-field theory, essential to understanding the colors and magnetism of transition-metal and lanthanide complexes used in catalysis, MRI contrast agents, and phosphor materials, rests entirely on how dd and ff spherical harmonics transform and split under a surrounding symmetry environment. Even the angular part of the Shapes of s, p, and d Orbitals that every chemistry student memorizes is nothing more than ∣Ylm∣2|Y_l^m|^2, or its real linear combinations, plotted as a function of direction.

Ask the tutor: How do the spherical harmonics for l=2 combine to give the specific five real d-orbital shapes (dz², dxz, dyz, dxy, dx²-y²) used in ligand field theory?

The physical picture

Picture an electron's angular momentum vector L\mathbf{L} as a needle that can point in any direction in three-dimensional space — that is the classical picture. Quantum mechanically, you cannot know all three components of L\mathbf{L} simultaneously, only its magnitude (L^2\hat{L}^2) and one chosen component (conventionally L^z\hat{L}_z). The angular wavefunction Ylm(θ,ϕ)Y_l^m(\theta,\phi) is precisely the amplitude for finding the "needle" configured with total angular momentum l(l+1) ℏ\sqrt{l(l+1)}\,\hbar and z-component mℏm\hbar, expressed as a function of the direction (θ,ϕ)(\theta,\phi) in which you look for the electron around the nucleus. The route to these functions begins with the Separation of Variables in Spherical Coordinates applied to the hydrogen-atom Schrödinger equation. Because the Coulomb potential V(r)=−e2/4πϵ0rV(r) = -e^2/4\pi\epsilon_0 r depends only on rr, the full wavefunction factors as ψ(r,θ,ϕ)=R(r) Y(θ,ϕ)\psi(r,\theta,\phi) = R(r)\,Y(\theta,\phi), and Y(θ,ϕ)Y(\theta,\phi) satisfies an equation that involves no reference to the specific potential at all — it is the same equation for hydrogen, for the rigid rotor, or for any particle confined to a sphere. This universality is the reason the same five dd-orbital shapes appear whether you are looking at a transition-metal complex, a lanthanide, or an idealized particle-on-a-sphere problem in a textbook. The angular equation further separates into a ϕ\phi-part and a θ\theta-part. The ϕ\phi-equation is almost embarrassingly simple — it is the equation for a particle on a ring — and its solution Φ(ϕ)∝eimϕ\Phi(\phi) \propto e^{im\phi} must return to its original value after a full 2π2\pi rotation, since ϕ\phi and ϕ+2π\phi + 2\pi describe the same physical point. That single requirement is enough to force mm into the integers. The θ\theta-equation is harder: it is the associated Legendre equation, whose solutions blow up at the poles (θ=0,π\theta=0,\pi) unless a further integer condition relates ll and mm. Untangling these two conditions is the heart of this derivation, and the figures below show the resulting shapes.

Figure
The polar angle θ and azimuthal angle φ define direction on a sphere; Φ(φ) must close up after 2π
z y x electron direction (θ,φ) θ φ Φ(φ)=e^{imφ}: rotating φ→φ+2π must return to same value ⇒ m ∈ ℤ
Figure
Angular probability lobes for l=0 (s), l=1 (p, real combination), and l=2 (dz²) shown as polar plots of |Y|²
l = 0 (s) |Y₀⁰|² = const l = 1 (pz, real) two lobes, node at z=0 l = 2 (dz²) two lobes + torus

The core ideas

The full time-independent Schrödinger equation for a single particle in a central potential V(r)V(r), written in spherical coordinates, separates into radial and angular pieces once ψ=R(r)Y(θ,ϕ)\psi = R(r)Y(\theta,\phi) is substituted in. The angular factor obeys

−ℏ22μr2[1sin⁡θ∂∂θ(sin⁡θ∂Y∂θ)+1sin⁡2θ∂2Y∂ϕ2]=ℏ2β2μr2 Y-\frac{\hbar^2}{2\mu r^2}\left[\frac{1}{\sin\theta}\frac{\partial}{\partial\theta}\left(\sin\theta \frac{\partial Y}{\partial\theta}\right) + \frac{1}{\sin^2\theta}\frac{\partial^2 Y}{\partial \phi^2}\right] = \frac{\hbar^2 \beta}{2\mu r^2}\, Y

where: μ\mu is the reduced mass, β\beta is a dimensionless separation constant (which will turn out to equal l(l+1)l(l+1)), and the bracketed differential operator is (up to a sign and factor) the operator L^2/ℏ2\hat{L}^2/\hbar^2 acting purely on angles.

Reading: the rr-dependence cancels out of this equation entirely — multiply through by r2r^2 and the whole thing is a statement purely about the sphere, independent of what potential is confining the particle radially. This is why the same Y(θ,ϕ)Y(\theta,\phi) describes hydrogen orbitals, rigid-rotor rotational states, and any other spherically symmetric problem. Recognizing that the bracket is exactly −L^2/ℏ2-\hat{L}^2/\hbar^2 (in the position representation), the angular equation is simply the eigenvalue equation

L^2Y(θ,ϕ)=l(l+1)ℏ2 Y(θ,ϕ),l=0,1,2,…\hat{L}^2 Y(\theta,\phi) = l(l+1)\hbar^2\, Y(\theta,\phi), \qquad l = 0, 1, 2, \dots

where: L^2\hat{L}^2 is the total angular momentum squared operator, and l(l+1)ℏ2l(l+1)\hbar^2 is its eigenvalue, with ll the angular momentum quantum number.

Reading: this equation says that YY is a state of definite total angular momentum magnitude l(l+1)ℏ\sqrt{l(l+1)}\hbar. The specific integer values of ll are not assumed here — they emerge from the boundary conditions worked out in the derivation below. Because [L^2,L^z]=0[\hat{L}^2, \hat{L}_z] = 0, the same functions can also be chosen as eigenfunctions of L^z\hat{L}_z:

L^z Y(θ,ϕ)=mℏ Y(θ,ϕ),m=−l,−l+1,…,+l\hat{L}_z\, Y(\theta,\phi) = m\hbar\, Y(\theta,\phi), \qquad m = -l, -l+1, \dots, +l

where: L^z=−iℏ ∂/∂ϕ\hat{L}_z = -i\hbar\,\partial/\partial\phi is the z-component of angular momentum, and mm is the magnetic quantum number, restricted to 2l+12l+1 integer values for each ll.

Reading: because L^2\hat{L}^2 and L^z\hat{L}_z commute, they share a complete set of eigenfunctions — this is the same commuting-operator logic used throughout quantum mechanics whenever quantum numbers are said to be "good" simultaneously. Finally, the normalized simultaneous eigenfunctions are the spherical harmonics:

Ylm(θ,ϕ)=(−1)m(2l+1)4π(l−m)!(l+m)!  Plm(cos⁡θ) eimϕY_l^m(\theta,\phi) = (-1)^m \sqrt{\frac{(2l+1)}{4\pi}\frac{(l-m)!}{(l+m)!}}\; P_l^m(\cos\theta)\, e^{im\phi}

where: Plm(cos⁡θ)P_l^m(\cos\theta) is the associated Legendre function, the phase convention (−1)m(-1)^m is the Condon–Shortley phase (a widely used but not universal convention), and the square-root prefactor makes YlmY_l^m normalized to unity over the full solid angle.

Reading: this formula is the payoff of the whole derivation — a single closed-form function of two angles, labeled by two quantum numbers, that simultaneously diagonalizes L^2\hat{L}^2 and L^z\hat{L}_z.

Derivation AThe azimuthal equation: quantizing m

Goal. Separate the angular equation into θ\theta and ϕ\phi parts, solve the ϕ\phi-equation, and show that single-valuedness forces mm to be an integer.

Step 1 — Separate Θ\Theta and Φ\Phi. Write Y(θ,ϕ)=Θ(θ)Φ(ϕ)Y(\theta,\phi) = \Theta(\theta)\Phi(\phi) and substitute into the angular equation above (with eigenvalue β=l(l+1)\beta = l(l+1) built in from the start for bookkeeping):

1Θ[1sin⁡θddθ(sin⁡θdΘdθ)]sin⁡2θ+l(l+1)sin⁡2θ=−1Φd2Φdϕ2\frac{1}{\Theta}\left[\frac{1}{\sin\theta}\frac{d}{d\theta}\left(\sin\theta \frac{d\Theta}{d\theta}\right)\right]\sin^2\theta + l(l+1)\sin^2\theta = -\frac{1}{\Phi}\frac{d^2\Phi}{d\phi^2}

The left side depends only on θ\theta; the right side depends only on ϕ\phi. Since θ\theta and ϕ\phi are independent variables, both sides must equal the same constant, call it m2m^2.

Step 2 — Solve the ϕ\phi-equation. The right-hand piece gives

d2Φdϕ2=−m2Φ\frac{d^2\Phi}{d\phi^2} = -m^2 \Phi

whose general solution is Φ(ϕ)=A eimϕ\Phi(\phi) = A\, e^{im\phi} (taking the complex exponential form, which diagonalizes L^z=−iℏ d/dϕ\hat{L}_z = -i\hbar\, d/d\phi directly, since L^zΦ=mℏΦ\hat{L}_z \Phi = m\hbar\Phi).

Step 3 — Impose the single-valuedness condition. The azimuthal angle ϕ\phi and ϕ+2π\phi + 2\pi label the same physical direction in space, so the wavefunction must satisfy

Φ(ϕ+2π)=Φ(ϕ)\Phi(\phi + 2\pi) = \Phi(\phi)

Substituting the exponential solution:

eim(ϕ+2π)=eimϕ  eim⋅2π=eimϕe^{im(\phi+2\pi)} = e^{im\phi}\; e^{im\cdot 2\pi} = e^{im\phi}

This requires e2πim=1e^{2\pi i m} = 1, which holds if and only if mm is an integer: m=0,±1,±2,…m = 0, \pm 1, \pm 2, \dots

Step 4 — Normalize. Requiring ∫02π∣Φ(ϕ)∣2 dϕ=1\int_0^{2\pi} |\Phi(\phi)|^2\, d\phi = 1 fixes A=1/2πA = 1/\sqrt{2\pi}, giving the normalized azimuthal factor

Φm(ϕ)=12π eimϕ\Phi_m(\phi) = \frac{1}{\sqrt{2\pi}}\, e^{im\phi}

This is exactly the same normalized-plane-wave-on-a-ring result used for the particle-on-a-ring model, underscoring that the ϕ\phi-dependence of every atomic orbital is literally that same free-rotor eigenfunction. The integer quantization of mm here is a boundary-condition effect only — no potential energy term was needed to produce it.

Go deeper · Derivation B · 2 minThe polar equation: quantizing l and restricting m
Derivation BThe polar equation: quantizing l and restricting m

Goal. Solve the θ\theta-equation (the associated Legendre equation) and show that requiring Θ(θ)\Theta(\theta) to stay finite at the poles forces ll to be a non-negative integer with ∣m∣≤l|m| \le l.

Step 1 — Write the polar equation. Substituting x=cos⁡θx = \cos\theta (so xx ranges over [−1,1][-1,1] as θ\theta ranges over [0,π][0,\pi]) turns the θ\theta-equation from the separation above into the associated Legendre equation:

ddx[(1−x2)dΘdx]+[l(l+1)−m21−x2]Θ=0\frac{d}{dx}\left[(1-x^2)\frac{d\Theta}{dx}\right] + \left[l(l+1) - \frac{m^2}{1-x^2}\right]\Theta = 0

Here l(l+1)l(l+1) is exactly the separation constant introduced in the first derivation, and m2m^2 is the same integer-squared constant that came out of the ϕ\phi-equation.

Step 2 — Examine behavior at the poles. The poles x=±1x = \pm 1 (i.e., θ=0,π\theta = 0, \pi) are singular points of this differential equation because of the 1/(1−x2)1/(1-x^2) term. A Frobenius analysis near x=1x = 1 shows that solutions behave as (1−x)∣m∣/2(1-x)^{|m|/2} or (1−x)−∣m∣/2(1-x)^{-|m|/2}; only the first choice stays finite. Demanding finiteness at both poles simultaneously is a strong restriction, analogous to demanding a bound-state wavefunction vanish at infinity in the particle-in-a-box problem.

Step 3 — Series solution and the termination condition. Writing Θ(x)=(1−x2)∣m∣/2∑kakxk\Theta(x) = (1-x^2)^{|m|/2} \sum_k a_k x^k and substituting into the differential equation generates a recursion relation between successive coefficients aka_k. Left unchecked, the series diverges at x=±1x = \pm 1 (an essential singularity) unless the series terminates after a finite number of terms — i.e., unless it becomes a polynomial. The recursion relation terminates only if

l(l+1)=kmax⁡(kmax⁡+1)for a non-negative integer kmax⁡≥∣m∣l(l+1) = k_{\max}(k_{\max}+1) \quad \text{for a non-negative integer } k_{\max} \ge |m|

which forces ll itself to be a non-negative integer, and moreover forces

∣m∣≤l,i.e., m=−l,−l+1,…,−1,0,1,…,l−1,l|m| \le l, \qquad \text{i.e., } m = -l, -l+1, \dots, -1, 0, 1, \dots, l-1, l

Step 4 — Identify the polynomial solutions. The terminating polynomial solutions are (up to normalization) the associated Legendre functions Plm(x)P_l^m(x), built from the ordinary Legendre polynomials Pl(x)P_l(x) by differentiation:

Plm(x)=(1−x2)∣m∣/2 d∣m∣dx∣m∣Pl(x)P_l^m(x) = (1-x^2)^{|m|/2}\, \frac{d^{|m|}}{dx^{|m|}} P_l(x)

For example, P0(x)=1P_0(x) = 1, P1(x)=xP_1(x) = x, P2(x)=12(3x2−1)P_2(x) = \tfrac12(3x^2 - 1); differentiating P2(x)P_2(x) once gives P21(x)=3x1−x2P_2^1(x) = 3x\sqrt{1-x^2}, and twice gives P22(x)=3(1−x2)P_2^2(x) = 3(1-x^2).

Step 5 — Combine with normalization. Multiplying the normalized Θlm(θ)\Theta_{lm}(\theta) by the normalized Φm(ϕ)\Phi_m(\phi) from the first derivation, and folding in the conventional Condon–Shortley phase (−1)m(-1)^m, produces the spherical harmonic formula quoted above. The two independent boundary conditions — single-valuedness in ϕ\phi and finiteness at the poles in θ\theta — are jointly responsible for the entire quantum number scaffold (l,m)(l, m) that organizes every atomic orbital table you have ever seen.

Worked examples

Example 1 — Foundational: verifying orthonormality for Y10Y_1^0. The l=1,m=0l=1, m=0 spherical harmonic is

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

This is a real function already (no ϕ\phi-dependence since m=0m=0), proportional to the familiar pzp_z orbital's angular part. Check normalization over the full solid angle dΩ=sin⁡θ dθ dϕd\Omega = \sin\theta\, d\theta\, d\phi:

∫02π ⁣ ⁣∫0π∣Y10∣2sin⁡θ dθ dϕ=34π∫02πdϕ∫0πcos⁡2θsin⁡θ dθ\int_0^{2\pi}\!\!\int_0^\pi |Y_1^0|^2 \sin\theta\, d\theta\, d\phi = \frac{3}{4\pi}\int_0^{2\pi} d\phi \int_0^\pi \cos^2\theta \sin\theta\, d\theta

The ϕ\phi-integral gives 2π2\pi. For the θ\theta-integral, substitute u=cos⁡θu = \cos\theta, du=−sin⁡θ dθdu = -\sin\theta\,d\theta, limits u:1→−1u: 1 \to -1:

∫0πcos⁡2θsin⁡θ dθ=∫−11u2 du=[u33]−11=13−(−13)=23\int_0^\pi \cos^2\theta\sin\theta\, d\theta = \int_{-1}^{1} u^2\, du = \left[\frac{u^3}{3}\right]_{-1}^{1} = \frac{1}{3} - \left(-\frac{1}{3}\right) = \frac{2}{3}

Putting the pieces together:

34π×2π×23=34π⋅4π3=1\frac{3}{4\pi} \times 2\pi \times \frac{2}{3} = \frac{3}{4\pi}\cdot\frac{4\pi}{3} = 1

Normalization confirmed exactly, with no leftover numerical factor — the prefactor 3/4π\sqrt{3/4\pi} was built precisely to make this happen. As a limiting-case check, note that at θ=π/2\theta = \pi/2 (the xyxy-plane) Y10=0Y_1^0 = 0: this is the equatorial nodal plane of the pzp_z orbital, consistent with the single angular node expected for l=1l=1.

Example 2 — Applied: constructing the real pxp_x orbital from complex harmonics. The complex spherical harmonics for l=1l=1, m=±1m = \pm 1 are

Y1±1(θ,ϕ)=∓38π sin⁡θ  e±iϕY_1^{\pm 1}(\theta,\phi) = \mp\sqrt{\frac{3}{8\pi}}\,\sin\theta\; e^{\pm i\phi}

Neither one individually looks like the familiar dumbbell-shaped pxp_x orbital drawn in general chemistry — both are complex, and ∣Y1+1∣2|Y_1^{+1}|^2 is azimuthally symmetric (a torus around the z-axis), not two lobes along xx. Chemists instead use real linear combinations, since L^2\hat{L}^2 is degenerate in mm for fixed ll and any linear combination of degenerate eigenfunctions is itself a valid eigenfunction of L^2\hat{L}^2 (though generally not of L^z\hat{L}_z). Define

px≡12(Y1−1−Y11)p_x \equiv \frac{1}{\sqrt{2}}\left(Y_1^{-1} - Y_1^{1}\right)

Substituting the explicit forms:

px=12[38πsin⁡θ e−iϕ−(−38πsin⁡θ eiϕ)]=38π⋅12sin⁡θ(e−iϕ+eiϕ)p_x = \frac{1}{\sqrt{2}}\left[\sqrt{\frac{3}{8\pi}}\sin\theta\, e^{-i\phi} - \left(-\sqrt{\frac{3}{8\pi}}\sin\theta\, e^{i\phi}\right)\right] = \sqrt{\frac{3}{8\pi}}\cdot\frac{1}{\sqrt{2}}\sin\theta\left(e^{-i\phi}+e^{i\phi}\right)

Using eiϕ+e−iϕ=2cos⁡ϕe^{i\phi} + e^{-i\phi} = 2\cos\phi:

px=38π⋅2cos⁡ϕ2sin⁡θ=34πsin⁡θcos⁡ϕp_x = \sqrt{\frac{3}{8\pi}}\cdot \frac{2\cos\phi}{\sqrt{2}}\sin\theta = \sqrt{\frac{3}{4\pi}}\sin\theta\cos\phi

Recognizing sin⁡θcos⁡ϕ=x/r\sin\theta\cos\phi = x/r in spherical-to-Cartesian conversion confirms this is proportional to xx — the real pxp_x orbital, with its two lobes along the xx-axis and a nodal plane at x=0x=0 (i.e., the yzyz-plane, at ϕ=π/2,3π/2\phi = \pi/2, 3\pi/2). An analogous combination py=1i2(Y1−1+Y11)=3/4πsin⁡θsin⁡ϕp_y = \tfrac{1}{i\sqrt2}(Y_1^{-1}+Y_1^1) = \sqrt{3/4\pi}\sin\theta\sin\phi gives the yy-axis version. As a check on normalization, since Y1−1Y_1^{-1} and Y11Y_1^{1} are each individually normalized and orthogonal to each other, the coefficient 1/21/\sqrt2 guarantees pxp_x is also normalized — a general feature of building real orbitals from orthonormal complex pairs.

Example 3 — Exam/competition level: expectation value of cos⁡2θ\cos^2\theta for the Y21Y_2^1 state. Consider an electron in the angular state Y21(θ,ϕ)Y_2^1(\theta,\phi), one of the five dd-orbital angular functions, and compute ⟨cos⁡2θ⟩\langle \cos^2\theta \rangle — a quantity relevant, for instance, to estimating the anisotropy of an electron distribution relative to a symmetry axis (as arises in analyzing EPR gg-tensors or ligand-field angular overlap arguments). The normalized function is

Y21(θ,ϕ)=−158π sin⁡θcos⁡θ  eiϕY_2^1(\theta,\phi) = -\sqrt{\frac{15}{8\pi}}\,\sin\theta\cos\theta\; e^{i\phi}

Since ∣eiϕ∣2=1|e^{i\phi}|^2 = 1, the ϕ\phi-dependence drops out of any expectation value of a function of θ\theta alone. The probability density is

∣Y21∣2=158πsin⁡2θcos⁡2θ|Y_2^1|^2 = \frac{15}{8\pi}\sin^2\theta\cos^2\theta

The expectation value is

⟨cos⁡2θ⟩=∫02π ⁣ ⁣∫0πcos⁡2θ  ∣Y21∣2sin⁡θ dθ dϕ=158π(2π)∫0πcos⁡4θsin⁡3θ dθ\langle \cos^2\theta\rangle = \int_0^{2\pi}\!\!\int_0^\pi \cos^2\theta\; |Y_2^1|^2 \sin\theta\, d\theta\, d\phi = \frac{15}{8\pi}(2\pi)\int_0^\pi \cos^4\theta \sin^3\theta\, d\theta

Substitute u=cos⁡θu = \cos\theta, du=−sin⁡θ dθdu = -\sin\theta\, d\theta, and sin⁡2θ=1−u2\sin^2\theta = 1-u^2:

∫0πcos⁡4θsin⁡3θ dθ=∫−11u4(1−u2) du=∫−11(u4−u6)du\int_0^\pi \cos^4\theta\sin^3\theta\, d\theta = \int_{-1}^1 u^4(1-u^2)\, du = \int_{-1}^{1}\left(u^4 - u^6\right) du

Each term is even, so:

∫−11u4 du=25,∫−11u6 du=27\int_{-1}^1 u^4\, du = \frac{2}{5}, \qquad \int_{-1}^1 u^6\, du = \frac{2}{7}
∫−11(u4−u6) du=25−27=14−1035=435\int_{-1}^1 (u^4-u^6)\, du = \frac{2}{5}-\frac{2}{7} = \frac{14-10}{35} = \frac{4}{35}

Assembling:

⟨cos⁡2θ⟩=158π⋅2π⋅435=15⋅2⋅48⋅35=120280=37\langle\cos^2\theta\rangle = \frac{15}{8\pi}\cdot 2\pi \cdot \frac{4}{35} = \frac{15\cdot 2 \cdot 4}{8\cdot 35} = \frac{120}{280} = \frac{3}{7}

So ⟨cos⁡2θ⟩=3/7≈0.4286\langle\cos^2\theta\rangle = 3/7 \approx 0.4286 for the Y21Y_2^1 state — noticeably below the isotropic value of 1/31/3 that would apply to an ss-orbital-like uniform distribution over the sphere... actually compare it to 1/31/3 as the reference for "no angular preference": here 3/7>1/33/7 > 1/3, showing the dyzd_{yz}-type density (built from Y2±1Y_2^{\pm1}) is in fact biased somewhat toward the poles relative to a uniform sphere, consistent with its lobes tilted out of the equatorial plane. As a limiting-case sanity check, for the isotropic case l=0l=0 one finds trivially ⟨cos⁡2θ⟩Y00=∫cos⁡2θ⋅14πsin⁡θ dθ dϕ=1/3\langle\cos^2\theta\rangle_{Y_0^0} = \int\cos^2\theta \cdot \frac{1}{4\pi}\sin\theta\,d\theta\,d\phi = 1/3, matching a uniform spherical average and confirming the dd-state value of 3/73/7 represents genuine angular structure, not an artifact of the calculation.

Limiting cases, scope & common traps

SituationWhat happensWhy
l=0l = 0Y00=1/4πY_0^0 = 1/\sqrt{4\pi}, perfectly isotropicNo angular dependence at all; mm must be 00 since ∣m∣≤l=0|m|\le l = 0
m=0m = 0Yl0Y_l^0 is real, depends only on θ\thetaThe eimϕe^{im\phi} factor becomes 11; these are proportional to ordinary Legendre polynomials Pl(cos⁡θ)P_l(\cos\theta)
∣m∣=l|m| = lMaximum ϕ\phi-oscillation, density concentrated near equator (θ=π/2\theta=\pi/2)The associated Legendre function Pll∝sin⁡lθP_l^l \propto \sin^l\theta vanishes fastest at the poles
Real vs. complex harmonicsReal combinations (px,py,dxyp_x, p_y, d_{xy}, etc.) are eigenfunctions of L^2\hat L^2 but not of L^z\hat L_zOnly used for visualization/bonding; true stationary states in a magnetic field need the complex YlmY_l^m
Non-central potentials (molecules)Spherical harmonics are no longer exact eigenfunctionsMolecular symmetry lowers spherical to point-group symmetry; YlmY_l^m become a basis for building symmetry-adapted orbitals, not exact solutions
l→∞l \to \infty, classical limitAngular distribution concentrates sharply near a classical orbital planeCorrespondence principle: many nodes recover a classical-looking trajectory

The chemist behind it

The mathematics of spherical harmonics predates quantum mechanics by more than a century, developed by Adrien-Marie Legendre and Pierre-Simon Laplace in the 1780s while analyzing the gravitational potential of non-spherical bodies (crucially, the Earth's oblateness). It was purely classical mathematical physics — nobody involved imagined atoms would ever need it. The bridge to atomic structure came in 1926, when Erwin Schrödinger applied his newly formulated wave equation to the hydrogen atom and discovered that separating variables in spherical coordinates reproduced exactly the century-old Legendre apparatus, now reinterpreted as the angular shape of an electron's probability amplitude.

Origins · 1 minErwin Schrödinger and how this was discovered
ES
Erwin Schrödinger
1887–1961 · Vienna and Zurich, 1920s

Schrödinger developed wave mechanics in a concentrated burst of work in late 1925 and early 1926, publishing his solution of the hydrogen atom — including the full separation into radial and angular equations — within months of introducing the equation itself. He was working in the tradition of classical wave optics and Hamilton–Jacobi mechanics, seeking a differential-equation reformulation of Louis de Broglie's matter-wave hypothesis; the appearance of Legendre's century-old angular functions as the natural angular solutions was, for Schrödinger, confirmation that his equation was capturing something structurally deep about three-dimensional space itself, not merely fitting spectroscopic numbers.

History
- 1782–1785: Legendre and Laplace develop the Legendre polynomials and associated functions for gravitational potential theory.
- 1926: Schrödinger publishes the wave-mechanical treatment of the hydrogen atom, separating variables in spherical coordinates.
- 1926–1927: Spherical harmonics are recognized as simultaneous eigenfunctions of L^2\hat L^2 and L^z\hat L_z, connecting them to angular momentum quantization.
- 1928–1930: Dirac and others formalize the operator algebra of angular momentum, showing the quantization of l,ml,m follows purely from commutation relations, independent of any specific wave equation.
- Mid-20th century onward: Spherical harmonics become standard tools across multipole electrostatics, nuclear shell models, molecular rotational spectroscopy, and computational quantum chemistry basis sets.
What is the physical meaning of the quantum number m if it isn't directly observable as a shape?

The magnetic quantum number mm specifies the z-component of orbital angular momentum, Lz=mℏL_z = m\hbar, not a shape by itself. In the absence of an external field, states with different mm but the same ll are degenerate — same energy, same total angular momentum magnitude — so chemists often build real combinations (like px,pyp_x, p_y) that mix different mm values purely for visualization and bonding convenience. The name "magnetic" comes from the fact that this degeneracy is lifted by an external magnetic field (the Zeeman effect), at which point mm becomes directly observable as an energy splitting proportional to mm.

Why do s orbitals have no angular dependence at all?

The l=0l=0 spherical harmonic is Y00=1/4πY_0^0 = 1/\sqrt{4\pi}, a constant — there is no θ\theta or ϕ\phi dependence because the polar equation with l=0,m=0l=0, m=0 reduces to d/dx[(1−x2)dΘ/dx]=0d/dx[(1-x^2)d\Theta/dx] = 0, whose only finite solution on [−1,1][-1,1] is a constant. Physically, l=0l=0 means zero orbital angular momentum, and a state with no angular momentum has no preferred axis or rotational sense, so its probability density must be perfectly isotropic. This is why s orbitals are always spherically symmetric regardless of the principal quantum number nn.

Are spherical harmonics specific to the hydrogen atom, or more general?

They are far more general. The derivation only used the fact that the potential depends solely on rr, never the specific Coulomb form −e2/4πϵ0r-e^2/4\pi\epsilon_0 r. The identical angular equation, and identical spherical harmonic solutions, arise for the three-dimensional isotropic harmonic oscillator, for a particle confined to a spherical shell, and for the rigid-rotor model of molecular rotation. This universality is exactly why the same functions reappear across such different corners of chemistry and physics.

How do spherical harmonics relate to the associated Legendre functions and ordinary Legendre polynomials?

Ordinary Legendre polynomials Pl(x)P_l(x) solve the m=0m=0 special case of the polar equation and give the angular part of states with zero z-angular-momentum. Associated Legendre functions Plm(x)P_l^m(x) generalize this to nonzero mm by differentiating Pl(x)P_l(x) ∣m∣|m| times and multiplying by (1−x2)∣m∣/2(1-x^2)^{|m|/2}. The spherical harmonic Ylm(θ,ϕ)Y_l^m(\theta,\phi) is then simply the normalized product of Plm(cos⁡θ)P_l^m(\cos\theta) with the azimuthal factor eimϕe^{im\phi}, tied together with the Condon–Shortley phase convention.

Why do textbooks sometimes omit the (-1)^m Condon–Shortley phase factor?

The Condon–Shortley phase is a convention, not a physical requirement — it is chosen to make certain ladder-operator matrix elements (raising and lowering operators for angular momentum) come out with universally positive real coefficients, which is convenient for angular momentum coupling calculations in spectroscopy. Some older mathematics texts and some physics conventions omit it. Since it only changes the overall sign of YlmY_l^m for odd mm, and all physical predictions involve ∣Ylm∣2|Y_l^m|^2 or expectation values with matching bra and ket, the convention never changes measurable results — but it does matter for consistency when combining harmonics from different sources.

Do spherical harmonics remain valid once a real molecule (not a free atom) is considered?

Not exactly as eigenfunctions, but they remain essential as a basis set. Once other nuclei or an external field break spherical symmetry, the true eigenfunctions of the molecular Hamiltonian are no longer pure YlmY_l^m; the molecular symmetry is only as large as its point group (say, C2vC_{2v} or D4hD_{4h}), not the full rotation group. However, atomic orbitals built from spherical harmonics remain the standard basis functions from which molecular orbitals are constructed by linear combination (LCAO), and symmetry-adapted linear combinations of YlmY_l^m are used to classify molecular orbitals by irreducible representation.

How does this connect to the rigid rotor model used in rotational spectroscopy?

The rigid rotor — two masses fixed at a constant separation, free to tumble in space — has exactly the same angular kinetic energy operator as the angular part of the hydrogen Hamiltonian, because both involve L^2\hat L^2 acting on functions of (θ,ϕ)(\theta,\phi) with no radial dependence to worry about. The rigid rotor's exact eigenfunctions are the spherical harmonics themselves, with energy levels EJ=J(J+1)ℏ2/2IE_J = J(J+1)\hbar^2/2I (here relabeling ll as the rotational quantum number JJ, and II the moment of inertia). This is precisely why the microwave rotational spectra of diatomic molecules show the same l(l+1)l(l+1)-type level spacing pattern derived for atomic angular momentum.

Before this

Where this leads