Skip to main content

Quantum core · institution-dependent · Interactive lesson

Operators and expectation values

Once the state is a whole function, a measurable quantity can no longer be a number stored inside it. It has to be something you do to it. This lesson fixes which operation goes with which observable, turns that operation into an average and a spread, and shows that the reality of every average hangs on a boundary term.

UPIV-05.05 · Lesson 5 of 9 in this unit. Position is not a completion score.
Starting model: Operators and expectation valuesUpper panel: the real part (solid) and imaginary part (dashed) of a normalised Gaussian packet centred at ⟨x̂⟩ = 1.20 nm with width σ_x = 0.24 nm and wavenumber k₀ = 8 nm⁻¹. Lower panel: |ψ|², with a solid line at ⟨x̂⟩ and dashed lines one σ_x either side. ⟨p̂⟩ = ħk₀ = 8.44 and σ_p = ħ/(2σ_x) = 2.20, both in units of 10⁻²⁵ kg m s⁻¹.Re ψ solid Im ψ dashedk₀ = 8 nm⁻¹⟨p̂⟩ = ħk₀ = 8.44 ×10⁻²⁵ kg m s⁻¹|ψ|² is blind to k₀x = 0⟨x̂⟩ = 1.20 nm, σₓ = 0.24 nm3.0 nm
Start with a picture. Change the model in the lab below.

Quantum core · institution-dependent. Departments differ in how much quantum mechanics they include in Physics IV or teach in a dedicated course. Follow your university’s required mathematical depth and assessment; these numbered units are not automatically optional.

1

Build the model

A quantity you can measure is an instruction, not a number.

The key idea

An observable is represented by a Hermitian linear operator  acting on the wave function, and the mean of many measurements of it on identically prepared systems is the integral ⟨Â⟩ = ∫ψ*(x) Âψ(x) dx.

Example. For the ground state of a well of width L, ⟨x̂⟩ = L/2 by symmetry, but ⟨x̂²⟩ = L²(1/3 − 1/(2π²)) = 0.2827L², so σₓ = 0.181L. The particle is centred on the middle, not sitting at it.

The complete physical model and assumptions

Born's rule hands you a probability density, but almost nothing you measure is the position. The repair is to stop hunting for observables inside ψ and start representing them as linear operators acting on it: position multiplies, momentum differentiates as p̂ = −iħ ∂/∂x, and every classical quantity built from x and p is assembled from those two. Momentum is not guessed — a de Broglie plane wave e(ikx) carries momentum ħk, and −iħ ∂/∂x returns exactly ħk times it, so the operator is read off the relation rather than decreed. Numbers come back by sandwiching: ⟨Â⟩ = ∫ψ*Âψ dx is the mean of many measurements on identically prepared systems, and σA² = ⟨²⟩ − ⟨Â⟩² is their spread. Demanding that every such mean be real, for every state, is precisely what forces the operator to be Hermitian — and Hermiticity pays for itself twice over: real eigenvalues, so outcomes are real numbers, and orthogonal eigenfunctions, so the coefficients in the expansion Born's rule needs are fixed uniquely. The cost is that Hermiticity belongs to the formula and its domain together. It survives only while the boundary terms thrown up by integration by parts vanish, so p̂ is Hermitian on the whole line and hopeless on a half-line; and the product of two Hermitian operators need not be Hermitian, so a classical product like xp has to be symmetrised before it means anything at all.

1Why an observable has to become an operator

The state is a whole function ψ(x), not a list of values, so a measurable quantity cannot be read off it the way a speed is read off a trajectory. What it can be is a rule for turning one state into another. Two requirements then narrow the rules almost completely. The rule must be linear, Â(αψ₁ + βψ₂) = αÂψ₁ + βÂψ₂, because superposition is the entire content of the previous topics and a nonlinear rule would wreck it. And the numbers the rule produces — the averages — must be real, since no laboratory ever reports 3 + 2i metres. Linearity makes  an operator; reality makes it a Hermitian one. In the position representation the first assignment is almost trivial: x̂ acts by multiplication, x̂ψ = xψ, which is why ⟨x̂⟩ = ∫x|ψ|²dx looks like an ordinary weighted average with |ψ|² as the weight. Nothing else on the list looks like that, and expecting it to is where most of the trouble starts.

