Skip to main content

Quantum core · institution-dependent · Interactive lesson

Expectation values, the virial split and uncertainty

The ladder does more than fix the spectrum. Rewrite x and p through a and a†, and every expectation value in a Fock state collapses to a count of rungs — the vanishing first moments, the equal kinetic and potential shares, and the uncertainty product (n + ½)ħ that only the ground state drives to the floor.

UPV-07.07 · Lesson 7 of 9 in this unit. Position is not a completion score.
Starting model: Expectation values, the virial split and uncertaintyThe Δx-by-Δp box for the Fock state n = 3 of a diatomic oscillator with ħω = 260 meV. Half-width Δx = 9.06 pm, half-height Δp = 4.07 in units of 10⁻²³ kg m s⁻¹, so Δx Δp = 3.5 ħ. The faint box is n = 0 at the same ħω; open circles mark the classical turning points at √2 Δx.n = 3 E = 910 meVΔx Δp = 3.5 ħfaint box: n = 0areas 7 : 1px : Δx = 9.06 pm⟨T⟩ = ⟨V⟩ = 455 meVx
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

Every moment in a Fock state is a count of rungs, not an integral.

The key idea

An expectation value in a Fock state is the diagonal matrix element ⟨n|Â|n⟩; writing  through a and a† reduces it to whichever term raises and lowers equally often, so the calculation becomes counting rather than integration.

Example. For x² = (ħ/2mω)(a² + a†² + 2N + 1), only 2N + 1 is diagonal, so ⟨3|x²|3⟩ = (ħ/mω)(3.5). With CO's ħω = 269 meV and μ = 1.139 × 10⁻²⁶ kg that is 7.93 × 10⁻²³ m², an rms stretch of 8.90 pm on a 113 pm bond.

The complete physical model and assumptions

In a Fock state |n⟩ no integral is needed to find a moment. Invert the ladder definitions to get x = √(ħ/2mω)(a + a†) and p = i√(mħω/2)(a† − a); every power of x or p is then a polynomial in a and a†, and ⟨n|⋅|n⟩ keeps only the terms that raise exactly as often as they lower. Odd powers keep nothing, so ⟨x⟩ = ⟨p⟩ = 0 on every rung. The squares keep the number-operator term, giving ⟨x²⟩ = (ħ/mω)(n + ½) and ⟨p²⟩ = mħω(n + ½), so both spreads grow as √(n + ½) and their product is exactly (n + ½)ħ — the Robertson bound at n = 0 and a multiple of it above, which is to say an energy eigenstate is not automatically a minimum-uncertainty state. The same two numbers split the energy: ⟨T⟩ = ⟨V⟩ = Eₙ/2, which is the quantum virial theorem 2⟨T⟩ = ⟨x dV/dx⟩ evaluated on a quadratic V. The cost is that both results belong to the quadratic model alone. Change the exponent and the split changes with it — hydrogen gives 2⟨T⟩ = −⟨V⟩ — and add a quartic term to the oscillator and the exact statement becomes ⟨T⟩ − ⟨V⟩ = ⟨λx⁴⟩, which is not zero.

1Invert the ladder before you reach for an integral

The definitions a = (X + iP)/√2 and a† = (X − iP)/√2 invert to X = (a + a†)/√2 and P = i(a† − a)/√2, and restoring the scales x₀ = √(ħ/mω) and p₀ = √(mħω) gives x = √(ħ/2mω)(a + a†) and p = i√(mħω/2)(a† − a). Every power of x or p is now a polynomial in a and a†, and the diagonal element ⟨n|⋅|n⟩ survives only on the terms that raise exactly as often as they lower. An odd power has no such term, so ⟨n|x|n⟩ = ⟨n|p|n⟩ = 0 on every rung. Parity would give the same two zeros, but the algebra gives strictly more: it also hands you the off-diagonal elements, ⟨m|x|n⟩ = √(ħ/2mω)(√n δ(m, n−1) + √(n+1) δ(m, n+1)), which is exactly the Δn = ±1 selection rule for an electric-dipole transition on a harmonic ladder.

