Skip to main content

Quantum core · institution-dependent · Interactive lesson

The commutator as an algebraic object

Before any uncertainty relation, learn to compute [A, B] the way you differentiate — by rule, not by grinding out matrix elements. Four identities do nearly all the work, the Pauli matrices are where you test them, and one line about the trace proves that x̂ and p̂ can never be finite matrices.

UPV-08.01 · Lesson 1 of 9 in this unit. Position is not a completion score.
Starting model: The commutator as an algebraic objectDiagonal of [a, a†] with the ladder truncated to 6 states: the lowest 5 rungs read +1, as the algebra demands, and the top rung alone reads -5. The two blocks have equal area, so the trace is 0 at every truncation. The dashed line marks rung 3, entry 1.diagonal of [a, a†] on 6 kept statesTr [a, a†] = 0if [a, a†] were I, its trace would be 6but every commutator is traceless, so one rung pays −5+10−5rung n = 3 entry = 1
Start with a picture. Change the model in the lab below.

Quantum core · institution-dependent. Your university determines the required depth of these quantum topics, including the use of operators, differential equations and computation. Institution-dependent does not automatically mean optional.

1

Build the model

Order of operations, promoted to an algebra.

The key idea

The commutator of two operators, [A, B] = AB − BA, is the operator measuring how much their order matters; it is linear in each argument, antisymmetric, and obeys the product rule [A, BC] = [A, B]C + B[A, C].

Example. σₓ σy = iσz while σy σₓ = −iσz, so [σₓ, σy] = 2iσz — diagonal entries of modulus 2, not zero. Their anticommutator (σₓ, σy) is the zero matrix: these two are as non-commuting as a pair of Hermitian unitaries can be.

The complete physical model and assumptions

The commutator [A, B] = AB − BA is bookkeeping for the one property operator multiplication has that ordinary multiplication does not: order. Treat it as an algebraic object in its own right and it obeys a small closed set of rules — linear in each slot, antisymmetric, a Leibniz product rule that peels factors off one at a time, and a Jacobi identity binding any three operators. Those four make [⋅,⋅] a Lie bracket, and they let you evaluate [x̂, p̂²] or [σₓ, σy σz] without writing a single matrix element or integral. Two consequences arrive at once. The Pauli matrices close under the bracket, [σᵢ, σⱼ] = 2i εᵢⱼₖ σₖ, so the whole of angular-momentum algebra already sits inside three 2×2 matrices. And the trace, being cyclic, annihilates every commutator: Tr(AB) = Tr(BA) forces Tr[A, B] = 0 for any two d×d matrices, while Tr(iħ Id) = iħd is never zero. So [x̂, p̂] = iħ has no finite-dimensional solution at all — not a poor one, none. That is what the canonical relation costs: an infinite-dimensional space, at least one operator with no finite norm, and a domain you are obliged to state, because Wintner and Wielandt extend the same verdict to every pair of bounded operators.

1The bracket is an operator, and it has units

[A, B] = AB − BA is defined only where both products are, and what it returns is another operator on the same space — not a number, not a scalar measure of disagreement. It inherits units: [x̂, p̂] carries J s, the units of x times p, which is why ħ and not a pure number stands on the right. Hermiticity constrains the answer sharply. If A and B are both Hermitian, then [A, B]† = (AB)† − (BA)† = B†A† − A†B† = BA − AB = −[A, B], so the commutator of two observables is anti-Hermitian and, unless it vanishes, can never itself be an observable. Multiply by i and it becomes Hermitian: i[A, B] is measurable, and this is exactly why the canonical relation reads iħ rather than ħ. A real constant on the right would contradict Hermiticity before any physics was done. The partner object, the anticommutator {A, B} = AB + BA, is Hermitian for Hermitian A and B, and the pair split any product: AB = ½{A, B} + ½[A, B].

2Four rules, and you stop multiplying matrices

