Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.10
Unit 9. The Mathematics of Quantum Mechanics
Topic 8.6 stated that two observables that do not commute cannot both have sharp values in general. This topic proves the exact statement: the product of the two spreads is at least one half of the absolute value of the expectation value of the commutator. The proof uses only the inner product. This is the last topic of the course.
You need Topics 8.6, 9.3, 9.4, and 9.6 for this topic.
From Topic 9.3, the spread of an observable A in the state |ψ⟩ is given by (ΔA)² = ⟨A²⟩ − ⟨A⟩². The proof needs this number in another form. Subtract the expectation value from the operator, and apply the result to the state.
|f⟩ = (A − ⟨A⟩I)|ψ⟩The operator A − ⟨A⟩I is Hermitian, because ⟨A⟩ is a real number. So ⟨f|f⟩ = ⟨ψ|(A − ⟨A⟩I)²|ψ⟩. Multiplying out the square gives ⟨A²⟩ − 2⟨A⟩⟨A⟩ + ⟨A⟩², which is ⟨A²⟩ − ⟨A⟩².
(ΔA)² = ⟨f|f⟩The spread of A is the length of the ket |f⟩. It is zero exactly when |f⟩ is the zero vector, which means A|ψ⟩ = ⟨A⟩|ψ⟩: the state is an eigenket of A.
Topic 1.4 named this inequality for real vectors. It holds for the complex inner product in the same form.
The Cauchy-Schwarz inequality. For any two kets, |⟨f|g⟩|² ≤ ⟨f|f⟩⟨g|g⟩. The two sides are equal exactly when one ket is a multiple of the other.
The proof is one projection. If |g⟩ is the zero vector, both sides are 0. In any other case, subtract from |f⟩ its projection onto |g⟩, as in Topic 6.1.
|h⟩ = |f⟩ − c|g⟩ with c = ⟨g|f⟩/⟨g|g⟩The ket |h⟩ is orthogonal to |g⟩, and its squared length is ⟨h|h⟩ = ⟨f|f⟩ − |⟨g|f⟩|²/⟨g|g⟩. A squared length is not negative, so ⟨f|f⟩⟨g|g⟩ ≥ |⟨g|f⟩|². The brackets ⟨g|f⟩ and ⟨f|g⟩ have the same absolute value. The two sides are equal exactly when |h⟩ is the zero vector.
Let A and B be two observables, and let |ψ⟩ be a state. Define two kets as in Part 1.
|f⟩ = (A − ⟨A⟩I)|ψ⟩ and |g⟩ = (B − ⟨B⟩I)|ψ⟩Step 1. From Part 1 and the Cauchy-Schwarz inequality,
(ΔA)²(ΔB)² = ⟨f|f⟩⟨g|g⟩ ≥ |⟨f|g⟩|²Step 2. The squared absolute value of a complex number is at least the square of its imaginary part. From Topic 8.1, the imaginary part of z is (z − z*)/(2i).
|⟨f|g⟩|² ≥ (⟨f|g⟩ − ⟨g|f⟩)/2i²Step 3. Write A′ = A − ⟨A⟩I and B′ = B − ⟨B⟩I. Both are Hermitian, so ⟨f|g⟩ = ⟨ψ|A′B′|ψ⟩ and ⟨g|f⟩ = ⟨ψ|B′A′|ψ⟩. The difference contains the commutator of A′ and B′. The identity commutes with each operator, so this commutator is equal to the commutator of A and B.
⟨f|g⟩ − ⟨g|f⟩ = ⟨ψ|(A′B′ − B′A′)|ψ⟩from the two brackets above⟨f|g⟩ − ⟨g|f⟩ = ⟨[A, B]⟩the commutator of A′ and B′ is the commutator of A and BThe three steps together, with a square root at the end, give the result.
The uncertainty relation. For two observables A and B and any state,
ΔA ΔB ≥ 1/2 |⟨[A, B]⟩|From Topic 8.6, the commutator of two Hermitian operators is skew-Hermitian, so its expectation value is an imaginary number. The absolute value makes the right side a real number that is not negative.
Topic 9.6 found the commutator [X, P] = iħI. Its expectation value is iħ in each state, because ⟨ψ|ψ⟩ = 1. The uncertainty relation becomes
Δx Δp ≥ ħ/2This is the uncertainty relation of Heisenberg. The right side does not depend on the state. No wave function has a sharp position and a sharp momentum. The Gaussian wave function of Topic 9.7 has Δx Δp = ħ/2, so it reaches the smallest possible product.
An electron is confined to a region with Δx = 1.0 × 10⁻¹⁰ m, about the size of an atom. Then
Δp ≥ ħ/2Δx = (1.055 × 10⁻³⁴)/(2.0 × 10⁻¹⁰) = 5.3 × 10⁻²⁵ kg m/sDividing by the mass of the electron, 9.11 × 10⁻³¹ kg, gives a spread of the speed of at least 5.8 × 10⁵ m/s. A confined particle cannot be at rest. This is the reason that the smallest energy of the particle in a box of Topic 9.6 is not zero.
For the spin operators of Topic 9.4, [Sx, Sy] = iħSz. The uncertainty relation gives
ΔSx ΔSy ≥ ħ/2 |⟨Sz⟩|Here the right side depends on the state.
| State | ΔSx | ΔSy | Product | Right side |
|---|---|---|---|---|
| Spin up along z | ħ/2 | ħ/2 | ħ²/4 | (ħ/2)(ħ/2) = ħ²/4 |
| Spin up along x | 0 | ħ/2 | 0 | (ħ/2)(0) = 0 |
In the first row, ⟨Sx⟩ = 0 and Sx² = (ħ²/4)I, so ΔSx = ħ/2, and the same holds for Sy. The two sides are equal. In the second row, the state is an eigenket of Sx, so ΔSx = 0. The relation allows this, because ⟨Sz⟩ = 0 in this state. A relation for another pair still restricts this state: ΔSy ΔSz ≥ (ħ/2)|⟨Sx⟩| = ħ²/4.
Try it: the two sides of the uncertainty relation for a spin
The state is spin up along the direction with the angles θ and φ of Topic 9.4, and ħ is set to 1. The green bar shows the product ΔSx ΔSy. The purple bar shows the right side, |⟨Sz⟩|/2. The sliders set the two angles.
This topic used most of the course in a few lines: the inner product and projections of Units 1 and 6, Hermitian operators and commutators of Unit 8, and the states and observables of Unit 9. The table lists where the main ideas of quantum mechanics appear in the course.
| Idea of quantum mechanics | Linear algebra | Topics |
|---|---|---|
| State | A vector of length 1 in a complex vector space | 8.2, 9.1, 9.5 |
| Observable | A Hermitian operator | 8.3, 9.3, 9.6 |
| Possible results and probabilities | Eigenvalues, and squared components along eigenvectors | 5.1, 8.5, 9.2, 9.3 |
| Change in time | A unitary operator, built from the eigenvalues of the energy | 5.5, 8.4, 9.8 |
| Observables that cannot both be sharp | Operators that do not commute | 8.6, 9.10 |
| Several particles | The tensor product | 9.9 |
A course in quantum mechanics applies these tools to the harmonic oscillator, to angular momentum, and to the hydrogen atom. The linear algebra of those subjects is the linear algebra of this course.
| Fact | Statement |
|---|---|
| Spread as a length | (ΔA)² = ⟨f|f⟩ with |f⟩ = (A − ⟨A⟩I)|ψ⟩ |
| Cauchy-Schwarz inequality | |⟨f|g⟩|² ≤ ⟨f|f⟩⟨g|g⟩ |
| Uncertainty relation | ΔA ΔB ≥ (1/2)|⟨[A, B]⟩| |
| Position and momentum | Δx Δp ≥ ħ/2, with equality for a Gaussian wave function |
| Spin | ΔSx ΔSy ≥ (ħ/2)|⟨Sz⟩| |
| Commuting observables | The right side is zero, and shared eigenkets have both spreads equal to zero |
Work each problem on paper first. Then open the answer to check your work.
⟨σx⟩ = ⟨↑|σx|↑⟩ = ⟨↑|↓⟩ = 0⟨σx²⟩ = 1because σx² = IΔσx = √1 − 0 = 1
The state is an eigenket of σx, so Δσx = 0, and the left side is 0.
The commutator is 2iσz, and ⟨σz⟩ = 0 in this state, so the right side is 0. The relation holds as 0 ≥ 0.
⟨f|g⟩ = (1)(2) + (−i)(1) = 2 − i|⟨f|g⟩|² = 4 + 1 = 5⟨f|f⟩⟨g|g⟩ = (2)(5) = 105 ≤ 10the inequality holds
Δp ≥ ħ/2ΔxΔp ≥ (1.055 × 10⁻³⁴)/(4.0 × 10⁻⁹) = 2.6 × 10⁻²⁶ kg m/s
The right side is zero, so the relation says only that ΔA ΔB ≥ 0, which is true for any two spreads.
It sets no limit. In a shared eigenket, both spreads are zero.
The expectation values are the components of the direction: ⟨σx⟩ = sin 60°, ⟨σy⟩ = 0, and ⟨σz⟩ = cos 60° = 1/2.
Δσx = √1 − sin²60° = cos 60° = 1/2Δσy = 1Δσx Δσy = 1/2the left side1/2|2i⟨σz⟩| = 1/2the right side
The two sides are equal.
The code below calculates the spreads of σx and σy for the state |↑⟩, and the right side of the uncertainty relation, which is one half of the absolute value of the expectation value of the commutator. The names da and db stand for the two spreads.
Python
Both sides are 1. For the Pauli matrices this is the equality of Part 5, without the factors ħ/2. Now change the state to spin up along the x axis, (1, 1)/√2. Both sides should be 0, as in Practice Problem 2.
Python
The second box contains abs inside the square roots. A rounding error can make a number that should be 0 slightly negative, and the square root of a negative number is not a real number.
The loop below tests the relation for five random states. For each state it prints the product of the spreads, the right side, and their difference. The difference should never be negative. The name smallest keeps the smallest difference that the loop has found.
Python
In each line the product is at least as large as the right side. Now test another pair of observables: change B to σz.
Python
The code below draws two random kets of C⁵ and calculates both sides of the inequality of Part 2.
Python
The left side is smaller than the right side. Now make |g⟩ a multiple of |f⟩: change the line for g to g = (2 + i) times f. The two sides should be equal.
Python
The code below builds the Gaussian wave function of Topic 9.7 on a grid, with ħ = 1. The average position and the average momentum are 0, so each spread is the square root of the average of the square. The average of p² is the squared length of the function Pψ = −i dψ/dx, which is the integral of |dψ/dx|².
Python
The spreads are 1 and 0.5, and the product is 0.5, which is ħ/2. Now change σ to 2. The spreads should change to 2 and 0.25, and the product should stay 0.5.
Python
The code below does the same calculation for the wave function √2 sin(πx) of the particle in a box of Topic 9.6, on the interval from 0 to 1. The average position is 0.5, so the spread of the position uses (x − 0.5)².
Python
The spreads are 0.1808 and 3.1424, and the product is 0.568. The exact spread of the momentum is π. The product is larger than 0.5, as the uncertainty relation requires. Only a Gaussian wave function reaches 0.5.
This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.
Choose how your answers are checked
1. Which statement is the uncertainty relation for two observables A and B?
The product of the two spreads is at least one half of the absolute value of the expectation value of the commutator.
2. In a certain state, the expectation value of the commutator [A, B] is 6i. Find the smallest possible value of the product ΔA ΔB.
The right side of the uncertainty relation is (1/2)|6i| = 3.
3. A spin is in the state |↑⟩. Find the spread Δσx.
⟨σx⟩ = 0in this state⟨σx²⟩ = 1because σx² = IΔσx = √1 − 0 = 1
4. The observables A and B commute. Which lower limit does the uncertainty relation give for ΔA ΔB?
The commutator is zero, so the right side of the relation is zero. The two observables have shared eigenkets, in which both spreads are zero.
5. Which statement about the relation Δx Δp ≥ ħ/2 is correct?
The commutator of X and P is iħ times the identity, so the right side is ħ/2 for each state. A Gaussian wave function has Δx Δp = ħ/2 exactly.
This is the last topic of the course. Back to the list of units and topics