2Square it, and keep the one balanced term

x² = (ħ/2mω)(a + a†)² = (ħ/2mω)(a² + a†² + a a† + a† a). The first two terms move the ket two rungs and drop out of the diagonal element; the last two combine through a a† = a† a + 1 into 2N + 1. So ⟨n|x²|n⟩ = (ħ/2mω)(2n + 1) = (ħ/mω)(n + ½). The same move on p² = −(mħω/2)(a† − a)² leaves ⟨n|p²|n⟩ = mħω(n + ½), the sign flip supplied by the i². Two checks are worth doing. Recombining them gives ⟨p²⟩/2m + ½mω²⟨x²⟩ = (n + ½)ħω = Eₙ, as it must. And at n = 0 the position result reads ⟨x²⟩ = ħ/2mω, precisely the variance of the Gaussian |ψ₀|² ∝ exp(−mωx²/ħ) — the ladder has reproduced an integral you never performed.

3The virial theorem is a statement about d⟨xp⟩/dt

Nothing in a stationary state changes, so d⟨xp⟩/dt = 0. Ehrenfest turns that into a commutator: d⟨xp⟩/dt = (i/ħ)⟨[H, xp]⟩. With [p², x] = −2iħp and [V(x), p] = iħ dV/dx, the commutator is [H, xp] = −iħ(p²/m − x dV/dx), so the condition reads 2⟨T⟩ = ⟨x dV/dx⟩. That is the quantum virial theorem, and note what it needs: a stationary state, not a time average. For a homogeneous potential V ∝ xᵏ it collapses to 2⟨T⟩ = k⟨V⟩. The oscillator has k = 2, hence ⟨T⟩ = ⟨V⟩ = Eₙ/2 = (n + ½)ħω/2 — which reproduces the two second moments of the previous section with no extra work. Hydrogen has k = −1 and therefore 2⟨T⟩ = −⟨V⟩: a positive kinetic share half the size of a negative potential one. Equal halves are a property of k = 2, not of bound states.

4Why only the ground state sits on the uncertainty floor

Because ⟨x⟩ = ⟨p⟩ = 0, the spreads are just the square roots of the second moments, so Δx Δp = √[(ħ/mω)(n + ½)] × √[mħω(n + ½)] = (n + ½)ħ. Mass and frequency cancel completely; only the rung number survives. The Robertson floor is ħ/2 for every state, and the Robertson–Schrödinger refinement adds a covariance term ½⟨{x, p}⟩ − ⟨x⟩⟨p⟩ that vanishes here: xp = (iħ/2)(1 − a² + a†²) gives ⟨n|xp|n⟩ = iħ/2, so ⟨{x, p}⟩ = 0 on every rung. The bound therefore stays at ħ/2 for all n, and only n = 0 attains it. The reason is the saturation condition itself — equality in Cauchy–Schwarz, with the covariance term zero, demands (p − ⟨p⟩)|ψ⟩ = iκ(x − ⟨x⟩)|ψ⟩ with real κ, a first-order differential equation in the position basis whose normalisable solutions are Gaussians. Of the Fock states only |0⟩ is Gaussian; |1⟩ already carries a node.

5Put numbers on a real bond

For CO, ħω = 269 meV and the reduced mass is μ = 1.139 × 10⁻²⁶ kg, so ω = 4.086 × 10¹⁴ rad s⁻¹ and the length scale is x₀ = √(ħ/μω) = 4.76 pm. In the ground state Δx = x₀/√2 = 3.37 pm and Δp = 1.57 × 10⁻²³ kg m s⁻¹, whose product is 5.27 × 10⁻³⁵ J s = ħ/2 to the digit. The energy split is ⟨T⟩ = ⟨V⟩ = 67.3 meV, half of the 134.5 meV zero-point energy. Against a 113 pm bond a 3.37 pm spread is 3.0%, small enough that a quadratic fit to the true internuclear potential is honest. Climb to n = 10 and Δx = x₀√10.5 = 15.4 pm, or 14% of the bond, where the cubic term dropped from the Taylor expansion is no longer negligible. One coincidence deserves naming: the classical turning point is Aₙ = √2 Δx, and a classical oscillator's time-averaged x² is also A²/2, so the quantum and classical second moments agree at every n even though the distributions do not.

