EVOPEDIA

← all systems · see it in The System

Hamiltonian and Lagrangian mechanics (analytical mechanics: classical mechanics built from energy functions and the stationary action, and the practice of using them)

In theoretical physics and mathematical physics, analytical mechanics, or theoretical mechanics is a collection of closely related formulations of classical mechanics. Analytical mechanics uses scalar properties of motion representing the system as a whole—usually its kinetic energy and potential energy.

Properties published scienceour proposal

Sourced fields, and our own readings.

aliasesHamiltonian mechanics
born at1744 (Euler, Maupertuis) to 1760-1788 (Lagrange); Hamilton 1833-1834
born precisiondecades
boundaryInside: the practice of writing a mechanical system as one scalar function (the Lagrangian L = T - V on configuration space, or the Hamiltonian H on phase space), counting its constraints and degrees of freedom, choosing generalized coordinates, deriving equations of motion from the stationary action (Euler-Lagrange) or the Legendre-transformed form (Hamilton's equations), and reading the geometry that follows (Poisson brackets, the symplectic form, Liouville's volume, Noether's conservation laws, integrability, KAM tori and chaos), together with the Hamiltonian systems it describes. Outside: Newtonian vector mechanics (same content, other formulation), the forces and bodies themselves, the mathematics it runs on (calculus of variations, differential equations, vector calculus, linear algebra), the theories it hands over to (quantum mechanics, field theory, relativity, statistical mechanics) and the people and machines that carry it.
nested levelA part of classical mechanics (its energy-based formulations, the classical-mechanics walk's L6 'structure' floor); runs on people's senses and thought and on computers; hands its structure on to quantum mechanics (Poisson bracket to commutator), to field theory and to statistics (Hamiltonian Monte Carlo).
scalesocial

Measures (19) published science

Lyapunov time of the inner Solar Systemabout 5 Myr
Lyapunov time of Pluto's motion20 Myr
Symplectic integration step (Sussman and Wisdom 1992)7.2 days
Conventional integration step40 (Jupiter) / 0.5 (with Mercury) days
Speed-up of the averaged equationsabout 1000 times
Probability of very high Mercury eccentricity over 5 Gyron the order of 1 %
Equations for the Sun and ten planets (1834)30 second-order or 60 first-order, reduced to one function equations
Order and number of equations2n first-order (Hamilton) vs n second-order (Lagrange) equations
Generalized coordinates for N particles with C constraints3N - C coordinates
Leapfrog stability limitstep approaching 2 (for H = q^2/2 + p^2/2) time units
Kinetic focus of the quartic oscillator0.646 of the half-period fraction
HNN energy error, two-body problemseveral orders of magnitude below baseline ratio
HNN size and training3 layers, 200 hidden units, 2000 gradient steps
Leapfrog energy errororder of step squared for H when (q,p) error is order step squared
Energy lost to viscous drag (Galley's nonconservative Lagrangian)dh/dt = -alpha |v|^(n+1); n = 1 Stokes drag, n = 2 nonlinear drag energy per unit time
Energy error growth, unbiased (Brouwer's law)grows as the square root of the number of timesteps (~ t^1/2) relative energy error vs time
Port-Hamiltonian power balancedH/dt = -grad H^T R grad H + y^T u <= y^T u (R positive semi-definite) power
Energy error growth, biasedgrows linearly with time (~ t) relative energy error vs time
Symplectic integrator's own energy errorbounded, independent of time; order epsilon dt^2 without correctors, dt^K + epsilon^2 dt^2 with correctors of order K (up to eleven)

Open contentions (3) open contention

Where sources or readings disagree. Both stay on the map.

Cross-scale patterns seen here (21) our proposal

Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Hamiltonian and Lagrangian mechanics (analytical mechanics: classical mechanics built from energy functions and the stationary action, and the practice of using them). Each links to every other system that shows it.

Valence: what it trades, and with whom (17) published science

Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.

Partners and parts published science

Built from / builds (12)

Sits inside / holds (3)

expressed by (12)

floor filled by (24)

represents (2)

Kinds (7)

wired (1)

Notes published science

Layers

The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.

a Hamiltonian system as nature runs it (the state in phase space, the generator H, the flow, what the flow keeps, regimes)

  1. L1: The state: a point (q, p) in 2n-dimensional phase space; configuration space is its shadow
  2. L2: The generator: any smooth function H on a symplectic manifold (usually T + V); fictitious momenta can be added to any continuous state space
  3. L3: The flow: Hamilton's equations, the Hamiltonian vector field and its flow
  4. L4: What the flow keeps: H when time-independent, phase volume (Liouville), the symplectic form, reversibility
  5. L5: Regimes: integrable motion on tori; near-integrable (KAM: most tori survive, resonant ones break); chaos and very slow diffusion

analytical mechanics as physicists describe it (reader's view: mechanical systems, constraints and degrees of freedom, generalized coordinates and the scalar functions, equations of motion, phase space, symmetry and invariants, use and hand-over)

  1. L1: Mechanical systems: particles with finitely many degrees of freedom (a bead on a wire, a pendulum, the Sun and planets), and by extension fields and fluids
  2. L2: Constraints and degrees of freedom: holonomic constraints counted, d'Alembert's principle removes the constraint forces (virtual work zero)
  3. L3: Generalized coordinates and the scalar functions: T, V, the Lagrangian L = T - V; momenta p = dL/dq-dot and the Hamiltonian H by Legendre transform
  4. L4: Equations of motion from a principle: the stationary action gives the Euler-Lagrange equations (n second-order) or Hamilton's equations (2n first-order)
  5. L5: Phase space and its geometry: Poisson brackets, the symplectic form, canonical transformations, Liouville's conserved volume
  6. L6: Symmetry and invariants: Noether's theorem, cyclic coordinates and reduction, Hamilton-Jacobi; integrable, KAM and chaotic regimes
  7. L7: Use and hand-over: prediction and long integrations, quantization (Poisson bracket to commutator), field theory and relativity, Hamiltonian Monte Carlo, learned Hamiltonians

the boardroom (shared floors)

  1. L3: Generalized coordinates and the scalar functions T, V, L, p and H
  2. L4: Equations of motion from the stationary action (Euler-Lagrange) or the Legendre-transformed form (Hamilton's equations)
  3. L5: Phase-space geometry: Poisson bracket, symplectic form, Liouville volume, canonical transformations
  4. L6: Symmetry and invariants: Noether, cyclic coordinates, Hamilton-Jacobi, integrability, KAM and chaos
  5. L7: Use and hand-over: prediction, long integrations, quantization, field theory, sampling, learned models

way in: Data: measured positions and momenta

  1. L1: Position and momentum readings from a real pendulum (Schmidt and Lipson's data)
  2. L2: Noisy readings that do not strictly conserve energy (the real pendulum has a little friction)

way in: Forces and constraints on the bodies (nature's side)

  1. L1: Bodies held by constraints and pushed by applied forces (a bead on a wire held by a reaction force; gravity)
  2. L2: Constraint forces do no virtual work and drop out
  3. L3: Generalized forces along the generalized coordinates; non-conservative ones allowed if they satisfy d'Alembert's principle

way in: Hands: writing derivations and correcting them

  1. L1: Written explanations and found errors in one's own solutions

way in: Hearing: lectures and exercise classes

  1. L1: Spoken explanation in exercise classes ('fits in a 90-min exercise class')

way in: Learned model: a network fitted to observations

  1. L1: Observations of mass-spring, pendulum and two-body systems, including pixels of a pendulum
  2. L2: A network outputs one scalar 'energy-like' value whose gradients give the motion

way in: Machine: integrated trajectories

  1. L1: Trajectories of the planets integrated with a symplectic integrator
  2. L2: The integrator's step: leapfrog shear steps keep phase volume exactly

way in: Sight: reading equations and worked examples

  1. L1: Worked examples: step-by-step solutions of Lagrangian problems on the page

way in: Thought: ideas carried between problems

  1. L1: Contested origin (C-413). One recorded route: Hamilton carried the idea of his optics of rays into dynamics

way out: Computing: integrations and samples

  1. L1: Trajectories and samples written out (distant proposals for Metropolis)
  2. L4: Leapfrog steps run
  3. L7: A Hamiltonian and an integrator chosen

way out: Dissipation: energy leaving the mechanical system

  1. L1: Energy not conserved: it leaves the mechanical description
  2. L4: A dissipation function (Rayleigh) added to the equations

way out: Hand-over to quantum mechanics

  1. L1: The quantum formulations it suggests: the path integral and the Schrodinger equation
  2. L7: Poisson bracket replaced by the commutator

way out: Motion: the state carried along its phase path

  1. L1: The state moves along its phase path
  2. L3: The Hamiltonian flow

way out: Teaching: worked examples in class

  1. L1: Explanations given in exercise classes
  2. L7: The four-step worked-example method chosen

way out: Writing: derivations and papers

  1. L1: Published derivations, from Hamilton's 1834 paper in the Philosophical Transactions to exercise sheets
  2. L7: A solution reduced as far as possible ('Reduce the equations if possible')

Sources (24) published science

Analytical mechanics (encyclopedia, Wikimedia Enterprise snapshot 2026-11-01, version 1299416179)
Scheiger, P., Cartarius, H., Nawrodt, R. (2023) Why and how to implement worked examples in upper division theoretical physics. arXiv:2307.06315 (behind its links)
Neal, R. M. (2011) MCMC using Hamiltonian dynamics. Handbook of MCMC ch. 5; arXiv:1206.1901 (behind its links)
Greydanus, S., Dzamba, M., Yosinski, J. (2019) Hamiltonian Neural Networks. arXiv:1906.01563 (NeurIPS 2019) (behind its links)
Laskar, J. (2012) Is the Solar System stable? arXiv:1209.5996 (Progress in Mathematical Physics 66, 2013) (behind its links)
Hamiltonian mechanics (encyclopedia, Wikimedia Enterprise snapshot 2026-11-01, version 1381752488) (behind its links)
Hamilton's optico-mechanical analogy (encyclopedia, version 1357468108) (behind its links)
Betancourt, M. (2017, v2 2018) A Conceptual Introduction to Hamiltonian Monte Carlo. arXiv:1701.02434 (behind its links)
Munoz-Arias, M. (2026) Port-Hamiltonian systems beyond joules: a review of unexpected application domains. arXiv:2611.10695 (math.OC) (behind its links)
Scalia, M., Ragnisco, O., Tirozzi, B., Zullo, F. (2024) The Volterra integrable case. Open Commun. Nonlinear Math. Phys. 4, 188-211 (CC BY); arXiv:2407.09155 (behind its links)
Hamilton, W. R. (1834) On a General Method in Dynamics. Phil. Trans. R. Soc. part II, 247-308 (TCD transcription, D. R. Wilkins) (behind its links)
Lagrangian mechanics (encyclopedia, Wikimedia Enterprise snapshot 2026-11-01, version 1381752408) (behind its links)
Gray, C. G. and Taylor, E. F. (2007) When action is not least. Am. J. Phys. 75, 434. doi:10.1119/1.2710480 (author copy) (behind its links)
Galley, C. R. (2013) Classical mechanics of nonconservative systems. Phys. Rev. Lett. 110, 174301; arXiv:1210.2745 (behind its links)
Rein, H. & Tamayo, D. (2015) WHFast: a fast and unbiased implementation of a symplectic Wisdom-Holman integrator for long term gravitational simulations. MNRAS; arXiv:1506.01084 (behind its links)
Noether, E. (1918) Invariant variation problems, tr. M. A. Tavel; arXiv:physics/0503066 (behind its links)
Classical mechanics (encyclopedia, Wikimedia Enterprise snapshot 2026-11-01, version 1382006987) (behind its links)
Todorov, E. (2004) Optimality principles in sensorimotor control. Nat. Neurosci. 7, 907-915. doi:10.1038/nn1309 (PMC1488877) (behind its links)
Statistical mechanics (encyclopedia, Wikimedia Enterprise snapshot 2026-11-01, version 1382848818) (behind its links)
Poschel, J. (2009) A lecture on the classical KAM theorem. arXiv:0908.2234 (behind its links)
Kolmogorov-Arnold-Moser theorem (Wikipedia, via Wikimedia Enterprise snapshot 2026-11-01) (behind its links)
Stationary-action principle (encyclopedia, Wikimedia Enterprise snapshot 2026-11-01) (behind its links)
Maupertuis's principle (encyclopedia, version 1376488736) (behind its links)
Cranmer, M. et al. (2020) Lagrangian Neural Networks. arXiv:2003.04630 (behind its links)