Home / Learn / Exam prep / GATE Physics / Lesson 4.2
All lessons

Module 4: Quantum mechanics · Lesson 4.2 · about 45 min

Commutators and the uncertainty relation

Commutator algebra and the canonical relation [x, p] = iħ, compatible and incompatible observables, the general (Robertson) uncertainty relation derived step by step, which states reach the minimum, the energy-time relation, and fast uncertainty estimates of ground-state energies.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

Module 4 · about 45 minutes. By the end you will be able to evaluate commutators quickly with a few identities, decide which observables can be known together, derive and use the general uncertainty relation, recognise minimum-uncertainty states, read the energy-time relation correctly, and estimate ground-state energies in two lines. The wave-packet picture of uncertainty is in IIT JAM lesson 6.2; this lesson derives it from the operators of lesson 4.1.

Two observables can be sharp together only if measuring one leaves the other alone, and that happens exactly when their operators commute. When they do not, the commutator sets a floor under the product of their spreads.

1. Commutator algebra

The commutator [Aˆ,Bˆ]=AˆBˆ−BˆAˆ measures how much the order matters. Four identities do almost every calculation:

[A,B]=−[B,A],[A,BC]=[A,B]C+B[A,C],[AB,C]=A[B,C]+[A,C]B
[A,[B,C]]+[B,[C,A]]+[C,[A,B]]=0(Jacobi)

The operator you pass over stays where it was: in [A,BC], B stays on the left and C on the right. For Hermitian A and B, [A,B]†=[B,A]=−[A,B]: the commutator is anti-Hermitian, so i[A,B] is Hermitian.

The canonical commutator follows from acting on a test function:

[xˆ,pˆ]=iℏ,[xˆi,pˆj]=iℏδij,[xˆi,xˆj]=[pˆi,pˆj]=0

From it, by induction, come the two rules for functions:

[xˆ,f(pˆ)]=iℏf′(pˆ),[f(xˆ),pˆ]=iℏf′(xˆ)

So [xˆ,pˆ2]=2iℏpˆ and [xˆ,Hˆ]=iℏpˆ/m for Hˆ=pˆ2/2m+V.

Because Tr(AB)=Tr(BA), every commutator of finite matrices is traceless, while iℏ1ˆ is not. Position and momentum therefore live only in infinite-dimensional spaces.

Worked example. Find [Hˆ,[Hˆ,xˆ]] for the oscillator Hˆ=pˆ2/2m+12mω2xˆ2.

  1. [Hˆ,xˆ]=12m[pˆ2,xˆ]=−iℏmpˆ.
  2. [Hˆ,pˆ]=12mω2[xˆ2,pˆ]=iℏmω2xˆ.
  3. [Hˆ,[Hˆ,xˆ]]=−iℏm⋅iℏmω2xˆ=ℏ2ω2xˆ. With the Heisenberg equation xˆ¨=−ℏ−2[Hˆ,[Hˆ,xˆ]] this is x¨=−ω2x: the operator oscillates classically.

A useful exponential identity (Baker-Campbell-Hausdorff) is eABe−A=B+[A,B]+12![A,[A,B]]+…. With A=iapˆ/ℏ the series stops after one term: eiapˆ/ℏxˆe−iapˆ/ℏ=xˆ+a. Momentum generates translations.

2. Compatible observables

If [Aˆ,Bˆ]=0, the two operators have a complete set of common eigenvectors. Measuring Aˆ then Bˆ then Aˆ gives the same A value both times, so both can be sharp at once: they are compatible. A complete set of commuting observables labels states uniquely, like Hˆ, Lˆ2, Lˆz for an electron in a central potential (spin aside).

Two cautions. Commuting observables share a basis, but if a level of Aˆ is degenerate, not every eigenvector of Aˆ is an eigenvector of Bˆ. And in a single energy eigenstate, ⟨[Hˆ,Qˆ]⟩=(E−E)⟨Q⟩=0 for any Qˆ; with Qˆ=xˆ this proves ⟨p⟩=0 in every bound stationary state, even a complex one.

