Skip to main content

Quantum core · institution-dependent · Interactive lesson

The oscillator Hamiltonian and its quadratures

Nothing in nature is exactly quadratic, yet almost everything is quadratic near the bottom. This is where that reach gets set up: which term the Taylor expansion keeps, what boundary condition the potential supplies on its own, and how three constants collapse into one dimensionless pair X and P.

UPV-07.01 · Lesson 1 of 9 in this unit. Position is not a completion score.
Starting model: The oscillator Hamiltonian and its quadraturesA real bond (solid) against the parabola the expansion keeps (dashed), in the oscillator's units: ξ = u/x₀ across, V/ħω up. The knob a⋅x₀ = 0.18 — the quantum width against the length V bends over — fixes λ₃ = -0.090 and a well depth 15.4 ħω. At E = 2.5 ħω the parabola turns the particle at ±2.24 x₀; the true well turns it back sooner on the inside, at -1.88 x₀, and later on the outside, or never once E passes the depth.V / ħωdashed harmonic ½ξ²solid real bondλ₃ = −a⋅x₀/2 = −0.090well depth D = 15.4 ħωlevel E = 2.5 ħω2 x₀ξ = u / x₀
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

One expansion, one commutator, and every oscillator in physics becomes the same operator.

The key idea

The quantum harmonic oscillator is the Hamiltonian p̂²/2m + ½mω²x̂² — the leading surviving term when any potential is expanded about a stable minimum — which in its own natural units becomes ½ħω(X² + P²) with [X, P] = i.

Example. For H³⁵Cl, k = V″ = 516 N m⁻¹ and μ = 0.980 u give ω = 5.63 × 10¹⁴ rad s⁻¹, so ħω = 0.371 eV and x₀ = √(ħ/μω) = 10.7 pm — 8% of the 127 pm bond, which is why the quadratic term rules.

The complete physical model and assumptions

The harmonic oscillator is not one system but the generic first approximation to all of them. Expand any smooth potential about a stable minimum and shift the origin there, energy zero included: the linear term dies because V′ = 0 is what a minimum means, and what survives is ½ku² with k = V″ > 0. So Ĥ = p̂²/2m + ½mω²x̂² with ω = √(V″/m), m being the reduced mass for a two-body vibration. It acts on L²(ℝ) with no walls anywhere; the potential supplies its own boundary condition, ψ → 0 as |x| → ∞, and because V climbs without limit on both sides the spectrum is wholly discrete and non-degenerate — no continuum, no delta normalisation. Three constants ħ, m and ω admit exactly one length x₀ = √(ħ/mω), one momentum p₀ = √(mħω) and one energy ħω, conjugate by construction since x₀p₀ = ħ. Measuring x̂ and p̂ in those units gives the dimensionless quadratures X and P, still Hermitian, obeying [X, P] = i, and Ĥ = ½ħω(X² + P²) — an operator with no parameters left inside it, which is why a bond, a trapped ion and a mode of the electromagnetic field all return the same answer in different units. The cost is the cubic term you threw away: it is what lets bonds dissociate, solids expand when heated, phonons scatter and overtones appear, and none of it survives a strictly quadratic Hamiltonian.

1Every stable minimum is quadratic first

Take any smooth potential with a stable minimum at xₘᵢₙ and expand: V(x) = V(xₘᵢₙ) + V′u + ½V″u² + ⅙V‴u³ + …, with u = x − xₘᵢₙ. Two terms go immediately. V′(xₘᵢₙ) = 0 is what “minimum” means, and V(xₘᵢₙ) is only a choice of energy origin, so set it to zero. What is left at leading order is ½ku² with k = V″(xₘᵢₙ), and a non-degenerate minimum is exactly the statement k > 0. Write k = mω² and you have Ĥ = p̂²/2m + ½mω²x̂² with ω = √(V″/m). For a diatomic the two-body problem separates into a free centre of mass plus one relative coordinate, so m is the reduced mass μ = m₁m₂/(m₁+m₂): H³⁵Cl has k = 516 N m⁻¹ and μ = 0.980 u, hence ω = 5.63 × 10¹⁴ rad s⁻¹. The construction fails in one place only. Where V″(xₘᵢₙ) = 0 — a quartic minimum, a lattice sitting at a structural transition — there is no ω to build, the leading term is quartic, and none of the machinery below ever starts.

