Skip to content
Tutorials Center
My learning

Topics

Lesson 31 of 38 · Angular Momentum and Spin

Orbital Angular Momentum and Spherical Harmonics

Angular momentum operators, their commutation relations, the quantum numbers l and m, and the spherical harmonics, with symbolic and numerical checks in Python.

A particle moving in three dimensions can carry angular momentum, the quantity that measures how much it circulates around a point. Electrons in atoms have it, nuclei rotate with it, and diatomic molecules spin with it. In quantum mechanics angular momentum behaves unlike anything in classical physics: its size and its direction are both restricted to a discrete set of values, and its three components cannot all be known at once.

This lesson builds the theory from the operators L̂ₓ, L̂ᵧ, L̂_z, shows which quantum numbers describe the states, and introduces the spherical harmonics, the angular wavefunctions you will use for the hydrogen atom.

The operators

Classically L = r × p. In quantum mechanics replace r and p by operators, so for example

Text
L̂_z = x p̂_y - y p̂_x = -iħ ( x ∂/∂y - y ∂/∂x )

and similarly for L̂ₓ and L̂ᵧ. In spherical coordinates (r, θ, φ) (where θ is the polar angle from the z-axis and φ is the azimuthal angle), the z-component takes a very simple form:

Text
L̂_z = -iħ ∂/∂φ

The total angular momentum squared is L̂² = L̂ₓ² + L̂ᵧ² + L̂_z², which in spherical coordinates is

Text
L̂² = -ħ² [ (1/sin θ) ∂/∂θ ( sin θ ∂/∂θ ) + (1/sin²θ) ∂²/∂φ² ]

It involves only the angles θ and φ, not r.

Commutation relations

The components do not commute with one another:

Text
[L̂ₓ, L̂ᵧ] = iħ L̂_z,   [L̂ᵧ, L̂_z] = iħ L̂ₓ,   [L̂_z, L̂ₓ] = iħ L̂ᵧ

(each cyclic permutation of x, y, z). By the uncertainty relation from the previous chapter, you cannot know two components exactly at the same time unless the expectation of the third is zero. But L̂² commutes with every component:

Text
[L̂², L̂ₓ] = [L̂², L̂ᵧ] = [L̂², L̂_z] = 0

So you can specify L² and one component (conventionally L_z) at the same time. Their common eigenfunctions are the spherical harmonics.

Quantum numbers l and m

The simultaneous eigenvalue equations are

Text
L̂² Y_l^m = ħ² l(l + 1) Y_l^m         l = 0, 1, 2, 3, ...
L̂_z Y_l^m = ħ m Y_l^m               m = -l, -l+1, ..., l-1, l
  • The orbital quantum number l is a non-negative integer. The magnitude of the angular momentum is |L| = ħ√(l(l+1)).
  • The magnetic quantum number m takes 2l + 1 integer values; L_z = mħ.

Why are l and m integers here? The wavefunction must be single-valued: adding 2π to φ returns to the same point, so e^{imφ} requires m to be an integer. (Half-integer values are possible for spin, which has no spatial wavefunction. That is the next lesson.)

Notice that |L| = ħ√(l(l+1)) is always larger than the largest possible L_z = lħ. The angular momentum vector can never point exactly along the z-axis, because that would give definite Lₓ = L_y = 0 as well as L_z, violating the uncertainty relations. A common picture is that L precesses on a cone around the z-axis with the other two components undetermined.

Spectroscopists label l = 0, 1, 2, 3, 4 by the letters s, p, d, f, g (historical names from spectral line descriptions: sharp, principal, diffuse, fundamental).

Spherical harmonics

The eigenfunctions are the spherical harmonics Y_l^m(θ, φ). With the standard (Condon–Shortley) phase convention:

Text
Y_0^0 = 1 / √(4π)
Y_1^0 = √(3/4π) cos θ
Y_1^{±1} = ∓ √(3/8π) sin θ e^{±iφ}
Y_2^0 = √(5/16π) (3cos²θ - 1)

The φ dependence is always e^{imφ}, and the θ dependence is an associated Legendre function. They are orthonormal over the sphere: ∫ Y_l^m* Y_{l'}^{m'} sin θ dθ dφ = δ_{ll'} δ_{mm'}. The parity of Y_l^m is (-1)^l: it changes sign for even or odd l when r → -r. The number of angular nodal lines is l, which is why higher l means more complex angular patterns.

Matrix form for any l

For a fixed l the 2l + 1 states |l, m⟩ form a basis, and the operators become matrices. With the rising and lowering operators L̂± = L̂ₓ ± iL̂ᵧ,

Text
L̂_z |l, m⟩ = ħ m |l, m⟩
L̂± |l, m⟩ = ħ √( l(l+1) - m(m±1) ) |l, m±1⟩

and L̂ₓ = (L̂₊ + L̂₋)/2, L̂ᵧ = (L̂₊ − L̂₋)/(2i). The first editor builds these matrices (units ħ = 1) for l = 1 and l = 2, verifies the commutation relations and that L² equals l(l+1) times the identity. The same function will serve for spin in the next lessons.

Python Angular momentum matrices for any l

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice that the eigenvalues of Jₓ are the same set, −l ... l, as those of J_z: no direction is special.

Checking spherical harmonics symbolically

The second editor uses sympy to build Y_2^1, apply the L̂² operator in spherical coordinates and the L̂_z operator, and read off the eigenvalues 6ħ² (since l(l + 1) = 6) and 1ħ.

Python Eigenvalues of L² and Lz on Y(2,1)

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Picturing the angular patterns

The third editor draws the probability density |Y_l^0|² as a polar curve in the x-z plane (distance from the origin equals |Y_l^0(θ)|²), for l = 0, 1, 2, 3. Those are the shapes you may know as s, p, d and f orbitals (rotate the curves about the z-axis to get 3D lobes). It also checks numerically that each Y_l^m has unit norm over the sphere.

Python Angular patterns of Y(l, 0) and a normalization check

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. For orbital angular momentum with l = 2, which values can L_z (in units of ħ) take?

    m runs from −l to +l in integer steps, giving 2l + 1 = 5 values for l = 2.
  2. 2. What is the magnitude |L| of the angular momentum for l = 1?

    |L| = ħ√(l(l+1)) = ħ√2. It is larger than the maximum L_z, which is ħ.
  3. 3. Which pair of observables can be sharp simultaneously?

    L² commutes with each component, but the components do not commute with each other. The standard simultaneous choice is L² and L_z.
  4. 4. Why must the orbital quantum number m be an integer?

    The φ dependence is e^(imφ). Single-valuedness requires e^(2πim) = 1, so m is an integer.

Summary

  • L̂ = r̂ × p̂, with L̂_z = −iħ ∂/∂φ; the components satisfy [L̂ₓ, L̂ᵧ] = iħL̂_z and cyclic versions, while L̂² commutes with each.
  • Common eigenstates Y_l^m: L² = ħ²l(l+1), L_z = mħ, with l = 0, 1, 2, ... and m = −l, ..., l (2l + 1 values).
  • The spherical harmonics are orthonormal, have parity (−1)^l and angular dependence e^{imφ}.
  • For every l the operators are (2l + 1) × (2l + 1) matrices built from the ladder operators L̂±.

Next: Spin One-Half and the Pauli Matrices