Bilinearity lets you expand sums slot by slot; antisymmetry gives [A, A] = 0 and lets you swap arguments at the cost of a sign; the Leibniz rule [A, BC] = [A, B]C + B[A, C] peels one factor off a product; the Jacobi identity ties three operators together. The Leibniz rule is the workhorse, and its one trap is that the spectator factor must stay on the side it started: writing [A, BC] = [A, B]C + [A, C]B is wrong unless everything in sight happens to commute. Applied to the canonical pair it gives [x̂, p̂²] = [x̂, p̂]p̂ + p̂[x̂, p̂] = iħp̂ + iħp̂ = 2iħp̂, and induction extends that to [x̂, p̂ⁿ] = iħ n p̂ⁿ⁻¹. In other words the map B ↦ [x̂, B] acts on products exactly as iħ d/dp does — it is a derivation. That single structural fact is why the classical Poisson bracket and the quantum commutator obey the same identities, and why {x, p} = 1 and [x̂, p̂] = iħ sit opposite each other in the correspondence.

3The Pauli matrices are the smallest place to test it

Three traceless Hermitian 2×2 matrices carry the whole product table σᵢ σⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ. Multiply σₓ = [[0,1],[1,0]] by σy = [[0,−i],[i,0]] and you get [[i,0],[0,−i]] = iσz; reverse the order and you get −iσz. So [σₓ, σy] = 2iσz and (σₓ, σy) = 0, the two halves of the product table read off separately. The bracket closes — a commutator of Paulis is a Pauli times a number — so these three span the Lie algebra su(2), and rescaling to Sᵢ = (ħ/2)σᵢ turns 2i εᵢⱼₖ σₖ into iħ εᵢⱼₖ Sₖ. Jacobi is worth checking here because it is cheap: [σₓ, [σy, σz]] = [σₓ, 2iσₓ] = 0, and the same for the two cyclic partners, so the sum vanishes term by term. Note also what the right-hand sides look like: 2iσz is traceless. Nothing in this algebra ever produces a non-zero multiple of the identity, which is the loophole the next section closes.

4The trace kills [x̂, p̂] = iħ in finite dimensions

For finite matrices Tr(AB) = Σⱼ Σₖ Aⱼₖ Bₖⱼ = Tr(BA), because the double sum is symmetric under relabelling. Therefore Tr[A, B] = Tr(AB) − Tr(BA) = 0 for every pair of d×d matrices, with no exceptions and no dependence on d. Now take the trace of both sides of [x̂, p̂] = iħ I. The left gives 0; the right gives iħd, which is non-zero for every d ≥ 1 — for d = 1000 its modulus is 1.05 × 10⁻³¹ J s, a thousand times ħ, not a rounding error. The canonical commutation relation therefore has no finite-dimensional matrix solution: not an inaccurate one, none. Be precise about what is being forbidden. Non-commuting finite matrices are ordinary, and [σₓ, σy] = 2iσz is one. What no finite dimension permits is a commutator equal to a non-zero multiple of the identity, because the identity has trace d and commutators have trace zero.

5Bounded is not enough either: the operators must be unbounded

Infinite dimensions remove the trace argument but not the obstruction. Suppose A and B are bounded operators with [A, B] = cI. The Leibniz rule and induction give [A, Bⁿ] = n c Bⁿ⁻¹, so n|c| ‖Bⁿ⁻¹‖ = ‖[A, Bⁿ]‖ ≤ 2‖A‖ ‖Bⁿ‖ ≤ 2‖A‖ ‖B‖ ‖Bⁿ⁻¹‖. If no power of B vanishes, cancel ‖Bⁿ⁻¹‖ and read off n|c| ≤ 2‖A‖‖B‖ for every n, which fails as soon as n exceeds 2‖A‖‖B‖/|c|; if some power does vanish, the smallest such n forces c = 0. That is the Wintner–Wielandt theorem, and its verdict is that x̂ and p̂ cannot both have finite norm: at least one is unbounded, and in the Schrödinger representation on L²(ℝ) both are. Unbounded Hermitian operators cannot be defined on the whole Hilbert space, only on a dense domain, so [x̂, p̂]ψ = iħψ is a statement about the vectors ψ for which both x̂p̂ψ and p̂x̂ψ exist — the Schwartz functions, say. Quoting a commutator without its domain is quoting half a theorem, and it is the half that discretised code discovers the hard way.

