Module 1 · 8 min read · Free chapter
Constraints, generalised coordinates, Lagrange's equations, Hamilton's principle and Hamilton's equations
Start from zero: why another way to do mechanics?
Newton's laws work, but try them on a bead sliding on a spinning wire hoop. You must find the normal force from the wire, which you do not know and do not care about, at every instant. For a double pendulum or a spinning top, the force diagrams become a mess.
In 1788 Lagrange found a way around this. Describe the system by as few numbers as it really needs, write down one scalar, the kinetic minus the potential energy, and turn a handle. Constraint forces never appear.
Hamilton later recast the same mechanics as a principle about whole paths and as pairs of first-order equations. These forms are the direct ancestors of quantum mechanics and field theory.
Constraints and generalised coordinates
A constraint restricts the motion. A simple pendulum's bob must stay at distance l from the pivot: . Constraints that can be written as equations among the coordinates and time, , are holonomic. Each one removes one coordinate.
N free particles need 3N coordinates; with k holonomic constraints only are independent. These are the degrees of freedom, and any n independent quantities that fix the configuration are generalised coordinates . For the pendulum one angle θ is enough.
Non-holonomic constraints cannot be written this way. Gas molecules inside a box obey an inequality, . A coin rolling without slipping on a table obeys a relation among velocities that cannot be integrated into one among positions. Constraints are also scleronomic if they do not involve time and rheonomic if they do, like a bead on a hoop that is forced to rotate.
Ideal constraint forces do no work in any allowed (virtual) displacement: a frictionless wire pushes perpendicular to the bead's motion. This is the key assumption that lets them drop out.
Lagrange's equations
Define the Lagrangian as kinetic energy minus potential energy, written in generalised coordinates and velocities:
Starting from D'Alembert's principle (virtual work of constraint forces is zero), one obtains for each coordinate
Worked example 1: simple pendulum. With θ as the coordinate, and . Then and , giving in two lines, with no tension in sight.
Conjugate momentum and cyclic coordinates. The quantity is the generalised momentum conjugate to . If L does not contain at all, the coordinate is cyclic and Lagrange's equation says : that momentum is conserved. For a planet, has no φ, so , the angular momentum, is constant. That is Kepler's second law, read straight off the Lagrangian.
This is a deep pattern (Noether's theorem): invariance under time shifts gives energy conservation, under translations momentum conservation, and under rotations angular-momentum conservation.
Hamilton's principle
Instead of following the motion instant by instant, look at the whole path between a start at and an end at . For every imaginable path q(t) with those fixed end points, compute the action
Hamilton's principle says the path nature actually takes is the one for which S is stationary: for every small variation δq(t) that vanishes at the ends.
Derivation of Lagrange's equations. Vary the path, :
Integrate the second term by parts, using . The boundary term vanishes because δq = 0 at the ends, leaving
Since δq(t) is arbitrary, the bracket must vanish at every instant: these are the Euler-Lagrange equations. The derivation needs independent variations δq, so it holds directly for holonomic systems; non-holonomic constraints need Lagrange multipliers.
Why it matters. The same idea runs through physics. Light takes the path of stationary time (Fermat's principle). In quantum mechanics, Feynman showed every path contributes, weighted by , and the classical path is where they add up constructively.
Worked examples: Atwood machine and a bead on a rotating hoop
Worked example 2: Atwood machine. Masses and hang over a light pulley by a string of fixed length. One coordinate x (the drop of ) is enough. and . Lagrange's equation gives
with no string tension in the working.
Worked example 3: bead on a hoop rotating with angular speed ω. A smooth circular hoop of radius R spins about its vertical diameter; θ is the bead's angle from the bottom. The bead's speed has a part along the hoop, , and a part from the rotation, . So
Equilibria are at θ = 0 and, when , at . Below the critical speed the bead rests at the bottom; above it the bottom becomes unstable and the bead rides up to . Here the constraint is rheonomic, and is conserved but is not equal to T + V.
The Hamiltonian and Hamilton's equations
Lagrange gives n second-order equations in the . Hamilton trades them for 2n first-order equations in the and their momenta . Define the Hamiltonian
written entirely in terms of q and p. Then
If H has no explicit time dependence, it is conserved. When the constraints do not depend on time and V does not depend on velocities, T is quadratic in the velocities and H = T + V, the total energy.
Worked example 4: harmonic oscillator. gives and . Hamilton's equations: , . In the (x, p) plane, called phase space, each motion is an ellipse of constant H.
Why it matters. The Hamiltonian is the doorway to quantum mechanics: replacing p by turns H into the operator in Schrödinger's equation (the Schrödinger equation). Phase space is also the stage for statistical mechanics.
Mains lens: how UPSC asks this
Lagrangian mechanics is named in the Physics optional syllabus and spelt out in more detail in the Forest Service syllabus. Recent papers have asked candidates to derive Lagrange's equations from Hamilton's principle (15 marks), to derive the Euler-Lagrange equations for a holonomic system with n degrees of freedom and say whether the method applies to non-holonomic systems (15 marks), to write the Lagrangian and equations of motion for a given system (10 to 20 marks), and to find the Lagrangian of a symmetric top and its conserved momenta (15 marks).
Expect:
- Concepts (10 marks): holonomic and non-holonomic constraints with examples; degrees of freedom; cyclic coordinates.
- Derivations (15 marks): Lagrange's equations from Hamilton's principle; Hamilton's equations from L.
- Applications (10 to 20 marks): pendulum, Atwood machine, bead on a rotating wire, central force, spherical pendulum.
Model answer plan: "Derive the Euler-Lagrange equations from Hamilton's principle for a holonomic system with n degrees of freedom. Can it be applied to non-holonomic systems?" (15 marks).
- State the principle: with fixed end points.
- Vary each ; integrate the term by parts; boundary terms vanish.
- Holonomic ⇒ the n variations are independent ⇒ each bracket vanishes.
- Write the n Euler-Lagrange equations; one example such as the pendulum.
- Non-holonomic: the δq are not independent; the method needs Lagrange multipliers (or fails for inequalities).
Quick revision
- Degrees of freedom (k holonomic constraints).
- Holonomic: ; non-holonomic: velocity relations or inequalities.
- ; .
- Cyclic coordinate ⇒ conserved.
- Hamilton's principle: .
- ; , ; H = T + V for natural systems.
- Rotating hoop: bead leaves the bottom when .