Phase Space
Watch a pendulum swing. You can describe it two ways. One is a movie: angle versus time, a wave that rises and falls. The other is a single dot on a plane whose axes are position and momentum — and as the pendulum swings, that dot travels a closed loop, tracing the same oval over and over. That plane is the pendulum's phase space, and the swap is more than a change of picture: on the phase plane the entire history of the motion is one curve, laid out at once, and the geometry of that curve is the dynamics. Now scale up. A gas of particles needs position numbers and momentum numbers, so its phase space has dimensions — for a mole, about axes. The entire microscopic state of the gas, however chaotic, is a single point in that unimaginable room, and Hamilton's equations act like a fixed wind field blowing each point along a unique trajectory. This is the arena in which all of statistical mechanics is staged. Two facts about this arena carry the whole subject. First, phase-space volume is conserved by the flow — Liouville's theorem — so a cloud of representative points moves like an incompressible fluid, never squeezing or spreading in total volume. Second, that volume, once made dimensionless by Planck's constant and de-permuted by the Gibbs factor , counts microstates, and its logarithm is entropy. Master phase space and you hold the common ground where deterministic mechanics, probability, and thermodynamics meet — everything downstream, from ensembles to ergodicity to entropy, is a statement about how trajectories explore it.
- Phase space is the -dimensional space of all positions and momenta ; a single point is the complete instantaneous microstate of a classical -body system.
- Hamilton's equations act as a fixed flow field, so each point traces a unique, non-crossing trajectory — the geometry encodes the dynamics.
- The flow is volume-preserving (Liouville): a cloud of points moves like an incompressible fluid, stretching into filaments but never changing total volume.
- Phase-space volume has dimension ; dividing by (and ) turns it into a dimensionless microstate count and hence entropy.
- Energy conservation confines the motion to a -dimensional energy shell — the geometric home of the microcanonical ensemble.
- Key idea: the complete microstate is one point in a -dimensional phase space; deterministic Hamiltonian flow moves it, and statistical mechanics studies the volume-preserving flow of a probability density over this space.
The complete microstate of a classical -body system is a single point in a -dimensional phase space. Deterministic Hamiltonian flow moves that point along a unique trajectory, and statistical mechanics studies the volume-preserving flow of a probability density over this space.
Where this lives today
Phase space is the working language of modern dynamics far beyond thermodynamics. In accelerator physics, the "emittance" of a particle beam is literally its phase-space area, and Liouville's theorem sets a hard floor on how tightly a beam can be focused — you can reshape the droplet but never shrink its volume, so cooling a beam requires clever tricks that couple it to an external system. The same theorem underlies the design of every storage ring at CERN and every free-electron laser. In nonlinear science and chaos theory, phase-space portraits — fixed points, limit cycles, strange attractors — are the primary diagnostic, and the stretching-and-folding of Liouville-preserved volumes is the geometric definition of chaos. And in quantum mechanics the classical phase-space cell becomes exact: the Wigner function paints a quantum state as a quasi-probability on the very same plane, so phase space remains the shared stage on which classical and quantum descriptions are compared.
The physical picture
Take the simplest possible system — a single mass on a spring — and draw its phase space: a plane with position across and momentum up. As it oscillates, energy sloshes between kinetic and potential, but the total is fixed, so the phase point never leaves a single closed curve. That curve is an ellipse, and its size is set by the energy: more energy, bigger ellipse. The figure below shows three energies at once, and it already contains a deep idea — the area enclosed by an orbit, not the shape, is what quantum mechanics quantizes.
The pendulum's oval is a two-dimensional cartoon of a truth that holds in dimensions. The second picture makes the statistical idea visible: replace the single dot with a small patch of dots — our uncertainty about the exact microstate — and let the flow act. The patch distorts wildly, but Liouville's theorem guarantees its area is frozen. This is the geometric heart of the whole subject.
Equilibrium, in this picture, is not the droplet shrinking to a point — it can't shrink, its volume is fixed. It is the droplet stretching into filaments so fine and so uniformly spread over the accessible region that any coarse-grained measurement sees a smooth, stationary smear. Reversibility hides in the filaments; irreversibility is what your blunt instrument reports.
The core equations
Phase space is defined by listing every coordinate and its conjugate momentum. For particles in three dimensions that is a -dimensional Euclidean space:
where: — a generalized position; — its canonically conjugate momentum; — the full phase space (Gibbs's "-space") whose single points are microstates. The pairing of each with exactly one is the symplectic structure — the source of everything that follows. The dynamics is a flow field on , given by Hamilton's equations. Because they are first-order, one point determines the whole trajectory, so trajectories never cross:
where: — the Hamiltonian, total energy as a function of the microstate; — the velocity field on phase space. Read Eq. (2) as a wind map: at every point it names one direction, so placing a dot fixes its entire path forward and backward in time. Volumes in phase space are built from the natural measure — the product of all conjugate-pair areas:
where: — the -dimensional volume element. Each factor has the dimension of action (position × momentum), so a phase-space volume carries dimension — a fact that forces the appearance of Planck's constant when we count states. To turn a volume into a pure number of microstates, divide by the quantum cell and the Gibbs factor , and pin the energy to a shell with a delta function:
where: — the density of microstates at energy ; — makes the count dimensionless (one factor of per conjugate pair, from the uncertainty principle); — the indistinguishability correction. This is the bridge from geometry to thermodynamics: its logarithm is the entropy, developed in Boltzmann Entropy. The flow's defining property is that it preserves this measure. The velocity field is divergence-free:
where: the cancellation is exact because mixed partial derivatives commute. Zero divergence means the Hamiltonian flow neither compresses nor rarefies phase-space volume — this is Liouville's theorem in its infinitesimal form, and it is what makes the ensemble picture consistent. Its consequence for the density is developed in Liouville's Theorem and Liouville Equation.
This is the article's owned structural result, proved in two independent ways so the geometry is unmistakable. Liouville's theorem says the finite-time map carries any region into a region of equal volume. We prove it globally by exhibiting the harmonic-oscillator flow explicitly and computing the Jacobian of the time- map — showing it is exactly for all — and locally by the divergence argument that holds for every Hamiltonian, so the result is not a special feature of the oscillator but a theorem about the symplectic structure itself.
Step 1. For the oscillator , integrate Hamilton's equations to get the flow map , . Why: the oscillator is the one case where the time- map is a clean, closed-form linear transformation of the initial data, so its Jacobian can be computed by hand.
Step 2. Form the Jacobian of and take its determinant:
Why: a Jacobian determinant of means the map preserves area exactly, for every — the phase-space droplet rotates and shears but keeps its area.
Step 3. Generalize. For any Hamiltonian the instantaneous rate of volume change is , and by Eq. (5) that divergence is identically zero because . Why: since the volume's growth rate is zero at every instant, the volume is constant along the flow for every system, not just the oscillator — Liouville's theorem is a corollary of the equality of mixed partials. *Verified: SHO flow-map determinant symbolically; divergence of the Hamiltonian field symbolically (verify_aq-sm-phase-space.py). Cf. Pathria & Beale §2.2, Kardar §3.2.*
Go deeper · Derivation B · 1 minOrbit area quantizes: the bridge to quantum mechanics
Here we compute the area enclosed by a harmonic-oscillator orbit and connect it to the semiclassical count of states. The goal is to show concretely that phase-space area, made dimensionless by , is the object that quantum mechanics discretizes — so that the classical phase plane already carries the seed of energy quantization. We find the orbit's area in closed form, express it through the energy, and impose the Bohr–Sommerfeld condition that an allowed orbit encloses a half-integer number of Planck cells.
Step 1. The orbit is the ellipse , with semi-axes (momentum) and (position). Why: fixing the energy of an oscillator is exactly the equation of an ellipse in the phase plane, and its axes are read directly off the kinetic and potential terms.
Step 2. Its area is . Why: the 's cancel, leaving an area that depends only on energy and frequency — the shape scales but the enclosed area tracks the energy linearly.
Step 3. Bohr–Sommerfeld quantization sets , i.e. area , so
Why: demanding that each allowed orbit enclose a half-integer number of Planck cells reproduces the exact quantum oscillator spectrum — the clearest demonstration that "one microstate occupies of phase-space area" is the classical shadow of quantization. *Verified: ellipse area symbolically; area gives for (verify script). Cf. Pathria & Beale §1.4.*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| One particle, 1D | (a plane) | phase space is the familiar plane; orbits are level curves of |
| particles, 3D | one point is the whole gas; a mole needs axes | |
| Fixed energy | motion on a -shell | conservation foliates into invariant surfaces — the microcanonical arena |
| Semiclassical | one state per of volume | dividing by turns volume into a dimensionless count matching quantum mechanics |
Worked examples
1 · Counting the states of one oscillator up to an energy (confidence builder)
A single classical harmonic oscillator has frequency . Using the semiclassical rule "one state per of phase-space area," find how many states have energy below , and check it against the quantum count.
Step 1. The region is the interior of the ellipse of energy ; its area is (Derivation 2).
Step 2. Divide by to count states: , using .
Step 3. Compare to quantum mechanics: the levels are , so the number with is .
Step 4. The two agree to the additive : , the semiclassical count, differs from the exact quantum count only by the zero-point offset — a vivid check that phase-space area, in units of , literally counts states.
2 · The phase-space volume of an ideal gas (exam level)
Estimate the accessible phase-space volume for ideal-gas atoms of mass in a box of volume with total energy , and identify why the momentum part is the volume of a high-dimensional ball.
Step 1. The positions are unconstrained inside the box, contributing to the configuration integral.
Step 2. The momenta obey — the surface of a sphere of radius in dimensions. The accessible momentum volume (energy ) is the -ball .
Step 3. Combine and make dimensionless: . The exponent on the energy is the signature of three quadratic momentum degrees of freedom per particle.
Step 4. Read off the physics: because the volume of a high-dimensional ball is overwhelmingly concentrated near its surface, the shell count and the enclosed volume agree to exponential accuracy — so counting "states with energy exactly " and "states with energy up to " give the same entropy in the thermodynamic limit. Taking the log of and applying Stirling yields the Sackur–Tetrode entropy.
Origins · 1 minJoseph Liouville and how this was discovered
Liouville was a prolific French mathematician — founder of an influential journal, discoverer of transcendental numbers, co-namer of Sturm–Liouville theory — but statistical physics remembers him for a theorem of 1838 on the conservation of a volume element under a Hamiltonian flow. He proved it as a result in the theory of differential equations, with no thermodynamics in mind; it was Gibbs and Boltzmann who recognized decades later that this single geometric fact is the linchpin of the ensemble method, guaranteeing that a uniform probability density on an energy shell stays uniform. Every statement that "phase-space probability flows like an incompressible fluid" traces back to his lemma.
Going further
Texts. Pathria & Beale, Statistical Mechanics, 3rd ed., §2.1–2.2 · Kardar, Statistical Physics of Particles, §3.1–3.2 · Reif, Fundamentals of Statistical and Thermal Physics, §2 · Goldstein, Poole & Safko, Classical Mechanics, Ch. 9 (canonical structure) · Arnold, Mathematical Methods of Classical Mechanics, Ch. 8 (symplectic geometry).
Provenance. All results standard. A verifier should confirm: the divergence of the Hamiltonian vector field vanishes identically (mixed partials); the harmonic-oscillator flow map has Jacobian determinant exactly for all ; the orbit area and its Bohr–Sommerfeld quantization ; the -ball volume specialized to ; and that the ideal-gas momentum shell is a -ball of radius (all in verify_aq-sm-phase-space.py). No empirical constants beyond dimensional bookkeeping ( action).
Prerequisites. Hamiltonian mechanics · Microstates and Macrostates · Multivariable calculus and Jacobians. Leads to. Phase Space Density and the Distribution Function · Liouville's Theorem · Statistical Ensembles · Accessible Phase Space and Energy Shells · Boltzmann Entropy · The Ergodic Hypothesis.
Why momentum p and not velocity v as the second coordinate? For a free particle they're just proportional.
For a free particle and the distinction looks cosmetic — but it is not, and using velocity breaks the theory in two places. First, Liouville's theorem preserves the volume ; the volume is not conserved when the mass tensor varies or coordinates are curvilinear. Second, whenever there is a magnetic field or a velocity-dependent potential, , and only the canonical momentum makes Hamilton's equations hold and trajectories non-crossing. Phase space is fundamentally the space of — the symplectic pairing is between a coordinate and its conjugate momentum.
If phase space has 10²⁴ dimensions, how can anyone possibly use it?
You never enumerate the numbers — that is exactly the point of statistical mechanics. Phase space is used collectively: you compute volumes, count states, and track a probability density over the whole space, all of which are finite, well-defined operations even in enormous dimension. High dimension is actually an ally: it is why volumes concentrate on energy shells and why fluctuations are tiny (the law). The geometry becomes simpler, not harder, as — the machinery is built to exploit the very hugeness that makes microstate-by-microstate tracking hopeless.
Does "volume-preserving flow" mean entropy can't increase? That sounds like it contradicts the second law.
It is the apparent paradox at the heart of the subject, and the resolution is coarse-graining. The fine-grained Gibbs entropy is indeed constant under Liouville flow — the droplet's volume never changes. But the droplet stretches into ever-finer filaments that thread through the accessible region. Any real measurement has finite resolution and cannot see the filaments; it reports the coarse-grained density, which does spread and whose entropy does increase toward . The second law lives in the gap between the exact microscopic density and what a blunt instrument can resolve — not in a violation of Liouville's theorem.
What exactly is the "energy shell," and why is it 6N−1 dimensional?
The energy shell is the set of all microstates with a given energy: the surface inside the full -dimensional phase space. One equation constraining coordinates removes one dimension, leaving a -dimensional surface. Because energy is conserved, an isolated system's trajectory is trapped on this shell forever, so it is the true arena of the dynamics. The microcanonical ensemble spreads probability uniformly over it — that uniform-on-the-shell distribution is the geometric meaning of "all accessible microstates are equally likely," developed in Accessible Phase Space and Energy Shells.
Is the factor h in the state count just a convention, since we're doing classical physics?
It is not a free convention — it is fixed by quantum mechanics and by requiring the classical count to match the quantum one. Each independent state occupies a phase-space cell of volume per conjugate pair, a direct consequence of the uncertainty principle . Worked Example 1 shows this concretely: the semiclassical count of oscillator states below agrees with the exact quantum count up to the zero-point . If you used any other cell size, the classical entropy would disagree with the quantum result by an additive constant — measurable, for instance, through the third law and chemical equilibria.
How does an ensemble relate to a single system? I only ever have one gas.
The ensemble is a device for expressing your uncertainty about the single system's exact microstate, not a claim that many copies physically exist. You know the macrostate but not which of the microstates the gas is in, so you represent that ignorance by a cloud of points — one for each microstate consistent with your knowledge — carrying the probability density . Ensemble averages then predict what you would measure. The justification that a single system's long-time behaviour matches the ensemble average is a separate, deep assumption — the ergodic hypothesis — treated in its own article.