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 S=∫L dtS=\int L\,\mathrm{d}t, is stationary: nudge the path anywhere, by any tiny amount, and SS 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.

Key takeaways
  • Hamilton's principle: between fixed endpoint configurations q(t1)q(t_1) and q(t2)q(t_2), the true motion makes the action S[q]=∫t1t2L dtS[q]=\int_{t_1}^{t_2}L\,\mathrm{d}t stationary — δS=0\delta S=0 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 SS, 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 W=S+E(t2−t1)W=S+E(t_2-t_1).
  • Friction breaks it: pure δS=0\delta S=0 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 — δS=δ∫t1t2L dt=0\delta S = \delta\int_{t_1}^{t_2}L\,\mathrm{d}t = 0 — a single scalar condition that encodes the full equations of motion in any coordinate system.
The core insight

The true motion is the one whose action is unchanged to first order against all neighbouring paths with the same endpoints: δS=δ∫t1t2L dt=0\delta S = \delta\int_{t_1}^{t_2}L\,\mathrm{d}t = 0. 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 δS=0\delta S=0; 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 e−Se^{-S} over field histories — Feynman's sum over paths in imaginary time, with Hamilton's stationary configurations dominating the integral. The full story of how δS=0\delta S=0 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 q1q_1 at time t1t_1, and at configuration q2q_2 at time t2t_2. 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, S=∫(T−V) dtS=\int(T-V)\,\mathrm{d}t. 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.

Figure
The path bundle — one flat spot in the grading of all conceivable histories
(t₁, q₁) (t₂, q₂) trial histories — each gets a score S true path: δS = 0 a wiggled copy — same S to first order endpoints and times are pinned; everything in between is up for variation

Why should the flat spot be the physical path, and why is the score T−VT-V rather than, say, T+VT+V? Watch a ball tossed straight up. Kinetic energy wants the trip over quickly (less ∫T\int T); potential energy rewards loitering up high (more ∫V\int V, hence less S=∫T dt−∫V dtS=\int T\,\mathrm{d}t-\int V\,\mathrm{d}t). 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 SS 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 T+VT+V both terms would push the same way and nothing would balance.

Figure
Three schedules for the same trip — nature picks the one with the stationary score
t (s) x (m) 0 0.5 1.0 1.25 true parabola · S = −0.833 J·s lazy parabola · S = −0.800 J·s constant-speed triangle · S = −0.625 J·s a 0.2 kg ball, up and back in 1 s — every competitor schedule scores a larger action (numbers from the worked examples)

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 SS; 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.

Figure
The kinetic focus — paths that fan out and refocus, where minimum turns into saddle
t kinetic focus, t = π/ω same start, different launch speeds — every oscillator path refocuses after half a period shorter than the focus: the true path is a genuine minimum · beyond it: stationary but a saddle

Finally, the apparent teleology. How can a ball "know" at launch that it must arrive at q2q_2 at t2t_2? 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 eiS/ℏe^{iS/\hbar}; away from the stationary path the phases spin wildly and cancel, while near δS=0\delta S=0 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 q=(q1,…,qn)q=(q_1,\dots,q_n) with Lagrangian L(q,q˙,t)L(q,\dot q,t) — built as T−VT-V 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:

S[q]=∫t1t2L(q(t),q˙(t),t) dt(1)S[q] = \int_{t_1}^{t_2} L\big(q(t),\dot q(t),t\big)\,\mathrm{d}t \qquad (1)

where: SS — the action, one real number per path (units J·s); t1,t2t_1,t_2 — fixed initial and final times; q(t)q(t) — any twice-differentiable path satisfying q(t1)=q1q(t_1)=q_1, q(t2)=q2q(t_2)=q_2. 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 δ\delta for the first-order change under an infinitesimal path deformation:

δS=0for allδqi  with  δqi(t1)=δqi(t2)=0(2)\delta S = 0 \quad\text{for all}\quad \delta q_i \;\text{with}\; \delta q_i(t_1)=\delta q_i(t_2)=0 \qquad (2)

