advanced33 min studyLesson 138 in Physics

Liouville volume preservation

Derive incompressible canonical flow, follow density along trajectories, and separate volume preservation from mixing and recurrence.

On this page

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.

∇q,p ⁣⋅XH=∑i(∂2H∂qi∂pi−∂2H∂pi∂qi)=0,dΓ=∏idqi dpi\nabla_{q,p}\!\cdot X_H=\sum_i\left(\frac{\partial^2H}{\partial q_i\partial p_i}-\frac{\partial^2H}{\partial p_i\partial q_i}\right)=0,\qquad d\Gamma=\prod_i dq_i\,dp_i
Smooth mixed derivatives cancel. The preserved volume is the canonical measure dΓ, including when H has explicit time dependence.↔ Scroll wide equations horizontally.

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.

∂ρ∂t+{ρ,H}=0,DρDt=0\frac{\partial\rho}{\partial t}+\{\rho,H\}=0,\qquad \frac{D\rho}{Dt}=0
ρ is density with respect to canonical volume. The second expression follows a trajectory rather than holding the phase-space coordinates fixed.↔ Scroll wide equations horizontally.

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.

(q,p)↦(q+tmp,p),det⁡(1t/m01)=1(q,p)\mapsto\left(q+\frac{t}{m}p,p\right),\qquad \det\begin{pmatrix}1&t/m\\0&1\end{pmatrix}=1
The free-particle flow is a shear with unit Jacobian determinant. It preserves area without preserving rectangular shape or ordinary Euclidean distance.↔ Scroll wide equations horizontally.

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.

  1. The flow is q′=q+2pq'=q+2p, p′=pp'=p. The corners (0,0), (1,0), (0,1), and (1,1) become (0,0), (1,0), (2,1), and (3,1), respectively.

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

  3. 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 result

The final parallelogram has area 1, exactly the original square's area. Liouville preservation allows substantial shape change.

Explore the model

Interactive lab

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.

Compare rotation with a source fieldThe softened illustration is q·r/(r² + 0.2) + Ω(−y, x). Moving markers indicate local direction, not integrated particle paths or a Maxwell solution. Current readings: Fx at (1, 0): 0.833; Fy at (1, 0): 0.5; Field magnitude there: 0.972. All parameters are adjustable with the labeled controls below.−3.2−1.601.63.2−1.5−0.7500.751.5xyq = 1
Local field directionSource strength
Fx at (1, 0)
0.833
Fy at (1, 0)
0.5
Field magnitude there
0.972
t = 0 s

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.

Check your understanding

Which property follows from smooth canonical Hamiltonian flow even if H explicitly depends on time?

Try it yourself

For the damped oscillator q˙=p\dot q=p, p˙=−ω2q−γp\dot p=-\omega^2q-\gamma p 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 ∂qp+∂p(−ω2q−γp)=−γ\partial_q p+\partial_p(-\omega^2q-\gamma p)=-\gamma. Therefore an infinitesimal transported area is multiplied by e−γte^{-\gamma t}. 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.

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.