Skip to content
The book

Lagrangian formalism and generalised coordinates

Why this is asked: Write T and V in the generalised coordinate, form L = T − V, and apply d/dt(∂L/∂q̇) = ∂L/∂q. Cyclic coordinates give conserved momenta immediately.

In one sentence

Write L=T−VL = T - V in whatever coordinates suit the constraints, apply the Euler–Lagrange equations, and the constraint forces never appear — which is the entire reason the formalism exists.

Why the exam asks it

Because setting up LL correctly is most of the work and the rest is mechanical, and because two things get misremembered: the sign in T−VT-V, and the fact that a generalised momentum need not be mass times velocity.

The idea

For a system with generalised coordinates q1,…,qnq_1,\dots,q_n — any parameters that fix the configuration — the Lagrangian is

L(q,q˙,t)=T−V,L(q,\dot q, t) = T - V,

and Hamilton's principle says the motion makes the action S=∫L dtS=\int L\,dt stationary. That is the calculus of variations from the previous chapter with tt as the independent variable, so the Euler–Lagrange equations follow immediately:

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

nn second-order equations, so 2n2n constants, fixed by initial positions and velocities.

Lagrangian L(q, q̇, t) = T − V n second-order equations configuration space, n coordinates constraint forces drop out Legendre Hamiltonian H(q, p, t) = Σ p q̇ − L 2n first-order equations phase space, q and p together volume preserved (Liouville) H = T + V only when the constraints are time-independent and V does not involve velocity. H being conserved is a separate condition: it needs ∂H/∂t = 0, not H = E.
Two descriptions of the same mechanics. Lagrangian works in configuration space with n second-order equations; Hamiltonian in phase space with 2n first-order ones.

Why generalised coordinates

A holonomic constraint is one expressible as f(q,t)=0f(q,t)=0. Each such constraint removes one degree of freedom, and choosing coordinates that already respect it means the constraint forces — tension, normal reaction — never enter the equations. A pendulum in Cartesian coordinates needs the rod's tension; in the angle θ\theta it does not appear at all.

That elimination is the whole advantage, and it is why the method is worth learning beyond Newton's laws.

Non-holonomic constraints — inequalities, or velocity constraints not integrable to f(q,t)=0f(q,t)=0, such as a rolling ball — are not handled this way and need multipliers or other methods. Options sometimes present one as if it were holonomic.

The pendulum, done properly

One coordinate θ\theta, with T=12mℓ2θ˙2T = \tfrac12 m\ell^2\dot\theta^2 and V=−mgℓcos⁡θV = -mg\ell\cos\theta:

L=12mℓ2θ˙2+mgℓcos⁡θ.L = \tfrac12 m\ell^2\dot\theta^2 + mg\ell\cos\theta .

Then ∂L/∂θ˙=mℓ2θ˙\partial L/\partial\dot\theta = m\ell^2\dot\theta and ∂L/∂θ=−mgℓsin⁡θ\partial L/\partial\theta = -mg\ell\sin\theta, so

θ¨=−gℓsin⁡θ.\ddot\theta = -\frac{g}{\ell}\sin\theta .

For small θ\theta, sin⁡θ≈θ\sin\theta\approx\theta gives simple harmonic motion with ω=g/ℓ\omega=\sqrt{g/\ell} and period 2πℓ/g2\pi\sqrt{\ell/g} — independent of amplitude only in that approximation. The exact period grows with amplitude and diverges as the swing approaches the vertical.

Cyclic coordinates and conserved momenta

The generalised momentum conjugate to qiq_i is

pi=∂L∂q˙i.p_i = \frac{\partial L}{\partial \dot q_i}.

If LL does not contain qiq_i — a cyclic or ignorable coordinate — then Euler–Lagrange gives p˙i=0\dot p_i = 0 and pip_i is conserved.

For a central force, L=12m(r˙2+r2φ˙2)−V(r)L = \tfrac12 m(\dot r^2 + r^2\dot\varphi^2) - V(r) has no φ\varphi, so

