2.1.19Analytical Mechanics

Principle of least action — Hamilton's principle derivation

2,130 words10 min readdifficulty · medium4 backlinks

What is the action?


Hamilton's Principle (the statement)


Deriving the Euler–Lagrange equation from δS=0\delta S = 0

This is the heart of the chapter. We build everything from scratch.

Setup (WHAT). Take the true path q(t)q(t) and perturb it: qε(t)=q(t)+εη(t)q_\varepsilon(t) = q(t) + \varepsilon\,\eta(t) where η(t)\eta(t) is an arbitrary smooth "wiggle" and ε\varepsilon is a small number.

Step 1 — Write the action of the varied path. S(ε)=t1t2L(q+εη, q˙+εη˙, t)dtS(\varepsilon) = \int_{t_1}^{t_2} L\big(q+\varepsilon\eta,\ \dot q+\varepsilon\dot\eta,\ t\big)\, dt Why this step? The true path corresponds to ε=0\varepsilon=0. Stationarity means S(ε)S(\varepsilon) has a flat tangent there: dSdεε=0=0\left.\dfrac{dS}{d\varepsilon}\right|_{\varepsilon=0}=0.

Step 2 — Differentiate under the integral (chain rule). dSdε=t1t2(Lqη+Lq˙η˙)dt\frac{dS}{d\varepsilon} = \int_{t_1}^{t_2}\left(\frac{\partial L}{\partial q}\,\eta + \frac{\partial L}{\partial \dot q}\,\dot\eta\right) dt Why this step? LL depends on ε\varepsilon only through q+εηq+\varepsilon\eta and q˙+εη˙\dot q+\varepsilon\dot\eta. Chain rule gives factors qε/ε=η\partial q_\varepsilon/\partial\varepsilon=\eta and q˙ε/ε=η˙\partial\dot q_\varepsilon/\partial\varepsilon=\dot\eta.

Step 3 — Integrate the second term by parts. This is the crucial move: it converts η˙\dot\eta into η\eta so we can factor η\eta out. t1t2Lq˙η˙dt=[Lq˙η]t1t2=0t1t2ddt ⁣(Lq˙)ηdt\int_{t_1}^{t_2}\frac{\partial L}{\partial \dot q}\,\dot\eta\,dt = \underbrace{\left[\frac{\partial L}{\partial \dot q}\,\eta\right]_{t_1}^{t_2}}_{=\,0} - \int_{t_1}^{t_2}\frac{d}{dt}\!\left(\frac{\partial L}{\partial \dot q}\right)\eta\,dt Why this step? The boundary term vanishes because η(t1)=η(t2)=0\eta(t_1)=\eta(t_2)=0. That's why endpoint-fixing mattered.

Step 4 — Collect terms. dSdε0=t1t2[Lqddt ⁣(Lq˙)]η(t)dt=0\frac{dS}{d\varepsilon}\bigg|_{0} = \int_{t_1}^{t_2}\left[\frac{\partial L}{\partial q} - \frac{d}{dt}\!\left(\frac{\partial L}{\partial \dot q}\right)\right]\eta(t)\, dt = 0

Step 5 — Apply the Fundamental Lemma of Calculus of Variations. Since η(t)\eta(t) is arbitrary, the bracket must vanish at every tt (if it were nonzero anywhere, pick an η\eta bumped there and the integral wouldn't be zero).

Figure — Principle of least action — Hamilton's principle derivation

Checking it gives Newton (Feynman-style sanity test)

Take a 1D particle: T=12mx˙2T=\tfrac12 m\dot x^2, V=V(x)V=V(x), so L=12mx˙2V(x)L=\tfrac12 m\dot x^2 - V(x).

  • Lx˙=mx˙\dfrac{\partial L}{\partial \dot x} = m\dot xddt ⁣(Lx˙)=mx¨\dfrac{d}{dt}\!\left(\dfrac{\partial L}{\partial \dot x}\right)=m\ddot x
  • Lx=dVdx=F\dfrac{\partial L}{\partial x} = -\dfrac{dV}{dx} = F

Euler–Lagrange: mx¨F=0mx¨=Fm\ddot x - F = 0 \Rightarrow \boxed{m\ddot x = F}. ✅ Newton's second law falls out. Why this matters: it proves L=TVL=T-V was the right choice and that Hamilton's principle is equivalent to Newtonian mechanics.


Worked Examples


Common Mistakes (Steel-manned)


Recall Feynman: explain it to a 12-year-old

Imagine you're walking from home to school and you have a "tiredness score" you collect along the way. The score adds up your running energy but subtracts a bonus you get for being in nice low places. Out of every possible route and pace, you naturally take the one whose total score can't be lowered by any tiny tweak — nudging the path a little doesn't change the score at all (it's "flat" at the bottom, like the bottom of a valley). That special "flat" route is the path nature picks, and when you do the math, it turns out to be exactly the same as obeying push-and-pull forces. One lazy rule replaces a thousand force calculations.


Flashcards

