2.1.4Analytical Mechanics

Lagrangian L = T − V

1,869 words8 min readdifficulty · medium

WHAT is the Lagrangian?

Note the minus sign. The total energy is E=T+VE = T + V; the Lagrangian is TVT - V. They are not the same thing, and the difference is the whole point (see Mistakes).


WHY TVT - V? (Derivation from first principles)

We want to show that minimizing the action with L=TVL = T-V reproduces Newton's law F=maF = ma. If it does, the choice TVT-V is justified, not arbitrary.

Step 1 — Define the action. S=t1t2L(q,q˙,t)dtS = \int_{t_1}^{t_2} L(q,\dot q,t)\, dt Why this step? We need a single number measuring an entire path so we can ask "which path is best." Integrating a scalar over time gives one number per path.

Step 2 — Demand the action be stationary. Consider a true path q(t)q(t) and a nearby varied path q(t)+δq(t)q(t)+\delta q(t) with fixed endpoints (δq(t1)=δq(t2)=0\delta q(t_1)=\delta q(t_2)=0). Stationarity means δS=0\delta S = 0 to first order. Why fixed endpoints? We compare paths between the same start and end events; the question is the route, not the destination.

Step 3 — Vary SS. δS=t1t2(Lqδq+Lq˙δq˙)dt\delta S = \int_{t_1}^{t_2}\left(\frac{\partial L}{\partial q}\delta q + \frac{\partial L}{\partial \dot q}\delta\dot q\right)dt Why? First-order Taylor expansion of LL in its arguments.

Step 4 — Integrate the second term by parts. Using δq˙=ddtδq\delta\dot q = \frac{d}{dt}\delta q: Lq˙ddtδqdt=[Lq˙δq]t1t2ddt ⁣(Lq˙)δqdt\int \frac{\partial L}{\partial \dot q}\frac{d}{dt}\delta q\,dt = \left[\frac{\partial L}{\partial \dot q}\delta q\right]_{t_1}^{t_2} - \int \frac{d}{dt}\!\left(\frac{\partial L}{\partial \dot q}\right)\delta q\,dt The boundary term vanishes because δq=0\delta q=0 at the ends. Why by parts? To pull every δq\delta q outside its derivative so we can factor it.

Step 5 — Factor and apply the fundamental lemma. δS=t1t2(LqddtLq˙)δqdt=0\delta S = \int_{t_1}^{t_2}\left(\frac{\partial L}{\partial q} - \frac{d}{dt}\frac{\partial L}{\partial \dot q}\right)\delta q\, dt = 0 Since δq\delta q is arbitrary, the bracket must vanish:   ddtLq˙Lq=0  \boxed{\;\frac{d}{dt}\frac{\partial L}{\partial \dot q} - \frac{\partial L}{\partial q} = 0\;} This is the Euler–Lagrange equation.

Step 6 — Plug in L=TVL=T-V for one particle in 1D. With T=12mx˙2T=\tfrac12 m\dot x^2 and V=V(x)V=V(x): Lx˙=mx˙,ddt(mx˙)=mx¨,Lx=dVdx=F\frac{\partial L}{\partial \dot x}=m\dot x,\qquad \frac{d}{dt}(m\dot x)=m\ddot x,\qquad \frac{\partial L}{\partial x}=-\frac{dV}{dx}=F So the Euler–Lagrange equation gives mx¨F=0    F=mx¨.m\ddot x - F = 0 \;\Longrightarrow\; F = m\ddot x. This recovers Newton exactly. That is why L=TVL=T-V: it is the unique combination whose stationary-action condition reproduces ma=Vma = -\nabla V. If we had chosen T+VT+V, the velocity term and force term would carry the same sign and we'd get the wrong physics.

Figure — Lagrangian L = T − V

HOW to use it (recipe)

  1. Choose generalized coordinates qiq_i that exploit the system's symmetry/constraints.
  2. Write TT and VV in those coordinates.
  3. Form L=TVL=T-V.
  4. For each qiq_i apply the Euler–Lagrange equation.

Worked examples


Common mistakes (Steel-manned)


Active recall