[A, B] = 0
compatible: a common eigenbasis exists, both can be sharp, measuring one does not disturb the other
[x, p] = iħ
canonically conjugate: never both sharp; momentum generates shifts in x and vice versa
σ_A σ_B ≥ ½|⟨[A, B]⟩|
a floor under the product of spreads, which can depend on the state
Physical meaning
Non-commuting operators describe measurements that disturb each other: preparing a sharp value of one necessarily spreads the other.

3. The general uncertainty relation

For any observables A, B and any state, with spreads σA, σB:

σAσB≥12|⟨[Aˆ,Bˆ]⟩|

For x and p this gives σxσp≥ℏ/2 in every state. Here is where it comes from.

Shifted vectors. Let |f⟩=(Aˆ−⟨A⟩)|ψ⟩ and |g⟩=(Bˆ−⟨B⟩)|ψ⟩. Then σA2=⟨f|f⟩ and σB2=⟨g|g⟩.

Schwarz inequality. ⟨f|f⟩⟨g|g⟩≥|⟨f|g⟩|2, with equality only when |f⟩∝|g⟩.

Keep the imaginary part. For any complex number |z|2≥(Imz)2=(z−z∗2i)2. So σA2σB2≥(12i(⟨f|g⟩−⟨g|f⟩))2.

Spot the commutator. ⟨f|g⟩=⟨AB⟩−⟨A⟩⟨B⟩ and ⟨g|f⟩=⟨BA⟩−⟨A⟩⟨B⟩, so ⟨f|g⟩−⟨g|f⟩=⟨[Aˆ,Bˆ]⟩.

Result. σA2σB2≥(12i⟨[Aˆ,Bˆ]⟩)2, a positive number because the commutator’s expectation value is imaginary. Taking the square root gives the relation. Keeping the real part we threw away gives the stronger Schrödinger form, with the covariance (12⟨{A,B}⟩−⟨A⟩⟨B⟩)2 added on the right.

Two things to notice. The bound for most pairs depends on the state: for Lx and Ly it is ℏ2|⟨Lz⟩|, which is zero for m=0. And the product can be far above the bound: for the two-level state (cos⁡θ,sin⁡θ)T, ΔσzΔσx=12|sin⁡4θ|, while the bound |⟨σy⟩| is zero.

Worked example. Find ΔxΔp for ψ=a−1/2e−|x|/a.

  1. Real and even, so ⟨x⟩=⟨p⟩=0.
  2. ⟨x2⟩=2a∫0∞x2e−2x/adx=a22.
  3. ⟨p2⟩=ℏ2∫|ψ′|2dx=ℏ2/a2 (here |ψ′|=|ψ|/a).
  4. ΔxΔp=a2⋅ℏa=0.707ℏ, comfortably above 0.5ℏ.

4. Who reaches the minimum?

Equality needs both steps of the proof to be tight: |g⟩∝|f⟩ (Schwarz) and Re⟨f|g⟩=0. Together they say (Aˆ−⟨A⟩)ψ=iλ(Bˆ−⟨B⟩)ψ with λ real. For x and p this is a first-order differential equation whose solutions are the Gaussians:

ψ(x)∝exp⁡[−(x−x0)24σ2+ik0x],Δx=σ,Δp=ℏ2σ

The oscillator ground state is one of them. A Gaussian with a complex width, a “chirp” eicx2, is not: it has ΔxΔp=ℏ14+4c2σ4, because position and momentum are now correlated (it does saturate the Schrödinger form). A free packet that starts at the minimum develops exactly such a chirp as it spreads, so its product grows with time even though Δp stays fixed.

5. Energy and time

There is no time operator: a Hermitian Tˆ with [Tˆ,Hˆ]=iℏ would let you shift any energy by any amount, contradicting a ground state. The energy-time relation is something else. Put Bˆ=Hˆ and any Qˆ in Robertson’s relation and use Ehrenfest:

