B1 · Lesson 46 · Lagrange's equations
Equations of motion from energy alone, for pendulums, hoops and circuits
Newton's laws need every force, constraint forces included: the tension in a pendulum string, the push of a track, the normal force of a hoop. Lagrange's method skips them. Write the kinetic and potential energies in whatever coordinates describe the system naturally (an angle, a distance along a track, a charge), form , and a single rule produces the equations of motion. The constraint forces never appear. The same rule describes circuits, with charge as the coordinate, which is why it's the standard tool for electromechanical systems like motors, speakers and MEMS sensors.
- A bead slides on a vertical hoop of radius 0.1 m that spins about its vertical axis at Ω.
- Below rad/s the bead rests at the bottom. Above it, the bottom becomes unstable and the bead rises to a new equilibrium where .
- The readouts give the equilibrium angle and the frequency of small oscillations about it, both found from the Lagrangian without ever computing the hoop's force on the bead.
Predict
The Lagrangian of an LC circuit is . What equation does Lagrange's rule give?
. Here the inductor's energy plays the role of kinetic energy and the capacitor's the role of potential energy, and the rule gives exactly Kirchhoff's voltage law. Mass maps to inductance and spring stiffness to , the analogy of lesson 43, derived rather than assumed.
Name it
The recipe
- Choose generalized coordinates , as many as the system's degrees of freedom, that automatically satisfy the constraints.
- Write the kinetic energy T and potential energy V in terms of the and .
- Form the Lagrangian .
- For each coordinate, .
Constraint forces that do no work never enter. Dissipation and driving forces can be added on the right-hand side as generalized forces.
Conservation laws
- If L doesn't depend on some (a cyclic coordinate), its momentum is conserved.
- If L doesn't depend explicitly on time, the energy is conserved.
Small oscillations
At an equilibrium (where ), expand to second order: and . The oscillation frequency is , stable if .
Circuits
With charges as coordinates, inductors contribute to T, capacitors to V, and resistors a dissipative force . Coupled electromechanical systems, such as a capacitor plate on a spring, put both kinds of term in one Lagrangian.
Worked example
Derive the Atwood machine's acceleration with Lagrange's method.
Show the solution
- Choose a coordinate. One is enough: the distance that has descended.
- Kinetic and potential energy.
- The Lagrangian.
- Apply the rule. so
- What it saved. The string tension never appeared; with Newton's method it would have needed two equations and an elimination.
Answer , with descending.
Worked example
A bead slides on a hoop of radius 0.1 m spinning at 15 rad/s about its vertical diameter. Where does it rest, and how fast does it oscillate about that point?
Show the solution
- Kinetic and potential energy. With θ measured from the bottom,
- Effective potential. stationary where
- Where it rests. Since m/s² exceeds , the bottom is unstable and the bead sits at
- Oscillation frequency. Expanding the effective potential there gives
- Slower spins. Below rad/s, only the bottom is stable.
Answer the bead rests at 64.2° from the bottom and oscillates about it at 13.5 rad/s.
Worked example
A 1 kg mass on a 100 N/m spring hangs vertically. Use the Lagrangian to find the equilibrium and the oscillation frequency.
Show the solution
- The Lagrangian. With measured downward from the spring's natural length,
- Apply the rule.
- Equilibrium and frequency. Equilibrium is at m, and about it so ω = 10 rad/s, unchanged by gravity.
- What gravity does. Gravity only shifts the equilibrium; it adds no stiffness, which is why a vertical spring oscillates at the same frequency as a horizontal one.
Answer the equilibrium is 0.098 m below the natural length, and the mass oscillates at 10 rad/s.
Check
What acceleration does Lagrange's method give for an Atwood machine with 1 kg and 3 kg?
Write units the way you normally would: 1.5 m/s^2, 1500 mm/s^2 and 0.0015 km/s^2 are the same answer.
Check
A bead on a hoop of radius 0.1 m spinning at 12 rad/s.
(a)
At what angle from the bottom does it rest?
(b)
At what angular frequency does it oscillate about that point?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
Above what spin rate does the bottom of a hoop of radius 0.2 m stop being stable for the bead?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
An LC circuit has L = 1 mH and C = 1 µF. At what angular frequency does Lagrange's equation say it oscillates?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
A mass 0.5 kg hangs on a 50 N/m spring; L = .
(a)
Where is the equilibrium, below the natural length?
Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.
(b)
What is the oscillation frequency about it?
Check
A system's Lagrangian doesn't depend on the angle φ, though it depends on . What follows?
Check
A pendulum of mass m and length l, with angle θ (write t) and angular velocity (write w). Use g = 9.8.
Step 1
What is , taking V = 0 at the pivot's height?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What angular acceleration does Lagrange's equation give?
Check
Write hoop(R, W) for a bead on a hoop of radius R spinning at W rad/s (g = 9.8). Return (angle, omega): the stable equilibrium's angle from the bottom in degrees, and the small-oscillation angular frequency about it. Below the critical spin the bead rests at the bottom with ; above it, and .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why don't constraint forces appear in Lagrange's equations?
Constraint forces, like a string's tension or a track's normal force, act perpendicular to the directions the system is allowed to move, so they do no work on any motion consistent with the constraints. Lagrange's method uses coordinates that move only in those allowed directions, so every possible displacement is one the constraint forces can't do work on. The equations come from how energy changes along those coordinates, and since the constraint forces contribute nothing to that, they drop out automatically. If you need them, as for checking whether a string goes slack, you can recover them afterward from Newton's laws.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.