← thecodex.expert
Classical Mechanics Hub Physicist Biographies
Definition Curious Exploring Deep Dive Sources
Analytical Mechanics · Concept

Hamilton's Equations

Reading time: 9 minConfidence: HighLast verified: October 2026

Hamilton's canonical equations are q̇i = ∂H/∂pi, ṗi = −∂H/∂qi (i = 1, …, n), together with dH/dt = ∂H/∂t. They replace n second-order Euler–Lagrange equations by 2n first-order equations defining a flow in phase space. Their antisymmetric form expresses the symplectic structure of mechanics; it implies that phase-space volume is conserved (Liouville's theorem) and that H is conserved when it has no explicit time dependence.

Curious

One sentence that captures itHamilton's equations say how fast each position and momentum changes, read off directly from the slopes of the energy function.

Newton's second law is a second-order equation: you need both where something is and how fast it is moving to predict its future. Hamilton split this into two first-order equations, one for how position changes and one for how momentum changes. Together they tell you, at every point in phase space, which way the system is heading, like arrows on a map.

The two equations have a strikingly symmetric form, with a minus sign in one but not the other. That small asymmetry encodes deep properties: energy conservation, the conservation of phase-space volume, and the structure that quantum mechanics later inherited (see Hamiltonian Mechanics).

Exploring

Worked example — checking against NewtonFor a particle in a potential, H = p²/(2m) + V(x). Hamilton's equations give ẋ = ∂H/∂p = p/m (momentum is mass times velocity) and ṗ = −∂H/∂x = −dV/dx (force is minus the slope of the potential). Combining them gives mx¨ = −dV/dx, Newton's second law. For the spring, V = ½kx², the solution circles the phase-space ellipse with angular frequency √(k/m).
PropertyConsequence of Hamilton's equations
dH/dt = ∂H/∂tEnergy conserved if H has no explicit t
ṗi = 0 when ∂H/∂qi = 0Momentum conserved for cyclic coordinates
Divergence-free flowLiouville: phase-space volume conserved
Time-reversible formReverse p and run backwards
Symplectic structureBasis for canonical transformations
Common mistake — Commonly ConfusedThe signs matter: q̇ = +∂H/∂p but ṗ = −∂H/∂q; swapping them gives unphysical results such as runaway oscillators. And Hamilton's equations are not a different physical law from Newton's; they are an equivalent rewriting whose advantages are structural and computational.

Deep Dive

Primary sourceHamilton, W.R. (1834). “On a General Method in Dynamics.” Philosophical Transactions of the Royal Society, 124, 247–308; Hamilton, W.R. (1835). “Second Essay on a General Method in Dynamics.” Philosophical Transactions, 125, 95–144.; Arnold, V.I. (1989). Mathematical Methods of Classical Mechanics (2nd ed.). New York: Springer.

Derivation. Take the differential of H(q, p, t) = Σpq̇ − L and use the Euler–Lagrange equations and the definition of p: the q̇ terms cancel, leaving dH = Σ(q̇ dp − ṗ dq) − ∂L/∂t dt, from which the equations follow (see Euler-Lagrange Equations). They also follow from a phase-space version of the stationary-action principle.

Liouville's theorem. The velocity field (q̇, ṗ) has zero divergence because ∂²H/∂q∂p − ∂²H/∂p∂q = 0. Hence a cloud of initial conditions keeps the same phase-space volume as it moves, though its shape may stretch into fine filaments in chaotic systems. This underpins statistical mechanics (see Microcanonical Ensemble).

Numerical methods. Symplectic integrators such as the leapfrog (Störmer–Verlet) scheme preserve the structure of Hamilton's equations exactly, keeping energy errors bounded over billions of steps; they are standard in solar-system dynamics and molecular dynamics. Studies using them indicate the inner Solar System is chaotic on timescales of millions of years, although planetary orbits remain broadly stable over billions of years in most simulations.

Sources

  • Hamilton, W.R. (1835). Philosophical Transactions, 125, 95–144.
  • Arnold, V.I. (1989). Mathematical Methods of Classical Mechanics (2nd ed.). New York: Springer.
  • Laskar, J. (1989). “A numerical experiment on the chaotic behaviour of the Solar System.” Nature, 338, 237–238.
Last verified: October 2026 · Source: Hamilton (1835); Arnold (1989); Laskar (1989) · Confidence: high