ΔEΔQ≥ℏ2|d⟨Q⟩dt|⇒ΔEΔt≥ℏ2,Δt=ΔQ|d⟨Q⟩/dt|

Δt is the time it takes ⟨Q⟩ to move by one standard deviation: how quickly the state visibly changes. A stationary state has ΔE=0, and indeed nothing in it ever changes; a decaying level of lifetime τ has a width Γ≈ℏ/τ.

Worked example. (|1⟩+|2⟩)/2 with E2−E1=0.50 eV. The overlap with the initial state is |cos⁡((E2−E1)t/2ℏ)|, which first vanishes at t=πℏ/(E2−E1)=h/(2×0.50 eV)=4.14 fs. With ΔE=(E2−E1)/2 this is t=πℏ/2ΔE, the quantum speed limit.

6. Estimates from uncertainty

For a quick ground-state energy, take a minimum-uncertainty Gaussian of width σ, so ⟨p2⟩=ℏ2/4σ2, and minimise ⟨H⟩ over σ. Any trial state gives an upper bound to the true ground energy (this is the variational method, lesson 4.9).

  • Oscillator: ⟨H⟩=ℏ28mσ2+12mω2σ2≥12ℏω, exact because the ground state is this Gaussian.
  • Quartic λx4 (with ⟨x4⟩=3σ4): minimum 0.681(ℏ4λ/m2)1/3, against the exact 0.668.

The Uncertainty calculator handles the different job of propagating measurement errors; for quantum spreads you now have the formulas.

“The uncertainty principle is about clumsy measurements disturbing the particle.” The relation is a property of the state itself: no state, however prepared, has σxσp<ℏ/2. Disturbance by measurement is a related but separate story.

“If ⟨[A, B]⟩ = 0 the two spreads must be small.” A zero bound allows a zero product but does not force it. In (cos⁡θ,sin⁡θ)T the bound for σz and σx is zero while the product is up to 12.

  • [A,BC]=[A,B]C+B[A,C]; [x,f(p)]=iℏf′(p), [f(x),p]=iℏf′(x); eABe−A=B+[A,B]+…
  • Commuting observables share an eigenbasis and can be sharp together; finite matrices cannot satisfy [x,p]=iℏ.
  • σAσB≥12|⟨[A,B]⟩|; for x, p: ≥ℏ/2 always; for other pairs the bound depends on the state.
  • Equality only for Gaussians with real width (any centre, any k0); chirped Gaussians and exponentials sit above.
  • ΔEΔt≥ℏ/2 with Δt a time of change, not an operator spread; orthogonalisation time πℏ/(E2−E1).
  • Uncertainty estimate: minimise ℏ2/8mσ2+⟨V⟩σ.

Practise: GATE questions on this lesson

They start easy and climb to top-rank level. More on the commutators practice page and the GATE Physics practice page.

Next: lesson 4.3 solves delta wells, finite wells and barriers exactly. Back to the GATE Physics course.

Check yourself

1In a state |l, m⟩ we have ΔL_z = 0 but ΔL_x > 0. Why is this allowed?
2Which wavefunction has Δx Δp = ħ/2 exactly?
3The trace of the commutator of two finite matrices is always

Sources

  • D. J. Griffiths and D. F. Schroeter, Introduction to Quantum Mechanics, 3rd ed. (2018), section 3.5: the uncertainty principle
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed. (1994), chapter 9: the Heisenberg uncertainty relations
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed. (2021), sections 1.4 and 2.2
  • GATE Physics (PH) syllabus, quantum mechanics section, published by the organising institute each year

Your ticks stay in this browser. Save them as a file on the course home.

Updated 2026-11-22. Not affiliated with the IITs, IISc or the GATE organising institute. The general aptitude part of GATE is not covered here. Check the official GATE website for the current pattern. All questions are original.