Hamilton's equations
Anchor (Master): Arnold, *Mathematical Methods of Classical Mechanics*, 2nd ed. (1989), Part III §8; Marsden-Ratiu, *Introduction to Mechanics and Symmetry*, Ch. 2-3; Abraham-Marsden, *Foundations of Mechanics*, §3.6-3.7
Intuition [Beginner]
You already know Newton's . It says: pick a force law, get a second-order differential equation for position, solve, predict the motion. The Lagrangian reformulation rewrites this as a single principle — paths that nature picks minimise (or extremise) the action, a number you compute by adding up "kinetic minus potential" along a path — and recovers the same equations. Hamilton's equations are the third move in this sequence, and they change which variables you track.
Instead of describing a particle by its position and velocity , describe it by its position and its momentum . The two pieces of data live on equal footing — neither one is derived from the other. The space whose points are pairs is called phase space, and a state of the system is a single point in phase space.
The total energy, written as a function of and rather than and , is the Hamiltonian . For a particle in a potential,
which you can read off as kinetic-plus-potential, just with rewritten as using .
Hamilton's equations are then a surprisingly symmetric pair. In words: the rate of change of position equals "the slope of in the momentum direction", and the rate of change of momentum equals "minus the slope of in the position direction". Two first-order equations replace Newton's one second-order equation. The minus sign is load-bearing: it's what makes the flow conserve energy and what makes phase space behave like an incompressible fluid rather than a draining sink.
The formal statement, in symbols, lives in the Intermediate-tier Formal definition section. The two slopes-of- rules above are all you need at the Beginner tier.
Why bother? Three reasons that compound as you go deeper.
First, conservation laws fall out automatically. If does not depend on , then — momentum is conserved. If does not depend on time, then itself is conserved — that's energy conservation. Symmetries of the Hamiltonian and conserved quantities are paired one-to-one.
Second, the framework is the right shape for quantum mechanics. The Schrödinger equation is Hamilton's equations with operators in place of and and a commutator in place of the Poisson bracket. Every quantum textbook starts by promoting some classical Hamiltonian to an operator. You cannot build that bridge from Newton's directly.
Third, the geometry behind the symmetric pair is symplectic geometry, which turns out to be the natural geometric structure for any conservative mechanical system, classical or quantum. This is the perspective developed in the Master tier.
Visual [Beginner]
Picture the simplest possible mechanical system: a mass on a spring, with Hamiltonian (units chosen so the spring constant and mass equal 1). Phase space is the -plane. Level sets of are circles centred at the origin — one circle per energy.
Hamilton's equations, read off the picture, say: the motion in phase space is a rigid rotation. A point starting at — the spring fully stretched, at rest — moves clockwise: down to at quarter-period, where the mass passes through the origin with maximum (negative) momentum; then to , fully compressed; then , passing the origin again with positive momentum; then back to .
The motion follows the level set of . It does not cross level sets. Energy is conserved automatically, not as an extra rule you have to remember.
Now scale this picture up: the Hamiltonian is any function , the level sets are any nested family of curves (or surfaces in higher dimension), and the flow always tracks the level sets — never crossing them. The minus sign that appears between the two equations is exactly what makes "flow along level sets of , not toward low values of " come out right.
Worked example [Beginner]
Take the same harmonic oscillator, , and start the mass at , — fully stretched, at rest.
Step 1. Read off the two slopes of . Treating as a constant and varying , the slope of in the -direction is . Treating as a constant and varying , the slope of in the -direction is .
Step 2. Write Hamilton's equations (rate of = first slope; rate of = minus second slope):
Step 3. Differentiate the first equation in time and substitute the second:
This is the familiar second-order equation , with general solution . The initial conditions and pin , , so
Step 4. Check energy conservation:
Constant in time, as required.
What this tells us: Hamilton's equations recover the familiar oscillator motion, but they get it as a flow in the plane of pairs — rotating clockwise around the origin with unit angular speed. The level set is the unit circle, and the motion stays on it forever.
Check your understanding [Beginner]
Formal definition [Intermediate+]
Let be the configuration manifold of a mechanical system — the space whose points are the system's spatial configurations. For a single particle in , ; for a rigid body, ; for particles, modulo constraints. A point in is denoted ; a smooth curve has tangent vector .
A Lagrangian system 05.00.01 is governed by a smooth function (the Lagrangian), and the equations of motion are the Euler-Lagrange equations
The Hamiltonian formulation replaces the tangent bundle by the cotangent bundle via the Legendre transform 05.00.03. The conjugate momentum of is
Assuming the Hessian condition (the Lagrangian is regular; if this holds globally we call hyper-regular), the fibre Legendre transform , , is a local diffeomorphism. The Hamiltonian is then the Legendre transform of :
where is obtained by solving for . We adopt the summation convention throughout: repeated upper-lower index pairs are summed over where .
Hamilton's equations are the first-order system
The third equation governs explicit time dependence; for time-independent Lagrangians it is vacuous.
In coordinates the system has first-order ODEs in place of second-order Euler-Lagrange equations. The space with coordinates is phase space; a state of the system is a point in .
The Hamiltonian formulation requires fixing the sign convention and the sign convention in the Legendre transform . Other conventions (replacing by or by , or relabelling and symmetrically) appear in the literature and exchange the signs in Hamilton's equations. The convention adopted here is the one used by Arnold, Marsden-Ratiu, Taylor, and Tong; Landau-Lifshitz and Goldstein use the same convention. State the convention before computing.
The Poisson bracket 05.02.02 of two smooth functions is
It is bilinear, antisymmetric, satisfies the Leibniz rule , and satisfies the Jacobi identity . The pair is a Poisson manifold; the bracket is the algebraic shadow of the canonical symplectic form developed in the Master tier.
The evolution of an observable along a Hamiltonian trajectory is
Hamilton's equations themselves are the special case () and (), using the canonical Poisson relations
A function with and is a conserved quantity (a constant of motion); its value is preserved along every trajectory.
Counterexamples to common slips
- A non-hyper-regular Lagrangian — one for which the Hessian is singular at some — does not admit a well-defined Hamiltonian via the recipe above. Gauge theories and the relativistic point particle in their natural Lagrangian forms have this problem and are handled by the Dirac-Bergmann constraint algorithm, not by the textbook Legendre transform.
- The momentum is not in general equal to . For a particle in an electromagnetic field with , the canonical momentum is — the kinetic momentum and the canonical (conjugate) momentum differ by . This is what makes gauge transformations of a genuine transformation of phase space rather than a relabelling.
- The Hamiltonian is not in general equal to the total energy. The two coincide when with a homogeneous quadratic in and time-independent. In rotating frames or for explicitly-time-dependent constraints , even though Hamilton's equations still apply.
- Hamilton's equations are first-order; the apparent doubling of equation count from to is balanced by the halving of order from to . The total dimension of the initial-value problem — scalars — is the same as in the Lagrangian formulation.
Key theorem with proof [Intermediate+]
Theorem (Equivalence of Hamilton's equations and the Euler-Lagrange equations under hyper-regularity). *Let be a hyper-regular Lagrangian, the fibre Legendre transform, and the associated Hamiltonian. Then a smooth curve in satisfies the Euler-Lagrange equations for if and only if the curve in satisfies Hamilton's equations for .*
Proof. The Hamiltonian is defined by where is determined by inverting .
Differentiate with respect to , treating as a function of :
The last two terms cancel because , leaving
Differentiate with respect to :
again using to cancel two terms. Differentiating with respect to gives, similarly, .
Now suppose satisfies the Euler-Lagrange equations . Along the conjugate momentum is , so
which is the second Hamilton equation. Equation () gives identically along — this is the first Hamilton equation, true by definition of in terms of . So satisfies Hamilton's equations.
For the converse, suppose satisfies Hamilton's equations. Equation () along gives , consistent with the first Hamilton equation. Differentiate in time:
so the Euler-Lagrange equations hold along . ∎
Corollary. *Under the same hypotheses, the action on paths in equals the action on paths in , up to boundary terms, and the variational principle with fixed at endpoints (free variations of ) is equivalent to Hamilton's equations.* The substitution is exactly Legendre conjugation; the variational principle on is the modified Hamilton principle (Hamilton-Pontryagin, or Cartan's variational principle in the symplectic case).
The role of hyper-regularity is to make the Legendre transform globally invertible. For regular Lagrangians (Hessian invertible locally, not globally), the equivalence is local; the global picture requires either restricting to a region or augmenting with the inverse Legendre transform on each chart.
Worked example: the Kepler problem at intermediate level
A particle of mass in the gravitational potential where and has Lagrangian . In spherical coordinates , .
The conjugate momenta: $$ p_r = m\dot r, \quad p_\theta = mr^2 \dot\theta, \quad p_\varphi = mr^2 \sin^2\theta ,\dot\varphi. $$
Inverting and substituting into :
Two cyclic coordinates: does not appear in , so and is conserved. Restrict to the equatorial plane () to reduce to the planar problem. The remaining Hamiltonian is on a two-dimensional phase space at fixed , with the centrifugal now in the effective potential — the textbook reduction Hamilton's equations make automatic.
Exercises [Intermediate+]
Geometric formulation: Hamilton's equations on a symplectic manifold [Master]
The intermediate-tier statement of Hamilton's equations privileges Darboux coordinates ; the underlying object is coordinate-free. Let be a smooth manifold of dimension and let be its cotangent bundle, with projection .
There is a canonical 1-form on , the Liouville (tautological) 1-form , defined intrinsically by
In Darboux coordinates on where are the fibre coordinates dual to on the base, . The canonical symplectic 2-form is
a closed () and non-degenerate 2-form on 05.02.05. Note the sign convention is fixed: with gives ; the opposite sign convention appears in some sources (Marsden-Ratiu; we follow the same convention here, having earlier written — both differ from Arnold's by an overall sign, exchanging with but leaving Hamilton's equations as stated invariant under the simultaneous swap of conventions). Within a single document, fix the convention and stay with it. Throughout this unit, and Hamilton's equations are as stated above.
Darboux's theorem 05.01.04 guarantees that any 2-dimensional symplectic manifold admits, around any point, local coordinates in which . So the cotangent-bundle picture is locally the universal example; abstract symplectic manifolds (e.g., with the Fubini-Study form, or coadjoint orbits) are not cotangent bundles globally, but Hamilton's equations look the same in any Darboux chart.
Hamiltonian vector field 05.02.01. For on a symplectic manifold , the Hamiltonian vector field is the unique vector field satisfying
Non-degeneracy of makes the equation uniquely solvable for , so exists and is unique. In Darboux coordinates, writing and computing , the equation matches coefficients to give and , i.e.,
Hamilton's equations are the integral-curve equations of : .
Symplectic-form preservation. By Cartan's magic formula , using and the closedness of . So the flow of preserves :
A diffeomorphism with is a symplectomorphism (also called a canonical transformation). The Hamiltonian flow is therefore a one-parameter family of symplectomorphisms.
Liouville's theorem 05.02.07. The top exterior power is a volume form on (the Liouville volume). Since is preserved, so is — phase-space volume is conserved under Hamiltonian flow. This is Liouville's theorem on phase-space volume: incompressibility of the Hamiltonian flow regarded as a fluid on .
The symplectic preservation is strictly stronger than volume preservation: it preserves , , …, — the entire family of symplectic invariants — and additionally fixes the pairing structure on tangent vectors. Symplectic flows are volume-preserving, but volume-preserving flows on for are not in general symplectic; Eliashberg's symplectic-rigidity theorem (1989) is the deep statement that distinguishes them at .
Poisson bracket as the symplectic shadow. The Poisson bracket 05.02.02 is constructed from via
The Leibniz rule for is built into the vector-field interpretation; antisymmetry comes from antisymmetry of ; the Jacobi identity is equivalent to via the calculation
So closedness of is exactly the Jacobi identity for . This is the structural reason classical mechanics has a Lie-algebra-of-observables structure under the Poisson bracket — and the structural reason quantum mechanics, which replaces by , must have at the semiclassical level. The Jacobi identity for commutators is automatic for associative algebras; the corresponding classical statement requires the additional input .
Hamilton's equations as a moment map. A more abstract restatement: the time-1 flow of is the unique symplectomorphism whose generating function (in the sense developed in the next unit) is . This perspective routes Hamilton's equations through the variational principle on — the modified Hamilton principle — and is the entry point to canonical transformations as the symplectomorphism group of and Hamilton-Jacobi theory as the analysis of distinguished generating functions.
Canonical transformations and generating functions [Master]
A diffeomorphism with is a canonical transformation (synonym: symplectomorphism). Hamiltonian flows are a one-parameter subgroup of the canonical-transformation group; abstract canonical transformations are the discrete cousins.
Hamilton's equations are covariant under canonical transformations in a precise sense: if is canonical, and is the pulled-back Hamiltonian, then a trajectory of on the source side is mapped to a trajectory of on the target side. Choosing wisely — to bring into a form with as many cyclic coordinates as possible — is the strategic content of Hamilton-Jacobi theory: find a canonical transformation under which depends only on the new momenta , in which case the new equations of motion reduce to , constant, and the system is solved by quadrature.
Canonical transformations are classified by generating functions, four standard types corresponding to which pair of is taken as independent variables. The simplest is type-1: with , , . The other three types differ by Legendre transforms in or . The Hamilton-Jacobi equation
is the equation for a type-2 generating function that achieves the maximum-simplification target (, all new momenta conserved). Its theory and its limit relation to the eikonal equation of geometric optics — and via the WKB approximation to the Schrödinger equation — are the subject of unit 09.05.01 pending.
Integrable systems and the Liouville-Arnold theorem [Master]
A Hamiltonian system on is integrable in the Liouville sense if it admits functionally independent conserved quantities whose pairwise Poisson brackets all vanish (). The conserved quantities are said to be in involution.
Liouville-Arnold theorem. Let be functionally independent conserved quantities in involution on a -dimensional symplectic manifold , with . Fix a level set for , and assume is compact and connected. Then:
(i) is diffeomorphic to the -torus ;
(ii) there exist coordinates on in which the Hamiltonian flow is linear: ;
(iii) on a neighbourhood of , there exist symplectic coordinates — action-angle coordinates — with and depending only on the actions. Hamilton's equations are , , integrable explicitly by quadrature.
The Liouville-Arnold theorem is proven by analysing the -action of the commuting flows of the on — the orbit-stabiliser theorem makes a quotient for some lattice , and the compactness hypothesis closes the argument 05.09.01. Proof details live in Arnold §49-50 and Abraham-Marsden §5.
Examples of integrable systems where this machinery applies in full: the harmonic oscillator in any dimension; the Kepler problem (Liouville-integrable on each energy surface, superintegrable with an extra conserved quantity — the Laplace-Runge-Lenz vector — that closes orbits); the spherical pendulum on each energy surface generically; the Euler top (free rigid body in , three conserved quantities ); the Lagrange and Kovalevskaya tops; the Toda lattice. Beyond these the situation is generically non-integrable: typical Hamiltonian systems are chaotic, the KAM theorem governs the persistence of integrable tori under small perturbations 05.09.01, and Arnold diffusion describes the slow drift across resonances on long timescales.
Connection to quantum mechanics [Master]
The semiclassical correspondence is realised via canonical quantisation, the map sending classical observables to operators on a Hilbert space, with the Poisson bracket sent to the commutator divided by :
Hamilton's equation becomes the Heisenberg equation . The canonical Poisson relations become the Heisenberg commutation relations . The Hamilton-Jacobi equation becomes the WKB limit of the Schrödinger equation. The Lagrangian-side variational principle becomes the Feynman path-integral. Symplectic geometry is the geometry of the classical limit of quantum mechanics, and the structural reason it appears at all is that the Lie algebra of self-adjoint operators on a Hilbert space is non-abelian and quantum observables form a non-commutative version of the Poisson algebra.
The correspondence is faithful for quadratic observables (the harmonic oscillator quantises exactly), and breaks at higher polynomial orders by operator-ordering ambiguities — Groenewold's theorem (1946) shows no homomorphism extends to all polynomial observables. The corrections to the naive quantisation rule are organised by formal deformation quantisation (Bayen-Flato-Fronsdal-Lichnerowicz-Sternheimer 1978) and the Kontsevich formality theorem (1997), which constructs a -product on any Poisson manifold.
For the QM side proper, see unit 12.02.01 pending (Hilbert space formalism) and 12.10.01 pending (path integrals), and the connections drawn there.
Lean formalization [Intermediate+]
Mathlib does not yet cover Hamiltonian mechanics. The closest layers are:
Mathlib.LinearAlgebra.SymplecticGroup: skew-symmetric bilinear forms and the standard symplectic group as a matrix subgroup.Mathlib.Geometry.Manifold.Tangent,Mathlib.Geometry.Manifold.Cotangent: smooth tangent and cotangent bundles as smooth bundles.Mathlib.Geometry.Manifold.Diffeomorph: smooth maps and diffeomorphisms.
There is no Mathlib definition of "Hamilton's equations on a symplectic manifold", no canonical 2-form on a cotangent bundle as a Mathlib structure, and no Poisson-bracket-from-symplectic-form correspondence. The formalisation pathway is laid out in lean_mathlib_gap in the frontmatter.
lean_status: none reflects this gap; no lean_module ships with this unit. Tyler's review attests intermediate-tier correctness. The aggregated lean_status: none units in the §09 chapter become a Mathlib contribution roadmap as that section grows.
Connections [Master]
Legendre transform
05.00.03is the bridge from the Lagrangian to the Hamiltonian formulation. The hyper-regularity condition there is what gives the Hessian-invertibility hypothesis in the Equivalence Theorem above.Hamiltonian vector field
05.02.01is the coordinate-free object that Hamilton's equations describe. The relation is the defining equation; the coordinate Hamilton's equations are its expression in a Darboux chart.Poisson bracket
05.02.02is the algebraic shadow of the symplectic form. The evolution equation packages Hamilton's equations and the chain rule into one line.Cotangent bundle as canonical symplectic manifold
05.02.05is where the symplectic form comes from. Any configuration manifold's cotangent bundle is automatically symplectic; this is why Hamiltonian mechanics is the natural formulation on a manifold rather than only on .Darboux theorem
05.01.04says every symplectic manifold looks locally like with . This is what makes the coordinate expression of Hamilton's equations universal.Liouville volume and Liouville's theorem
05.02.07is the immediate consequence of : phase-space volume is preserved. Statistical-mechanics derivations of the microcanonical ensemble take this conservation law as a primitive.Noether's theorem
05.00.04in its Hamiltonian form: continuous symmetries of are in one-to-one correspondence with conserved quantities, packaged via the moment map for the symmetry group's action on .Hamilton-Jacobi equation
09.05.01pending (pending) is the canonical-transformation strategy taken to its limit; the WKB approximation of the Schrödinger equation reduces to it in the classical limit.KAM theorem
05.09.01describes what survives of Hamilton's-equation integrability when an integrable Hamiltonian is perturbed. The starting point is always a Hamiltonian flow on a symplectic manifold; the conclusion is about a specific class of invariant tori for the perturbed flow.Geometric mechanics
09.09.01pending (pending) generalises Hamilton's equations to Poisson manifolds, coadjoint orbits, and the Lie-Poisson framework on duals of Lie algebras — where infinite-dimensional examples (ideal fluids via Arnold 1966, plasma physics, BBGKY hierarchies) live.Canonical quantisation and the path integral [12.02.01, 12.10.01] (pending) take this unit's Poisson algebra and Hamiltonian as the classical limit of the quantum-mechanical operator algebra and Hamiltonian.
Historical & philosophical context [Master]
Hamilton introduced his equations in two papers in Philosophical Transactions of the Royal Society, 1834 and 1835 [Hamilton 1834], building on his earlier work on geometrical optics. The 1834 paper, On a general method in dynamics, derived the equations as a recasting of Lagrange's Mécanique analytique (1788) in which the action , regarded as a function of endpoint and time, satisfies the partial differential equation now bearing his name. Jacobi extended the framework in lectures published posthumously in 1866 [Jacobi 1866], emphasising the canonical-transformation viewpoint and the integration of mechanics by separation of variables in the Hamilton-Jacobi equation. The 19th century closed with the framework fully developed analytically; the 20th opened with Poincaré's Méthodes nouvelles de la mécanique céleste (1892-99) recasting the question as one of qualitative dynamics on phase space.
The geometric reformulation — Hamilton's equations as the integral curves of a Hamiltonian vector field on a symplectic manifold — emerged through the work of Cartan (the Leçons sur les invariants intégraux, 1922), with Weyl, Liouville, and Birkhoff contributing along the way. Arnold's Mathematical Methods of Classical Mechanics (1974, English translation 1978; second edition 1989) [Arnold 1989] consolidated the geometric viewpoint into a canonical reference. Marsden-Ratiu's Introduction to Mechanics and Symmetry (1994, second edition 1999) [Marsden-Ratiu 1999] extended it to the equivariant / Lie-group / momentum-map framework now standard in geometric mechanics. The Liouville-Arnold theorem on integrable systems was proved in Arnold's 1963 Russian Math. Surveys paper [Arnold 1963]; the KAM theorem, settled in Arnold's 1963 paper and Moser's 1962 smooth-twist version, characterises the persistence of integrability under perturbation 05.09.01.
Hamiltonian flow is the canonical object of classical determinism. The 1814 Essai philosophique sur les probabilités of Laplace [Laplace 1814] put the determinism thesis in its sharpest form: an intelligence that knew the initial of every particle and the laws of motion would know all of past and future. Mathematically, this is exactly the statement that a Hamiltonian flow on is uniquely determined by its initial point and the equation . The thesis was challenged on multiple fronts in the 20th century: by quantum mechanics (no joint sharp values of and ); by Poincaré's discovery of chaotic orbits in the three-body problem (sensitivity to initial conditions makes prediction infeasible even when the equations are deterministic); and by the singularity theorems of Hawking and Penrose in general relativity (deterministic evolution can break down at finite proper time). Hamilton's equations remain the cleanest setting in which to state the classical-determinism thesis precisely, and the cleanest contrast against the quantum-mechanical and chaotic and relativistic deviations.
Bibliography [Master]
Primary literature (cite when used; not all currently in reference/):
- Hamilton, W. R., "On a general method in dynamics", Phil. Trans. Roy. Soc. 124 (1834), 247–308; "Second essay on a general method in dynamics", 125 (1835), 95–144. [Need to source — originator papers.]
- Jacobi, C. G. J., Vorlesungen über Dynamik (lectures of 1842-43, published 1866), ed. A. Clebsch.
- Lagrange, J. L., Mécanique analytique (1788).
- Laplace, P. S., Essai philosophique sur les probabilités (1814).
- Poincaré, H., Les méthodes nouvelles de la mécanique céleste, 3 vols. (1892, 1893, 1899).
- Arnold, V. I., "Proof of A. N. Kolmogorov's theorem on the conservation of conditionally periodic motions under a small perturbation of the Hamiltonian", Russian Math. Surveys 18:5 (1963), 9–36.
- Arnold, V. I., Mathematical Methods of Classical Mechanics, 2nd ed. (Springer GTM 60, 1989).
- Marsden, J. E. & Ratiu, T. S., Introduction to Mechanics and Symmetry, 2nd ed. (Springer TAM 17, 1999).
- Abraham, R. & Marsden, J. E., Foundations of Mechanics, 2nd ed. (Addison-Wesley, 1978).
- Goldstein, H., Poole, C. P. & Safko, J., Classical Mechanics, 3rd ed. (Pearson, 2002).
- Landau, L. D. & Lifshitz, E. M., Mechanics, 3rd ed. (Course of Theoretical Physics Vol. 1, Pergamon, 1976).
- Taylor, J. R., Classical Mechanics (University Science Books, 2005).
- Susskind, L. & Hrabovsky, G., The Theoretical Minimum: Classical Mechanics (Basic Books, 2014).
- Tong, D., Classical Dynamics (DAMTP Cambridge lecture notes, §4 "The Hamiltonian Formulation").
Wave 1 physics seed unit, produced manually 2026-05-18 (per docs/plans/PHYSICS_PLAN.md §5 — manual-first pattern-setter for §09–13). All four cross-domain hooks_out targets are proposed; no chem/bio/phil seed unit yet exists to receive confirmed promotion. Status remains draft pending Tyler's review and the §11 Next-Actions retro per PHYSICS_PLAN.