Exercises — Liouville's theorem — phase space volume conservation
This page is a workout for Liouville's theorem. You will lean on Hamilton's Equations, Phase Space, and Poisson Brackets. A few problems reach toward Statistical Mechanics — Ensembles, Canonical Transformations, Poincaré Recurrence Theorem, and Symplectic Geometry.
Before we start, one reminder of every symbol we use, in plain words:
Level 1 — Recognition
L1.1
State, in one sentence each, (a) what quantity Liouville's theorem says is conserved and (b) the single geometric property of the flow that makes it true.
Recall Solution
(a) The phase-space volume of any region (equivalently the density measured while moving with a point, ) is conserved. (b) The phase-space velocity field is divergence-free: . Points are neither compressed together nor spread apart.
L1.2
For the free particle , write and using Hamilton's Equations, then compute the divergence .
Recall Solution
Hamilton's equations say and .
- (no inside).
- . Sum . Divergence-free ✓, so volume is conserved.
Level 2 — Application
L2.1
Free particle, , . A rectangular blob at has , (SI units). Find its area at , and its area at .
Recall Solution
At : area .
Evolution: each point moves . Momentum is unchanged (), so the vertical spread stays .
The top edge () slides right by ; the bottom edge () by . The shape shears into a parallelogram, but shear along does not touch the height .
Area of a parallelogram base perpendicular height. Base along is still ; the horizontal width of the base is still .
Same as — Liouville confirmed. See the shear in 
L2.2
Harmonic oscillator . Directly verify divergence-free: compute .
Recall Solution
, so (only inside). , so (only inside). Sum ✓. Notice the cancellation is trivial here because each velocity component depends only on the other coordinate — that is the generic reason Hamiltonian flows are incompressible.
Level 3 — Analysis
L3.1
Damped oscillator: , with friction . (a) Compute the divergence. (b) A blob has area at ; give . (c) With , , find at .
Recall Solution
(a) , . So . Not Hamiltonian-conservative.
(b) Volume obeys (constant divergence pulls out). This is exponential decay:
The blob spirals into the origin attractor, area shrinking — energy is leaking out via friction.
(c) .
Picture the spiral-in in 
L3.2
Poisson-bracket check. The Poisson bracket of two functions on phase space is defined as For the harmonic oscillator () take itself (a stationary density that is constant on energy shells). Show , so this is a valid equilibrium ensemble.
Recall Solution
With , compute . Any function bracketed with itself gives zero (the two terms are identical and subtract). So : the density does not change in time. Why this matters: in Statistical Mechanics — Ensembles, equilibrium ensembles are exactly the densities that are functions of energy alone — they are stationary because they Poisson-commute with .
Level 4 — Synthesis
L4.1
A linear phase-space map advances a blob by the matrix The new area equals the old area times . (a) State the condition on for the map to be area-preserving. (b) Is (free-particle drift for time , with ) area-preserving? (c) Is area-preserving, and could it come from a Hamiltonian flow?
Recall Solution
(a) Area-preserving . In Symplectic Geometry the sharper condition for a genuine canonical map is (a symplectic matrix); this both preserves area and orientation. (b) . Area-preserving ✓ — this is exactly the shear of Example 1, for any . (c) . Area is preserved (it stretches by along and squeezes by along — a perfect trade). And since it can arise from a Hamiltonian flow: this is the local picture of chaotic stretch-and-fold — a filament forms while area stays fixed.
L4.2
Two canonical maps are applied one after the other, then . Given and , show the composite still preserves area, and explain why this guarantees Liouville holds for the whole evolution, not just tiny steps.
Recall Solution
The composite map is the matrix product . Determinants multiply: Area preserved ✓. The chain of reasoning: any finite-time evolution is a limit of many infinitesimal Hamiltonian steps, each with . Multiplying any number of unit determinants gives . So volume is conserved over any time interval, not merely for instantaneous rates. This is the group structure of canonical transformations: they form a group under composition, and area-preservation is preserved by the group operation.
Level 5 — Mastery
L5.1
Poincaré recurrence. A Hamiltonian system is confined to a phase-space region of finite total volume (e.g. fixed energy shell, bounded). Argue, using only Liouville's theorem, that almost every starting point must eventually return arbitrarily close to where it began. Then explain why a damped system (L3.1) is exempt.
Recall Solution
Take a tiny neighbourhood around a starting point, with volume . Let the flow for time be the map . By Liouville, preserves volume: every image has the same volume . Now suppose, for contradiction, these images never overlapped. Then infinitely many disjoint sets each of volume sit inside the finite region . Their total volume would be — impossible. So two images must overlap: for some . Apply (also volume-preserving): . Hence some point of returns to after time . Shrinking shows return can be arbitrarily close. This is the Poincaré Recurrence Theorem. Damped exemption: in L3.1 volume is not preserved; blobs shrink toward the attractor. Images can pile up onto the same shrinking set, so the "disjoint boxes fill up the space" argument fails. No volume floor ⇒ no forced recurrence.
L5.2
Ensemble entropy is constant. The Gibbs entropy is , where is the phase-space volume element. Show that under Hamiltonian flow , i.e. fine-grained entropy never changes. (Use and volume conservation.)
Recall Solution
Move to coordinates that flow with the fluid (comoving frame). Two Liouville facts:
- Along a trajectory , so carried by a moving point is constant; hence is also constant along that trajectory.
- Volume is conserved: the little cell each point carries keeps the same size. The integral is a sum of (constant value ) (constant cell size ) over the moving cells. Nothing in the sum changes, so Interpretation: microscopic (fine-grained) entropy is frozen — mechanics is reversible. The Second Law's entropy increase comes from coarse-graining (blurring the filaments that Liouville stretches out), not from the exact flow. This is a cornerstone of Statistical Mechanics — Ensembles.
Recall Final self-test (cover the answers)
Which determinant value marks an area-preserving linear map? ::: (symplectic: ). Why does a damped system escape Poincaré recurrence? ::: Its flow is not volume-preserving, so images can pile onto a shrinking attractor — no volume floor to force overlaps. What is frozen by Liouville that makes fine-grained Gibbs entropy constant? ::: The comoving density () and the carried volume element .