Lagrangian Mechanics
sources:
- text: “Goldstein, H., Poole, C., & Safko, J. (2002). Classical Mechanics (3rd ed.). Addison Wesley.”
- text: “Landau, L. D., & Lifshitz, E. M. (1976). Mechanics (3rd ed.). Butterworth-Heinemann.”
Recall prompts
Section titled “Recall prompts”Attempt these from memory before reading.
- Write down the Euler-Lagrange equation. Which term is the “generalised momentum”?
- What does assume about the forces and the constraints?
- State Hamilton’s principle. Is the action minimised or only stationary?
- What is a cyclic coordinate, and what is conserved when you have one?
- For a bead on a rotating hoop, when does a new stable equilibrium appear?
Motivation: why not just use
Section titled “Motivation: why not just use F=maF = maF=ma”Newton’s second law is a vector equation. For a system of particles in three dimensions that is coupled second-order equations, and the forces of constraint — normal forces, tension, the normal reaction of a rail — all appear in them. Most of the effort in a Newtonian solution goes into computing forces you do not care about, only to eliminate them at the end.
The Lagrangian formulation removes them at the outset by working in generalised coordinates: the smallest set of numbers that specifies the configuration once the constraints are accounted for. A bead constrained to a hoop needs one number, not three. A double pendulum needs two, not six.
The price is that the equations become second-order in the generalised coordinates with no explicit force bookkeeping. The reward is threefold:
- The constraint forces never appear.
- The choice of coordinates is free, so you pick the ones that make the problem easy.
- Symmetries become visible, and by Noether’s theorem each one hands you a conserved quantity for nothing.
The structure of the whole subject is a single scalar function — the Lagrangian — plus one equation.
3.1 The Lagrangian
Section titled “3.1 The Lagrangian”The Lagrangian of a system is defined as
Where is the kinetic energy and is the potential energy.
3.2 Derivation of the Euler-Lagrange Equation from D”Alembert’s Principle
Section titled “3.2 Derivation of the Euler-Lagrange Equation from D”Alembert’s Principle”Theorem 3.1 (Euler-Lagrange from D’Alembert). The equations of motion for a holonomic system with ideal constraints are:
Proof. Start from D’Alembert’s principle with only applied forces (ideal constraints):
Express the virtual displacement in terms of generalised coordinates:
First term (applied forces). For a conservative system, So:
Defining the generalised force For conservative forces .
Second term (inertia). Using (which holds when ):
Now:
Using and :
Combining both terms in D’Alembert’s principle:
For conservative forces, . Since and is independent of :
Since the are independent (and we have degrees of freedom):
3.3 Hamilton’s Principle (Action Formulation)
Section titled “3.3 Hamilton’s Principle (Action Formulation)”Theorem 3.2 (Hamilton’s Principle). The actual path of a system between times and is The one that makes the action
Stationary.
Theorem 3.3 (Euler-Lagrange Equation from Hamilton’s Principle). The path that makes stationary satisfies
Proof (for one degree of freedom). Consider a variation where . The variation of the action:
Integrating the second term by parts:
The boundary term vanishes since . For for all By the fundamental lemma of the calculus of variations:
Intuition. Hamilton’s principle says nature is “lazy”: out of all possible paths connecting two configurations, the actual path taken is the one that makes the action stationary. This is a profound generalisation of Fermat’s principle of least time in optics.
3.4 Worked Example: Simple Pendulum
Section titled “3.4 Worked Example: Simple Pendulum”Problem. Derive the equation of motion for a simple pendulum of length and mass .
Solution. Take as the generalised coordinate. The position of the bob is .
Euler-Lagrange equation:
For small angles (): Giving simple Harmonic motion with .
3.5 Worked Example: Double Pendulum
Section titled “3.5 Worked Example: Double Pendulum”Problem. Derive the equations of motion for a double pendulum: mass on rod Mass on rod attached to .
Solution. Generalised coordinates: angles from the vertical. Position of :
Position of :
Velocities:
Kinetic energy:
Potential energy:
The Euler-Lagrange equations for and yield two coupled second-order ODEs. For equal masses and lengths (, ):
3.6 Worked Example: Atwood Machine
Section titled “3.6 Worked Example: Atwood Machine”Problem. Two masses and () are connected by a massless inextensible string over a frictionless pulley. Find the acceleration using the Lagrangian.
Solution
Choose the vertical displacement of (downward positive) as the generalised coordinate. Since the string is inextensible, moves up by .
Euler-Lagrange equation:
3.7 Worked Example: Bead on a Rotating Hoop
Section titled “3.7 Worked Example: Bead on a Rotating Hoop”Problem. A bead of mass slides without friction on a circular hoop of radius . The hoop rotates about a vertical diameter with constant angular velocity . Find the equilibrium positions and their stability.
Solution
Use the angle from the bottom of the hoop as the generalised coordinate. The position of the bead in cylindrical coordinates :
Velocity:
Kinetic energy:
Potential energy:
Lagrangian:
Euler-Lagrange equation:
Equilibrium (, ): giving (bottom), or which exists only when .
For : only is stable. For : the bottom becomes unstable and the new equilibria at are stable.
3.8 Cyclic Coordinates and Conserved Quantities
Section titled “3.8 Cyclic Coordinates and Conserved Quantities”Definition. A coordinate is cyclic (or ignorable) if it does not appear explicitly in the Lagrangian: .
Theorem 3.4. If is cyclic, the conjugate generalised momentum is a constant of motion.
Proof. The Euler-Lagrange equation for a cyclic coordinate is:
Intuition. Cyclic coordinates correspond to symmetries of the system. Each symmetry gives a conserved quantity --- this is the essence of Noether’s theorem (Section 5).
3.9 Lagrange Multipliers for Constraints
Section titled “3.9 Lagrange Multipliers for Constraints”When holonomic constraints cannot be eliminated by coordinate choice, introduce Lagrange multipliers :
The multipliers are proportional to the constraint forces.
3.10 The Energy Function and Its Relation to the Hamiltonian
Section titled “3.10 The Energy Function and Its Relation to the Hamiltonian”Definition. The energy function (also called the Jacobi integral) is:
Theorem 3.5. If does not depend explicitly on time, then is conserved. Furthermore, if the transformation does not depend explicitly on time and is velocity-independent, then (the total energy).
Proof. Taking the total time derivative:
The terms cancel. Using the Euler-Lagrange equation :
If Then .
For the second part, when (scleronomic) and :
Is a homogeneous quadratic form in . By Euler’s theorem for homogeneous functions:
Since (as is velocity-independent):
The clearest single picture of what the formalism buys is the rotating hoop of worked example 3.7, whose equilibria bifurcate as the hoop speeds up.
stable equilibria of the bead versus rotation rate omega
theta_eq pi | * * * | * pi/2 * | * 0 *-------* <- bottom stays stable below +-------------------------------- omega g/sqrt(R) omega^2 R > gBelow the only equilibrium is the bottom of the hoop. Above it, the bottom becomes unstable and two new stable equilibria appear at — a pitchfork bifurcation, and the same mechanism that keeps a rider upright on a rotating fairground cylinder.
Multiple representations of the same fact, for the same system:
- Words. Spin the hoop fast enough and the bead prefers a position off the bottom.
- Equation. .
- Equilibria. always; when .
- Stability. The second derivative of the effective potential changes sign at , which is why the bottom turns over.
Intuition
Section titled “Intuition”The Lagrangian formulation is like giving nature a GPS route planner. Instead of tracking every force individually, you describe the landscape of kinetic and potential energy, and nature automatically picks the path that makes the action stationary. Think of a ball rolling down a hill: you do not need to compute each force component if you know the shape of the terrain. The Lagrangian L = T - V encodes this terrain, and the Euler-Lagrange equations are nature’s optimization algorithm. Cyclic coordinates are like flat stretches of the landscape where nothing changes in a particular direction, so the corresponding momentum stays constant. The whole framework is coordinate-independent, meaning you can describe the same physical system using any convenient set of variables without changing the physics.
Counterexamples worth knowing by name
Section titled “Counterexamples worth knowing by name”| Claim | True? | Counterexample |
|---|---|---|
| always gives correct equations | no | a charged particle in an electromagnetic field needs |
| always equals | no | the rotating hoop: rheonomic constraints make |
| The action is minimised | no | it is stationary; a saddle point is enough |
| Constraint forces appear in the equations | no | they are eliminated by generalised coordinates |
| Cyclic coordinates always exist | no | the double pendulum has none |
The electromagnetic Lagrangian is the one to remember. It shows that is not the definition of a Lagrangian but a special case, and that the general object is whatever scalar makes the action stationary.
Interleaving problems
Section titled “Interleaving problems”Mix these with material from the generalised coordinates page, Noether’s theorem, and the ODE module — selecting the method is the part blocked practice never trains.
- (Constraints.) A particle slides on a sphere of radius under gravity. Write the Lagrangian, show the constraint is holonomic, and eliminate it. At what angle does the particle leave the sphere?
- (Noether.) Show that translational symmetry of implies conservation of total momentum, and rotational symmetry implies conservation of angular momentum, using $\frac{d}{dt}\left(\sum_j \dot q_j \frac{\partial L}{\partial \dot q_j}
- L\right)$ for the generator of the symmetry.
- (ODEs.) Linearise the double pendulum equations about the equilibrium , find the normal mode frequencies, and show they reduce to and when the two bobs are identical.
- (Calculus of variations.) Show that the shortest path between two points on a cylinder is a helix, by writing the arc length as an action and applying the Euler-Lagrange equation.
- (Energy.) For the rotating hoop, compute , show it is conserved, and show explicitly that .
Cross-References
Section titled “Cross-References”Generalised Coordinates and Constraints: Generalised coordinates and constraints provide the foundation for formulating the Lagrangian.
Hamiltonian Mechanics: The Hamiltonian formalism extends Lagrangian mechanics to phase space and provides energy conservation.
Noether’s Theorem: Noether’s theorem connects symmetries of the Lagrangian to conserved quantities.
3.11 Common Mistakes
Section titled “3.11 Common Mistakes”Mistake 1: Including constraint forces in the Lagrangian The Lagrangian formulation eliminates constraint forces (like normal forces or tension in a string) by choosing appropriate generalised coordinates. A common error is adding the constraint force back into the Euler-Lagrange equations. Constraint forces do no work in holonomic systems and should not appear in .
Mistake 2: Assuming always gives the correct equations The Lagrangian is valid when the potential is velocity-independent and the coordinate transformation is scleronomic (time-independent). For rheonomic constraints or velocity-dependent potentials, the correct Lagrangian may differ. Always verify the conditions under which applies.
Mistake 3: Forgetting that the action is stationary, not necessarily minimised Hamilton’s principle states the action is stationary (), not necessarily minimised. The actual path can be a saddle point or even a local maximum of the action. The stationarity condition is what yields the Euler-Lagrange equations, and the second variation determines whether the path is a minimum.