Skip to main content

Quantum core · institution-dependent · Interactive lesson

Compatible observables and simultaneous eigenbases

Two observables can be sharp at once exactly when their operators commute. The proof is four lines, and the payoff is a working method: use each new commuting observable to break the degeneracy the last one left, until the labels |n, l, m⟩ name a single vector rather than a subspace.

UPV-08.07 · Lesson 7 of 9 in this unit. Position is not a completion score.
Starting model: Compatible observables and simultaneous eigenbasesEvery Hermitian operator on C² is a number plus a Bloch vector: A = a₀I + α⋅σ, B = b₀I + β⋅σ. The arrows are α and β, and since [A, B] = 2i(α × β)⋅σ, whose eigenvalues are ±2i|α × β|, the dashed parallelogram's area |α × β| = 0.30 measures the commutator. Here β lies 51° from α, A's eigenvalues have multiplicity 1, and the pair shares 0 of a possible 2 eigenvectors.A = a₀I + α⋅σ B = b₀I + β⋅σ[A, B] = 2i (α × β)⋅σarea |α × β| = 0.30shared eigenvectors 0 of 2αβσₓσzα × β = 0 ⟺ [A, B] = 0 ⟺ shared eigenbasis
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

Commuting is a licence to share a basis. Degeneracy is where you spend it.

The key idea

Two observables are compatible when their Hermitian operators commute, which is precisely the condition for a complete orthonormal basis of simultaneous eigenvectors — states with a definite value of both — to exist.

Example. In spinless hydrogen the level n = 2 has E = −3.40 eV four times over, so energy is not a label; L² and Lz commute with Ĥ and with each other, and the four states separate as (l, m) = (0, 0), (1, −1), (1, 0) and (1, 1).

The complete physical model and assumptions

Compatibility is the whole content of [A, B] = 0, and the proof is short enough to hold in your head. Let A|a⟩ = a|a⟩. Then A(B|a⟩) = B(A|a⟩) = a(B|a⟩), so B maps the eigenspace Vₐ into itself. If a is non-degenerate, Vₐ is a line and B|a⟩ can only be a multiple of |a⟩: the joint eigenvector was already there. If a is degenerate, the basis inside Vₐ was never fixed by A, and the restriction of B to Vₐ is a Hermitian operator on that d-dimensional space, so the spectral theorem diagonalises it there; do this in every eigenspace and collect the results, and you have a complete orthonormal basis carrying both labels. Degeneracy is not a nuisance in this argument, it is the resource — it is exactly the freedom A left over, and each further commuting observable spends some of it. Keep going until every label list (a, b, c, …) names one ray, and you have a complete set of commuting observables: |n, l, m⟩ for spinless hydrogen. Three costs come attached. The theorem produces a basis, not a fact about any state you happen to hold; a mean commutator that vanishes in one state is not compatibility, so the Robertson bound going quiet proves nothing; and for unbounded operators AB and BA need not even share a domain, so commuting has to be restated on the unitary groups e(isA) and e(itB).

1Compatible is a statement about the pair

Two Hermitian operators A and B on the same space are compatible when [A, B] = AB − BA = 0. One direction of the theorem is immediate. Suppose an orthonormal basis (|k⟩) exists with A|k⟩ = aₖ|k⟩ and B|k⟩ = bₖ|k⟩. Then AB|k⟩ = aₖ bₖ|k⟩ = BA|k⟩ for every k, and two linear operators that agree on a basis agree on every vector, so [A, B] = 0. Notice what is not required: neither spectrum has to be non-degenerate, and the lists aₖ and bₖ may repeat as often as they like. The contrast is sharp in C². [σz, σₓ] = 2iσy ≠ 0, and σz has eigenvectors |↑⟩ and |↓⟩; but σₓ|↑⟩ = |↓⟩, which is orthogonal to |↑⟩ rather than proportional to it, so that pair shares not one eigenvector, let alone a basis.

2The hard direction starts with an invariant subspace

Now assume [A, B] = 0 and let A|a⟩ = a|a⟩. Act with A on the vector B|a⟩: A(B|a⟩) = B(A|a⟩) = a(B|a⟩). So B|a⟩ is either the zero vector or another eigenvector of A with the same eigenvalue — B maps the eigenspace Vₐ into itself, and it does so for every a at once. If a is non-degenerate, Vₐ is a line, B|a⟩ has nowhere else to go, and B|a⟩ = b|a⟩: the joint eigenvector was already sitting there, with no choice to make. Keep the corollary. If A has a completely non-degenerate spectrum, then every B commuting with A is diagonal in A's eigenbasis and is therefore a function of A, so A on its own is a complete set. That is why Ĥ alone labels every state of the one-dimensional box, and why in a three-dimensional central potential, where every l ≥ 1 level is (2l + 1)-fold degenerate, it cannot.

3Degeneracy is the freedom, and B is what spends it