pφ=mr2φ˙p_\varphi = mr^2\dot\varphi

is constant — angular momentum, and Kepler's second law is exactly this statement. Note that pφp_\varphi is not mφ˙m\dot\varphi: the conjugate momentum to an angle is an angular momentum, with the wrong dimensions to be a linear one.

This is the cleanest instance of Noether's theorem: a continuous symmetry of LL gives a conserved quantity. Translation invariance gives linear momentum, rotation invariance gives angular momentum, and invariance under time translation gives energy.

Where intuition breaks

"L=T+VL = T + V." T−VT - V. The Hamiltonian is the one that is often T+VT+V, and swapping them is the commonest error in the topic.

"The generalised momentum is mass times velocity." pi=∂L/∂q˙ip_i = \partial L/\partial\dot q_i, which for an angle is an angular momentum, and in a magnetic field is mv+qAm\mathbf{v} + q\mathbf{A} rather than mvm\mathbf{v}.

"Every constraint reduces the degrees of freedom by one." Every holonomic one does. Non-holonomic constraints restrict the motion without reducing the configuration space.

"Constraint forces must be computed." Choosing coordinates that respect the constraints eliminates them entirely. If you need them, use multipliers deliberately.

"The pendulum period is independent of amplitude." Only in the small-angle approximation. The exact period involves an elliptic integral and grows without bound as the amplitude approaches π\pi.

"Hamilton's principle says the action is minimised." Stationary. As in the calculus of variations chapter, that is not the same thing, and for long enough times the action is a saddle rather than a minimum.

"Adding a total time derivative to LL changes the motion." It does not — LL and L+dF(q,t)dtL + \frac{dF(q,t)}{dt} give the same equations. LL is not unique, which is occasionally the point of a question.

The exam's angle

  1. Count degrees of freedom first: coordinates minus holonomic constraints. That fixes how many equations you need.
  2. Choose coordinates that satisfy the constraints automatically. The whole method rests on it.
  3. Write TT and VV separately, then L=T−VL = T-V. Most errors happen here rather than in the differentiation.
  4. Scan for cyclic coordinates before doing any work — each one is a conserved momentum and a first integral for free.
  5. Check dimensions of each conjugate momentum, which catches the angular-versus-linear confusion immediately.

The night before

  • L=T−VL = T - V; Hamilton's principle makes ∫L dt\int L\,dt stationary.
  • ddt∂L∂q˙i=∂L∂qi\frac{d}{dt}\frac{\partial L}{\partial\dot q_i} = \frac{\partial L}{\partial q_i}; nn second-order equations.
  • Holonomic constraints f(q,t)=0f(q,t)=0 each remove one degree of freedom, and good coordinates make constraint forces vanish. Non-holonomic ones do not work this way.
  • Pendulum: L=12mℓ2θ˙2+mgℓcos⁡θL = \tfrac12 m\ell^2\dot\theta^2 + mg\ell\cos\theta, θ¨=−gℓsin⁡θ\ddot\theta = -\frac g\ell\sin\theta, small-angle period 2πℓ/g2\pi\sqrt{\ell/g}.
  • pi=∂L/∂q˙ip_i = \partial L/\partial\dot q_i; cyclic coordinate ⇒\Rightarrow conserved momentum.
  • Central force: φ\varphi cyclic, pφ=mr2φ˙p_\varphi = mr^2\dot\varphi conserved — Kepler's second law.
  • Noether: continuous symmetry ⇒\Rightarrow conservation law.
  • LL is not unique: adding dF/dtdF/dt changes nothing.

See it move

Cyclic coordinates and the conservation laws they hand youinteractive

This visual is part of Trap Analysis

Central force in polar coordinates — angular momentum falls out of the Lagrangian in one line.

Unlock interactive visuals

More in Classical Mechanics

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Hamiltonian formalism and conservation laws

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 3