6What the algebra buys once you have it

Almost every later result in the course is an evaluated commutator. The Heisenberg equation reads dÂ/dt = (i/ħ)[Ĥ, Â] + ∂Â/∂t, so anything that commutes with Ĥ and carries no explicit time dependence is conserved: for a free particle [Ĥ, p̂] = 0 and momentum is constant, while adding V(x̂) gives [Ĥ, p̂] = [V(x̂), p̂] = iħV′(x̂) and hence dp̂/dt = −V′(x̂), the operator form of F = −dV/dx. The Robertson bound ΔA ΔB ≥ ½|⟨[A, B]⟩| takes the commutator as its only input, so the bracket is the whole of that bound rather than a step towards it. Vanishing commutators do work too: two commuting Hermitian operators share a complete eigenbasis, which is what makes a complete set of commuting observables a usable labelling scheme for degenerate states. And Jacobi is not decoration — it makes A ↦ [A, ⋅] a derivation of the bracket itself, so that if A and B both commute with Ĥ then so does [A, B], and the conserved quantities close into an algebra.

2

Key equations

Read the units, assumptions and limits before substituting.

Definition, antisymmetry, bilinearity

[A, B] = AB − BA = −[B, A] · [αA + βB, C] = α[A, C] + β[B, C]

The bracket is an operator on the same space, never a number, and it carries the units of the product AB.

α, β are complex scalars; [A, A] = 0 and [A, cI] = 0 for every A.

Leibniz rule, in either slot

[A, BC] = [A, B]C + B[A, C] · [AB, C] = A[B, C] + [A, C]B

Peels one factor at a time, so [x̂, p̂²] = [x̂, p̂]p̂ + p̂[x̂, p̂] = 2iħp̂ needs no matrix elements at all.

Order is preserved: the spectator factor stays on the side it started.

Jacobi identity

[A, [B, C]] + [B, [C, A]] + [C, [A, B]] = 0

The consistency condition that lets conserved quantities close into an algebra, as [Lᵢ, Lⱼ] = iħ εᵢⱼₖ Lₖ does.

Cyclic in A, B, C; with antisymmetry it makes [⋅,⋅] a Lie bracket.

Pauli matrices: the algebra in 2×2

σᵢ σⱼ = δᵢⱼ I + i εᵢⱼₖ σₖ → [σᵢ, σⱼ] = 2i εᵢⱼₖ σₖ

Any product of Paulis collapses to one Pauli times a phase, and Sᵢ = (ħ/2)σᵢ turns the 2 into [Sₓ, Sy] = iħSz.

Each σᵢ is Hermitian, unitary, traceless and dimensionless; σᵢ² = I.

The canonical pair as a derivation

[x̂, f(p̂)] = iħ f′(p̂) · [g(x̂), p̂] = iħ g′(x̂)

For Ĥ = p̂²/2m + V(x̂) this gives [x̂, Ĥ] = iħp̂/m and [p̂, Ĥ] = −iħV′(x̂) in one line each.

f, g given by convergent power series; ħ = 1.0546 × 10⁻³⁴ J s.

The trace obstruction

Tr[A, B] = 0, while Tr(iħ Id) = iħd ≠ 0

No finite matrices satisfy [x̂, p̂] = iħ, which is why the canonical pair needs an infinite-dimensional space.

Tr(AB) = Tr(BA) for any d×d matrices, so the first holds at every finite d.
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

6 states
2 to 10 states; steps of 1.
3
0 to 9; steps of 1.

