Classical Mechanics · Upper Division

Lagrangian Mechanics

Instead of forces, Lagrangian mechanics asks: what path minimizes the action? This single variational principle contains all of classical mechanics — and generalizes naturally to quantum fields and general relativity.

PrerequisitesNewton's laws (Ch. 3) · Energy (Ch. 4) · Calculus (Ch. 25) · Differential equations (Ch. 26)
Learning Goals
  • Choose generalized coordinates appropriate to a constrained system and count the degrees of freedom.
  • Construct the Lagrangian L=T−VL = T - V and derive the equations of motion using the Euler-Lagrange equation.
  • Identify cyclic coordinates and read off the corresponding conserved momenta directly.
  • State Noether's theorem and connect each continuous symmetry to its conserved quantity.
  • Apply the Lagrangian method to multi-body systems such as the Atwood machine and double pendulum.

L.1 Generalized Coordinates

The power of Lagrangian mechanics lies in the freedom to choose any coordinates that describe the system's configuration — not just Cartesian x, y, z. These aregeneralized coordinates qᵢ: angles, arc lengths, normal mode amplitudes, whatever parametrizes the space of possible configurations.

A system with N particles in 3D has 3N degrees of freedom. Constraints (a bead on a wire, a pendulum on a rod) reduce this number. The number of independent generalized coordinates equals the number of degrees of freedom after constraints are imposed.

Definition L.1 — The Lagrangian
The Lagrangian L of a mechanical system is the difference between kinetic energy T and potential energy V:L(q,q˙,t)=T−VL(q, \dot{q}, t) = T - Vwhere q=(q1,q2,⋯ )q = (q_{1}, q_{2}, \cdots) are the generalized coordinates and q˙=dq/dt\dot{q} = dq/dt their time derivatives.

L.2 The Euler-Lagrange Equation

