The Harmonic Oscillator in Phase Space
In September 2021, physicists at Caltech and elsewhere celebrated a strange milestone: drums a few micrometres across had been cooled until they performed the quietest oscillation permitted by nature — a single quantum of vibration, then none at all. The theoretical scaffolding for that experiment is not exotic. It is the humble mass-on-a-spring, drawn not as a wiggle in time but as a curve in phase space, where its geometry becomes so clean that quantum mechanics can be read off it with a ruler. Viewed in the plane, the harmonic oscillator stops being a formula and becomes a shape. Energy conservation pins each motion to an ellipse; Hamilton's equations sweep the state clockwise around it; and — the oscillator's special miracle — every ellipse is traversed in exactly the same time , whatever its size. Rescale the axes and the entire flow becomes a rigid rotation of the plane: the one system in mechanics whose phase portrait you can spin in your head. That rigidity makes the oscillator the perfect laboratory for the deep theorems of this chapter. Liouville's volume conservation, abstract in general, is here literally a rotating patch that never changes shape. The enclosed area is the action variable that survives into quantum mechanics as Planck's cells of size — which is why the oscillator's quantum levels are equally spaced. Everything from LIGO's squeezed light to the ground-state drums is bookkeeping on the ellipses drawn in this article.
- The oscillator's phase trajectories are the level curves of : nested ellipses with semi-axes and , traversed clockwise.
- In rescaled coordinates , the flow is a rigid rotation at angular rate — every state circles at the same rate, so the period is independent of amplitude (isochronism).
- The enclosed area is the action, — linear in energy, with units of action, and an adiabatic invariant.
- A rigid rotation preserves areas exactly: the oscillator is Liouville's theorem made visible, a patch of phase fluid rotating without distortion.
- Bohr–Sommerfeld quantization selects the ellipses enclosing area , which spaces the quantum levels evenly: .
- Key idea: the harmonic oscillator's phase flow is a clockwise rotation on nested energy ellipses of area — amplitude-independent in period, exactly area-preserving, and quantized by slicing that area into cells of .
Where this lives today
The oscillator ellipse is now an object laboratories manipulate directly. In LIGO, the light circulating in the interferometer is a harmonic oscillator mode whose quantum uncertainty occupies a minimum patch of phase space; since 2019 the detectors inject squeezed vacuum — states whose uncertainty patch is deliberately stretched along one axis and thinned along the other, area intact, exactly the unit-Jacobian games of equation (4) — to push measurement noise below the naive quantum limit. The gravitational-wave events announced each year are read through a reshaped oscillator ellipse. Down at the nanoscale, the ladder of the third figure is an engineering resource. Superconducting qubits are read out and coupled through microwave oscillators whose few lowest ellipses are individually addressable; mechanical drums and phonon modes have been cooled to (Worked Example 2 is the design arithmetic), entangled with each other, and used as quantum memories. Meanwhile the classical content of this article never left the workhorse toolkit: every accelerator bunch is described by its emittance — the area of its ellipse — and every molecular vibration in a spectroscopy table is a read off the same ladder. One quadratic potential, one geometry, from Panthéon-scale pendulums down to a half-cell of .
The physical picture
Take the motion you already know from the simple-harmonic-motion article — , an endless sinusoid — and fold time away. Plot the state instead: at a turning point the momentum vanishes, so the dot sits at ; a quarter period later the mass barrels through equilibrium at top speed, the dot at . Join the instants and the entire infinite wiggle closes into one finite curve, an ellipse the state orbits clockwise forever:
Why an ellipse and not some other loop? Because the energy is a sum of two squares — the defining equation of an ellipse — and conservation forbids the dot from leaving its level curve. The two semi-axes have different units (metres and kilogram-metres-per-second), which is the general phase-space situation: the aspect ratio of the ellipse is an artifact of units, set by . So remove the artifact. Stretch one axis and shrink the other by and the ellipses become circles — and, remarkably, the dynamics becomes a rigid rotation of the whole plane at rate . Rigid is a strong word and it earns its keep three times over. Every circle is completed in the same time : isochronism, the property that made pendulum clocks conceivable and makes oscillators the universal timekeepers of physics. Neighbouring states never separate: no chaos, no shear, the tamest flow in mechanics. And any patch of states rotates without changing shape — Liouville's area conservation, which in general requires a theorem, here happens by inspection:
The last picture is the payoff. The area inside an energy- ellipse is — linear in energy. Old quantum theory's one commandment (Planck, Bohr, Sommerfeld) was that nature only permits orbits enclosing whole cells of area , plus the half-cell nature throws in for free. Slice a linear function of into equal slabs of area and you get equally spaced energies: the oscillator's famous ladder , read directly off classical geometry:
The core equations
The Hamiltonian is the energy written in phase-space variables,
where: — mass; — angular frequency; — here the canonical momentum coincides with the kinetic one, since the Lagrangian is the standard . Both terms are non-negative, so the level sets are bounded for every — the first hint that all motion is trapped and periodic. Hamilton's equations turn (1) into a flow:
where: the first equation is the definition of velocity, the second is Hooke's law. Check the circulation sense once and keep it forever: at equation (2) gives — the dot dives — so the motion is clockwise, as for every Hamiltonian orbit around a potential minimum. Setting and dividing gives the trajectory in standard form,
where: the semi-axes are (the amplitude ) and (the peak momentum). Doubling the energy stretches both axes by : the ellipses are concentric, similar, and never intersect — the foliation drawn in every figure above. The unit-fixing rescaling deserves display status because it exposes the flow's true character:
where: — rescaled canonical coordinates (the transformation preserves areas, since the two factors cancel). In these variables the flow equations become , : a rotation, solved in the first derivation below. The explicit solution in original variables is the one you know,
where: — amplitude and phase fixed by the initial point. Notice what is absent: the frequency contains no trace of . Every orbit, tiny or huge, closes in
where: this isochronism is the exclusive property of the quadratic potential — the pendulum article shows how a potential destroys it, slowing large swings until the period diverges at the separatrix. Finally the geometric invariant. The area enclosed by the energy- orbit is
where: — the action variable (units: energy × time). This single number is the oscillator's currency across physics: it is the adiabatic invariant that stays fixed under slow parameter changes, the emittance that accelerator physicists conserve, and — sliced into cells of — the origin of the quantum ladder, derived below.
Which equation answers which question
| you want | use | notes |
|---|---|---|
| the trajectory through a state | eq. (3) with | ellipse, semi-axes and |
| position and momentum at time | eq. (5) | clockwise ellipse, parametrized |
| the period | eq. (6) | same for every amplitude |
| enclosed area / action | eq. (7) | , linear in |
| clean geometry | rescale via eq. (4) | circles, rigid rotation at |
| quantum levels | in eq. (7) |
We are solving Hamilton's equations (2) exactly and extracting the oscillator's three signature properties in one stroke: clockwise elliptical orbits, amplitude-independent period, and exact area preservation. The strategy is the rescaling (4), which converts the lopsided system into a manifestly antisymmetric one — the generator of rotations — after which the solution is a rotation matrix whose properties can be read off rather than computed. Watch the direction conventions: with rightward and upward, the physical flow rotates clockwise, and a sign error here silently flips every portrait you ever draw.
Step 1. Rescale. With and , equations (2) become
Why rescale first: the raw system mixes and , hiding the symmetry; in the coefficient matrix is times the antisymmetric matrix that generates rotations, and antisymmetry is the whole story.
Step 2. Solve by recognizing the rotation. Differentiating the first equation and substituting the second gives , but more useful is the matrix solution:
Why this is a clockwise rotation: at small a state on the positive -axis acquires — it dives, matching the physical check after equation (2).
Step 3. Read off isochronism. The rotation matrix depends on time only through and is periodic with period — for every initial condition simultaneously. All orbits, whatever their radius , close at the same instant: equation (6) without a single integral.
Step 4. Read off area preservation. The determinant of the rotation matrix is , so the map from initial to final states scales all areas by exactly 1; and since the rescaling (4) also has unit Jacobian, areas are preserved in the original plane too. Any patch of phase fluid rotates rigidly, never stretching — Liouville's theorem, here with the stronger bonus that even the shape survives (general Hamiltonian flows preserve only the volume).
Step 5. Undo the rescaling to recover equation (5): , , with and the polar coordinates of the initial point. Substituting (5) back into (2) checks term by term; the unit determinant matches the divergence-free property proved generally in the Liouville article.
Go deeper · Derivation B · 1 minThe action integral and the quantum ladder
The goal is the two-line formula with the longest reach in this article: the enclosed area , and from it the quantum spectrum . The strategy is elementary geometry — an ellipse's area from its semi-axes — followed by the single physical postulate of old quantum theory: allowed orbits enclose half-integer multiples of Planck's cell . The thing to watch is what the linearity of in does: it is the entire reason the oscillator's levels are evenly spaced, and the reason any potential steeper or shallower than quadratic has a crowding or spreading spectrum.
Step 1. Compute the area from the semi-axes of (3):
Why suffices: taken clockwise is precisely the enclosed area of the loop, and the mass factors cancel between the two semi-axes — the area, unlike the axes, is unit-honest, measured in energy × time.
Step 2. Note the equivalent forms : an orbit's area equals its energy times its period. This is the quantity that stays constant when the spring stiffens slowly (adiabatic invariance): and both drift, their ratio does not.
Step 3. Impose Bohr–Sommerfeld quantization, with :
Why the half: the naive rule was Planck's; the extra emerges from the WKB connection formulas at the turning points and matches the exact Schrödinger result — for the harmonic oscillator, semiclassical quantization happens to be exact.
Step 4. Read the structure. Because is linear in , equal slabs of area mean equal steps of energy: between neighbours, the evenly spaced ladder that makes the oscillator the prototype of the photon and the phonon. A quartic well, where , has levels that spread apart; a gravitational bouncer, crowding together. The spectrum's shape is the area function's shape. As a consistency check: matches the exact quantum ground state, and the level spacing matches the photon energy of a mode at frequency .
Limiting cases
| case | result | meaning |
|---|---|---|
| ellipse shrinks to the fixed point at the origin | the oscillator at rest; a centre, stable | |
| (soft spring) | ellipses flatten toward horizontal lines | free-particle portrait recovered; nearly constant |
| (stiff spring) | ellipses squeeze vertical | position pinned, momentum swings |
| weak damping added | ellipse becomes an inward spiral, area decays as | no longer Hamiltonian — see the damped-oscillator article |
| quantum regime | only areas allowed; ground state keeps area | zero-point motion: the dot can never sit at the origin |
Worked examples
1 · From spring data to the exact phase ellipse (confidence builder)
A block of mass on a spring of stiffness is released from rest at . Find the phase trajectory, the state a time after release, and the enclosed area.
Step 1. Frequency and energy: ; .
Step 2. Semi-axes of the ellipse: and — check via . ✓
Step 3. State at , i.e. . From (5) with : , — the dot has slid one-eighth of the way clockwise, into the lower-right quadrant (moving toward equilibrium, speeding up).
Step 4. Enclosed area: ; cross-check . ✓ In quantum units this orbit spans cells — deep classical territory.
2 · How cold must a quantum drum get? (exam level)
A nanomechanical resonator vibrates at . Locate its thermal state on the phase-space ladder at room temperature () and at a dilution-refrigerator temperature of . Boltzmann constant .
Step 1. Level spacing: , so .
Step 2. Room temperature: thermal energy . Mean occupation : the thermal blob smears over the first thousand-plus ellipses of the ladder — classical physics is an excellent description.
Step 3. At : , so . The occupation is Bose-suppressed, : the drum sits in the ellipse — the ground state, its residual motion the irreducible half-cell of zero-point area.
Step 4. Interpretation on the portrait. Cooling shrinks the thermal patch down the ladder of ellipses until quantum mechanics calls a halt at area . This is precisely the regime reached by the drum experiments of the last decade — and the reason GHz resonators (large ) got there first, while a kHz mirror would need nanokelvins: the criterion is not temperature alone but the ratio .
Step 5. Sanity check the crossover: equality at — dilution refrigerators (base ) pass this line with a factor of 24 to spare, matching step 3.
Origins · 1 minMax Planck and how this was discovered
Planck's 1900 act of desperation — forcing the oscillators in a glowing cavity to exchange energy only in lumps — was, in phase-space language, the decree that an oscillator's ellipse may only enclose whole cells of a new fundamental area, . He called the quantum of action, and the name is exact: action is precisely the phase-space area of this article, and Planck had discovered that nature pixelates it. A reluctant revolutionary, he spent years trying to reabsorb into classical physics and failed — the constant instead swallowed physics whole. When Bohr and Sommerfeld built the old quantum theory, their quantization rule was Planck's cell applied to every periodic system; the oscillator, whose area grows linearly with energy, rewarded them with the evenly spaced ladder his radiation law had demanded all along.
Going further
References. Morin, Introduction to Classical Mechanics, Ch. 15 (Hamiltonian mechanics) · Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., Ch. 8 · Landau & Lifshitz, Mechanics, 3rd ed., §21–§23 · Taylor, Classical Mechanics, Ch. 5 & 13 · Arnold, Mathematical Methods of Classical Mechanics, Ch. 3 The Hamiltonian and canonical equations follow from the Legendre transform of the SHM Lagrangian. The energy-ellipse semi-axes, action , and period are derived above. The fixed point is a centre with eigenvalues , confirmed by the trace-determinant method. Divergence-free flow and unit-Jacobian area preservation follow from Liouville's theorem; the ellipse area and the unit determinant of the rotation matrix are the key checkable quantities. The Bohr–Sommerfeld result is the standard semiclassical value, exact for the harmonic oscillator.
Builds on: The Hamiltonian Function · Hamilton's Canonical Equations · Generalized Momenta · Phase Space. Leads to: Phase Portraits and Trajectories · Fixed Points and Stability in Phase Space · The Pendulum Phase Portrait and Separatrix · Hamiltonian Flow and the Phase Fluid · Liouville's Theorem.
Is the phase-space ellipse related to the elliptical orbit of a planet?
Only by the word "ellipse" — the two live in different spaces and have different causes. A Kepler orbit is a curve in real space, its shape fixed by the inverse-square force. The oscillator's ellipse is a curve in state space, whose axes carry different units; it is an ellipse simply because the energy is a sum of two squares, and its aspect ratio changes if you change units. Amusingly, the correspondence runs deeper the other way: a 2D isotropic oscillator's real-space orbit is also an ellipse (centred on the force centre rather than focused on it), which is a separate classical gem about closed orbits, not a phase-space statement.
Why does the phase point move clockwise and not counterclockwise?
Check two arrows. At the right turning point the spring pulls back, so : the dot moves down. At the bottom , : it moves left. Down on the right, left at the bottom — clockwise, always, given the standard axes ( right, up). This is not oscillator-specific: every Hamiltonian orbit circles a potential minimum clockwise, because shares 's sign and opposes the potential gradient. A counterclockwise portrait means an axis or a sign is flipped.
Isochronism seems too good to be true. What exactly breaks it in a real system?
Any anharmonicity — any term in the potential beyond quadratic. The pendulum's potential softens at large angle, so big swings lag (the period grows, diverging at the separatrix); a stiffening correction does the reverse. Quantitatively, a perturbation shifts the period at order : the failure grows with amplitude squared, which is why small-amplitude clocks kept good time even before escapements were clever. Isochronism also fails for damped or driven oscillators in the transient sense, though the linear damped oscillator keeps an amplitude-independent quasi-period — linearity, not energy conservation, is the true parent of isochronism.
What is special about the rescaled coordinates Q and P — aren't they just a units trick?
They are a canonical transformation: the product of the two scale factors is 1, so areas — the physically meaningful phase-space quantity — are untouched, and Hamilton's equations keep their form. That is what elevates the trick above bookkeeping: in the flow's true nature (rigid rotation) becomes visible, and quantities computed there (areas, the action, occupation numbers) are automatically correct in any coordinates. This is the first and simplest example of the transformation freedom that later articles industrialize — action-angle variables are precisely the polar coordinates of this rotating picture.
How literally should I take the claim that the quantum oscillator "occupies an ellipse of area (n+1/2)h"?
As a semiclassical picture with exact energy output but fuzzy geometry. Quantum states are not curves; the -th eigenstate is better imagined as a ring-shaped blur straddling the classical ellipse of area , with the ground state a round blob of area centred on the origin (its Wigner function makes this precise). What is exact for the oscillator is the spectrum that the area rule produces — a happy accident of the quadratic potential; for other potentials Bohr–Sommerfeld is only the leading term of a systematic (WKB) approximation. The picture earns its keep in the lab: coherent states are minimal blobs circling the ellipse exactly like classical dots.
Why is the action J the thing that stays constant under slow changes, rather than the energy?
Energy is not even a candidate: stiffen the spring and you do work on the system, so must change. The nontrivial fact — Ehrenfest's adiabatic theorem — is that when the change is slow compared with the period, the area of the orbit is what survives: the ellipse deforms (taller in , narrower in as grows) at exactly fixed enclosed area, so rises proportionally to . A hand-waving proof: over one period the work done by slow stiffening averages against the orbit's symmetric sampling of positions, and the bookkeeping residue is . This invariance is why quantum numbers don't change under slow driving — nature quantizes the very quantity that slow changes cannot alter.
The damped oscillator spirals inward. Can I still use anything from this article?
The reading skills, yes; the invariants, no. With weak damping the trajectory is almost the same ellipse, shrinking by the factor per lap — a tidy spiral whose geometry the damped-oscillator article develops. But the enclosed area now decays, (both semi-axes shrink like ), so the action is no longer invariant, Liouville fails (the flow has negative divergence ... precisely why an attractor at the origin can exist), and there is no quantum ladder to read off. Phase-space language survives dissipation; phase-space conservation laws do not.
Where does the factor π in the area formula come from — why not 2π?
From the geometry of an ellipse: area (semi-axis) (semi-axis) . Substituting the semi-axes each contribute a -type factor: . So the in the final formula is the ellipse's times the 2 from the pair of square roots. A slicker mnemonic: — area equals energy times period — and since , the is really the period's.