A block slides down the face of a wedge, and the wedge is free to slide on the floor. Try that with a free body diagram. The block pushes on the wedge, the wedge pushes back, the floor pushes up, and the block's acceleration is measured in the ground frame while its motion is naturally described along a face that is itself accelerating. Three unknown forces, two frames, a lot of sign errors.
Now notice something. The normal force between block and wedge is the only thing coupling them, it is the thing you had to solve for, and it does not appear anywhere in the answer. That is the pattern. In constrained problems most of the forces you work hardest to find are bookkeeping. Lagrangian mechanics is a way of writing the equations of motion in which those forces never get written down at all. You pay for it with a little calculus, and the calculus is the same every time.
Generalized coordinates
Start by counting. A system's degrees of freedom is the number of numbers you need to pin down where everything is. A pendulum on a rigid rod: one number, the angle . A bead threaded on a fixed parabolic wire: one, because determines . The block-and-wedge: two: how far the wedge has slid, and how far the block has slid along its face.
Any set of independent numbers that does the job is a set of generalized coordinates, written They need not be lengths. An angle is fine, an arc length is fine, a mixture is fine.
The whole trick is in the choice. If you describe the bead on the wire by and separately, you need an extra equation, , and the wire has to push on the bead to enforce it, so a normal force enters your equations. If you describe it by alone, the constraint is already true by construction and there is nothing left for the wire to enforce. The constraint force has been absorbed into the choice of coordinate.
This works because ideal constraint forces do no work. A normal force is perpendicular to the surface, and the allowed motion is along the surface. A rod's tension is along the rod, and the bob moves perpendicular to it. A rolling contact point is instantaneously at rest. None of them transfers energy, so none of them shows up in an energy-based formulation.
The Lagrangian and the equation that uses it
Write the total kinetic energy and the total potential energy of the whole system, both expressed in your generalized coordinates and their time derivatives. The Lagrangian is their difference:
Not the sum. The sum is the energy, which is a number you already know how to use; the difference is the thing whose derivatives give you motion. Then for every coordinate in your list, one equation:
That is the Euler–Lagrange equation. The dot means a time derivative, . The symbol means a partial derivative: differentiate with respect to that one slot and treat all the others, including versus , as independent constants while you do it.
Read the two sides physically. For a free particle in one dimension, , so , which is momentum, and , which is force. The equation says . Newton's second law is the special case; Euler–Lagrange is what that law looks like when you are allowed to use any coordinates you like, including ones that are angles or that ride on moving objects.
The recipe, once and for all:
- Count degrees of freedom and pick that many coordinates.
- Write every mass's position in fixed ground axes in terms of those coordinates.
- Differentiate those positions to get velocities, square them, and sum to get .
- Write in the same coordinates.
- Form , take the two derivatives for each coordinate, and set them equal.
Step 2 is the one people skip, and it is the one that goes wrong.
Kinetic energy must be measured in an inertial frame. If a pendulum hangs from a cart that is itself moving, the bob's speed is not . Write the bob's position as and , differentiate both, then square and add. You will get a cross term, and that cross term is the entire physics of the coupling. Losing it is the most common way to get a wrong answer that still looks plausible.
Example 1: a pendulum, from scratch
A bob of mass on a massless rod of length m, pivot fixed, measured from straight down. One degree of freedom.
The bob sits at , . Differentiating, and , so
Height above the lowest point is , so and
Now the two derivatives. Treating as the variable, . Treating as the variable, only the potential term depends on it, and , so . Taking of the first gives . Setting them equal:
For small , , so , which is simple harmonic motion with rad/s. The rod tension never appeared, which is the point.
Quick check
In forming the Lagrangian for a system, which quantity do you subtract from which?
Example 2: the free wedge
Block of mass kg on the face of a wedge of mass kg, everything frictionless. Coordinates: for the wedge's position along the floor, for the block's distance down the face, measured relative to the wedge.
The wedge's velocity is horizontally. The block's velocity in the ground frame is the wedge's velocity plus the block's velocity relative to the wedge, which has magnitude pointing down the face: horizontal component , vertical component . Square and add:
There is the cross term. The kinetic energy is . The block drops by , so , and
Coordinate does not appear in , only does. So and the Euler–Lagrange equation says stays constant. That is just horizontal momentum conservation, handed to you for free. Differentiating once,
For : and , giving
Two linear equations, two unknowns. From the first, . Substitute:
Multiply through by and collect:
Since , the magnitude is
Numbers: , . Top: . Bottom: . So m/s². Figure 1 lets you check the limits: make huge and the wedge acceleration goes to zero, as it must.
A coordinate that appears in only through its derivative is called ignorable or cyclic, and its conjugate momentum is conserved. An ignorable position gives conservation of linear momentum. An ignorable angle gives conservation of angular momentum: that is why a puck on a string pulled through a hole in a table obeys , so shrinking the radius from 0.50 m to 0.20 m multiplies a 2.0 m/s speed by 2.5.
Rigid bodies and rolling
Nothing changes except that a rigid body's kinetic energy has two pieces: for the centre of mass plus for the spin about it. Rolling without slipping is a constraint, so it should be built into the coordinate, not enforced by a friction force.
A solid cylinder rolling down a incline, with measured along the slope: rolling means , and , so
with . Then and , so and
Friction never appeared. Same move for a massive pulley: the string's speed is , the pulley spins at , and its contribution to is , so the pulley behaves exactly like an extra of mass being dragged along. The always cancels.
Quick check
A coordinate q appears in the Lagrangian only as q-dot, never as q itself. What follows?
Small oscillations about equilibrium
Most of the hard problems in this unit ask for an oscillation frequency, and there is a shortcut. Suppose one coordinate, and suppose near the equilibrium value you can write the Lagrangian in the form
where and are constants. Euler–Lagrange gives , so
So the job is to expand to second order in the velocity and to second order in the displacement, and read off the two coefficients. Use and , and keep the quadratic terms, because the constant and linear ones contribute nothing.
For a bead on the parabola : , so near the bottom, giving . And , so and . With m⁻¹ that is rad/s.
Example 3: the bead on a spinning hoop
A bead slides on a hoop of radius m that is forced to spin about its vertical diameter at rad/s. Let be the angle from the bottom. One degree of freedom, since the spin is imposed rather than free.
The bead is a distance from the axis, so it is carried around at speed , perpendicular to the hoop plane. Within the plane it moves at . Those are perpendicular, so
The second term of has no in it, so as far as the equation is concerned it acts like a negative potential. Collect everything that depends on alone into an effective potential
and the problem becomes a particle of "mass" in that potential. Equilibrium is where :
One root is , the bottom. The other exists only if is at most 1, that is if . That threshold is the critical spin rate: rad/s. Below it the bead sits at the bottom; above it the bottom turns into a hump and two tilted minima appear.
Here exceeds 4.95, so , giving .
For the oscillation frequency about that tilted spot, differentiate again:
Evaluate at , using . The first term is and the second is , so the sum is . Dividing by the coefficient of :
Below critical the same second derivative at gives , so , which goes to zero exactly at the critical rate and tells you the bottom has gone unstable.
Two coordinates at once: normal modes
When two coordinates are both small, expand to quadratic order and you get
Assume both coordinates oscillate at the same frequency, , substitute, and you are left with a pair of linear equations that have a non-zero solution only when the determinant vanishes. The condition is : a quadratic in giving two roots, the two normal mode frequencies.
Take a pendulum of length m, bob kg, hanging from a cart of mass kg that is free to slide. The bob's position is and , so
is ignorable, so is conserved; starting from rest it is zero, so for small . Put that back into the equation, , and the term shrinks the effective inertia:
Numbers: , so rad/s: faster than the rad/s a fixed pivot would give, because the recoiling cart lets the bob take a shorter path. One of the two modes here is the free sliding of the whole system, at . Put a spring on the cart and that zero mode becomes a real frequency, and you must solve the full determinant.
The double pendulum works the same way, with and ; the only extra care is writing the lower bob's position as the sum of two rod vectors before differentiating. For two equal masses on two equal rods of length the determinant gives , which for m is rad/s and rad/s.
Recognising when to reach for this
Four signals, any one of which is enough:
More than one body, tied together. Carts with pendulums, wedges with blocks, double Atwood machines, a chain sliding off a table. Each internal tension or normal force you would otherwise have to name is a reason to switch.
A support that is free to move. The moment the pivot, the rail, or the ramp can recoil, Newtonian setup gets frame-confusing while the Lagrangian just picks up a cross term.
The question asks for a frequency of small oscillations. Expand to quadratic order and read off . This is faster than any torque analysis and it never asks you to identify a restoring force.
Something rotates or is forced at a fixed rate. A spinning hoop, a rotating rod, a turntable groove. Fold the imposed motion into , sweep the -only terms into an effective potential, and read equilibria off its minima.
The counter-signal matters too. If a problem asks for a constraint force (the tension in the rod, the normal force from the sphere, the angle where a block leaves a surface) the Lagrangian will not hand it to you directly, because you deliberately threw it away. Get the motion from the Lagrangian, then go back to in the radial direction for that one force. That is exactly how the block-leaving-a-sphere problem goes: energy conservation gives as a function of angle, then with gives , so .
The effective-potential idea you met with the spinning hoop is the same machinery that governs orbits, and the two-coordinate determinant is the engine behind coupled oscillators and normal modes, which is where this goes next.