Lagrangian mechanics from the action principle
8 min read
Short answer
Define the Lagrangian (kinetic minus potential energy). The actual motion makes the action stationary, which leads to the Euler–Lagrange equations . They reproduce but work in any coordinates and handle constraints automatically.
The principle of stationary action
Among all paths between two fixed endpoints in a fixed time, the path nature takes is one for which the action is stationary: nearby paths change only to second order, like the bottom of a valley. (It is often a minimum for short times, but "stationary" is the correct word.)
Requiring the first variation to vanish for every small deformation that fixes the endpoints, and integrating by parts, gives the Euler–Lagrange equation for each coordinate .
It reproduces Newton
For one particle, . Then , so , and . The equation reads : Newton's second law.
The payoff is generality. You can choose any coordinates (angles, distances along a track) and write and in them. Forces of constraint, like the tension that keeps a pendulum bob at a fixed distance, never appear.
Conserved quantities for free
If does not depend on a coordinate (a cyclic coordinate), then and the conjugate momentum is conserved. This is the concrete form of the symmetry-conservation link: an angle that does not appear in gives conserved angular momentum. If has no explicit time dependence, the energy function is conserved.
Worked example
Derive the equation of motion of a simple pendulum of length and mass using the angle from the downward vertical.
The bob moves on a circle: , and .
, so ; and .
Euler–Lagrange gives , so . The string tension never entered.
Try it yourself
Write the Lagrangian of a mass on a spring of constant and derive its equation of motion.
Show the answer
. Then , so : simple harmonic motion with .
Keep going with practice
Vidi's mechanics lessons introduce generalized coordinates, the step that makes the Lagrangian approach practical.