Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 39 · Hilbert Space and Dirac Notation

Commutators and the Uncertainty Principle

Use commutator algebra and the Robertson uncertainty relation to understand incompatible observables, ladder operators and Ehrenfest's theorem.

The commutator of two operators, [A, B] = AB − BA, is the most informative object in quantum mechanics. It tells you whether two quantities can have sharp values together, how one quantity changes under the transformation generated by another, and how an observable evolves in time. The uncertainty principle is a direct consequence of non-zero commutators, not a statement about clumsy measuring devices.

Commutator algebra

Learn a few rules and you can simplify almost any expression.

Rule Statement
Antisymmetry [A, B] = −[B, A]
Linearity [A, B + C] = [A, B] + [A, C]
Leibniz (product) [A, BC] = [A, B]C + B[A, C]
Jacobi [A,[B,C]] + [B,[C,A]] + [C,[A,B]] = 0
Adjoint [A, B]† = [B†, A†]

From the Leibniz rule and [x, p] = iħ, you can derive [x, pⁿ] = iħ n pⁿ⁻¹, and hence [x, f(p)] = iħ f'(p). Similarly [p, f(x)] = −iħ f'(x).

Important to remember: the commutator of two Hermitian operators is anti-Hermitian, so [A, B] = iC with C Hermitian. That is why the right-hand side of [x, p] = iħ carries an i.

Angular momentum obeys [Lᵢ, Lⱼ] = iħ εᵢⱼₖ Lₖ, spin S = σ/2 obeys the same, and the harmonic oscillator ladder operators obey [a, a†] = 1.

The Robertson uncertainty relation

For any state |ψ⟩ and Hermitian operators A, B, define the standard deviation ΔA = √(⟨A²⟩ − ⟨A⟩²). Then

Text
ΔA · ΔB ≥ ½ |⟨[A, B]⟩|

Sketch of the proof. Set |f⟩ = (A − ⟨A⟩)|ψ⟩ and |g⟩ = (B − ⟨B⟩)|ψ⟩. Cauchy–Schwarz gives ⟨f|f⟩⟨g|g⟩ ≥ |⟨f|g⟩|², i.e. (ΔA)²(ΔB)² ≥ |⟨f|g⟩|². Writing ⟨f|g⟩ as its real and imaginary parts, the imaginary part equals ⟨[A, B]⟩/(2i), which yields the bound.

For x and p this reads Δx Δp ≥ ħ/2. For spin, ΔSₓ ΔS_y ≥ (ħ/2)|⟨S_z⟩|. If the spin points exactly up along z, then ⟨S_z⟩ = ħ/2, the bound is ħ²/4, and both transverse components have a large spread of ħ/2.

The uncertainty relation constrains the spread over many identically prepared systems. It does not say that a single measurement disturbs the system "by at least" something. Disturbance and measurement precision are separate topics with their own, subtler inequalities.

Python Checking the Robertson relation for spin-1/2

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.

For the spin-up state the product of spreads exactly equals the bound 1/4: this state is a minimum-uncertainty state for this pair.

Ladder operators and truncated matrices

The oscillator operators satisfy [a, a†] = 1. In a truncated matrix representation this cannot hold exactly, because Tr(aa† − a†a) is zero for finite matrices while Tr(1) = N. In fact the matrix [a, a†] equals the identity except in the last diagonal entry, which equals −(N − 1). This is a warning that finite truncation breaks canonical commutation relations at the edge.

Python Commutators of truncated ladder operators

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.

The trace of any commutator of finite matrices is zero, so [x, p] = iħ can only hold in an infinite-dimensional space. This is a neat proof that position and momentum require an infinite Hilbert space.

Time evolution of expectation values

In the Schrödinger picture, for an operator A that has no explicit time dependence,

Text
d⟨A⟩/dt = (i/ħ) ⟨[H, A]⟩

This is the Ehrenfest theorem. With H = p²/2m + V(x) it yields d⟨x⟩/dt = ⟨p⟩/m and d⟨p⟩/dt = −⟨V'(x)⟩. Averages obey Newton-like equations, but note the force term is the average of the force, not the force at the average position. They coincide only if V' is linear (harmonic potential).

Any observable that commutes with H is conserved: its expectation value does not change. This is the quantum statement of Noether's theorem for the symmetries we will use later.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is [x, p²] equal to, given [x, p] = iħ?

    Using the Leibniz rule: [x, p²] = [x, p]p + p[x, p] = 2iħ p.
  2. 2. The Robertson relation says ΔA ΔB is at least

    The bound is half the magnitude of the expectation value of the commutator.
  3. 3. Why can [x, p] = iħ not hold for finite matrices?

    Tr(AB − BA) = 0 for finite matrices, while Tr(iħ 1) = iħN is non-zero.
  4. 4. If an operator A commutes with H and has no explicit time dependence, then ⟨A⟩

    From d⟨A⟩/dt = (i/ħ)⟨[H, A]⟩, a vanishing commutator gives a constant expectation value.

Summary

  • The commutator [A, B] governs compatibility, generators of transformations and time evolution.
  • Key rules: Leibniz, Jacobi and [x, f(p)] = iħ f'(p).
  • Robertson: ΔA ΔB ≥ ½|⟨[A, B]⟩|; it describes the spread over many preparations, not disturbance.
  • [x, p] = iħ needs an infinite-dimensional Hilbert space.
  • Ehrenfest: d⟨A⟩/dt = (i/ħ)⟨[H, A]⟩; operators commuting with H are conserved.

Next: Position and Momentum Representations