6Add a quartic term and the split opens

Completeness gives the next moment in one line: ⟨n|x⁴|n⟩ = Σₘ |⟨m|x²|n⟩|², where only m = n − 2, n, n + 2 contribute, so with s = ħ/2mω the result is s²[(2n + 1)² + n(n − 1) + (n + 1)(n + 2)] = 3(2n² + 2n + 1)s². Perturb the Hamiltonian by λx⁴ and the first-order shift is 3(2n² + 2n + 1)λs², which makes the spacing Eₙ₊₁ − Eₙ = ħω + 12λs²(n + 1) — the uniform ladder is gone, and with it the evenly spaced spectrum that the commutator alone produced. The virial statement degrades in step: 2⟨T⟩ = ⟨mω²x² + 4λx⁴⟩ = 2⟨V₂⟩ + 4⟨V₄⟩, so subtracting ⟨V⟩ = ⟨V₂⟩ + ⟨V₄⟩ leaves the exact identity ⟨T⟩ − ⟨V⟩ = ⟨λx⁴⟩. Hellmann–Feynman fixes its size, since ∂E/∂λ = ⟨x⁴⟩, so at leading order the ground-state imbalance is 3λs². Equal shares were never a quantum principle; they were the k = 2 special case.

2

Key equations

Read the units, assumptions and limits before substituting.

Quadratures through the ladder

x = √(ħ/2mω)(a + a†), p = i√(mħω/2)(a† − a)

Turns every moment into an orthonormality count — no wavefunction, no integral.

m in kg, ω in rad s⁻¹; a and a† are dimensionless, and neither is Hermitian

First moments vanish on every rung

⟨n|x|n⟩ = ⟨n|p|n⟩ = 0⟨m|x|n⟩ ≠ 0 only for m = n ± 1

The same lines give the electric-dipole selection rule Δn = ±1 on a harmonic ladder.

a|n⟩ ∝ |n−1⟩ and a†|n⟩ ∝ |n+1⟩, while ⟨n|n±1⟩ = 0

Second moments

⟨x²⟩ₙ = (ħ/mω)(n + ½), ⟨p²⟩ₙ = mħω(n + ½)

Because ⟨x⟩ = ⟨p⟩ = 0, these square-root straight into Δx and Δp.

Units m² and kg² m² s⁻²; the (n + ½) is the same one that sits in Eₙ

Uncertainty product

Δx Δp = (n + ½)ħ ≥ ħ/2

An eigenstate of H need not be a minimum-uncertainty state — only |0⟩ is.

ħ = 1.0546 × 10⁻³⁴ J s; m and ω cancel out entirely, equality only at n = 0

Virial split

2⟨T⟩ = ⟨x dV/dx⟩ ⟹ ⟨T⟩ₙ = ⟨V⟩ₙ = Eₙ/2 = (n + ½)ħω/2

Halves the energy without an integral, and names the one exponent where halving works.

For V ∝ xᵏ this reads 2⟨T⟩ = k⟨V⟩; k = 2 here, k = −1 for Coulomb

The quartic moment

⟨n|x⁴|n⟩ = 3(2n² + 2n + 1)(ħ/2mω)²

Gives the first-order shift of a λx⁴ term and the size of the virial imbalance it opens.

Sum of |⟨m|x²|n⟩|² over m = n−2, n, n+2; units m⁴
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

3
0 to 8; steps of 1.
260 meV
60 to 400 meV; steps of 20.