If dim Vₐ = d > 1, A has not chosen a basis inside Vₐ and any orthonormal set will do. Because B maps Vₐ into itself, the restriction of B to Vₐ is a Hermitian operator on a d-dimensional space, and the spectral theorem hands you an orthonormal eigenbasis of Vₐ for it. Do that in every eigenspace of A and collect the results: a complete joint basis, built by diagonalising blocks. The matrix statement is the same fact. Write B in any eigenbasis of A; then (a − a′)⟨a|B|a′⟩ = ⟨a|[A, B]|a′⟩ = 0, so every element linking different eigenvalues of A vanishes and B is block diagonal, one block per distinct a. Take A = diag(1, 1, 4) and B with rows (2, 1, 0), (1, 2, 0) and (0, 0, 7). The a = 1 block is [[2, 1], [1, 2]], whose eigenvalues are 3 and 1, so the joint labels are (1, 3), (1, 1) and (4, 7) — three distinct pairs, and no degeneracy left.

4Getting the joint basis out of NumPy

np.linalg.eigh(A) returns an orthonormal eigenbasis, but inside a degenerate eigenspace LAPACK's choice is arbitrary: run it on diag(1, 1, 4) and you get e₁ and e₂, neither of which is an eigenvector of the B above. Two recipes fix that. Take a generic combination and diagonalise A + λB, choosing λ so that no two joint labels collide in a + λb; λ = 0.618 sends (1, 3), (1, 1) and (4, 7) to 2.854, 1.618 and 8.326, so the eigenvectors of A + λB are joint eigenvectors, and you read a and b back as ⟨k|A|k⟩ and ⟨k|B|k⟩. Or work block by block: group the eigenvalues of A within a tolerance you state out loud, project with P, diagonalise the small matrix P†BP, and map back. Audit either route with np.linalg.norm(A@B − B@A). At 1e−14 the pair commutes; at 1e−2 you have a physics error, not a rounding one.

5A complete set of commuting observables

Keep adding pairwise-commuting observables until every list of eigenvalues names one ray. For any central potential [Ĥ, L²] = [Ĥ, Lz] = [L², Lz] = 0, so the three can be diagonalised together. Spinless hydrogen at n = 3: E₃ = −1.511 eV is nine-fold degenerate, so energy alone names a nine-dimensional subspace. L² splits it into l = 0, 1, 2 with eigenvalues 0, 2ℏ² and 6ℏ² and multiplicities 1, 3 and 5, summing to 9 but still leaving degeneracy standing; Lz, whose eigenvalues mℏ run from −lℏ to +lℏ, then separates the states inside each block. Every triple (n, l, m) now occurs exactly once, so (Ĥ, L², Lz) is complete — and restoring spin with Sz gives 2n² = 18. Complete does not mean unique: (Ĥ, L², S², J², Jz) is an equally good set, the unitary between the two bases is the Clebsch–Gordan matrix, and which one you want is decided by the next term in the Hamiltonian, not by the states.

6Three things the theorem does not say

First, it produces a basis, not a property of a state: (|a₁, b₁⟩ + |a₂, b₂⟩)/√2 is an ordinary state of a compatible pair with a definite value of neither. Second, non-commuting operators can still share isolated eigenvectors. Lₓ, Ly and Lz pairwise fail to commute, yet all three annihilate |l = 0, m = 0⟩, which is a joint eigenvector of every one of them; what commuting supplies is a complete common basis, not the first shared vector. The Robertson bound carries the same warning: in |l = 1, m = 0⟩ we have ⟨Lz⟩ = 0, so σ(Lₓ)σ(Ly) ≥ ½|⟨[Lₓ, Ly]⟩| = 0, while the true product is ℏ². Third, for unbounded operators AB and BA need not share a domain, and Nelson's example gives two essentially self-adjoint operators commuting on a dense invariant domain whose spectral projections do not commute. The definition that survives is that the unitary groups commute: e(isA)e(itB) = e(itB)e(isA) for all real s, t.

2

Key equations

Read the units, assumptions and limits before substituting.

Compatibility theorem

[A, B] = 0 ⟺ A|a, b⟩ = a|a, b⟩ and B|a, b⟩ = b|a, b⟩ on one complete basis

Converts one matrix product each way into an existence claim about a basis — the only claim a measurement can act on.

A, B Hermitian on one space; a in A's units, b in B's. Neither spectrum need be non-degenerate.

Eigenspaces are invariant

A|a⟩ = a|a⟩ and [A, B] = 0 ⟹ A(B|a⟩) = a(B|a⟩)

The engine of the proof: it shrinks an N-dimensional problem down to one of size dim Vₐ.

B|a⟩ stays inside the eigenspace Vₐ. If dim Vₐ = 1 it must be a multiple of |a⟩.

B is block diagonal in A's eigenbasis

(a − a′)⟨a|B|a′⟩ = ⟨a|[A, B]|a′⟩ = 0

One 9 × 9 diagonalisation becomes blocks of 1, 3 and 5 — the numerical recipe, not just the proof.

a ≠ a′ are eigenvalues of A; the element carries B's units. Off-block entries are forced to zero.

Complete set of commuting observables

[Aᵢ, Aⱼ] = 0 for all i, j, and dim V(a₁, a₂, …) = 1