What is the action SS?
The functional S[q]=t1t2LdtS[q]=\int_{t_1}^{t_2} L\,dt, the time-integral of the Lagrangian; units J·s.
State Hamilton's principle.
The true path between fixed endpoints makes the action stationary: δS=0\delta S = 0.
What is the Lagrangian?
L=TVL = T - V (kinetic minus potential energy).
Write the Euler–Lagrange equation.
ddt(Lq˙)Lq=0\frac{d}{dt}\left(\frac{\partial L}{\partial\dot q}\right)-\frac{\partial L}{\partial q}=0.
Why must the boundary term vanish in the derivation?
Because the variation η\eta vanishes at fixed endpoints: η(t1)=η(t2)=0\eta(t_1)=\eta(t_2)=0.
Which step converts η˙\dot\eta into η\eta?
Integration by parts.
Why does the integrand bracket equal zero?
The Fundamental Lemma of calculus of variations: η(t)\eta(t) is arbitrary, so the bracket must vanish everywhere.
Show EL gives Newton for L=12mx˙2V(x)L=\tfrac12 m\dot x^2 - V(x).
ddt(mx˙)(V)=0mx¨=V=F\frac{d}{dt}(m\dot x) - (-V') = 0 \Rightarrow m\ddot x = -V' = F.
Is action always a minimum?
No — only stationary; can be a minimum or a saddle (rarely maximum).
What does EL give for L=12mx˙212kx2L=\tfrac12 m\dot x^2-\tfrac12 kx^2?
mx¨+kx=0m\ddot x + kx = 0, SHM with ω=k/m\omega=\sqrt{k/m}.
Why L=TVL=T-V and not T+VT+V?
Only TVT-V makes EL reproduce F=maF=ma; T+VT+V is the conserved energy (Hamiltonian), a different object.

Connections

  • Lagrangian Mechanics — EL equation generalizes to many coordinates qiq_i.
  • Euler–Lagrange Equation — the differential equation this principle produces.
  • Calculus of Variations — the math of stationary functionals; same lemma.
  • Noether's Theorem — symmetries of LL ⟹ conservation laws.
  • Hamiltonian Mechanics — Legendre transform of LL gives H=T+VH=T+V.
  • Fermat's Principle — optics analogue (stationary optical path/time).
  • Feynman Path Integral — quantum sum over paths weighted by eiS/e^{iS/\hbar}.
  • Newton's Second Law — equivalent formulation recovered as a check.

Concept Map

integrated over time

must be

states

apply to

constrained by

leads to

then

kills boundary term in

yields

check with L=T-V

units J.s link to

Lagrangian L = T minus V

Action S functional

Hamilton's Principle

Stationary action delta S = 0

Path perturbation q + eps eta

Fixed endpoints eta = 0

Differentiate under integral

Integration by parts

Euler-Lagrange equation

Recovers F = ma

Feynman path integral

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, Newton ki mechanics bolti hai ki har instant pe force batata hai ki particle kaise accelerate karega. Lekin Hamilton ka principle ek alag, zyada elegant kahani sunata hai: poora ka poora path jo system start se end tak leta hai, wahi path choose hota hai jo ek single number — action S=(TV)dtS = \int (T-V)\,dt — ko stationary bana de. Yaani path ko thoda sa idhar-udhar hilao to action mein first-order change zero ho jata hai. Isi liye isko "least action" kehte hain, par sach mein "stationary action" zyada accurate hai.

Derivation ka core simple hai. True path ko thoda perturb karo: q+εηq + \varepsilon\eta, jahan η\eta ek arbitrary wiggle hai jo endpoints pe zero hai (kyunki start aur end fixed hain). Phir action ko ε\varepsilon ke respect mein differentiate karo, chain rule lagao, aur jo η˙\dot\eta wala term aata hai usko by parts integrate karo. By-parts ke baad ek boundary term aata hai jo endpoints pe η=0\eta=0 hone ki wajah se mar jaata hai. Bachta hai []ηdt=0\int [\,\ldots\,]\eta\,dt = 0, aur kyunki η\eta arbitrary hai, woh bracket har time zero hona chahiye. Yahi hai Euler–Lagrange equation: ddt(L/q˙)L/q=0\frac{d}{dt}(\partial L/\partial\dot q) - \partial L/\partial q = 0.

Sabse pyaari baat: agar L=12mx˙2V(x)L = \tfrac12 m\dot x^2 - V(x) daalo, to EL equation seedha mx¨=V=Fm\ddot x = -V' = F de deta hai — yaani Newton ka F=maF=ma wapas aa jaata hai! Iska matlab Hamilton's principle Newtonian mechanics ke barabar hai, bas ek scalar (energy) ki bhasha mein. Yaad rakhna: Lagrangian TVT-V hota hai (minus), T+VT+V nahi — woh to conserved energy hai jo baad mein Hamiltonian ban jaata hai. Yeh principle aage chal ke Lagrangian/Hamiltonian mechanics, optics (Fermat), aur quantum mechanics (Feynman path integral) tak le jaata hai, isi liye yeh poori advanced physics ki neev hai.

Go deeper — visual, from zero

Test yourself — Analytical Mechanics

Connections