Try this. Hold n at 0 and sweep ħω: the box turns tall and narrow, but its area, 4Δx Δp = 2ħ, never changes. Then raise n and watch the area grow as 1, 3, 5, ... times that ground-state value, since Δx Δp = (2n + 1)ħ/2 and only n = 0 sits on the ħ/2 bound.

Live results

SPREAD Δx
9.06 pm
SPREAD Δp
4.07 10⁻²³ kg m s⁻¹
PRODUCT Δx Δp
3.5 ħ
KINETIC = POTENTIAL
455 meV

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

Interactive Physics V modelThe Δx-by-Δp box for the Fock state n = 3 of a diatomic oscillator with ħω = 260 meV. Half-width Δx = 9.06 pm, half-height Δp = 4.07 in units of 10⁻²³ kg m s⁻¹, so Δx Δp = 3.5 ħ. The faint box is n = 0 at the same ħω; open circles mark the classical turning points at √2 Δx.n = 3 E = 910 meVΔx Δp = 3.5 ħfaint box: n = 0areas 7 : 1px : Δx = 9.06 pm⟨T⟩ = ⟨V⟩ = 455 meVx
The Δx-by-Δp box for the Fock state n = 3 of a diatomic oscillator with ħω = 260 meV. Half-width Δx = 9.06 pm, half-height Δp = 4.07 in units of 10⁻²³ kg m s⁻¹, so Δx Δp = 3.5 ħ. The faint box is n = 0 at the same ħω; open circles mark the classical turning points at √2 Δx.

Predict → change one variable → check

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

Saved baseline. Quantum number n: 3; Level spacing ħω: 260 meV

Baseline 3; choose 0 to 8, 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 equal split ⟨T⟩ = ⟨V⟩ gets remembered as a general fact about bound states. It is not. The quantum virial theorem says 2⟨T⟩ = ⟨x dV/dx⟩, which for V ∝ xᵏ becomes 2⟨T⟩ = k⟨V⟩, and only k = 2 makes the two shares equal. Hydrogen has k = −1, so 2⟨T⟩ = −⟨V⟩: in the ground state ⟨T⟩ = +13.6 eV and ⟨V⟩ = −27.2 eV, and quoting E/2 for either would be wrong in sign as well as size. Even inside the oscillator the equality is fragile — add λx⁴ and the exact statement becomes ⟨T⟩ − ⟨V⟩ = ⟨λx⁴⟩, so the shares separate at first order in λ. The half-and-half result belongs to the quadratic potential, not to quantum mechanics.

5

Practice & worked examples

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

EasyExample 1

A CO molecule vibrates with ħω = 269 meV and reduced mass μ = 1.139 × 10⁻²⁶ kg. For the ground state n = 0, find Δx and Δp from the ladder algebra and check the uncertainty product.

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

For the same CO oscillator (ħω = 269 meV, μ = 1.139 × 10⁻²⁶ kg, equilibrium bond length 113 pm), take the n = 3 state. Find ⟨T⟩ and ⟨V⟩, the rms stretch √⟨x²⟩ and the classical turning point, then say what their ratio to the bond length implies.

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

Add a stiffening quartic term λx⁴ to the same CO oscillator (ħω = 269 meV), with strength set so that λs² = 1.0 meV, where s = ħ/2μω. Using ⟨n|x⁴|n⟩ = 3(2n² + 2n + 1)s², find the first-order shifts of n = 0 and n = 1, the new 0→1 spacing, and the virial imbalance ⟨T⟩ − ⟨V⟩ in the ground state.

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.

An oscillator is prepared in the Fock state |4⟩. Which statement about ⟨x⟩ and the product Δx Δp is correct?
7

Review & continue

An expectation value in a Fock state is the diagonal matrix element ⟨n|Â|n⟩; writing  through a and a† reduces it to whichever term raises and lowers equally often, so the calculation becomes counting rather than integration.

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