Complete is testable: every joint eigenvalue list must name one ray, with no degeneracy left over.

Spinless hydrogen: (Ĥ, L², Lz) → |n, l, m⟩; adding Sz gives |n, l, m, mₛ⟩.

Degeneracy counting in the Coulomb potential

n² = Σ (2l + 1), l = 0 to n − 1

Shows the labels working: each new commuting observable partitions the eigenspaces the last one left.

n = 3 gives 9 = 1 + 3 + 5; each l block then splits into 2l + 1 values of m. Spin doubles it to 2n².

Commuting when the operators are unbounded

e(isA) e(itB) = e(itB) e(isA) for all real s, t

The definition that survives x̂ and p̂: [A, B]ψ = 0 on a dense domain is not enough, as Nelson's example shows.

sA and tB dimensionless. These unitaries are bounded and defined on all of H, unlike AB and BA.
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

0.60
0 to 1; steps of 0.05.
0.50
0 to 1; steps of 0.05.
0.40
−1 to 1; steps of 0.05.

Try this. Set βₓ = 0: the arrows fall on one line, B is already diagonal in A's basis, the area collapses and both eigenvectors are shared. Reopen βₓ, then drag αz to 0 — A becomes a multiple of the identity, every direction is an A eigenvector, and B alone supplies the labels.

Live results

ANGLE β TO α
51 deg
AREA |α × β|
0.30
MULTIPLICITY IN A
1
COMMON EIGENVECTORS
0 of 2

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

Interactive Physics V modelEvery Hermitian operator on C² is a number plus a Bloch vector: A = a₀I + α⋅σ, B = b₀I + β⋅σ. The arrows are α and β, and since [A, B] = 2i(α × β)⋅σ, whose eigenvalues are ±2i|α × β|, the dashed parallelogram's area |α × β| = 0.30 measures the commutator. Here β lies 51° from α, A's eigenvalues have multiplicity 1, and the pair shares 0 of a possible 2 eigenvectors.A = a₀I + α⋅σ B = b₀I + β⋅σ[A, B] = 2i (α × β)⋅σarea |α × β| = 0.30shared eigenvectors 0 of 2αβσₓσzα × β = 0 ⟺ [A, B] = 0 ⟺ shared eigenbasis
Every Hermitian operator on C² is a number plus a Bloch vector: A = a₀I + α⋅σ, B = b₀I + β⋅σ. The arrows are α and β, and since [A, B] = 2i(α × β)⋅σ, whose eigenvalues are ±2i|α × β|, the dashed parallelogram's area |α × β| = 0.30 measures the commutator. Here β lies 51° from α, A's eigenvalues have multiplicity 1, and the pair shares 0 of a possible 2 eigenvectors.

Predict → change one variable → check

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

Saved baseline. αz, half the gap between A's eigenvalues: 0.60; βₓ, B off-diagonal in A's basis: 0.50; βz, B diagonal in A's basis: 0.40

Baseline 0.60; choose 0 to 1, in steps of 0.05.
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 line that goes wrong is “A and B commute, so the system has definite values of both.” The theorem asserts that a basis of joint eigenvectors exists, not that the state you are holding is one of them: (|a₁, b₁⟩ + |a₂, b₂⟩)/√2 is a perfectly ordinary state of a compatible pair, and measuring A on it is as random as anything in quantum mechanics. Compatible means both can be sharp at once, and that measuring one does not scramble the other's statistics — not that they are sharp now. The mirror error is just as common: that non-commuting operators can never share an eigenvector. Lₓ, Ly and Lz all annihilate |l = 0, m = 0⟩, so that single state is a joint eigenvector of three pairwise incompatible operators. What commuting buys is a complete common basis; what it never buys is a fact about the particular state in front of you.

5

Practice & worked examples

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

EasyExample 1

Take A = diag(1, 1, 4) and B with rows (2, 1, 0), (1, 2, 0) and (0, 0, 7), both Hermitian on C³. Verify [A, B] = 0, then find the joint eigenbasis and the label pair (a, b) of each vector. Is {A, B} a complete set here?

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

Spinless hydrogen, level n = 3. Show that energy alone cannot label a state, then count how (Ĥ, L², Lz) resolves the level. Take E₁ = −13.598 eV, the value with the reduced mass included. Finish by showing why Lz can never equal |L| for l = 2.

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

The hydrogen 2p level (l = 1, s = 1/2, six states) acquires a spin–orbit term Hₛₒ = ξ L⋅S. Show which commuting set survives, find the two shifts and their degeneracies, and fix ξℏ² from the measured 2p(3/2)–2p(1/2) interval of 10.97 GHz.

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

0 of 6 steps revealed.

6

Quick check

Select an answer and explain it before checking.

A and B are Hermitian on a four-dimensional space and [A, B] = 0. A has eigenvalue 2 with multiplicity three and eigenvalue 5 once. Which statement is guaranteed?
7

Review & continue

Two observables are compatible when their Hermitian operators commute, which is precisely the condition for a complete orthonormal basis of simultaneous eigenvectors — states with a definite value of both — to exist.

  • 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.