2Reading p̂ = −iħ d/dx off the de Broglie relation

Momentum is not defined by decree. A free particle of definite momentum is a plane wave ψ = e(ikx) carrying p = ħk, so whatever operator represents momentum must return ħk times that wave. Differentiate: d/dx e(ikx) = ik e(ikx), so multiplying by −iħ gives exactly ħk e(ikx). Hence p̂ = −iħ d/dx, with the i sitting there precisely to cancel the i the derivative produces and leave a real eigenvalue behind. Everything else is then built by substitution. Kinetic energy p²/2m becomes −(ħ²/2m) d²/dx², total energy adds V(x) as a multiplication, and angular momentum r × p becomes −iħ r × ∇. The one place substitution turns ambiguous is a classical product of x and p, because x̂p̂ ≠ p̂x̂ while the classical xp and px are the same number. That ordering problem has no classical counterpart and has to be settled by hand.

3Sandwiching: the expectation-value integral

The recipe is ⟨Â⟩ = ∫ψ*(x) [Âψ(x)] dx, and the brackets matter: the operator acts on ψ first, and only then is the result multiplied by ψ*. Take the infinite-well ground state ψ₁ = √(2/L) sin(πx/L). Position is easy, because x̂ merely multiplies: |ψ₁|² is symmetric about L/2, so ⟨x̂⟩ = L/2. Momentum is not. Here p̂ψ₁ = −iħ√(2/L)(π/L)cos(πx/L), so ⟨p̂⟩ ∝ ∫₀L sin(πx/L)cos(πx/L)dx, which is zero. That is a general result for any real normalisable ψ: ⟨p̂⟩ = −iħ∫ψψ′dx = −iħ[ψ²/2] = 0. It does not mean the particle is at rest. Apply p̂ a second time and p̂²ψ₁ = (πħ/L)²ψ₁, so ⟨p̂²⟩ = (πħ/L)² — decidedly nonzero, and for an electron in a well of width L = 0.50 nm that is a kinetic energy of 2.41 × 10⁻¹⁹ J, or 1.50 eV. A standing wave is an equal mixture of +ħk and −ħk: the mean cancels, the mean square does not.

4Hermiticity is a condition on the boundary too

Write the test out for p̂ on the line. Integrating by parts, ∫φ*(−iħψ′)dx = −iħ[φ*ψ] + ∫(−iħφ′)*ψ dx, so ∫φ*(p̂ψ)dx equals ∫(p̂φ)*ψ dx exactly when the boundary term [φ*ψ] vanishes at both limits. For square-integrable states on the whole line it does, and p̂ is Hermitian. Change the domain and the conclusion changes with it. On the half-line 0 ≤ x < ∞ the term at x = 0 cannot be made to vanish for every pair of states, and p̂ admits no self-adjoint extension there — radial momentum in three dimensions inherits exactly this problem. Inside a hard-walled box, ψ(0) = ψ(L) = 0 does kill the boundary term, so ⟨p̂⟩ comes out real; but no plane wave e(ikx) vanishes at two points, so p̂ has no eigenfunctions in that domain and momentum is not a good observable in a box, even though p̂² is. An operator is its formula plus the functions it is allowed to act on.

5Real eigenvalues and orthogonal eigenfunctions come free

Two consequences follow from the Hermitian condition in about three lines each, and the measurement postulate needs both. Let Âψ = aψ with ψ normalised. Then ∫ψ*(Âψ)dx = a, while ∫(Âψ)*ψ dx = a*. Hermiticity equates them, so a = a*: every eigenvalue is real, which is why the possible outcomes of a measurement are real numbers. Now take two eigenfunctions, Âψₘ = aₘψₘ and Âψₙ = aₙψₙ with aₘ ≠ aₙ. The same equality gives aₙ∫ψₘ*ψₙdx = aₘ*∫ψₘ*ψₙdx, and aₘ* = aₘ, so (aₙ − aₘ)∫ψₘ*ψₙdx = 0 and the overlap vanishes. Distinct outcomes therefore live in orthogonal states. That orthogonality is what pins the coefficients in ψ = Σcₙψₙ down uniquely and lets Born's rule read |cₙ|² = |∫ψₙ*ψ dx|² as the probability of outcome aₙ. Drop Hermiticity and the outcomes need not be real and the coefficients need not be unique, so the probability reading of |cₙ|² goes with them.