Recall Feynman: explain to a 12-year-old

Imagine every possible way you could walk from your house to school. Nature is lazy and fancy — it picks the one special route where a certain "effort score" can't be improved by tiny wiggles. The score for each instant is "moving-energy minus stored-energy" (TVT-V). Add it up over the trip and the real path is the one where this total is balanced just right. Cool part: you don't have to know which way the ground pushes on you — if you describe your position with the right numbers (like just an angle for a swing), those annoying push-back forces never even show up.


Connections

Define the Lagrangian.
L=TVL = T - V, kinetic minus potential energy, a function of q,q˙,tq,\dot q,t.
Why is the Lagrangian TVT-V and not T+VT+V?
Only TVT-V makes the Euler–Lagrange equation reproduce F=mx¨F=m\ddot x; T+VT+V gives the wrong sign for the force.
What is the action?
S=t1t2LdtS=\int_{t_1}^{t_2} L\,dt, a scalar assigned to an entire path.
What condition does the true path satisfy?
Stationary action δS=0\delta S=0 for variations with fixed endpoints.
State the Euler–Lagrange equation.
ddtLq˙iLqi=0\frac{d}{dt}\frac{\partial L}{\partial\dot q_i}-\frac{\partial L}{\partial q_i}=0 for each coordinate.
Which boundary term vanishes in the derivation and why?
The surface term [L/q˙δq][\partial L/\partial\dot q\,\delta q] vanishes because δq=0\delta q=0 at both endpoints.
In L(q,q˙,t)L(q,\dot q,t), how are qq and q˙\dot q treated when taking partial derivatives?
As independent variables.
For the pendulum, what is LL in terms of θ\theta?
L=12m2θ˙2mg(1cosθ)L=\tfrac12 m\ell^2\dot\theta^2 - mg\ell(1-\cos\theta).
Why don't tension/normal forces appear in the Lagrangian?
Ideal constraints do no virtual work, so with coordinates along the allowed motion they drop out automatically.
What is the generalized momentum?
pi=L/q˙ip_i=\partial L/\partial\dot q_i.

Concept Map

minus V gives

subtracted in

arguments of

integrated over time

demand

vary and lemma

plug in L

contrast, not equal

Lagrangian L = T minus V

Kinetic energy T

Potential energy V

Generalized coordinates q

Action S

Stationary action delta S = 0

Euler-Lagrange equation

Newton F = ma

Total energy E = T plus V

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, Newton ki approach mein tumhe har force ka vector pakadna padta hai — tension kis direction mein, normal force kahan, yeh sab. Lagrangian mechanics ek alag sawaal poochti hai: "saari possible paths mein se nature kaunsa raasta choose karti hai?" Jawab hai — wo raasta jismein action S=LdtS=\int L\,dt stationary hota hai, aur yeh LL hai TVT-V, yaani kinetic energy minus potential energy. Yaad rakho, total energy T+VT+V hoti hai, lekin Lagrangian TVT-V hai — yeh minus sign hi pura khel hai.

Minus kyun? Kyunki jab tum L=TVL=T-V ko Euler–Lagrange equation mein daalte ho, toh seedha F=mx¨F=m\ddot x nikal aata hai. Agar T+VT+V leke try karo toh force ka sign ulta aa jaata hai — galat physics. Isiliye TVT-V ka choice random nahi hai, wo derive hota hai is condition se ki Newton ka law wapas aaye.

Sabse mast baat: agar tum sahi generalized coordinates choose karo — jaise pendulum ke liye sirf ek angle θ\theta — toh tension jaisi constraint forces apne aap gayab ho jaati hain, kyunki wo koi work nahi karti. Bas TT aur VV likho us coordinate mein, L=TVL=T-V banao, aur har coordinate ke liye Euler–Lagrange laga do. Pendulum mein direct θ¨=gsinθ\ddot\theta=-\frac{g}{\ell}\sin\theta mil jaata hai bina kisi force diagram ke. Yahi 80/20 hai — kam mehnat, poora answer.

Go deeper — visual, from zero

Test yourself — Analytical Mechanics

Connections