Try this. Push d from 2 to 10: the plateau of +1s lengthens while the single top-rung bar deepens as 1 − d, to −9 at d = 10, so the defect concentrates rather than dilutes. Then drag n up the ladder — every rung obeys [a, a†] = 1 until the last, which pays the whole trace bill alone.

Live results

ENTRY AT RUNG n
1
TOP-RUNG ENTRY 1 − d
-5
TRACE OF THE COMMUTATOR
0
RUNGS OBEYING THE ALGEBRA
83 %

Results follow this lesson’s model and assumptions. Displayed values are rounded.

Interactive Physics V modelDiagonal of [a, a†] with the ladder truncated to 6 states: the lowest 5 rungs read +1, as the algebra demands, and the top rung alone reads -5. The two blocks have equal area, so the trace is 0 at every truncation. The dashed line marks rung 3, entry 1.diagonal of [a, a†] on 6 kept statesTr [a, a†] = 0if [a, a†] were I, its trace would be 6but every commutator is traceless, so one rung pays −5+10−5rung n = 3 entry = 1
Diagonal of [a, a†] with the ladder truncated to 6 states: the lowest 5 rungs read +1, as the algebra demands, and the top rung alone reads −5. The two blocks have equal area, so the trace is 0 at every truncation. The dashed line marks rung 3, entry 1.

Predict → change one variable → check

Plan a change before running it. Every other input stays at the saved baseline.

Saved baseline. States kept in the truncation d: 6 states; Rung probed n: 3

Baseline 6; choose 2 to 10, in steps of 1.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

Catch the common trap

The usual error is to read [x̂, p̂] = iħ as a statement about a very small number and conclude that a large enough matrix will satisfy it to any accuracy you like. It will not: the error does not shrink, in trace or in norm. Tr[A, B] = 0 holds exactly at every dimension d while Tr(iħ Id) = iħd grows with d, so the discrepancy does not dilute as the matrix grows; it concentrates. Truncate the oscillator ladder to d states and [a, a†] comes out +1 on the lowest d − 1 rungs and 1 − d on the top one, a single defect that deepens as you refine. States that never reach the top rung see the right algebra, which is why truncated bases still serve for low-lying levels, but the truncated operators themselves never do. The right conclusion is not that finite matrices are a poor approximation to the canonical pair but that they are not solutions at all, which is why x̂ and p̂ have to be unbounded operators carrying a stated domain.

5

Practice & worked examples

3 authored examples. Make an attempt, then reveal the reasoning one step at a time.

EasyExample 1

Using only the product rule and [x̂, p̂] = iħ, evaluate [x̂, p̂²] and [x̂², p̂]. Then take Ĥ = p̂²/2m for a free particle, find [x̂, Ĥ], and feed it into the Heisenberg equation dÂ/dt = (i/ħ)[Ĥ, Â].

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

MediumExample 2

Evaluate [σₓ, σy σz] using only bilinearity, antisymmetry and the product rule, with no matrix multiplication. Check the result a second way by collapsing the product first, then rescale to Sᵢ = (ħ/2)σᵢ and show where the factor of 2 in the Pauli relation goes.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

HardExample 3

A student truncates the oscillator ladder to the lowest N = 4 Fock states and builds 4×4 matrices for a and a†, expecting to confirm [a, a†] = I numerically. Compute the diagonal of [a, a†] and its trace, identify the defect operator [a, a†] − I, and say what this proves about [x̂, p̂] = iħ and whether a larger N repairs it.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

6

Quick check

Select an answer and explain it before checking.

You truncate the harmonic-oscillator ladder to the lowest six Fock states and build 6×6 matrices for a and a†. The first five diagonal entries of [a, a†] all come out equal to 1. What is the sixth?
7

Review & continue

The commutator of two operators, [A, B] = AB − BA, is the operator measuring how much their order matters; it is linear in each argument, antisymmetric, and obeys the product rule [A, BC] = [A, B]C + B[A, C].

  • Explain the relationship without looking at the equation.
  • Check a sign, a unit and a model assumption in your working.
  • Return to the lab or worked example if a step is still unclear.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.