6Variance: applying twice, not squaring the answer

The spread of outcomes is σA² = ⟨²⟩ − ⟨Â⟩², and ⟨²⟩ means applying the operator twice inside one integral, ∫ψ*Â(Âψ)dx. It is not ⟨Â⟩². The difference is the whole physics: for the well ground state ⟨p̂⟩² = 0 while ⟨p̂²⟩ = (πħ/L)². Two facts make the variance worth the integral. The spread collapses to zero precisely for an eigenfunction, since Âψ = aψ makes ⟨²⟩ = a² = ⟨Â⟩²; away from one, the width of the outcome distribution is a fact about the state rather than about the instrument. And for p̂ one integration by parts turns ⟨p̂²⟩ = −ħ²∫ψ*ψ″dx into ħ²∫|ψ′|²dx, manifestly non-negative. Put both spreads together for the well ground state: σₓ = 0.181L and σₚ = πħ/L, so σₓσₚ = 0.568ħ, comfortably above the ħ/2 floor that the commutator topic later derives.

2

Key equations

Read the units, assumptions and limits before substituting.

Expectation value

⟨Â⟩ = ∫ ψ*(x) [Â ψ(x)] dx

The mean over many measurements on identically prepared systems — not a value one system holds.

ψ normalised; ⟨Â⟩ carries the unit of A. The operator acts on ψ before ψ* multiplies.

Position and momentum operators

x̂ψ = xψ · p̂ψ = −iħ ∂ψ/∂x

p̂ e(ikx) = ħk e(ikx): the operator is read straight off de Broglie's p = ħk, not postulated.

Position representation. ħ = 1.055 × 10⁻³⁴ J s, so p̂ returns kg m s⁻¹.

The Hermiticity condition

∫ φ*(Âψ) dx = ∫ (Âφ)*ψ dx for all φ, ψ in the domain

Guarantees every ⟨Â⟩ is real; it constrains the domain as much as it constrains the formula.

For p̂ it holds only if the boundary term −iħ[φ*ψ] vanishes at both limits.

Variance and standard deviation

σA² = ⟨²⟩ − ⟨Â⟩² = ⟨( − ⟨Â⟩)²⟩

A nonzero σA reports a superposition of outcomes, not an apparatus in need of recalibration.

σA shares the unit of A. ⟨²⟩ means applying  twice, never squaring the number ⟨Â⟩.

Kinetic energy as curvature

⟨p̂²⟩ = −ħ² ∫ ψ* ψ″ dx = ħ² ∫ |ψ′|² dx

Makes ⟨p̂²⟩ ≥ 0 obvious: kinetic energy is paid for in the curvature of ψ, not its value.

Second form after one integration by parts, valid whenever ψ → 0 at the limits.

What Hermiticity buys

Âψₙ = aₙψₙ ⟹ aₙ real, and ∫ ψₘ* ψₙ dx = 0 when aₘ ≠ aₙ

Supplies the real outcomes and the orthonormal basis that Born's rule expands the state in.

The same vanishing boundary terms are required for both halves of the proof.
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

1.20 nm
0.7 to 2.3 nm; steps of 0.05.
0.24 nm
0.12 to 0.34 nm; steps of 0.02.
8 nm⁻¹
−16 to 16 nm⁻¹; steps of 1.

Try this. Pull k₀ to zero: the dashed imaginary part flattens onto the axis and ⟨p̂⟩ goes with it, which is why any real ψ has zero mean momentum. Now sweep k₀ to −16 and watch the lower panel sit perfectly still — the density has thrown the phase away, so nothing built from |ψ|² alone can recover the mean momentum.

Live results

⟨x̂⟩
1.20 nm
σₓ
0.24 nm
⟨p̂⟩ = ħk₀
8.44 ×10⁻²⁵ kg m/s
σₚ = ħ/(2σₓ)
2.20 ×10⁻²⁵ kg m/s

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