2The operator, its domain, and the boundary condition

Ĥ acts on L²(ℝ): x̂ multiplies by x, p̂ = −iħ d/dx, and Ĥ is essentially self-adjoint on the Schwartz functions, so it has one self-adjoint extension and a real spectrum. There are no walls anywhere — the boundary condition is inherited, not imposed. Square-integrability together with V → ∞ as |x| → ∞ forces ψ → 0 at both ends, and faster than any power of x. That one fact separates this problem from every well of the previous unit: with no asymptotic floor for a continuum to sit above, the spectrum is entirely discrete, and there is no δ-normalised sector and no scattering state to match. The one-dimensional Wronskian argument makes each level non-degenerate too, so a single quantum number labels the whole spectrum. Two symmetries come free: V is even about the minimum, so [Ĥ, Π̂] = 0 for the parity operator Π̂ψ(x) = ψ(−x) and every eigenvector may be chosen with definite parity; and once the scales below are used the Fourier transform maps Ĥ to itself, which is why x and p play interchangeable roles in everything that follows.

3Three constants, and only one length among them

ħ, m and ω are the whole content of Ĥ, and exactly one length can be built from them. [ħ] = M L² T⁻¹, [m] = M and [ω] = T⁻¹, so ħ/(mω) has dimension L² and x₀ = √(ħ/mω) is forced. The same counting gives one momentum p₀ = √(mħω) and one energy ħω, and the pair is conjugate by construction: x₀p₀ = √((ħ/mω)(mħω)) = ħ. Nothing has been solved and the width of every state is already fixed. The numbers show why the classical world looks classical. For H³⁵Cl, x₀ = 10.7 pm against a 127 pm bond — 8%, so the molecule lives inside the quadratic region. For one ⁴⁰Ca⁺ ion trapped at ω/2π = 1 MHz, x₀ = 15.9 nm and ħω/kB = 48 μK, which is why ground-state cooling needs lasers rather than a fridge. For a 1 g mass on a 1 Hz spring, x₀ = 1.3 × 10⁻¹⁶ m, about a sixth of a proton radius, and a millijoule of oscillation energy is 1.5 × 10³⁰ quanta.

4Non-dimensionalise: the quadratures and [X, P] = i

Measure x̂ and p̂ in their own units. X = x̂/x₀ = √(mω/ħ) x̂ and P = p̂/p₀ = p̂/√(mħω) are dimensionless and still Hermitian, so both remain observables. Their commutator inherits the scaling: [X, P] = [x̂, p̂]/(x₀p₀) = iħ/ħ = i. The ħ has not vanished; it has moved into the units. Substituting back, p̂²/2m = ½ħωP² and ½mω²x̂² = ½ħωX², so Ĥ = ½ħω(X² + P²) — one energy multiplying an operator with no free parameters at all. That is the content of this topic: a bond, a trapped ion and a mode of the electromagnetic field are the same operator wearing different values of ħω. The name comes from the phase space. The Heisenberg equations dX/dt = (i/ħ)[Ĥ, X] = ωP and dP/dt = −ωX are a rigid rotation at rate ω, so in (X, P) coordinates the classical orbit is a circle rather than an ellipse and X and P are the cosine and sine amplitudes of the motion — a quarter cycle apart, in quadrature. The contour at energy E is a circle of radius √(2E/ħω).

5What the commutator forces, and what a solver needs