where: δqi(t)\delta q_i(t) — an arbitrary smooth virtual displacement of coordinate ii, 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 δ\delta concrete, embed the candidate path in a one-parameter family. This device — comparison paths labelled by a single dial α\alpha — is what turns functional calculus into ordinary calculus:

qi(t,α)=qi(t,0)+α ηi(t),ηi(t1)=ηi(t2)=0(3)q_i(t,\alpha) = q_i(t,0) + \alpha\,\eta_i(t), \qquad \eta_i(t_1)=\eta_i(t_2)=0 \qquad (3)

where: α\alpha — the smallness dial (α=0\alpha=0 is the candidate path); ηi(t)\eta_i(t) — an arbitrary fixed deformation shape. Stationarity means dS/dα∣α=0=0\mathrm{d}S/\mathrm{d}\alpha|_{\alpha=0}=0 for every admissible shape ηi\eta_i — a far stronger demand than flatness in one direction, and the reason a single scalar condition can determine nn 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

δS=∫t1t2∑i(∂L∂qi−ddt∂L∂q˙i)δqi dt=0(4)\delta S = \int_{t_1}^{t_2}\sum_i\left(\frac{\partial L}{\partial q_i} - \frac{\mathrm{d}}{\mathrm{d}t}\frac{\partial L}{\partial \dot q_i}\right)\delta q_i\,\mathrm{d}t = 0 \qquad (4)

where: the bracket multiplying each independent δqi\delta q_i 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:

ddt ⁣(∂L∂q˙i)−∂L∂qi=0,i=1,…,n(5)\frac{\mathrm{d}}{\mathrm{d}t}\!\left(\frac{\partial L}{\partial \dot q_i}\right) - \frac{\partial L}{\partial q_i} = 0, \qquad i=1,\dots,n \qquad (5)

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 LL the total time derivative of any function of coordinates and time, and the action shifts by a pure boundary constant:

L′=L+dF(q,t)dt    ⇒    S′=S+F(q2,t2)−F(q1,t1)    ⇒    δS′=δS(6)L' = L + \frac{\mathrm{d}F(q,t)}{\mathrm{d}t} \;\;\Rightarrow\;\; S' = S + F(q_2,t_2)-F(q_1,t_1) \;\;\Rightarrow\;\; \delta S' = \delta S \qquad (6)

where: F(q,t)F(q,t) — 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 V(q,t)V(q,t) or a generalized velocity-dependent potential U(q,q˙,t)U(q,\dot q,t), as for the Lorentz force. Dissipation breaks the pattern, but does not kill the method: the variational statement extends to

δ ⁣∫t1t2 ⁣L dt+∫t1t2∑iQi(nc) δqi dt=0(7)\delta\!\int_{t_1}^{t_2}\! L\,\mathrm{d}t + \int_{t_1}^{t_2}\sum_i Q_i^{(\mathrm{nc})}\,\delta q_i\,\mathrm{d}t = 0 \qquad (7)

where: Qi(nc)Q_i^{(\mathrm{nc})} — 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 Q(nc)Q^{(\mathrm{nc})} vanish.

Which statement answers which question

you wantusenotes
the law of motion as one scalar sentenceδS=0\delta S = 0, eq. (2)endpoints and times pinned
the local equations it impliesEuler–Lagrange, eq. (5)full treatment in its own article
to check two Lagrangians give the same physicsgauge freedom, eq. (6)they may differ by dF/dt\mathrm{d}F/\mathrm{d}t
dynamics with frictionextended form, eq. (7)pure δS=0\delta S=0 fails
minimum or saddle?second variation, eq. (8)sign flips at the kinetic focus
fixed energy instead of fixed timeMaupertuis, eq. (9)different variation class entirely

Where the principle comes from — and what it does not promise

Derivation AHamiltons Principle from dAlemberts Principle

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 ∑i(Fi−mir¨i)⋅δri=0\sum_i(\mathbf F_i - m_i\ddot{\mathbf r}_i)\cdot\delta\mathbf r_i = 0 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 δ∫(T−V) dt\delta\int(T-V)\,\mathrm{d}t. The step to watch is an integration by parts run backwards — a total time derivative is deliberately introduced so that the awkward r¨⋅δr\ddot{\mathbf r}\cdot\delta\mathbf r 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 δri\delta\mathbf r_i compatible with the constraints:

∑i(Fi−mir¨i)⋅δri=0\sum_i\big(\mathbf F_i - m_i\ddot{\mathbf r}_i\big)\cdot\delta\mathbf r_i = 0

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:

∑imir¨i⋅δri=ddt(∑imir˙i⋅δri)−∑imir˙i⋅δr˙i\sum_i m_i\ddot{\mathbf r}_i\cdot\delta\mathbf r_i = \frac{\mathrm{d}}{\mathrm{d}t}\Big(\sum_i m_i\dot{\mathbf r}_i\cdot\delta\mathbf r_i\Big) - \sum_i m_i\dot{\mathbf r}_i\cdot\delta\dot{\mathbf r}_i

Why the second term is a variation of kinetic energy: δ\delta and d/dt\mathrm{d}/\mathrm{d}t commute for virtual displacements taken at frozen time, so ∑imir˙i⋅δr˙i=δ(12∑imir˙i2)=δT\sum_i m_i\dot{\mathbf r}_i\cdot\delta\dot{\mathbf r}_i = \delta\big(\tfrac12\sum_i m_i\dot{\mathbf r}_i^2\big) = \delta T — the inertia of the system has become the variation of a scalar.

Step 3. Integrate the instant-by-instant statement from t1t_1 to t2t_2. The total-derivative piece integrates immediately to a boundary term:

∫t1t2(δT+∑iFi⋅δri)dt  −  [∑imir˙i⋅δri]t1t2=0\int_{t_1}^{t_2}\Big(\delta T + \sum_i \mathbf F_i\cdot\delta\mathbf r_i\Big)\mathrm{d}t \;-\; \Big[\sum_i m_i\dot{\mathbf r}_i\cdot\delta\mathbf r_i\Big]_{t_1}^{t_2} = 0

Step 4. Clamp the endpoints. With δri(t1)=δri(t2)=0\delta\mathbf r_i(t_1)=\delta\mathbf r_i(t_2)=0 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, Fi=−∇iV\mathbf F_i = -\nabla_i V, so that the applied-force term is also a variation of a scalar: ∑iFi⋅δri=−δV\sum_i\mathbf F_i\cdot\delta\mathbf r_i = -\delta V. The integrated statement collapses to

∫t1t2(δT−δV) dt=δ ⁣∫t1t2(T−V) dt=δS=0\int_{t_1}^{t_2}\big(\delta T - \delta V\big)\,\mathrm{d}t = \delta\!\int_{t_1}^{t_2}(T-V)\,\mathrm{d}t = \delta S = 0

Why the derivation stops working for friction: a dissipative force is not the gradient of anything, so its virtual work cannot be written as −δV-\delta V 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 δ(d/dt)=(d/dt)δ\delta(\mathrm{d}/\mathrm{d}t)=(\mathrm{d}/\mathrm{d}t)\delta and the identification δT=∑imir˙i⋅δr˙i\delta T=\sum_i m_i\dot{\mathbf r}_i\cdot\delta\dot{\mathbf r}_i 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
Derivation BStationary but Not Minimal — the Kinetic Focus