Interactive Physics IV modelUpper panel: the real part (solid) and imaginary part (dashed) of a normalised Gaussian packet centred at ⟨x̂⟩ = 1.20 nm with width σ_x = 0.24 nm and wavenumber k₀ = 8 nm⁻¹. Lower panel: |ψ|², with a solid line at ⟨x̂⟩ and dashed lines one σ_x either side. ⟨p̂⟩ = ħk₀ = 8.44 and σ_p = ħ/(2σ_x) = 2.20, both in units of 10⁻²⁵ kg m s⁻¹.Re ψ solid Im ψ dashedk₀ = 8 nm⁻¹⟨p̂⟩ = ħk₀ = 8.44 ×10⁻²⁵ kg m s⁻¹|ψ|² is blind to k₀x = 0⟨x̂⟩ = 1.20 nm, σₓ = 0.24 nm3.0 nm
Upper panel: the real part (solid) and imaginary part (dashed) of a normalised Gaussian packet centred at ⟨x̂⟩ = 1.20 nm with width σₓ = 0.24 nm and wavenumber k₀ = 8 nm⁻¹. Lower panel: |ψ|², with a solid line at ⟨x̂⟩ and dashed lines one σₓ either side. ⟨p̂⟩ = ħk₀ = 8.44 and σₚ = ħ/(2σₓ) = 2.20, both in units of 10⁻²⁵ kg m s⁻¹.

Predict → change one variable → check

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

Saved baseline. Packet centre ⟨x̂⟩: 1.20 nm; Packet width σₓ: 0.24 nm; Central wavenumber k₀: 8 nm⁻¹

Baseline 1.20; choose 0.7 to 2.3, 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 commonest error is to slide the operator out of the sandwich and write ⟨Â⟩ = ∫Â|ψ|²dx. For position that happens to be right, since x̂ only multiplies and ∫x|ψ|²dx is the correct weighted average — which is exactly why the habit survives. Try it on momentum and it collapses: ∫(−iħ d/dx)|ψ|²dx = −iħ[|ψ|²] evaluated at ±∞ = 0, for every normalisable state whatever, including a packet visibly travelling at 10⁶ m s⁻¹. The operator must act on ψ before ψ* multiplies it, because differentiating |ψ|² throws the phase away — and for momentum the phase is the whole answer: ψ = f(x)e(ik₀x) with f real has ⟨p̂⟩ = ħk₀, while f and f e(ik₀x) have identical probability densities. A second version of the same slip is writing ⟨p̂²⟩ = ⟨p̂⟩², which sets the kinetic energy of every bound state to zero.

5

Practice & worked examples

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

EasyExample 1

An electron sits in the ground state of an infinite well of width L = 0.50 nm, ψ₁(x) = √(2/L) sin(πx/L) on 0 ≤ x ≤ L. Find ⟨x̂⟩, ⟨p̂⟩ and ⟨p̂²⟩, then convert ⟨p̂²⟩ into a kinetic energy in eV. Take ħ = 1.055 × 10⁻³⁴ J s and mₑ = 9.11 × 10⁻³¹ kg.

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

0 of 4 steps revealed.

MediumExample 2

For the same ground state, evaluate ⟨x̂²⟩ and hence σₓ, then form the product σₓσₚ using σₚ = πħ/L from the previous problem. Compare the result with ħ/2, and say whether the answer depends on L. Use L = 0.50 nm.

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

Show that the product x̂p̂ is not Hermitian even though x̂ and p̂ separately are, evaluate ⟨x̂p̂⟩ for an arbitrary real normalised ψ(x) on the whole line, and build from x̂ and p̂ an operator whose expectation value is guaranteed real.

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 normalised Gaussian packet on the line is ψ(x) = (2a/π)¹⁄⁴ e(−ax²) e(ik₀x), with a > 0 and k₀ > 0. Which statement about its momentum expectation value and spread is correct?
7

Review & continue

An observable is represented by a Hermitian linear operator  acting on the wave function, and the mean of many measurements of it on identically prepared systems is the integral ⟨Â⟩ = ∫ψ*(x) Âψ(x) dx.

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