Liouville volume preservation
Derive incompressible canonical flow, follow density along trajectories, and separate volume preservation from mixing and recurrence.
On this page
The question for today
What you’ll understand
- Compute the divergence of a smooth Hamiltonian vector field.
- Apply Liouville's equation to an ensemble density.
- Distinguish conserved phase volume from invariant shapes and ergodicity.
A collection of initial conditions forms a region in phase space. As each point follows Hamilton's equations, that region can stretch, rotate, and fold into complicated shapes. Liouville's theorem says its canonical volume is preserved under smooth canonical Hamiltonian evolution. It does not say that its shape remains rigid or that an observer with finite resolution will continue to see the same coarse pattern. The theorem is a precise bridge between individual trajectories and statistical descriptions.
Mixed derivatives cancel in the divergence
Take the divergence of the phase-space velocity field by differentiating each position rate with respect to its position and each momentum rate with respect to its momentum. Hamilton's equations turn these terms into mixed second derivatives of H with opposite signs. For a twice continuously differentiable Hamiltonian, the derivatives commute and the sum vanishes. The argument works even when H depends explicitly on time: energy can change while canonical phase volume remains preserved.
The volume element here is the canonical product of all position and momentum differentials. In noncanonical variables, its expression may include a coordinate-dependent measure factor. A compressible-looking coordinate plot can therefore be misleading if the correct measure is omitted. Conversely, an arbitrary divergence-free vector field in a higher-dimensional space need not be Hamiltonian. Liouville preservation is a consequence of the canonical structure, but preservation of volume alone is not its full definition.
Density changes at a point but not along its moving trajectory
Let ρ be an ensemble density relative to canonical volume. Conservation of ensemble probability gives a continuity equation. Since the Hamiltonian velocity field is divergence-free, that equation states that the fine-grained density is constant along each trajectory. A fixed laboratory point can still see density increase or decrease as different parts of the ensemble pass through it. Material constancy and constancy at a fixed coordinate are different derivatives, just as in ordinary fluid transport.
For an autonomous Hamiltonian, any sufficiently regular density that is a function of H alone is stationary, because its bracket with H vanishes. That provides a class of equilibrium distributions but not a proof that every initial ensemble approaches one. Fine filaments can develop indefinitely under reversible motion. Coarse-graining averages over those filaments and may produce an apparently smoother distribution, introducing an observational procedure beyond the exact Liouville equation.
Preserved volume does not imply preserved shape
A free particle shears phase space: momentum stays fixed while position shifts by momentum times elapsed time divided by mass. A rectangular patch becomes a parallelogram with the same area. An oscillator instead rotates an appropriately scaled phase plane. Both motions preserve canonical volume, despite very different shapes and transport. The free shear is a useful warning against picturing incompressibility as rigid motion or as conservation of every distance between nearby trajectories.
Recurrence needs additional hypotheses, notably a finite invariant measure for the relevant region and measure-preserving evolution. Even then the statement concerns almost-everywhere return arbitrarily close under appropriate conditions, not an exact short period for every point. Mixing and ergodicity are separate dynamical properties and do not follow merely from zero divergence. Friction in the ordinary oscillator phase plane gives the contrasting case: its flow contracts area, signaling that the closed canonical two-variable description has been abandoned.
Work it through
Shear a unit patch without changing its area
For a unit-mass free particle at t = 2, evolve the four corners of the phase-space square 0 ≤ q ≤ 1, 0 ≤ p ≤ 1. Find the final area.
The flow is , . The corners (0,0), (1,0), (0,1), and (1,1) become (0,0), (1,0), (2,1), and (3,1), respectively.
The two edges from the transformed origin are (1,0) and (2,1). Their parallelogram area is the absolute determinant 1 × 1 − 0 × 2 = 1. The patch is slanted but has not expanded.
As a second check, the flow Jacobian has diagonal entries 1 and off-diagonal entries 2 and 0, so its determinant is 1. Each initially uniform density element keeps the same density while its position changes.
The final parallelogram has area 1, exactly the original square's area. Liouville preservation allows substantial shape change.
The living notebook
Explore the model
Interactive lab · fields
Compare rotation with a source field
Set source strength to 0 and rotation to 1. Predict purely tangential arrows, then inspect them. Interpreting the two normalized axes as one canonical pair, this rotational field is Hamiltonian with H = −Ω(Q²+P²)/2 and has zero divergence. Change source strength to 1 and predict an outward component. The lab displays a softened source-plus-rotation vector field; it does not advect an ensemble, calculate a Liouville density, or prove volume preservation from the drawing.
- Fx at (1, 0)
- 0.833
- Fy at (1, 0)
- 0.5
- Field magnitude there
- 0.972
The softened illustration is q·r/(r² + 0.2) + Ω(−y, x). Moving markers indicate local direction, not integrated particle paths or a Maxwell solution. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forLocal arrows illustrate possible transport, while derivatives and the correct canonical measure establish volume preservation.
Pause & reason
Check your understanding
Your turn
Try it yourself
For the damped oscillator , with γ > 0, calculate phase-space divergence and the area multiplier after time t.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Differentiate each rate with respect to its own coordinate. The Jacobian determinant obeys a scalar growth equation with that divergence.
Compare with the solution
The divergence is . Therefore an infinitesimal transported area is multiplied by . This contracts the ordinary q-p area and cannot be the flow of a smooth canonical Hamiltonian using only these two variables. Describing an environment or a larger system can change the formulation but does not alter this two-dimensional calculation.
Keep the idea
Take it with you
- Hamiltonian flow preserves canonical volume through cancellation of mixed derivatives.
- Fine-grained density is conserved along a trajectory, not necessarily at a fixed point.
- Volume preservation alone establishes neither rigid motion nor ergodicity.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.