The goal is an explicit, quantitative demonstration that "least" action fails: for the harmonic oscillator, L=12mx˙2−12mω2x2L=\tfrac12 m\dot x^2-\tfrac12 m\omega^2x^2, the true path minimizes SS only while the elapsed time is shorter than half a period, T<π/ωT<\pi/\omega, 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 η˙2\dot\eta^2 (extra kinetic energy) but earns ω2η2\omega^2\eta^2 (the potential term enters LL 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 x(t)x(t) with deformation η(t)\eta(t), η(t1)=η(t2)=0\eta(t_1)=\eta(t_2)=0:

S[x+η]=S[x]+δS+12 δ2S,δ2S=∫t1t2m(η˙2−ω2η2) dtS[x+\eta] = S[x] + \delta S + \tfrac12\,\delta^2 S, \qquad \delta^2 S = \int_{t_1}^{t_2} m\big(\dot\eta^2 - \omega^2\eta^2\big)\,\mathrm{d}t

Why the second variation is exact here, not approximate: LL is quadratic in xx and x˙\dot x, so the expansion terminates at second order — for the oscillator, δ2S\delta^2 S 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 T=t2−t1T=t_2-t_1:

η(t)=asin⁡ ⁣(π(t−t1)T)\eta(t) = a\sin\!\Big(\frac{\pi(t-t_1)}{T}\Big)

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: ∫0Tη˙2 dt=π2a22T\int_0^T\dot\eta^2\,\mathrm{d}t = \dfrac{\pi^2a^2}{2T} and ∫0Tη2 dt=a2T2\int_0^T\eta^2\,\mathrm{d}t = \dfrac{a^2T}{2}, giving

δ2S=ma22(π2T−ω2T)(8)\delta^2 S = \frac{m a^2}{2}\left(\frac{\pi^2}{T} - \omega^2 T\right) \qquad (8)

Step 4. Read the sign. For T<π/ωT < \pi/\omega the bracket is positive: every such wiggle raises the action, and the true path is a genuine local minimum. For T>π/ωT > \pi/\omega this wiggle lowers SS: the path is a saddle — stationary in every direction, minimal in most, maximal along at least this one. The crossover T=π/ωT=\pi/\omega 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 π/ω\pi/\omega regardless of amplitude — the isochronism of the oscillator. A refocusing family means neighbouring true paths with the same endpoints, i.e. flat directions of SS turning negative just beyond. *Verified: matches Gray & Taylor, Am. J. Phys. 75, 434 (2007); the conjugate point of the harmonic oscillator at T=π/ωT=\pi/\omega is the standard result, and the sign of δ2S\delta^2S 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
Derivation COne Trajectory Two Principles — Hamilton versus Maupertuis

The goal is the exact relation between Hamilton's action S=∫L dtS=\int L\,\mathrm{d}t and Maupertuis' abbreviated action W=∫∑ipi dqiW=\int\sum_i p_i\,\mathrm{d}q_i, and a precise statement of which variation class each principle uses. The strategy is one line of Legendre bookkeeping — write L=∑ipiq˙i−EL = \sum_i p_i\dot q_i - E 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 "δ\delta"s are not interchangeable symbols.

Step 1. Define the abbreviated action along a path, converting it to a time integral:

W=∫∑ipi dqi=∫t1t2∑ipi q˙i dtW = \int \sum_i p_i\,\mathrm{d}q_i = \int_{t_1}^{t_2}\sum_i p_i\,\dot q_i\,\mathrm{d}t

Why WW is geometric: written as ∫p dq\int p\,\mathrm{d}q 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 E=∑ipiq˙i−LE=\sum_i p_i\dot q_i - L is constant along the true path, so ∑ipiq˙i=L+E\sum_i p_i\dot q_i = L + E inside the integral:

W=∫t1t2 ⁣(L+E) dt=S+E (t2−t1)(9)W = \int_{t_1}^{t_2}\!\big(L + E\big)\,\mathrm{d}t = S + E\,(t_2-t_1) \qquad (9)

Step 3. State the two variation classes side by side. Hamilton: compare paths with the same t1,t2t_1,t_2, energies unconstrained; then δS=0\delta S = 0. Maupertuis: compare paths sharing the endpoints in configuration space and all carrying the same energy EE, transit times unconstrained; then ΔW=0\Delta W = 0, where Δ\Delta marks this looser, time-floating variation. Why the distinction has teeth: differentiate Step 2 under the Maupertuis class — ΔW=ΔS+E Δ(t2−t1)\Delta W = \Delta S + E\,\Delta(t_2-t_1); 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 W=∫2m(E−V) dsW=\int\sqrt{2m(E-V)}\,\mathrm{d}s 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 W=S+E(t2−t1)W = S + E(t_2-t_1) recomputes directly by substituting L=∑pq˙−EL = \sum p\dot q - E.

Limiting cases

CaseResultMeaning
monogenic conservative forcesL=T−V(q)L=T-V(q), pure δS=0\delta S=0the standard case — recovers Newton in any coordinates
velocity-dependent potentialU=qϕ−q v⋅AU = q\phi - q\,\mathbf v\cdot\mathbf A, L=T−UL=T-Uthe Lorentz force q(E+v×B)q(\mathbf E+\mathbf v\times\mathbf B) fits the principle unchanged
nonconservative forcesextended form (7) with Qi(nc)Q_i^{(\mathrm{nc})}no single functional is stationary; friction lies outside pure δS=0\delta S=0
T<π/ωT < \pi/\omega (before the focus)δ2S>0\delta^2 S > 0the true path is a genuine minimum — "least" is temporarily honest
interval past the kinetic focusδ2S\delta^2 S indefinitestationary saddle; wiggles along the refocusing family lower SS
S≫ℏS \gg \hbarstationary phase dominates ∫ ⁣Dq eiS/ℏ\int\!\mathcal Dq\,e^{iS/\hbar}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 m=0.20 kgm=0.20\ \mathrm{kg} is thrown straight up and caught at the same height 1.00 s1.00\ \mathrm{s} later (take g=10 m/s2g=10\ \mathrm{m/s^2} for clean numbers, so the true flight is x(t)=5t−5t2x(t)=5t-5t^2, peaking at 1.25 m1.25\ \mathrm{m}). Compute the action for (a) the true parabola, (b) the "lazy parabola" family xc(t)=c t(1−t)x_c(t)=c\,t(1-t), 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 xc(t)=c t(1−t)x_c(t)=c\,t(1-t): velocity x˙c=c(1−2t)\dot x_c = c(1-2t), so T(t)=12(0.2) c2(1−2t)2T(t)=\tfrac12(0.2)\,c^2(1-2t)^2 and V(t)=(0.2)(10) c t(1−t)=2c t(1−t)V(t)=(0.2)(10)\,c\,t(1-t)=2c\,t(1-t).

Step 2. Integrate the kinetic term: ∫01(1−2t)2dt=13\int_0^1(1-2t)^2\mathrm{d}t = \tfrac13, so ∫T dt=0.1 c2⋅13=c2/30\int T\,\mathrm{d}t = 0.1\,c^2\cdot\tfrac13 = c^2/30. Integrate the potential term: ∫01t(1−t) dt=16\int_0^1 t(1-t)\,\mathrm{d}t=\tfrac16, so ∫V dt=2c⋅16=c/3\int V\,\mathrm{d}t = 2c\cdot\tfrac16 = c/3.

Step 3. The action of the family is an ordinary parabola in the dial cc:

S(c)=c230−c3(10)S(c) = \frac{c^2}{30} - \frac{c}{3} \qquad (10)

where: cc — the launch-speed dial (the true path has c=5c=5, since x=5t−5t2x=5t-5t^2). Setting dS/dc=2c/30−1/3=0\mathrm{d}S/\mathrm{d}c = 2c/30 - 1/3 = 0 gives c=5c=5 exactly: the stationary member of the family is the true flight, no equations of motion consulted.

Step 4. Put in numbers. S(5)=25/30−5/3=−0.833 J⋅sS(5) = 25/30 - 5/3 = \boxed{-0.833\ \mathrm{J\cdot s}}. The equal-distance neighbours: S(4)=16/30−4/3=−0.800 J⋅sS(4) = 16/30-4/3 = -0.800\ \mathrm{J\cdot s} and S(6)=36/30−2=−0.800 J⋅sS(6)=36/30-2 = -0.800\ \mathrm{J\cdot s} — symmetric and both larger, the signature of a flat minimum.

Step 5. Grade the outsider. The triangle rises at constant 2.5 m/s2.5\ \mathrm{m/s} to 1.25 m1.25\ \mathrm{m} and returns: ∫T dt=12(0.2)(2.5)2⋅1=0.625 J⋅s\int T\,\mathrm{d}t = \tfrac12(0.2)(2.5)^2\cdot 1 = 0.625\ \mathrm{J\cdot s}; mean height 0.625 m0.625\ \mathrm{m} gives ∫V dt=(0.2)(10)(0.625)=1.25 J⋅s\int V\,\mathrm{d}t = (0.2)(10)(0.625) = 1.25\ \mathrm{J\cdot s}; so S△=−0.625 J⋅sS_{\triangle} = \boxed{-0.625\ \mathrm{J\cdot s}} — 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 m=0.50 kgm=0.50\ \mathrm{kg} on a spring has ω=2.0 rad/s\omega = 2.0\ \mathrm{rad/s} (period 3.14 s3.14\ \mathrm{s}). For a trip of duration (a) T=1.0 sT=1.0\ \mathrm{s} and (b) T=2.0 sT=2.0\ \mathrm{s}, evaluate the second variation δ2S\delta^2 S for the half-wave wiggle of amplitude a=1.0 cma=1.0\ \mathrm{cm}, and interpret.

Step 1. The tool is the boxed result of the kinetic-focus derivation: δ2S=ma22(π2T−ω2T)\delta^2 S = \dfrac{ma^2}{2}\Big(\dfrac{\pi^2}{T}-\omega^2 T\Big), exact for the oscillator. The prefactor: 12ma2=12(0.50)(0.010)2=2.5×10−5 kg m2\tfrac12 m a^2 = \tfrac12(0.50)(0.010)^2 = 2.5\times10^{-5}\ \mathrm{kg\,m^2}.

Step 2. Case (a), T=1.0 sT=1.0\ \mathrm{s}: bracket =π2/1.0−(2.0)2(1.0)=9.870−4.000=5.870 s−1= \pi^2/1.0 - (2.0)^2(1.0) = 9.870 - 4.000 = 5.870\ \mathrm{s^{-1}}. So δ2S=2.5×10−5×5.870=+1.47×10−4 J⋅s\delta^2 S = 2.5\times10^{-5}\times 5.870 = \boxed{+1.47\times10^{-4}\ \mathrm{J\cdot s}}. Positive: the wiggle raises the action — the true path is a minimum here.

Step 3. Case (b), T=2.0 sT=2.0\ \mathrm{s}: bracket =π2/2.0−4.0×2.0=4.935−8.000=−3.065 s−1= \pi^2/2.0 - 4.0\times2.0 = 4.935 - 8.000 = -3.065\ \mathrm{s^{-1}}. So δ2S=2.5×10−5×(−3.065)=−7.66×10−5 J⋅s\delta^2 S = 2.5\times10^{-5}\times(-3.065) = \boxed{-7.66\times10^{-5}\ \mathrm{J\cdot s}}. Negative: this gentle half-wave lowers the action below the true path's — a saddle, past the focus.

Step 4. Locate the crossover: π2/T=ω2T\pi^2/T = \omega^2 T gives T=π/ω=π/2.0=1.57 sT = \pi/\omega = \pi/2.0 = \boxed{1.57\ \mathrm{s}} — exactly half the 3.14 s3.14\ \mathrm{s} period, where the fan of oscillator paths refocuses. A 1.0 s1.0\ \mathrm{s} trip sits safely inside "least action"; a 2.0 s2.0\ \mathrm{s} trip has already left it. The principle δS=0\delta S=0 holds identically in both cases — only the word least comes and goes.

Origins · 1 minWilliam Rowan Hamilton and how this was discovered
WR
William Rowan Hamilton
1805–1865 · Trinity College Dublin and Dunsink Observatory

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 δ ⁣∫L dt=0\delta\!\int L\,\mathrm{d}t=0 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.

History
1662
— Fermat states the principle of least time for light, the first physical law phrased as an extremum over paths.
1744
— Maupertuis announces the principle of least action for mechanics; Euler, the same year, gives it a correct mathematical formulation for a single particle at fixed energy.
1760
— Lagrange invents the δ-calculus of variations and, with it, analytical mechanics — extremal principles now handle whole systems of bodies.
1834
— Hamilton's two essays recast dynamics as the stationarity of the time integral of the Lagrangian, with fixed endpoints and fixed times — the modern form of the principle.
1926
— Schrödinger, guided by Hamilton's optical–mechanical analogy, writes the wave equation whose eikonal limit is Hamilton's principle.
1948
— Feynman's path integral makes every path physical: classical trajectories are where the phases e^{iS/ℏ} interfere constructively.

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 δ2S=ma22(π2/T−ω2T)\delta^2 S=\tfrac{ma^2}{2}(\pi^2/T-\omega^2 T) and its sign change at T=π/ωT=\pi/\omega (cf. Gray & Taylor, AJP 75, 434, 2007); confirm the Lorentz-force Lagrangian L=12mv2−qϕ+q v⋅AL=\tfrac12 m v^2 - q\phi + q\,\mathbf v\cdot\mathbf A reproduces mr¨=q(E+v×B)m\ddot{\mathbf r}=q(\mathbf E+\mathbf v\times\mathbf B); and check the Maupertuis relation W=S+E(t2−t1)W=S+E(t_2-t_1). No empirical constants are quoted. Worked-example numbers on this page (S(5)=−0.833 J⋅sS(5)=-0.833\ \mathrm{J\cdot s}, S(4)=S(6)=−0.800 J⋅sS(4)=S(6)=-0.800\ \mathrm{J\cdot s}, S△=−0.625 J⋅sS_\triangle=-0.625\ \mathrm{J\cdot s}; δ2S=+1.47×10−4\delta^2S=+1.47\times10^{-4} and −7.66×10−5 J⋅s-7.66\times10^{-5}\ \mathrm{J\cdot s}, focus at 1.57 s1.57\ \mathrm{s}) 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 eiS/ℏe^{iS/\hbar}, 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: q1q_1, q˙1\dot q_1 given) has a unique solution under mild conditions. The boundary-value problem (Hamilton: q1q_1 at t1t_1, q2q_2 at t2t_2) can have one solution, several, or none — for a harmonic oscillator with t2−t1t_2-t_1 exactly half a period, every launch speed from q1q_1 arrives at −q1-q_1, 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 δS\delta S 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 +δT+\delta T, while the monogenic force term contributes ∑F⋅δr=−δV\sum\mathbf F\cdot\delta\mathbf r = -\delta V — the relative sign between them is fixed by Newton's second law itself. Intuitively, TT and VV pull the schedule in opposite directions: kinetic energy penalizes hurrying, potential energy (entering with the minus) rewards loitering where VV is large, and the true motion is the schedule at which the trade is locally even. T+VT+V has no such tension — both terms would push the same way and no interior balance could single out a path. The energy T+VT+V 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 ∫m η˙2 dt\int m\,\dot\eta^2\,\mathrm{d}t 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 SS, 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 δS\delta S produces the boundary term [∑ipi δqi]t1t2\big[\sum_i p_i\,\delta q_i\big]_{t_1}^{t_2} with pi=∂L/∂q˙ip_i=\partial L/\partial\dot q_i. Clamping δqi=0\delta q_i=0 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 pi=0p_i=0 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 ∂S/∂q2=p2\partial S/\partial q_2 = p_2 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, ∑F⋅δr=−δV\sum\mathbf F\cdot\delta\mathbf r=-\delta V (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 δ∫L dt\delta\int L\,\mathrm{d}t for the monogenic part and add ∫∑iQi(nc)δqi dt\int\sum_i Q_i^{(\mathrm{nc})}\delta q_i\,\mathrm{d}t 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 S=∫L dtS=\int L\,\mathrm{d}t. Maupertuis: endpoints and the energy fixed, transit time free; the stationary quantity is the abbreviated action W=∫∑pi dqiW=\int\sum p_i\,\mathrm{d}q_i, and the two are tied by W=S+E(t2−t1)W=S+E(t_2-t_1). 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 Δ ⁣∫ ⁣2m(E−V) ds=0\Delta\!\int\!\sqrt{2m(E-V)}\,\mathrm{d}s=0, mechanics as optics with refractive index E−V\sqrt{E-V}, 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 S=−mc2∫dτS=-mc^2\int\mathrm{d}\tau, 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 eiS/ℏe^{iS/\hbar} over all paths, stationary or not; when S≫ℏS\gg\hbar the stationary-phase condition δS=0\delta S=0 picks out the classical path as the constructive-interference survivor, so Hamilton's principle is literally the ℏ→0\hbar\to0 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.

Before this

Where this leads