Scientia sine finibus

Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.10

Units and Topics

Unit 9. The Mathematics of Quantum Mechanics

9.10 The Uncertainty Relation

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.

1. The Spread as a Length

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.

2. The Cauchy-Schwarz Inequality

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.

3. The Proof of the Uncertainty Relation

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 B

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

4. Position and Momentum

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 ≥ ħ/2

This 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 example with numbers

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/s

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

5. Spin

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ΔSyProductRight side
Spin up along zħ/2ħ/2ħ²/4(ħ/2)(ħ/2) = ħ²/4
Spin up along x0ħ/20(ħ/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.

6. What the Relation Says

  • The relation is a statement about a state. Prepare the same state many times. Measure A on one half of the copies and B on the other half. The two spreads of the results satisfy the relation.
  • The relation does not describe the errors of imperfect instruments. The spreads are present for perfect instruments, because they are properties of the state.
  • If A and B commute, the right side is zero, and the relation sets no limit. From Topic 8.6, the two observables then have shared eigenkets, in which both spreads are zero.
  • If A and B do not commute, the right side can still be zero for some states, as in the second row of the table in Part 5.

7. The End of the Course

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 mechanicsLinear algebraTopics
StateA vector of length 1 in a complex vector space8.2, 9.1, 9.5
ObservableA Hermitian operator8.3, 9.3, 9.6
Possible results and probabilitiesEigenvalues, and squared components along eigenvectors5.1, 8.5, 9.2, 9.3
Change in timeA unitary operator, built from the eigenvalues of the energy5.5, 8.4, 9.8
Observables that cannot both be sharpOperators that do not commute8.6, 9.10
Several particlesThe tensor product9.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.

Common Mistakes

  • Reading the relation as a statement about one measurement. The spreads describe the results of many measurements on copies of the same state.
  • Explaining the relation by imperfect instruments.
  • Assuming that the right side is the same for each state. For position and momentum it is ħ/2, but for spin components it depends on the state.
  • Concluding from ΔA = 0 that the relation is violated. In an eigenket of A, the expectation value of the commutator is zero.
  • Leaving out the factor 1/2 or the absolute value on the right side.

Summary

FactStatement
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 observablesThe right side is zero, and shared eigenkets have both spreads equal to zero

Practice

Work each problem on paper first. Then open the answer to check your work.

1. A spin is in the state |↑⟩. Find the spread Δσx.

⟨σx⟩ = ⟨↑|σx|↑⟩ = ⟨↑|↓⟩ = 0⟨σx²⟩ = 1because σx² = IΔσx = √1 − 0 = 1

2. A spin is up along the x axis. Check the relation Δσx Δσy ≥ (1/2)|⟨[σx, σy]⟩|.

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.

3. Check the Cauchy-Schwarz inequality for |f⟩ = (1, i) and |g⟩ = (2, 1).

⟨f|g⟩ = (1)(2) + (−i)(1) = 2 − i|⟨f|g⟩|² = 4 + 1 = 5⟨f|f⟩⟨g|g⟩ = (2)(5) = 105 ≤ 10the inequality holds

4. A particle has Δx = 2.0 × 10⁻⁹ m. Find the smallest possible Δp.

Δp ≥ ħ/2ΔxΔp ≥ (1.055 × 10⁻³⁴)/(4.0 × 10⁻⁹) = 2.6 × 10⁻²⁶ kg m/s

5. Two observables A and B commute. What does the uncertainty relation say about them?

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.

6. A spin is up along the direction with θ = 60° and φ = 0°. Find Δσx, Δσy, and both sides of the relation of Problem 2.

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.

Python Practice

Step 1. Both sides of the relation

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.

Step 2. Many random states

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

Step 3. The Cauchy-Schwarz inequality

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

Step 4. Position and momentum of a Gaussian wave function

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

Step 5. A wave function that is not Gaussian

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.

Quiz

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?

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.

3. A spin is in the state |↑⟩. Find the spread Δσx.

4. The observables A and B commute. Which lower limit does the uncertainty relation give for ΔA ΔB?

5. Which statement about the relation Δx Δp ≥ ħ/2 is correct?

This is the last topic of the course. Back to the list of units and topics