Two payoffs arrive before any eigenvector is found. First a bound: for any state ⟨X²⟩ ≥ (ΔX)² and likewise for P, so ⟨Ĥ⟩ = ½ħω(⟨X²⟩ + ⟨P²⟩) ≥ ħω ΔX ΔP ≥ ħω/2, by AM–GM and then Robertson applied to [X, P] = i. The oscillator cannot sit at the bottom of its own well, and the floor is set by the commutator, not by anything in the potential. Second, the numerics. In ξ = u/x₀ with ε = E/ħω the eigenvalue problem reads −½ψ″(ξ) + ½ξ²ψ(ξ) = εψ(ξ): every coefficient is 1 or ½. Hand a finite-difference second derivative on ξ ∈ [−8, 8] with a few hundred points to numpy.linalg.eigh and the lowest eigenvalues come back as 0.5, 1.5 and 2.5 to better than 0.1%. Feed the same routine SI quantities and it returns the same spectrum times ħω, since floating point has no preferred scale; what SI costs is everything around the solve, because the box, the grid spacing and every absolute tolerance must be re-chosen in metres and joules for each new oscillator. Non-dimensionalising here is not cosmetic; it turns every oscillator into one problem, solved once.

6The cubic term you agreed to throw away

Restore the next term. In scaled units it is ħωλ₃ξ³ with λ₃ = V‴x₀³/(6ħω) — the cubic energy counted in quanta, at the ground state's own width. H³⁵Cl gives λ₃ ≈ −0.094: small enough to perturb with, far too large to forget. Parity makes ⟨n|X³|n⟩ = 0, so the shift is second order and looks mild, and the measured anharmonicity ωₑ xₑ/ωₑ = 1.8% agrees. What is not mild is what a strictly quadratic Ĥ forbids outright. Its ladder is infinite and evenly spaced, so a bond never breaks; a Morse fit to HCl holds about 28 levels and then dissociates. Its well is symmetric, so ⟨u⟩ = 0 in every state at every temperature — a harmonic crystal does not expand when heated, and thermal expansion is, at leading order, a cubic effect. Its normal modes are exact eigenvectors, so phonons never scatter off one another and an insulator's thermal conductivity would be infinite. With a linear dipole it allows only Δn = ±1, so the overtone bands every infrared spectrum shows could not exist.

2

Key equations

Read the units, assumptions and limits before substituting.

Taylor expansion at a stable minimum

V(u) = ½V″u² + ⅙V‴u³ + …, u = x − xₘᵢₙ

The minimum kills the linear term, and a non-degenerate minimum has V″ > 0. Everything past u² is what you agree to drop.

V′ = 0 at the minimum and V(xₘᵢₙ) is shifted to zero; V″ in J m⁻²

The oscillator Hamiltonian

Ĥ = p̂²/2m + ½mω²x̂², ω = √(V″/m)

H³⁵Cl: k = 516 N m⁻¹ and μ = 0.980 u give ω = 5.63 × 10¹⁴ rad s⁻¹, i.e. about 2990 cm⁻¹.

m is the reduced mass μ = m₁m₂/(m₁+m₂) for a diatomic; ω in rad s⁻¹

The only scales ħ, m and ω can build

x₀ = √(ħ/mω), p₀ = √(mħω), x₀p₀ = ħ

Fixes the width of every state before a single eigenvector has been found.

x₀ in m, p₀ in kg m s⁻¹, energy scale ħω in J; no other combination has these dimensions

Dimensionless quadratures

X = x̂/x₀, P = p̂/p₀ → [X, P] = i

Replaces [x̂, p̂] = iħ: the ħ moves out of the algebra and into the units.

both dimensionless and both still Hermitian, so both remain observables

The Hamiltonian with nothing left in it

Ĥ = ½ħω(X² + P²) → −½ψ″(ξ) + ½ξ²ψ = εψ

One operator for every oscillator: solve it once on a grid in ξ and rescale by x₀ and ħω.

ξ = u/x₀ and ε = E/ħω, so every coefficient in the eigenvalue problem is 1 or ½

Dimensionless cubic strength

λ₃ = V‴x₀³/(6ħω)Morse well: λ₃ = −a x₀/2

|λ₃| ≪ 1 is the licence to drop it. H³⁵Cl has λ₃ ≈ −0.094, small but not zero.

the cubic energy in quanta, evaluated at the ground state's own width
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

0.18
0.02 to 0.4; steps of 0.02.
2.5 ħω
0.5 to 6 ħω; steps of 0.5.

Try this. Slide a⋅x₀ from 0.02 to 0.40: the solid curve peels outward while stiffening inward, and that asymmetry — the cubic term — is why heated solids expand. At 0.40 the well is only 3.1 ħω deep, so push E past it and the filled outer marker vanishes. The harmonic one never does.

