Hamiltonian Flow and the Phase Fluid
Set up not one pendulum but a million of them, each released from a slightly different angle with a slightly different push, and mark each as a dot in the plane. Now let them all go at once. The cloud drifts — not chaotically but in choreography: every dot follows the velocity arrow that Hamilton's equations pin to its location, exactly as a speck of dust follows the local velocity of a river. This is the Hamiltonian flow : the simultaneous motion of every possible state, phase space itself set flowing like a fluid. The phase fluid obeys two exact structural laws. First, it is incompressible: the field has identically zero divergence, so the million-dot cloud can stretch into a long filament but its volume never changes — Liouville's theorem, the load-bearing wall under statistical mechanics. Second, and stronger, the flow is canonical: each map preserves the full symplectic structure and every Poisson bracket, making time evolution a continuously unfolding canonical transformation with as generator. You already know the arena (phase space) and the equations of motion (Hamilton's canonical equations). Here the two fuse into a single geometric object — a divergence-free, symplectic velocity field — and the fluid picture starts paying rent: it explains why energy contours are streamlines, why blobs shear into filaments at a computable rate, why symplectic integrators can track the solar system for billions of years, and what quantum mechanics will later mean by "the Hamiltonian generates time evolution."
- A Hamiltonian assigns a velocity to every phase point: — the Hamiltonian vector field ; following all its arrows at once is the Hamiltonian flow , the "phase fluid."
- The phase fluid is incompressible: identically, by equality of mixed partials — any blob of initial conditions keeps exactly constant volume while it stretches and folds (Liouville's theorem).
- In one degree of freedom, is literally the stream function of the flow: trajectories, streamlines, and level curves of are the same objects.
- Each flow map is a canonical (symplectic) transformation: its Jacobian obeys , preserving Poisson brackets and — stronger than volume conservation.
- Observables ride the flow through the bracket, ; volume conservation does not prevent deformation — tori shear at rate , hyperbolic points stretch blobs exponentially.
- Key idea: Hamilton's equations define a divergence-free vector field on phase space; its flow is an incompressible, symplectic fluid whose every streamline is a trajectory and whose volume conservation is Liouville's theorem.
Where this lives today
Every serious long-time simulation of a Hamiltonian system now respects the flow's geometry on purpose. Symplectic integrators — leapfrog/Verlet in molecular dynamics, Wisdom–Holman maps in planetary dynamics — advance the state by maps satisfying exactly, and the payoff is a beautiful inversion: a symplectic scheme solves, essentially exactly, the flow of a nearby "shadow Hamiltonian" . Energy errors therefore oscillate boundedly instead of drifting — why MD codes hold protein simulations together for microseconds of physical time, and why planetary ephemerides stay honest over the age of the solar system, where a non-symplectic Runge–Kutta of the same order would slowly spiral Mercury somewhere it has no business being. The 2026-era twist is machine learning: Hamiltonian and symplectic neural networks bake into the architecture, so learned dynamics conserve by construction rather than by hope. Accelerator physics, meanwhile, lives and dies by the shear clock of Derivation C. Injection mismatch, decoherence, and emittance dilution at the LHC are filamentation phenomena — blobs of protons smearing along tori at a rate set by the tune spread, with Liouville forbidding true compression and "beam cooling" defined as the art of sneaking non-Hamiltonian terms past that prohibition. The same reasoning now governs galactic dynamics: the stellar phase-space spirals Gaia mapped in the Milky Way disc are filamentation in action, used to date past perturbations — one theorem, read from tabletop pendulum to galaxy.
The physical picture
Imagine phase space densely packed with copies of the system, one starting from every possible state. Hamilton's equations tell each copy where to go next, exactly as a stationary velocity field tells each fluid parcel where to drift. Watching them all at once, you see a flowing fluid — the phase trajectories of the phase-portraits article, now understood as streamlines of a single global object. Here it is for a pendulum, computed point by point:
Three features repay a long stare. The arrows are everywhere tangent to the energy contours: the velocity is the gradient of rotated by 90° in the plane — the "symplectic gradient" — so the fluid can never flow uphill or downhill in , only sideways along its contours. That 90° rotation is energy conservation, drawn. Second, the arrows lengthen exactly where contours crowd: in one degree of freedom behaves as the stream function of a 2D incompressible flow, and closely spaced streamlines mean fast flow, precisely as in a river narrowing between banks. Third, the flow stands still at the center and at the saddles — the anatomy of the whole portrait hangs on these (they get their own article on fixed points and stability). The fluid never compresses or rarefies. Drop a dye-marked droplet of initial conditions into it and watch:
For the harmonic oscillator (left), the droplet rides around rigidly — in scaled coordinates the flow is a uniform rotation at rate for every amplitude, so the disc never changes shape (the harmonic-oscillator-phase-space article makes this exact). The pendulum (right) tells the general story: inner points circulate faster than outer ones because the pendulum's period grows with amplitude, so the disc shears into a long thin filament wrapping around its annulus of tori. The RK4-computed areas of the three snapshots agree to a tenth of a percent — drastically deformed, not one bit compressed. The 'no leaks, no compression' rule is forced by the pairing of in with in : the minus sign makes the two compression terms cancel. Because the flow preserves not just volume but Poisson brackets, it is a canonical transformation for every : time evolution is a continuously-generated change of canonical coordinates with as generator — the classical seed of the quantum statement that generates unitary time evolution.
The flow field and its algebra
Collect the coordinates into one vector — the subject becomes transparent the moment you stop treating and separately. Hamilton's equations become a single first-order flow equation,
where: — a point in -dimensional phase space; — the Hamiltonian vector field, the phase-fluid velocity at ; — the number of degrees of freedom. Read it as a weather map: phase space carries a stationary wind pattern (stationary when is time-independent), and dynamics is drifting with the wind. The components of that wind come straight from the canonical equations,
where: — the Hamiltonian; — velocity in the coordinate directions; — velocity in the momentum directions. The asymmetry — plus on one half, minus on the other — looks like a typo and turns out to be the engine of everything below: it is exactly what makes the divergence vanish and the flow symplectic. Those components compress into one geometric statement. With the symplectic unit matrix ,
where: — the symplectic (Poisson) matrix, antisymmetric with ; — the ordinary phase-space gradient; — the identity block. In each plane, rotates a vector by 90°: a pure gradient flow would slide downhill and stop, but the symplectic rotation makes the fluid circulate along level sets of forever. Check the tangency directly: because is antisymmetric. Now take the divergence of the field — one line, and the most consequential line in this chapter:
where: — the phase-space divergence, the fractional rate at which a comoving volume grows. Each term cancels its partner by equality of mixed partials — no restriction to conservative forces or time-independence. Every Hamiltonian flow, without exception, is incompressible. Derivation A unpacks this and its integral form, Liouville's theorem. The flow also tells every observable how to change. For any , the chain rule along a trajectory gives
where: — the Poisson bracket of with the Hamiltonian, precisely the directional derivative of along ; — any explicit time dependence of . Geometry says "points move along "; algebra says "functions evolve by bracketing with ." The consequences — conservation laws, Poisson's theorem — live in the article on time evolution of phase-space functions. For an autonomous Hamiltonian the flow maps compose like a group, , and the family is the exponential of its generator,
where: — the time- flow map ; — the Lie derivative along , acting on functions as . For nonlinear systems the exponential is shorthand for the Lie series (whose truncations are how symplectic integrators are built); for linear systems it is a literal matrix exponential, as the first worked example shows. Setting in (5) gives : the bracket kills itself by antisymmetry, so autonomous flows conserve energy and trajectories stay on the level sets .
Which equation answers which question
| you want | use | notes |
|---|---|---|
| the velocity of a phase point | eqs. (1)–(2) | the phase fluid's wind map |
| the geometry in one formula | , eq. (3) | gradient rotated 90°; tangent to -contours |
| why blobs keep their volume | , eq. (4) | Liouville, differential form |
| evolution of any observable | , eq. (5) | acting as a derivation |
| the flow as one object | , eq. (6) | group law |
| what the flow map preserves | , eq. (7) below | symplectic: brackets, , volume |
We are proving the differential form of Liouville's theorem: the divergence of the Hamiltonian vector field vanishes identically, so the phase fluid conserves the volume of every comoving blob. The strategy is disarmingly direct — treat as an ordinary velocity field on the -dimensional space, compute its divergence, and watch the terms cancel in pairs by symmetry of mixed partials. Watch two things: the cancellation needs the relative minus sign between the two halves of Hamilton's equations (not a garnish — the whole theorem), and the result uses only instantaneous spatial derivatives, so it survives explicit time dependence of . Along the way we make the stream-function analogy exact in one degree of freedom.
Step 1. Write the divergence: velocity components are along coordinates and along momenta,
each term the rate at which a velocity component grows along its own axis — the standard measure of local fluid expansion.
Step 2. Insert Hamilton's equations, and , then invoke equality of mixed partials (Clairaut–Schwarz, valid for any twice continuously differentiable ):
Why the minus sign is everything: had Hamilton's equations read , the terms would add instead of cancel and the divergence would be in general. The canonical minus sign is precisely the incompressibility of mechanics.
Step 3. Make the fluid analogy exact in one degree of freedom. A 2D incompressible fluid has a stream function with velocity — automatically divergence-free, streamlines the level curves of . Compare : the correspondence , is exact. Trajectories, streamlines, and energy contours are the same curves, and the speed is — fast where contours crowd, exactly as the hero figure shows.
Step 4. Pass to the integral statement. For a comoving region , the transport theorem gives : phase volume is exactly conserved. Equivalently a density obeys the continuity equation , which with becomes — the density riding with a moving phase point never changes. How ensembles exploit this is the business of the Liouville's-theorem article.
The flow map is a canonical transformation
Incompressibility is only the visible edge of a sharper fact. Freeze the flow at time and regard as a coordinate change sending each initial state to the evolved state . The claim: this map is canonical for every — it preserves the entire symplectic structure, not merely volume. The statement is a condition on the Jacobian of the map,
where: — the Jacobian of the flow map, describing how an infinitesimal cloud of initial conditions is linearly deformed after time ; — the symplectic condition, the matrix form of "all Poisson brackets are preserved." Determinants of (7) give , and continuity from forces : volume conservation drops out as a corollary. The converse fails — for there are volume-preserving maps that are not symplectic, so (7) genuinely says more than Liouville. The equivalent coordinate-free statement is that the flow preserves the symplectic 2-form,
where: — the canonical 2-form phase space carries in place of a metric (introduced in the phase-space article); — the pullback by the flow. Concretely: push the edge vectors of any little parallelogram through the flow, and the sum of its projected oriented areas onto the planes is unchanged. Here is that statement with actual matrices:
Both panels are time- flow maps of real systems — the free particle's shear , and the linearized saddle's stretch-and-squeeze — and both leave the unit square's area at exactly while mangling its shape. Finally, energy itself rides the flow trivially:
where: by antisymmetry of the bracket. For autonomous systems is constant on trajectories — the fluid is stratified into invariant energy shells, and everything the flow does happens within a shell.
Go deeper · Derivation B · 1 minTime evolution is a canonical transformation
We are proving that the Jacobian of the flow satisfies for all , which makes every instant of time evolution a canonical transformation and guarantees preservation of all Poisson brackets. The strategy is a classic: derive the linear "variational equation" that obeys, then show has zero time derivative and the right initial value — a conservation-law proof about a matrix. Watch-outs: the Hessian of enters and must be recognized as symmetric, and the argument never uses , so the result holds for driven systems too.
Step 1. Derive the variational equation. Perturb the initial condition: to first order. Differentiating with respect to gives
where is the Hessian of along the trajectory — symmetric, by equality of mixed partials again.
Step 2. Establish the key algebraic property of . Using , , and ,
Matrices with are called Hamiltonian or infinitesimally symplectic — the generators of symplectic maps, as antisymmetric matrices are of rotations.
Step 3. Differentiate the symplectic quantity along the flow, using the product rule and Step 1:
Why this is the same trick as energy conservation: a function of the evolving object whose derivative vanishes identically by structure, not by accident — is a conserved quantity of the variational dynamics.
Step 4. Fix the constant. At the flow map is the identity, , so ; a quantity with zero derivative and initial value equals forever: for all .
Step 5. Harvest. Preservation of under congruence is precisely preservation of the fundamental brackets — so is canonical. Determinants give , hence , and continuity from selects : Liouville again, now as a footnote to a stronger theorem. Nothing here used time-independence of , so driven Hamiltonian systems have canonical flow maps too. The two canonical 2×2 examples confirm the result directly: the free-particle shear and the saddle stretch-and-squeeze both satisfy by direct multiplication.
Volume conservation coexists with violent deformation, and the deformation has a rate you can calculate — the subject of the third derivation, and what the filament figure and the second worked example are quantitatively about.
Go deeper · Derivation C · 2 minHow fast a blob shears into a filament
We are deriving the filamentation clock: how quickly a blob of initial conditions spread over a range of oscillation amplitudes smears out along its tori. The strategy is action-angle-flavored reasoning without the full machinery — on each invariant curve the motion is periodic with an energy-dependent frequency , equivalently with the enclosed action, so neighboring curves accumulate phase difference linearly in time. The watch-out: this linear shear is the signature of regular motion; near a hyperbolic point or in a chaotic layer the stretching is exponential, with a Lyapunov rate replacing , and the two must not be conflated.
Step 1. Set up two neighboring tori: let the blob straddle invariant curves with actions between and , with angle variable running once per orbit. On each curve the flow is simply , constant on the curve but different from curve to curve.
Step 2. Compute the relative phase drift between the extreme curves:
growing linearly. The blob has smeared through one radian at and wraps into an unbroken ring filament at . Why anharmonicity is the whole effect: for the harmonic oscillator is the same on every curve, , and — the blob rotates rigidly forever, exactly as the figure's left panel shows.
Step 3. Express the clock in measurable terms. Since , the frequency spread across the blob, . For a pendulum at moderate amplitude, , so a blob spanning amplitudes has — real numbers go in below.
Step 4. Contrast with the hyperbolic case. Linearizing at a saddle gives with real eigenvalues : a blob stretches as along the unstable direction while compressing as along the stable one. Separation grows exponentially, not linearly — the mechanism near-separatrix motion and chaotic layers exploit, and why "how fast do blobs deform" has two profoundly different answers in the same portrait. As a check: the formula gives for the harmonic oscillator, recovering rigid rotation with no filamentation. For the pendulum, a blob spanning amplitudes 1.38 to 1.82 rad wraps visibly by , consistent with the RK4 filament shown in the figure.
Limiting cases
| case | result | meaning |
|---|---|---|
| harmonic oscillator | rigid rotation at in scaled coordinates | ellipses are streamlines; : no filamentation ever |
| free particle | , | pure shear: rectangle to parallelogram of identical area — maximal deformation, zero compression |
| near a center | eigenvalues | nested local ellipses, area preserved; the generic stable neighborhood |
| near a saddle | eigenvalues real | stretch matched by squeeze : volume kept while blobs elongate exponentially |
| autonomous | = stream function | trajectories read off the contour map with no integration at all |
| time-dependent | and still hold | volume and brackets survive driving; energy conservation does not |
| quantum correspondence | the flow becomes Heisenberg evolution; incompressibility becomes unitarity |
Worked examples
1 · The quarter-period flow map of an oscillator (confidence builder)
A block of mass oscillates on a spring with . Write down the flow map explicitly, evaluate its Jacobian at , and verify symplecticity and area preservation on a concrete blob: a rectangle of initial conditions with , .
Step 1. Solve the flow. Hamilton's equations , are linear, so the flow map is the matrix exponential : , , with Jacobian .
Step 2. Numbers at a quarter period. , so and : cosines vanish, sines are 1. With ,
in SI units — numerically the symplectic unit itself. The quarter-period map is a 90° rotation of phase space (a literal rotation in the scaled coordinates , ): position and momentum trade places, the phase-space face of the fact that a quarter period converts maximal displacement into maximal momentum.
Step 3. Check symplecticity by direct multiplication: since . Condition (7) holds exactly, and — exactly, not approximately.
Step 4. Push the blob through. Corners , , , , area . The map sends , so the corners land at , , , : a rectangle with , , area . The blob rotated and traded aspect ratio; the area survived to the last digit.
2 · Filamentation time of a pendulum ensemble (exam level)
A demonstration pendulum of length () is released repeatedly with imperfect reproducibility: the release amplitudes spread over to . Treat the runs as a blob of initial conditions. How long until the blob smears through one radian of relative phase — and how many oscillations until it has wrapped into a full ring filament? Use .
Step 1. Base frequency and period: , .
Step 2. Frequency spread across the blob: and , so . This is of Derivation C, evaluated through the directly measurable amplitude spread.
Step 3. One-radian shear time: — about oscillations. For the first twenty-odd swings the ensemble looks like a coherent blob riding its torus; by a minute in, it is visibly a smear.
Step 4. Full wrap into a ring at relative phase : — about oscillations, five minutes of swinging. After that the ensemble covers its annulus of tori nearly uniformly: runs completely decorrelated in phase, every one still conserving its own energy, total phase-space area exactly what it was at release.
Step 5. The same physics at 11,000 revolutions per second. An injected synchrotron bunch that misses the matched orbit is precisely such a blob, and machine nonlinearity gives a tune spread per turn. With a typical , the bunch filaments completely in — at the LHC's revolution frequency, about after injection. The smeared bunch has larger effective emittance even though Liouville guarantees the microscopic area never grew: filamentation, not compression, is how Hamiltonian beams "blow up."
Origins · 1 minWilliam Rowan Hamilton and how this was discovered
Hamilton was appointed Royal Astronomer of Ireland in 1827 — while still an undergraduate at Trinity College Dublin — and spent his working life at Dunsink Observatory. His great insight came from optics: light rays and particle trajectories can both be generated from a single "characteristic function," a scalar whose derivatives encode entire families of paths. Transplanted to mechanics in his 1834–35 essays, the idea became the canonical equations and, with them, the picture this article lives in: dynamics as a flow generated by one function on phase space. His optical-mechanical analogy lay half-dormant for ninety years until Schrödinger used it, almost line by line, to pass from classical to wave mechanics. Hamilton's later obsession, quaternions — scratched into Broom Bridge in 1843 — gave physics much of its vector language.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §9.4 and §9.9 (the symplectic approach to canonical transformations; Liouville's theorem) · Landau & Lifshitz, Mechanics, 3rd ed., §46 (Liouville's theorem) · Arnold, Mathematical Methods of Classical Mechanics, 2nd ed., Ch. 8–9 (symplectic manifolds, Hamiltonian flows) · Taylor, Classical Mechanics, Ch. 13 (Hamiltonian mechanics; §13.7 Liouville's theorem) · Hairer, Lubich & Wanner, Geometric Numerical Integration (symplectic integrators, shadow Hamiltonians) Three key identities underpin the article: (1) ; (2) satisfies using , , , hence ; (3) , giving energy conservation for autonomous . The only numerical constant beyond standard textbook structure is the harmonic period .
Builds on: Hamilton's Canonical Equations · Phase Space · The Hamiltonian Function · Phase Portraits and Trajectories Leads to: Liouville's Theorem · The Harmonic Oscillator in Phase Space · The Pendulum Phase Portrait and Separatrix · Fixed Points and Stability in Phase Space
Is the Hamiltonian literally a stream function, or is that just an analogy?
For one degree of freedom it is literal: a 2D incompressible flow with stream function has velocity , and has identical structure under , — same streamlines-as-level-curves, same speed-from-crowding rule. For the analogy weakens: the flow is still divergence-free, but no single scalar encodes a -dimensional field; the correct generalization is exactly the symplectic statement . So: theorem in the phase plane, guiding picture above it.
Symplectic and volume-preserving — is there actually daylight between the two?
Yes, and it is a deep result that there is. For they coincide (the symplectic form is the area form). For symplectic maps are a strict subset: forces but not conversely — stretching by 4 while shrinking by 4 preserves volume yet wrecks the brackets. Gromov's non-squeezing theorem (1985) quantifies the gap: no symplectic map can squeeze a ball of radius through a hole of radius in a single plane, though volume-preserving maps do it easily. Time evolution respects this finer rigidity — "canonical" is a stronger compliment than "volume-preserving."
If the flow conserves phase-space volume exactly, where does entropy growth come from?
From coarse-graining, and filamentation is what makes coarse-graining bite. The fine-grained volume and Gibbs entropy are rigorously constant — Liouville forbids anything else. But the blob shears into filaments whose width falls below any fixed observational resolution; measured at that resolution, the ensemble appears to fill the whole smeared annulus, and the coarse-grained entropy grows. Nothing irreversible happened microscopically — run the film backward and the filament reassembles — but at macroscopic resolution the spreading is effectively one-way. This is the classical ancestor of decoherence arguments in quantum statistical mechanics.
Does the flow map stay canonical when the Hamiltonian depends explicitly on time?
Yes. Inspect the proof: the variational equation works with a time-dependent Hessian, and the cancellation needs only the symmetry of at each instant — nowhere does enter. A driven pendulum, a charge in an RF cavity, a molecule in a laser pulse: all have canonical flow maps and conserve phase volume instantaneously. What breaks is the group law (the map now depends on the starting instant, not just the duration) and energy conservation, since .
Why do symplectic integrators have bounded energy error instead of just smaller energy error?
Backward error analysis: a symplectic scheme of order with step is, up to exponentially small corrections, the exact flow of a modified "shadow Hamiltonian" . The numerical trajectory exactly conserves , and since , the true-energy error can only oscillate within an band — it has no mechanism to drift secularly. A non-symplectic scheme has no shadow Hamiltonian; its energy error accumulates and a simulated planet slowly spirals. Respecting buys a conservation law for free.
Is the flow map really an exponential, like the formula phi t equals exp of t L suggests?
For linear systems, literally: with constant has — the worked example's rotation matrix is at . For nonlinear systems the operator exponential is shorthand for the Lie series , convergent for analytic data at small times, and the standard tool for building symplectic integrators: split , exponentiate each piece exactly, interleave — that is leapfrog. What survives all subtleties is the group property: flowing for then equals flowing for , whenever is autonomous.
Filamentation and chaos both spread blobs out — what distinguishes them?
The clock. Filamentation in a regular region is linear: relative phase grows as , so halving the blob's spread doubles the smearing time — forgiving. Chaotic stretching is exponential: with a Lyapunov exponent set by the dynamics, so shrinking the blob buys only logarithmic delay. A pendulum blob deep in the libration region filaments over dozens of periods; the same blob straddling the separatrix — chaotic under any perturbation — disperses in a few. Both conserve volume exactly; they differ in how violently they fold it.
Why can't a Hamiltonian flow have an attractor — and what does that say about damped systems?
An attractor requires nearby volumes to shrink onto it, somewhere, which equation (4) forbids identically. Sharper: the linearization at any fixed point is infinitesimally symplectic, so its eigenvalues come in pairs ( or ) — a stable-in-all-directions sink is algebraically impossible; only centers and saddles exist. A damped oscillator does spiral into a sink, which is visible proof that friction is not Hamiltonian in : volume contracts and Liouville's bookkeeping is off. The contraction just signals energy leaving to unresolved microscopic degrees of freedom, where Liouville still reigns.