Hamilton's Canonical Equations
Also known as: Canonical equations · Hamiltonian flow
H is a landscape over phase space; states flow along its contour lines, position fed by momentum and momentum drained by force.
Live phase portrait of the harmonic oscillator: a grid of arrows shows the Hamiltonian vector field (p/m, −kq), while a state point with a fading trail rides the flow around its ellipse.
Equivalent forms
One asymmetric minus sign generates all of conservative dynamics — and makes phase-space flow incompressible.
Unit systems
Where it holds
Dimensional analysis
In 'Second Essay on a General Method in Dynamics' (1835), Hamilton split Lagrange's second-order equations into twin first-order ones. The symmetric, almost-but-not-quite mirrored pair (note the minus sign!) revealed phase space's hidden symplectic geometry — the stage on which chaos theory and quantum mechanics would later play.
Replace one second-order ODE with two first-order ones and motion becomes an incompressible river flowing through phase space.
For H = p²/2m + ½kq², follow the flow q̇ = p/m, ṗ = −kq around its phase-space ellipse.
- Weather and climate models (geophysical fluid dynamics is Hamiltonian at its core)
- Particle accelerator lattice design
- Molecular dynamics with symplectic integrators
- Optimal control (Pontryagin's maximum principle mirrors the canonical equations)
- The two equations are symmetric — the minus sign breaks the symmetry and encodes all the physics
- They're just E–L rewritten with no benefit — first-order form unlocks phase portraits, Liouville's theorem, and chaos analysis
- q and p are independent physical things — they're coupled coordinates of a single state point
Limiting cases
What if…
with retraces every orbit — Hamiltonian dynamics is time-reversible.
Its shape distorts but its area never changes — Liouville's theorem.
The flow pattern itself shifts each instant and energy is pumped in or out — but the equations still hold.
SHO phase flow
- m:
- 1
- k:
- 10
- A:
- 1
- q̇ and ṗ
- Differentiate the first and substitute: q̈
- ;
Free fall in phase space
- m:
- 1
- k:
- 0
- gives ż
- gives ṗ (constant force)
- p falls linearly, z traces a parabola — projectile motion, first-order style