Live results

CUBIC STRENGTH λ₃
-0.090
WELL DEPTH D
15.4 ħω
HARMONIC TURNING PT
2.24 x₀
TRUE INNER TURNING PT
-1.88 x₀

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

Interactive Physics V modelA real bond (solid) against the parabola the expansion keeps (dashed), in the oscillator's units: ξ = u/x₀ across, V/ħω up. The knob a⋅x₀ = 0.18 — the quantum width against the length V bends over — fixes λ₃ = -0.090 and a well depth 15.4 ħω. At E = 2.5 ħω the parabola turns the particle at ±2.24 x₀; the true well turns it back sooner on the inside, at -1.88 x₀, and later on the outside, or never once E passes the depth.V / ħωdashed harmonic ½ξ²solid real bondλ₃ = −a⋅x₀/2 = −0.090well depth D = 15.4 ħωlevel E = 2.5 ħω2 x₀ξ = u / x₀
A real bond (solid) against the parabola the expansion keeps (dashed), in the oscillator's units: ξ = u/x₀ across, V/ħω up. The knob a⋅x₀ = 0.18 — the quantum width against the length V bends over — fixes λ₃ = −0.090 and a well depth 15.4 ħω. At E = 2.5 ħω the parabola turns the particle at ±2.24 x₀; the true well turns it back sooner on the inside, at −1.88 x₀, and later on the outside, or never once E passes the depth.

Predict → change one variable → check

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

Saved baseline. Anharmonicity a⋅x₀: 0.18; Level energy E: 2.5 ħω

Baseline 0.18; choose 0.02 to 0.4, in steps of 0.02.
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 trap is reading “valid for small oscillations” as a condition you are free to arrange. Classically you are: shrink the amplitude and the cubic term becomes as negligible as you like. Quantum mechanically you are not. The ground state already spreads over x₀/√2, and [X, P] = i is precisely what forbids you from squeezing both quadratures down — there is no lower-amplitude state to prepare. So the question is never “is the oscillation small?” but “is x₀ small against the length over which V‴ matters?”, which is the dimensionless λ₃ = V‴x₀³/(6ħω). Anharmonic corrections therefore survive at absolute zero: zero-point motion lengthens a bond, which is why isotopic substitution shifts bond lengths. And a light atom in a shallow well is never harmonic however cold it gets — for He₂ the harmonic ħω/2 is twice the entire well depth, so the model predicts no bound state where one exists.

5

Practice & worked examples

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

EasyExample 1

The stretching mode of ¹²C¹⁶O has force constant k = 1902 N m⁻¹. Treating it as a harmonic oscillator in the relative coordinate, find the reduced mass, ω, the energy quantum ħω in eV, and the natural scales x₀ and p₀.

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

Two argon atoms interact through V(r) = 4ε[(σ/r)¹² − (σ/r)⁶] with ε/kB = 119.8 K and σ = 3.405 Å. Expand about the minimum to get the force constant, then find ω, ħω and x₀ for the Ar₂ dimer, and say what fraction of the well depth zero-point motion consumes.

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

H³⁵Cl is measured at ωₑ = 2990.9 cm⁻¹ and ωₑ xₑ = 52.82 cm⁻¹. Model the bond as a Morse well V(u) = Dₑ(1 − e(−au))², whose expansion is Dₑ(a²u² − a³u³ + …). Find the dimensionless cubic strength λ₃ = V‴x₀³/(6ħω), and say what a strictly harmonic Ĥ gets wrong.

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.

6

Quick check

Select an answer and explain it before checking.

Replacing ¹H by ²H in H³⁵Cl leaves the electronic potential — and so the force constant k = V″(rₑ) — untouched, but raises the reduced mass from 0.980 u to 1.904 u. What happens to ω, to ħω, and to the length scale x₀ = √(ħ/mω)?
7

Review & continue

The quantum harmonic oscillator is the Hamiltonian p̂²/2m + ½mω²x̂² — the leading surviving term when any potential is expanded about a stable minimum — which in its own natural units becomes ½ħω(X² + P²) with [X, P] = i.

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