Skip to content

Introduction to Lagrangian mechanics

6 min read

Short answer

Define the Lagrangian L=T−VL=T-V (kinetic minus potential energy) in terms of coordinates qq and velocities q˙\dot q. The motion obeys the Euler–Lagrange equation ddt∂L∂q˙=∂L∂q.\frac{d}{dt}\frac{\partial L}{\partial\dot q}=\frac{\partial L}{\partial q}. It reproduces Newton's second law, but works with any coordinates and handles constraints automatically.

Steps1Choose coordinates q that describe the system2Write T and V, then L = T − V3Compute d/dt (∂L/∂q̇) and ∂L/∂q4Set them equal: that is the equation of motionNo force diagram or tension needed
The method replaces vector force bookkeeping with scalar energies. Constraint forces never appear.

Why use it

For a bead on a rotating hoop, a double pendulum or a particle on a surface, drawing every force (including constraint forces) is painful. With generalized coordinates, you only need TT and VV as functions of the coordinates. The method also generalizes to fields, relativity and quantum theory.

The idea behind it

The equations come from the principle of least action: the actual path makes the action S=∫L dtS=\int L\,dt stationary. Applying calculus of variations to this statement yields the Euler–Lagrange equation. Conserved quantities appear when LL does not depend on a coordinate qq (then ∂L/∂q˙\partial L/\partial\dot q is constant).

Worked example

Use the Lagrangian to derive the equation of motion for a mass on a spring, and for a simple pendulum of length ℓ\ell.

Spring: L=12mx˙2−12kx2L=\tfrac12m\dot x^2-\tfrac12kx^2. Then ∂L∂x˙=mx˙\dfrac{\partial L}{\partial\dot x}=m\dot x, so ddt(mx˙)=mx¨\dfrac d{dt}(m\dot x)=m\ddot x, and ∂L∂x=−kx\dfrac{\partial L}{\partial x}=-kx. Hence mx¨=−kxm\ddot x=-kx, which is Hooke's law.

Pendulum (coordinate θ\theta): L=12mℓ2θ˙2+mgℓcos⁡θL=\tfrac12m\ell^2\dot\theta^2+mg\ell\cos\theta. Then mℓ2θ¨=−mgℓsin⁡θm\ell^2\ddot\theta=-mg\ell\sin\theta, i.e. θ¨=−gℓsin⁡θ\ddot\theta=-\dfrac g\ell\sin\theta.

Try it yourself

For a free particle in one dimension, L=12mx˙2L=\tfrac12m\dot x^2. What does the Euler–Lagrange equation say?

Show the answer

∂L∂x=0\dfrac{\partial L}{\partial x}=0 and ddt(mx˙)=0\dfrac d{dt}(m\dot x)=0, so mx¨=0m\ddot x=0: constant velocity, Newton's first law.

Keep going with practice

Lagrangian mechanics is the capstone of Vidi's Classical Mechanics course.