The principle of stationary action(Hamilton's principle) states that the actual path taken by a system between two configurations is the one for which the action S = ∫L dt is stationary (first variation vanishes). Applying variational calculus yields:

ddt(∂L∂q˙i)−∂L∂qi=0(Euler-Lagrange equation, for each i)\frac{d}{dt}\left(\frac{\partial L}{\partial \dot q_i}\right) - \frac{\partial L}{\partial q_i} = 0 \qquad \text{(Euler-Lagrange equation, for each }i\text{)}(L.1)

This is one equation per degree of freedom. Remarkably, it automatically handles constraints — there is no need to compute constraint forces. The equation is alsocovariant: it takes the same form in any coordinate system.

Example L.1 — Simple Pendulum

Derive the equation of motion for a pendulum (mass m, length l) using the Lagrangian. Use the angle θ as the generalized coordinate.

Kinetic energy:T=12m(lθ˙)2=12ml2θ˙2T = \frac{1}{2}m(l\dot{\theta})^{2} = \frac{1}{2}ml^{2}\dot{\theta}^{2}
Potential energy:V=−mglcos⁡θV = -mgl \cos \theta (taking pivot as origin, downward positive)
Lagrangian:L=T−V=12ml2θ˙2+mglcos⁡θL = T - V = \frac{1}{2}ml^{2}\dot{\theta}^{2} + mgl \cos \theta
∂L/∂θ˙\partial L/\partial\dot{\theta}:= ml2θ˙→d/dt(ml2θ˙)=ml2θ¨ml^{2}\dot{\theta} \qquad \to d/dt(ml^{2}\dot{\theta}) = ml^{2}\ddot{\theta}
∂L/∂θ\partial L/\partial\theta:= −mglsin⁡θ-mgl \sin \theta
E-L equation:ml2θ¨+mglsin⁡θ=0→θ¨=−(g/l)sin⁡θ✓ml^{2}\ddot{\theta} + mgl \sin \theta = 0 \quad \to \quad \ddot{\theta} = -(g/l) \sin \theta ✓
Example L.2 — Atwood Machine

Two masses m1m_{1} and m2m_{2} hang over a frictionless pulley. Find the acceleration using one generalized coordinate x (extension of m1m_{1} below its initial position).

Constraint:When m1m_{1} descends by x,m2x, m_{2} rises by x. Both speeds = |ẋ|.
T:T=12(m1+m2)x˙2T = \frac{1}{2}(m_{1}+m_{2})\dot{x}^{2}
V:V=−m1gx+m2gx=(m2−m1)gxV = -m_{1}gx + m_{2}gx = (m_{2}-m_{1})gx   (taking initial position as reference)
L:L=12(m1+m2)x˙2−(m2−m1)gxL = \frac{1}{2}(m_{1}+m_{2})\dot{x}^{2} - (m_{2}-m_{1})gx
E-L:d/dt[(m1+m2)x˙]−[−(m2−m1)g]=0→x¨=(m1−m2)g/(m1+m2)✓d/dt[(m_{1}+m_{2})\dot{x}] - [-(m_{2}-m_{1})g] = 0 \quad \to \quad \ddot{x} = (m_{1}-m_{2})g/(m_{1}+m_{2}) ✓

L.3 Conserved Quantities and Noether's Theorem

If the Lagrangian does not depend explicitly on a coordinate qᵢ (a cyclic coordinate), then the Euler-Lagrange equation gives d/dt(∂L/∂q̇ᵢ) = 0 — the conjugate momentum pᵢ = ∂L/∂q̇ᵢ is conserved.

Theorem L.1 — Noether's Theorem (1918)
For every continuous symmetry of the action, there is a corresponding conserved quantity:Time translation symmetry  →  conservation of energy (Hamiltonian H)Spatial translation symmetry  →  conservation of linear momentumRotational symmetry  →  conservation of angular momentumThis is the deepest explanation of conservation laws in physics — they are not axioms but consequences of the symmetry structure of nature.

The Hamiltonian H = Σ(pᵢq̇ᵢ) − L equals the total energy for natural systems (no explicit time dependence, no velocity-dependent potentials). The Hamiltonian formulation replaces 2nd-order ODEs in q with 1st-order Hamilton's equations in phase space (q,p): q̇ = ∂H/∂p, ṗ = −∂H/∂q.

Example L.3 — Central Force — Angular Momentum Conservation

A particle moves under a central force V(r) only. Use polar coordinates (r,ϕr, \phi). Show that angular momentum is conserved.

T in polar:T=12m(r˙2+r2ϕ˙2)T = \frac{1}{2}m(\dot{r}^{2} + r^{2}\dot{\phi}^{2})
L:L=12m(r˙2+r2ϕ˙2)−V(r)L = \frac{1}{2}m(\dot{r}^{2} + r^{2}\dot{\phi}^{2}) - V(r)
φ is cyclic:∂L/∂ϕ=0→d/dt(∂L/∂ϕ˙)=0→d/dt(mr2ϕ˙)=0\partial L/\partial\phi = 0 \to d/dt(\partial L/\partial\dot{\phi}) = 0 \to d/dt(mr^{2}\dot{\phi}) = 0
Conserved:ℓ = mr2ϕ˙mr^{2}\dot{\phi} = const — this is the angular momentum! No force calculation needed.
Definition L.2 — Common Traps
  • Generalized coordinates are not necessarily distances: angles, mode amplitudes, and constraints can all serve as coordinates.
  • The Lagrangian is not usually energy: L=T−VL = T - V, while total mechanical energy is T + V for natural systems.
  • Constraints reduce degrees of freedom: count coordinates after applying constraints, not before.
  • Cyclic means absent from L: if q does not appear, its conjugate momentum is conserved.
  • Stationary action is broader than minimum action: the physical path makes the first variation vanish; it need not be a true minimum.
Exercises — L.1–L.3 Lagrangian Mechanics
1.
A bead slides without friction on a straight wire inclined at angle α. Find the equation of motion using x (distance along wire) as the generalized coordinate.
m/s²
Straightforward
2.Write the Lagrangian for a double pendulum (m1,l1m_{1},l_{1}) and (m2,l2m_{2},l_{2}). What makes this system chaotic at large amplitudes?
Intermediate
3.Find the Lagrangian for a spherical pendulum. Identify the cyclic coordinate and its conserved quantity. What condition gives uniform circular motion (conical pendulum)?
Intermediate
4.Explicitly derive the conserved quantity associated with rotational symmetry around the z-axis using Noether's theorem. Show that it equals the z-component of angular momentum.
Challenging
Key Takeaways
  • Generalized coordinates q describe configuration in any convenient parameterization.
  • Lagrangian L=T−VL = T - V; stationary action → Euler-Lagrange equations d/dt(∂L/∂q˙)=∂L/∂qd/dt(\partial L/\partial \dot{q}) = \partial L/\partial q.
  • Cyclic coordinate (∂L/∂q=0\partial L/\partial q = 0) → conjugate momentum p=∂L/∂q˙p = \partial L/\partial \dot{q} is conserved.
  • Noether's theorem: every continuous symmetry corresponds to a conserved quantity.
  • Time symmetry → energy; space translation → momentum; rotation → angular momentum.
  • Constraints are handled automatically — no need to compute constraint forces.