Hamilton's Principle of Stationary Action
In 1834 a Dublin astronomer named William Rowan Hamilton published a claim of almost reckless ambition: all of mechanics — every orbit, every pendulum, every spinning top — follows from a single sentence. Between two fixed configurations at two fixed times, a system moves along the one history for which the accumulated difference between kinetic and potential energy, the action , is stationary: nudge the path anywhere, by any tiny amount, and does not change to first order. No forces, no vectors, no components — one scalar number graded over whole histories, and the flat spot in that grading is the world. The idea has an unsettling flavor. Newton's law is local and causal: the particle feels a force here, now, and reacts. Hamilton's principle looks global and almost purposeful, as if the particle surveyed every possible future before setting out. Part of this article's job is to dissolve that paradox — stationarity at every interior instant turns out to be exactly a local differential equation, and quantum mechanics supplies the deepest resolution: the particle really does try every path, and the stationary one is simply where the contributions agree instead of cancelling. You are ready for this. You know what a Lagrangian is and what the action functional measures; what remains is the principle that welds them into dynamics. Mastering it buys you the entire second half of mechanics: the Euler–Lagrange machinery, the symmetry–conservation dictionary of Noether, Hamiltonian dynamics, and — far beyond — general relativity and quantum field theory, every one of which is written as an action principle first and equations second.
- Hamilton's principle: between fixed endpoint configurations and , the true motion makes the action stationary — against every variation that vanishes at the endpoints.
- Stationary means flat to first order, not smallest: for short time intervals the true path does minimize , but past the first kinetic focus (conjugate point) it becomes a saddle. "Least action" is a historical misnomer.
- The principle is exactly equivalent to Newton's laws for monogenic systems (forces from a potential, possibly velocity-dependent): it can be derived from d'Alembert's principle, and it delivers the Euler–Lagrange equations in any coordinates.
- Its scalar, coordinate-free character is the practical payoff: constraints disappear into the choice of generalized coordinates, and the same recipe works in every chart.
- It must not be confused with Maupertuis' principle: Hamilton fixes the two times and varies over all energies; Maupertuis fixes the energy and lets the transit time float. They are related by .
- Friction breaks it: pure holds only for monogenic forces; dissipative systems need the extended form with generalized forces.
- Key idea: the true motion is the one whose action is unchanged to first order against all neighbouring paths with the same endpoints — — a single scalar condition that encodes the full equations of motion in any coordinate system.
The true motion is the one whose action is unchanged to first order against all neighbouring paths with the same endpoints: . This single scalar condition encodes the full equations of motion in any coordinate system.
Where this lives today
Modern fundamental physics is written action-first. General relativity is the stationarity of the Einstein–Hilbert action; the Standard Model is defined by its Lagrangian density and ; string theory's starting point is the area action of a worldsheet. When lattice-QCD collaborations burn hundreds of millions of core-hours on exascale machines in 2026, what the machines actually sample is over field histories — Feynman's sum over paths in imaginary time, with Hamilton's stationary configurations dominating the integral. The full story of how becomes quantum amplitude lives in the action-principle-to-QFT article. The principle also earns its keep as an algorithm. Discretize the action itself — not the differential equation — and demand stationarity of the sum: the result is a variational integrator, a time-stepping scheme that inherits the structural blessings of the principle (exact conservation of the symplectic form and momentum maps, no secular energy drift). This is why spacecraft trajectory designers and molecular-dynamics packages favor symplectic/variational schemes for million-orbit and billion-step simulations: a Runge–Kutta orbit spirals unphysically after enough steps, while a variational integrator's energy error stays bounded for the entire run. The same discrete-mechanics machinery now drives robotics trajectory optimization, where "find the motion connecting these two configurations" is solved directly as a discrete stationary-action problem — Hamilton's boundary-value question, asked by a motion planner sixty times a second.
The physical picture
Pin down two events: the system is at configuration at time , and at configuration at time . Between those pins runs an infinity of conceivable histories — fast ones, lazy ones, looping ones. The action functional grades each of them with one number, . Hamilton's principle says: nature's path is the one sitting at a flat spot of that grading. Wiggle the true path slightly anywhere in the interior and the score changes only at second order in the wiggle — exactly the way a function sits flat at the bottom of a valley or on a mountain pass.
Why should the flat spot be the physical path, and why is the score rather than, say, ? Watch a ball tossed straight up. Kinetic energy wants the trip over quickly (less ); potential energy rewards loitering up high (more , hence less ). Those two pressures pull the schedule in opposite directions, and the true parabolic flight is the perfect compromise — quick enough that kinetic cost stays modest, high enough and long enough at the top that the potential credit is collected. The stationary point of is exactly the schedule at which trading a little speed for a little altitude no longer pays either way. The minus sign is the whole mechanism: with both terms would push the same way and nothing would balance.
One more picture belongs up front, because it corrects the single most repeated error about this subject. The principle is stationary action, not least action. For a harmonic oscillator, launch a family of paths from one point with slightly different velocities: they fan out, and — this is the special property of the oscillator — all reconverge to a point after exactly half a period, no matter the amplitude. That refocusing point is called the kinetic focus (or conjugate point). For trips shorter than the focus the true path genuinely minimizes ; for trips that pass through it, there exist wiggles that lower the action, and the true path is only a saddle — still perfectly stationary, no longer a minimum.
Finally, the apparent teleology. How can a ball "know" at launch that it must arrive at at ? It doesn't have to. Stationarity of a global integral against local wiggles is a condition enforceable instant by instant — it compresses into a differential equation at each interior time, which is exactly the Euler–Lagrange machinery. The global statement and the local law carry identical information; the principle just packages all the local conditions into one scalar sentence. And beneath that equivalence sits Feynman's quantum answer: every path is actually taken, each contributing a phase ; away from the stationary path the phases spin wildly and cancel, while near they reinforce. Classical purposefulness is quantum bookkeeping seen from far away.
The principle, stated precisely
Everything begins with the score being graded. For a system described by generalized coordinates with Lagrangian — built as in whatever coordinates make the constraints invisible — each admissible history between the pinned endpoints is assigned its action. This is the functional studied in detail in the action-functional article; here it becomes the protagonist of a law of nature:
where: — the action, one real number per path (units J·s); — fixed initial and final times; — any twice-differentiable path satisfying , . Note what is being held and what is free: both endpoint configurations and both times are data; the entire interior of the path is variable. Hamilton's principle is then the statement that the physical motion is a stationary point of this functional. Writing for the first-order change under an infinitesimal path deformation:
where: — an arbitrary smooth virtual displacement of coordinate , free in the interior, clamped to zero at both ends. The clamping is not a technicality: it is what makes the boundary term in the variation vanish, and it encodes the physical question being asked — which path connects these two given configurations in the given time? To make concrete, embed the candidate path in a one-parameter family. This device — comparison paths labelled by a single dial — is what turns functional calculus into ordinary calculus:
where: — the smallness dial ( is the candidate path); — an arbitrary fixed deformation shape. Stationarity means for every admissible shape — a far stronger demand than flatness in one direction, and the reason a single scalar condition can determine functions of time. What does the demand deliver? Differentiating under the integral and integrating the velocity term by parts (the boundary term dies by the endpoint clamping) leaves
where: the bracket multiplying each independent must vanish separately, by the fundamental lemma of the calculus of variations (proved carefully in the calculus-of-variations article — the machinery is borrowed, not rebuilt here). The result is the local content of the global principle:
where: one second-order ODE per degree of freedom — the Euler–Lagrange equations, whose anatomy, solution craft, and worked classics belong to their own article. The point to absorb here is the equivalence itself: the teleological-looking global statement (2) and the causal local law (5) are the same fact. Nothing "knows the future"; a path that is flat against all wiggles is flat against localized wiggles at each instant, and that instant-by-instant flatness is the differential equation. Two structural properties of the principle do belong to this article. First, the Lagrangian entering (1) is not unique. Add to the total time derivative of any function of coordinates and time, and the action shifts by a pure boundary constant:
where: — any differentiable function. Because endpoints are pinned, the added term is the same constant for every competitor path — it moves the whole grading up or down without tilting it, so the flat spot (and hence the physics) is untouched. This gauge freedom is why the electromagnetic Lagrangian can change under gauge transformations while the Lorentz force stays put. Second, the principle as stated requires monogenic forces — every force derivable from a potential or a generalized velocity-dependent potential , as for the Lorentz force. Dissipation breaks the pattern, but does not kill the method: the variational statement extends to
where: — the generalized nonpotential forces (friction, drag). Equation (7) is no longer the stationarity of any single functional — there is no "action for friction" — but it remains a valid and useful variational bookkeeping, and it reduces to (2) the moment the vanish.
Which statement answers which question
| you want | use | notes |
|---|---|---|
| the law of motion as one scalar sentence | , eq. (2) | endpoints and times pinned |
| the local equations it implies | Euler–Lagrange, eq. (5) | full treatment in its own article |
| to check two Lagrangians give the same physics | gauge freedom, eq. (6) | they may differ by |
| dynamics with friction | extended form, eq. (7) | pure fails |
| minimum or saddle? | second variation, eq. (8) | sign flips at the kinetic focus |
| fixed energy instead of fixed time | Maupertuis, eq. (9) | different variation class entirely |
Where the principle comes from — and what it does not promise
The goal is to derive Hamilton's principle for monogenic systems from d'Alembert's principle — the statement, rooted directly in Newton's laws and the fact that ideal constraint forces do no virtual work, that at every instant. The strategy is the reverse of the usual variational route: instead of starting from a functional and extracting a differential law, we start from the instant-by-instant Newtonian statement, integrate it over the whole time interval, and watch the pieces assemble themselves into . The step to watch is an integration by parts run backwards — a total time derivative is deliberately introduced so that the awkward term becomes a variation of the kinetic energy plus a boundary term, and the endpoint clamping then kills the boundary term. This derivation is what certifies that the principle is genuine Newtonian mechanics, not an independent postulate.
Step 1. Write d'Alembert's principle at each instant, for virtual displacements compatible with the constraints:
Why this is the right starting point: it is Newton's second law with the constraint forces already eliminated — they drop out because ideal constraints do no work under virtual displacements. Everything downstream inherits that economy: tensions and normal forces will never appear.
Step 2. Attack the inertial term with the product rule, introducing a total derivative on purpose:
Why the second term is a variation of kinetic energy: and commute for virtual displacements taken at frozen time, so — the inertia of the system has become the variation of a scalar.
Step 3. Integrate the instant-by-instant statement from to . The total-derivative piece integrates immediately to a boundary term:
Step 4. Clamp the endpoints. With the bracket vanishes identically. Why this clamping is legitimate rather than convenient: we are choosing the question the principle answers — comparing histories that all start and end at the same configurations. The momentum-times-displacement boundary term is precisely what the comparison holds fixed.
Step 5. Specialize to monogenic forces, , so that the applied-force term is also a variation of a scalar: . The integrated statement collapses to
Why the derivation stops working for friction: a dissipative force is not the gradient of anything, so its virtual work cannot be written as and absorbed into the integrand — that failure is exactly the boundary of the principle's validity, and the origin of the extended form (7). *Verified: reproduces Goldstein §2.1 term by term; the commutation and the identification are the two consistency checks.*
The name "principle of least action" now needs its overdue correction. Stationarity guarantees flatness, not depth — and for mechanical Lagrangians the flat spot can genuinely stop being a minimum. The clean way to see it is to compute the second variation and watch its sign.
Go deeper · Derivation B · 2 minStationary but Not Minimal — the Kinetic Focus
The goal is an explicit, quantitative demonstration that "least" action fails: for the harmonic oscillator, , the true path minimizes only while the elapsed time is shorter than half a period, , and becomes a saddle beyond. The strategy is to expand the action to second order around a true path and evaluate the second variation on a one-parameter test wiggle; because the oscillator's second variation does not involve the path itself, one well-chosen wiggle settles the sign question completely. Watch the competition inside the integrand: a wiggle costs (extra kinetic energy) but earns (the potential term enters with a minus sign) — short intervals force wiggles to be steep, long intervals let them be gentle and profitable.
Step 1. Expand about a true path with deformation , :
Why the second variation is exact here, not approximate: is quadratic in and , so the expansion terminates at second order — for the oscillator, is the entire story, independent of which true path we sit on.
Step 2. Choose the gentlest admissible wiggle — a single half-wave clamped at both ends, over an interval of length :
Why this shape: among clamped deformations it has the least steepness for its size, so it is the wiggle most likely to expose a saddle; if even this one cannot lower the action, none of comparable scale can — and Fourier decomposition of a general wiggle makes that intuition rigorous.
Step 3. Evaluate the two integrals: and , giving
Step 4. Read the sign. For the bracket is positive: every such wiggle raises the action, and the true path is a genuine local minimum. For this wiggle lowers : the path is a saddle — stationary in every direction, minimal in most, maximal along at least this one. The crossover is exactly half the oscillator period: the kinetic focus, where the fan of paths launched from one point refocuses. Why half a period, physically: all oscillator paths from a common starting point return to refocus after time regardless of amplitude — the isochronism of the oscillator. A refocusing family means neighbouring true paths with the same endpoints, i.e. flat directions of turning negative just beyond. *Verified: matches Gray & Taylor, Am. J. Phys. 75, 434 (2007); the conjugate point of the harmonic oscillator at is the standard result, and the sign of recomputes numerically in the worked examples below.*
One more boundary needs patrolling, because two historical action principles coexist and answer different questions. Hamilton's principle pins the two times and lets varied paths have any energy. The older principle of Maupertuis pins the energy and lets the transit time float. Confusing them is a classic exam disaster.
Go deeper · Derivation C · 1 minOne Trajectory Two Principles — Hamilton versus Maupertuis
The goal is the exact relation between Hamilton's action and Maupertuis' abbreviated action , and a precise statement of which variation class each principle uses. The strategy is one line of Legendre bookkeeping — write along a conserved-energy path and integrate — followed by a careful accounting of what is held fixed in each variation. The watch-out: the two principles select the same physical trajectory, but through different families of comparison paths, so their ""s are not interchangeable symbols.
Step 1. Define the abbreviated action along a path, converting it to a time integral:
Why is geometric: written as it involves no clock at all — it is a line integral through phase space, which is why the principle that varies it can afford to let transit time float.
Step 2. For a conservative system the energy function is constant along the true path, so inside the integral:
Step 3. State the two variation classes side by side. Hamilton: compare paths with the same , energies unconstrained; then . Maupertuis: compare paths sharing the endpoints in configuration space and all carrying the same energy , transit times unconstrained; then , where marks this looser, time-floating variation. Why the distinction has teeth: differentiate Step 2 under the Maupertuis class — ; the two principles are consistent precisely because the extra term compensates the freed transit time.
Step 4. Conclude: both principles are satisfied by the same physical trajectory of a conservative system, but they answer different questions — Hamilton, "which path in a given time?"; Maupertuis, "which path at a given energy?" The Maupertuis form, with for a single particle, turns mechanics into geometry — the optical analogy Hamilton exploited and the seed of the geodesic formulation of dynamics. Verified: agrees with Landau & Lifshitz §44 and Goldstein §8.6; the relation recomputes directly by substituting .
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| monogenic conservative forces | , pure | the standard case — recovers Newton in any coordinates |
| velocity-dependent potential | , | the Lorentz force fits the principle unchanged |
| nonconservative forces | extended form (7) with | no single functional is stationary; friction lies outside pure |
| (before the focus) | the true path is a genuine minimum — "least" is temporarily honest | |
| interval past the kinetic focus | indefinite | stationary saddle; wiggles along the refocusing family lower |
| stationary phase dominates | classical mechanics as the constructive-interference limit of quantum paths |
Worked examples
1 · Grading three schedules for a tossed ball (confidence builder)
A ball of mass is thrown straight up and caught at the same height later (take for clean numbers, so the true flight is , peaking at ). Compute the action for (a) the true parabola, (b) the "lazy parabola" family , and (c) a constant-speed triangle to the same peak height. Confirm the true path is stationary — and here, minimal.
Step 1. Set up the family. For : velocity , so and .
Step 2. Integrate the kinetic term: , so . Integrate the potential term: , so .
Step 3. The action of the family is an ordinary parabola in the dial :
where: — the launch-speed dial (the true path has , since ). Setting gives exactly: the stationary member of the family is the true flight, no equations of motion consulted.
Step 4. Put in numbers. . The equal-distance neighbours: and — symmetric and both larger, the signature of a flat minimum.
Step 5. Grade the outsider. The triangle rises at constant to and returns: ; mean height gives ; so — worse than every parabola tried. Same endpoints, same duration, same peak height: the schedule is what the action grades.
2 · Locating the kinetic focus of an oscillator numerically (exam level)
A glider of mass on a spring has (period ). For a trip of duration (a) and (b) , evaluate the second variation for the half-wave wiggle of amplitude , and interpret.
Step 1. The tool is the boxed result of the kinetic-focus derivation: , exact for the oscillator. The prefactor: .
Step 2. Case (a), : bracket . So . Positive: the wiggle raises the action — the true path is a minimum here.
Step 3. Case (b), : bracket . So . Negative: this gentle half-wave lowers the action below the true path's — a saddle, past the focus.
Step 4. Locate the crossover: gives — exactly half the period, where the fan of oscillator paths refocuses. A trip sits safely inside "least action"; a trip has already left it. The principle holds identically in both cases — only the word least comes and goes.
Origins · 1 minWilliam Rowan Hamilton and how this was discovered
Hamilton was appointed Andrews Professor of Astronomy and Royal Astronomer of Ireland at 22, before finishing his undergraduate degree — the college simply decided no one better would apply. His route to mechanics ran through light: his Theory of Systems of Rays (1827) rebuilt all of geometrical optics around a single "characteristic function" whose stationarity reproduced every ray. In 1834–35 he transplanted the idea to dynamics in two essays On a General Method in Dynamics, recasting Lagrange's mechanics as the statement and then converting it into the canonical equations that now carry his name. The optical–mechanical analogy he built as scaffolding lay dormant for ninety years until Schrödinger used it, almost line by line, to pass from classical mechanics to wave mechanics. Hamilton spent his later decades on quaternions — carving the multiplication rule into Broom Bridge in Dublin during an 1843 walk — convinced they were his greatest work; posterity instead runs the world's physics engines, particle accelerators, and quantum field theories on the stationary-action principle he considered a stepping stone.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §2.1–2.3 · Landau & Lifshitz, Mechanics, 3rd ed., §2 · Morin, Introduction to Classical Mechanics, Ch. 6 · Taylor, Classical Mechanics, Ch. 7 · Lanczos, The Variational Principles of Mechanics, Ch. V
Provenance. Equations follow Goldstein §2.1–2.3, Landau-Lifshitz §2 and §44, and Morin Ch. 6. A verifier should: recompute the integration-by-parts yielding the Euler–Lagrange equations; verify the second-variation result and its sign change at (cf. Gray & Taylor, AJP 75, 434, 2007); confirm the Lorentz-force Lagrangian reproduces ; and check the Maupertuis relation . No empirical constants are quoted. Worked-example numbers on this page (, , ; and , focus at ) are illustrative arithmetic recomputed from the boxed formulas.
Builds on: Generalized Coordinates and Configuration Space · The Lagrangian Function · The Action Functional · d'Alembert's Principle · Virtual Displacements and the Principle of Virtual Work Leads to: The Euler-Lagrange Equations · Symmetries and Continuous Transformations · Cyclic Coordinates and Conservation of Conjugate Momenta · The Energy Function and Jacobi Integral
If the particle only "knows" local forces, how can it satisfy a principle about its whole future path?
Because the global principle and a local law are logically identical. Stationarity against all endpoint-clamped wiggles includes stationarity against wiggles localized in an arbitrarily small window around any instant — and demanding flatness window by window is precisely a differential equation holding at each time, the Euler–Lagrange equation. Nothing needs foreknowledge: a particle integrating the local ODE from its present state automatically traces a path that, viewed afterwards between any two of its points, is stationary. The teleology is an artifact of which mathematical packaging you look at. Quantum mechanics adds the deeper layer: the particle genuinely explores all paths with phases , and the stationary path is where neighbouring contributions reinforce rather than cancel — "purpose" is interference, seen from far away.
Newton needs a position and a velocity to start; Hamilton's principle fixes two positions at two times. Are these even the same problem?
They are different well-posed questions about the same law, and this is subtler than most courses admit. The initial-value problem (Newton: , given) has a unique solution under mild conditions. The boundary-value problem (Hamilton: at , at ) can have one solution, several, or none — for a harmonic oscillator with exactly half a period, every launch speed from arrives at , so infinitely many stationary paths connect those endpoints (that is the kinetic focus). The two formulations agree wherever the boundary-value problem is uniquely solvable, and the differential equation they share is the same. The variational statement trades initial data for endpoint data because that is what makes the boundary term in vanish cleanly.
Why is the Lagrangian T minus V and not T plus V — wouldn't total energy be more natural?
The minus sign is forced, not chosen. Run the d'Alembert derivation: the inertial term integrates by parts into , while the monogenic force term contributes — the relative sign between them is fixed by Newton's second law itself. Intuitively, and pull the schedule in opposite directions: kinetic energy penalizes hurrying, potential energy (entering with the minus) rewards loitering where is large, and the true motion is the schedule at which the trade is locally even. has no such tension — both terms would push the same way and no interior balance could single out a path. The energy plays a different structural role: it is the conserved output of time-translation symmetry, not the integrand of the grading.
Is the action ever an actual maximum?
For a standard mechanical Lagrangian, no. The second variation always contains with a positive sign, and a sufficiently fast, small-amplitude zigzag makes that term dominate anything the potential contributes — so there is always a direction in path space along which the action increases. Consequently the true path is either a minimum (short intervals, before the first kinetic focus) or a saddle (after it): minimal against steep wiggles, lowered by certain gentle, long-wavelength ones like the oscillator's half-wave. A genuine maximum would require wiggles of arbitrarily high steepness to lower , which the kinetic term forbids. "Stationary action" is therefore precise where "least action" is half-true and "extremal action" is subtly wrong.
Why exactly must the variations vanish at the endpoints, and what happens if I free one?
The integration by parts in produces the boundary term with . Clamping at both ends kills it, leaving only the interior integral whose vanishing gives the equations of motion. Free an endpoint and that term survives: stationarity then demands both the Euler–Lagrange equations in the interior and at the freed end — a "natural boundary condition". That is not a bug but a feature used across physics: transversality conditions in optimal control, free-boundary problems in elasticity, and the endpoint derivatives that generate Hamilton–Jacobi theory all come from deliberately releasing what Hamilton's principle normally clamps.
Can I use Hamilton's principle when there is friction?
Not in the pure form — and it is important to understand that this is a structural fact, not a technicality. The derivation from d'Alembert requires every applied force's virtual work to be a variation of a scalar, (or the generalized-potential version that captures the Lorentz force). Kinetic friction, proportional to speed or opposing velocity, is not the gradient of anything: no function of the path's endpoints can record energy lost irreversibly along the way. The honest extension is equation (7): keep for the monogenic part and add for the rest — equivalent to putting generalized forces on the right of the Euler–Lagrange equations, often organized through a Rayleigh dissipation function. Useful, but no longer the stationarity of any single functional.
What is the practical difference between Hamilton's and Maupertuis' principles?
What each holds fixed. Hamilton: endpoints and both times fixed, comparison paths may have any energy; the stationary quantity is . Maupertuis: endpoints and the energy fixed, transit time free; the stationary quantity is the abbreviated action , and the two are tied by . Use Hamilton when time parametrization matters — deriving equations of motion, field theory, anything with explicit time dependence. Use Maupertuis when only the orbit's geometry matters: for one particle it reads , mechanics as optics with refractive index , which is the door to geodesic formulations and semiclassical quantization. Same trajectories, different questions.
Does Hamilton's principle survive into relativity and quantum mechanics?
It thrives there — it is arguably the thing that survives. Relativity: the free-particle action becomes , proper time along the worldline, whose stationarity gives straight worldlines in special relativity and geodesics in general relativity; Einstein's field equations themselves follow from the Einstein–Hilbert action. Quantum mechanics: Feynman's path integral sums over all paths, stationary or not; when the stationary-phase condition picks out the classical path as the constructive-interference survivor, so Hamilton's principle is literally the shadow of quantum superposition. Field theory repeats the pattern with fields replacing coordinates. The Newtonian force law did not generalize; the action principle did — which is why every fundamental theory since 1915 has been delivered as a Lagrangian.