This page is a drill . The parent note showed you the machinery; here we push it into every corner — signs of the potential, curved coordinates, coupled coordinates, coordinates that don't even appear in L , degenerate free particles, and an exam twist. Before we start, one reminder of what each symbol means, because we will earn nothing on trust.
Definition The vocabulary we will use on every line
q — a generalized coordinate : any single number that helps pin down where the system is (a length x , a height y , an angle θ ). See Generalized Coordinates and Constraints .
q ˙ — the generalized velocity : how fast that number changes per second. The dot means "time-derivative of the thing under it".
q ¨ — the acceleration of that coordinate (two dots = two time-derivatives).
T — kinetic energy , the energy of motion , always 2 1 m v 2 where v is the real speed.
V — potential energy , the energy of position (height in gravity, stretch in a spring).
L = T − V — the Lagrangian . Not the total energy.
The Euler–Lagrange equation (the engine, one per coordinate):
d t d ∂ q ˙ ∂ L − ∂ q ∂ L = 0
Read it as: "the rate of change of (slope of L in the velocity) equals (slope of L in the position)." Full derivation lives in Euler–Lagrange Equation .
∂ / ∂ q ˙ and ∂ / ∂ q actually mean
A partial derivative ∂ L / ∂ q ˙ asks: "if I nudge only q ˙ and freeze everything else, how much does L change?" The curly ∂ (instead of d ) is a promise that we hold the other variables still. Inside L , the position q and the velocity q ˙ are treated as independent knobs — that is the single most-missed idea, so watch for it in Example 4.
Every problem L = T − V can throw belongs to one of these cells . The examples below are chosen so that together they cover all of them — none is left as "you'll figure it out".
Cell
What makes it distinct
Covered by
A. Straight-line, positive-slope V
V increases with q (climbing) → restoring force points down/back
Ex 1
B. Straight-line, negative-slope V
V decreases with q (a downhill push) → force points forward
Ex 2
C. Curved coordinate (T has q in it)
T = 2 1 m ℓ 2 θ ˙ 2 — the velocity term itself depends on position
Ex 3
D. Two coupled coordinates
Two Euler–Lagrange equations that talk to each other
Ex 4
E. Cyclic (ignorable) coordinate
q missing from L → a conserved momentum
Ex 5
F. Degenerate / zero potential
V = 0 , the free particle — the limiting case
Ex 6
G. Sign-of-force stress test
Same spring, both sides of equilibrium (positive AND negative x )
Ex 7
H. Real-world word problem + exam twist
Bead on a rotating hoop: a constraint that adds to T
Ex 8
Worked example Ex 1 · Block sliding up a frictionless ramp of incline
α
A block of mass m slides on a ramp tilted at angle α above horizontal. Let s = distance measured up the slope . Find its equation of motion.
Forecast: guess the sign of s ¨ before reading. Gravity should pull it back down , so we expect s ¨ < 0 (a negative, i.e. down-slope, acceleration). Hold that thought.
Figure — the incline triangle.
A blue slope of length s (the hypotenuse) rising over a white horizontal base; the red dashed vertical leg is the height gained, s sin α ; the green arc marks α and the green down-arrow is gravity m g . The picture is the whole point of step 1 — read the height off the triangle.
Height gained climbing distance s is s sin α (look at the red vertical leg in the figure — it is the opposite side of the right triangle whose hypotenuse is s ).
Why this step? Potential energy only cares about height , and sin α is exactly "vertical rise per unit slope-distance".
Write the energies: T = 2 1 m s ˙ 2 , V = m g s sin α .
Why this step? Steps 2–3 of the parent recipe: energies in the chosen coordinate.
Form L = 2 1 m s ˙ 2 − m g s sin α .
Why this step? The Lagrangian is defined as T − V ; we must assemble it before the engine can chew on it.
Velocity slope: ∂ s ˙ ∂ L = m s ˙ , then take its time-derivative: d t d ( ∂ s ˙ ∂ L ) = d t d ( m s ˙ ) = m s ¨ .
Why this step? This is the "d t d ∂ s ˙ ∂ L " half of the engine — first the velocity-slope, then how it changes in time.
Position slope: ∂ s ∂ L = − m g sin α .
Why this step? This is the second half of the engine; only V contains s , and its slope is the (negative of the) force pushing on s .
Euler–Lagrange: put the two halves into d t d ∂ s ˙ ∂ L − ∂ s ∂ L = 0 , giving m s ¨ − ( − m g sin α ) = 0 ⇒ s ¨ = − g sin α .
Why this step? This is the engine itself — setting rate-of-velocity-slope equal to position-slope is exactly the equation of motion.
Verify: The sign is negative → matches our forecast (slides back down). Limiting checks: at α = 9 0 ∘ (vertical wall of a ramp), s ¨ = − g — pure free fall. ✓ At α = 0 (flat table), s ¨ = 0 — no push, sits still. ✓ Units: g sin α is m/s 2 . ✓
Worked example Ex 2 · Same ramp, coordinate measured
down the slope
Now let d = distance measured down the slope (positive means further down). This is Cell B: as d grows, height drops , so V has a negative slope .
Forecast: the block speeds up going down, so we expect d ¨ > 0 (positive).
Height above the starting point is now − d sin α (going down = negative height).
Why this step? We must be honest about sign: down means lower potential.
T = 2 1 m d ˙ 2 , V = − m g d sin α , so L = 2 1 m d ˙ 2 + m g d sin α .
Why this step? L = T − V with a negative V becomes a plus ; this sign flip is the entire distinction from Ex 1.
Velocity half: ∂ d ˙ ∂ L = m d ˙ , then d t d ( ∂ d ˙ ∂ L ) = d t d ( m d ˙ ) = m d ¨ .
Why this step? Same engine as always — velocity-slope, then its time-derivative.
Position half: ∂ d ∂ L = + m g sin α .
Why this step? The + V contribution makes the position-slope positive — the source of the forward push.
EL: m d ¨ − m g sin α = 0 ⇒ d ¨ = + g sin α .
Why this step? Feeding both halves into d t d ∂ d ˙ ∂ L − ∂ d ∂ L = 0 delivers the equation of motion.
Verify: Positive, as forecast. And notice it is the exact same physics as Ex 1 — flipping the direction of the coordinate flipped the sign of V 's slope, which flipped the sign of the acceleration. The world doesn't change; only our bookkeeping does. This is the whole reason the Lagrangian is coordinate-agnostic. Units: g sin α is m/s 2 , an acceleration. ✓
Worked example Ex 3 · Pendulum, re-examined for the
ℓ -dependence
Bob of mass m on a rod of length ℓ , angle θ from the downward vertical. This is Cell C because the speed of the bob is ℓ θ ˙ — the length multiplies the velocity , so T carries ℓ 2 .
Forecast: small swings should look like a spring (θ ¨ ∝ − θ ); large swings should slow the restoring pull (because sin θ bends over).
Figure — pendulum geometry.
A blue rod from the white pivot to a yellow bob; the green arc is the angle θ from the dotted vertical; the green tangent arrow is the bob's speed ℓ θ ˙ (perpendicular to the rod); the red dashed segment is the height risen above the lowest point, ℓ ( 1 − cos θ ) . Steps 1 and 2 are literally read off this picture.
Speed of bob = ℓ θ ˙ (arc-length rate: radius times angular rate — see the green tangent arrow).
Why this step? We need the real speed for T , not just θ ˙ .
Height above lowest point = ℓ ( 1 − cos θ ) (the red gap in the figure).
Why this step? V needs the actual height; ℓ ( 1 − cos θ ) is how far the bob has risen.
T = 2 1 m ℓ 2 θ ˙ 2 , V = m g ℓ ( 1 − cos θ ) , L = 2 1 m ℓ 2 θ ˙ 2 − m g ℓ ( 1 − cos θ ) .
Why this step? Assemble L = T − V ; note θ now appears in T and V — the Cell C feature.
Velocity half: ∂ θ ˙ ∂ L = m ℓ 2 θ ˙ , then d t d ( ∂ θ ˙ ∂ L ) = m ℓ 2 θ ¨ .
Why this step? The velocity-slope times its time-derivative — the first half of the engine, now carrying ℓ 2 .
Position half: ∂ θ ∂ L = − m g ℓ sin θ (derivative of − m g ℓ ( 1 − cos θ ) ; the sin appears because d θ d ( − cos θ ) = sin θ ; here T has no θ so only V contributes).
Why this step? Second half of the engine — the restoring "torque per unit angle".
EL: m ℓ 2 θ ¨ + m g ℓ sin θ = 0 ⇒ θ ¨ = − ℓ g sin θ .
Why this step? Combine both halves in d t d ∂ θ ˙ ∂ L − ∂ θ ∂ L = 0 to get the equation of motion.
Verify: Small-angle limit sin θ ≈ θ gives θ ¨ = − ℓ g θ , simple harmonic with ω = g / ℓ . ✓ At θ = 0 (hanging straight down): θ ¨ = 0 , an equilibrium. ✓ At θ = π (balanced straight up): sin π = 0 so θ ¨ = 0 too — an unstable equilibrium, physically correct. ✓ Units: g / ℓ is s − 2 , times the dimensionless sin θ → rad/s 2 . ✓
Worked example Ex 4 · Two masses joined by a spring on a frictionless line
Masses m each at positions x 1 and x 2 on a rail, joined by a spring of constant k and natural length ℓ 0 . Two coordinates → two Euler–Lagrange equations.
Forecast: the spring only cares about the stretch x 2 − x 1 , so the two equations should be mirror images pushing the masses toward each other or apart.
T = 2 1 m x ˙ 1 2 + 2 1 m x ˙ 2 2 (each mass carries its own kinetic energy).
Why this step? Kinetic energy is additive over independent particles.
Stretch = ( x 2 − x 1 ) − ℓ 0 , so V = 2 1 k [ ( x 2 − x 1 ) − ℓ 0 ] 2 .
Why this step? A spring stores 2 1 k ( stretch ) 2 , and stretch is relative separation minus natural length.
L = T − V .
Why this step? Assemble the Lagrangian; because V mixes x 1 and x 2 , the two coordinates will couple.
For x 1 : velocity half ∂ x ˙ 1 ∂ L = m x ˙ 1 , then d t d ( ∂ x ˙ 1 ∂ L ) = m x ¨ 1 ; position half ∂ x 1 ∂ L = + k [ ( x 2 − x 1 ) − ℓ 0 ] (chain rule; the inner derivative of − x 1 gives the + ).
Why this step? Remember q and q ˙ are independent — when we differentiate w.r.t. x 1 we leave x ˙ 1 frozen, so only V contributes to the position half.
EL for x 1 : m x ¨ 1 = k [ ( x 2 − x 1 ) − ℓ 0 ] .
Why this step? The engine d t d ∂ x ˙ 1 ∂ L − ∂ x 1 ∂ L = 0 gives mass-1's equation.
For x 2 : identical steps give velocity half m x ¨ 2 and position half ∂ x 2 ∂ L = − k [ ( x 2 − x 1 ) − ℓ 0 ] , so EL: m x ¨ 2 = − k [ ( x 2 − x 1 ) − ℓ 0 ] .
Why this step? Each coordinate gets its own Euler–Lagrange equation; here the sign flips because x 2 enters the stretch with a + .
Verify: Add the two equations: m x ¨ 1 + m x ¨ 2 = 0 , so the center of mass does not accelerate — momentum conserved, correct for an isolated pair. ✓ Subtract them: with r = x 2 − x 1 , m r ¨ = − 2 k ( r − ℓ 0 ) , a clean oscillator of frequency ω = 2 k / m about the natural length. ✓ Mirror symmetry confirmed. Units: k [( x 2 − x 1 ) − ℓ 0 ] is ( N/m ) ( m ) = N , and m x ¨ is kg ⋅ m/s 2 = N — both sides are forces. ✓
Worked example Ex 5 · Free particle on a plane, polar coordinates
A puck slides freely (no potential) on a horizontal plane. In polar coordinates ( r , ϕ ) , T = 2 1 m ( r ˙ 2 + r 2 ϕ ˙ 2 ) , V = 0 . Notice: ϕ does not appear in L , only ϕ ˙ does. Such a coordinate is called cyclic or ignorable .
Forecast: if ϕ is missing, its Euler–Lagrange equation should hand us a conserved quantity for free — angular momentum.
L = 2 1 m ( r ˙ 2 + r 2 ϕ ˙ 2 ) .
Why this step? Assemble L = T − V with V = 0 ; note ϕ itself is absent — the Cell E feature.
For ϕ (velocity half): the generalized momentum is p ϕ = ∂ ϕ ˙ ∂ L = m r 2 ϕ ˙ . (See Generalized Momentum and Conservation .)
Why this step? This is ∂ ϕ ˙ ∂ L , the quantity whose time-derivative the engine tracks.
For ϕ (position half): ∂ ϕ ∂ L = 0 because ϕ literally never appears.
Why this step? A missing coordinate has zero position-slope — this is what makes it cyclic.
EL for ϕ : d t d ( ∂ ϕ ˙ ∂ L ) − ∂ ϕ ∂ L = d t d ( m r 2 ϕ ˙ ) − 0 = 0 , therefore m r 2 ϕ ˙ = constant .
Why this step? When the position-slope is zero, the engine says the velocity-slope (the momentum) is conserved.
For r (both halves): ∂ r ˙ ∂ L = m r ˙ ⇒ d t d ( m r ˙ ) = m r ¨ ; and ∂ r ∂ L = m r ϕ ˙ 2 . EL: m r ¨ − m r ϕ ˙ 2 = 0 ⇒ m r ¨ = m r ϕ ˙ 2 .
Why this step? The other coordinate still gets its own full Euler–Lagrange equation — the r -equation carries the centrifugal term m r ϕ ˙ 2 .
Verify: m r 2 ϕ ˙ is exactly the angular momentum L z of a particle — conservation drops out of one missing variable, no torque analysis needed. ✓ The radial equation m r ¨ = m r ϕ ˙ 2 is the familiar outward centrifugal effect. ✓ Units: p ϕ = m r 2 ϕ ˙ has kg ⋅ m 2 ⋅ s − 1 , the correct dimension of angular momentum. ✓
Worked example Ex 6 · The free particle in 1D — the simplest limit
No forces, no potential: V = 0 , T = 2 1 m x ˙ 2 . This is the degenerate end of the matrix, the sanity floor.
Forecast: with nothing pushing, we expect x ¨ = 0 — constant velocity, straight-line motion (Newton's first law).
L = 2 1 m x ˙ 2 .
Why this step? Assemble L = T − V with V = 0 ; nothing to subtract.
Velocity half: ∂ x ˙ ∂ L = m x ˙ , then d t d ( m x ˙ ) = m x ¨ .
Why this step? Velocity-slope then its time-derivative — first half of the engine.
Position half: ∂ x ∂ L = 0 (no x in L ).
Why this step? No potential means no position-slope, so x is cyclic too.
EL: m x ¨ − 0 = 0 ⇒ x ¨ = 0.
Why this step? The engine with zero position-slope forces zero acceleration.
Verify: x is also cyclic here, so momentum p = m x ˙ is conserved — constant velocity, exactly Newton's first law and the base case the whole framework must reduce to. ✓ Units: m x ¨ is kg ⋅ m/s 2 = N ; setting it to zero says "zero net force". ✓ See Newton's Second Law for the V = 0 generalization and Principle of Least Action for why the straight line is the stationary path.
Worked example Ex 7 · Mass on a spring, checked on BOTH sides of
x = 0
L = 2 1 m x ˙ 2 − 2 1 k x 2 . We already know the EL equation is m x ¨ + k x = 0 . The point of Cell G is to confirm the force sign is restoring in every case : x > 0 , x < 0 , and x = 0 .
Forecast: the acceleration should always point back toward x = 0 .
From the EL equation m x ¨ = − k x . To make the sign behaviour concrete and impossible to hand-wave, we plug in specific numbers k = 4 N/m , m = 1 kg — a numeric example is preferable here because the pedagogical claim is about signs across cases , and nothing exposes a sign error faster than watching real numbers flip.
Why this step? Choosing clean numbers turns an abstract "− k x " into three checkable arithmetic facts.
Case x = + 3 : x ¨ = − 4 ( 3 ) = − 12 — pulls left (negative), back toward origin. ✓
Why this step? Tests the positive-displacement quadrant.
Case x = − 3 : x ¨ = − 4 ( − 3 ) = + 12 — pushes right (positive), back toward origin. ✓
Why this step? Tests the negative-displacement quadrant — the sign must flip.
Case x = 0 : x ¨ = 0 — no force at equilibrium. ✓
Why this step? Tests the degenerate point so no scenario is left unshown.
Verify: In all three cases sign ( x ¨ ) = − sign ( x ) , the defining property of a restoring force. Frequency ω = k / m = 4/1 = 2 rad/s . ✓ Units: x ¨ came out in m/s 2 (a N/m over kg times m ), and ω in s − 1 . ✓
Worked example Ex 8 · Bead on a hoop spinning at fixed rate
Ω (the twist)
A bead of mass m slides on a frictionless circular wire of radius R . The hoop is forced to spin about a vertical diameter at constant angular speed Ω . Let θ = angle of the bead from the bottom of the hoop. This is the exam twist: the spin injects an extra kinetic term and creates an effective potential.
Forecast: for slow spin the bead should sit at the bottom (θ = 0 ); for fast enough spin, centrifugal effects should push a new stable angle up the side .
Figure — bead on the spinning hoop.
A blue circle (the hoop) with a white dotted vertical spin-axis; the yellow arrow at top is the forced spin Ω ; the red dot is the bead at angle θ (green arc) from the dotted radius to the bottom; the yellow dashed segment is the bead's distance from the axis, R sin θ , which is why the spin contributes R sin θ Ω to its speed.
The bead's velocity has two perpendicular pieces: along the wire, speed R θ ˙ ; and around the spin axis, speed R sin θ ⋅ Ω (its distance from the axis is R sin θ ). Since they are perpendicular, v 2 = R 2 θ ˙ 2 + R 2 sin 2 θ Ω 2 , so
T = 2 1 m ( R 2 θ ˙ 2 + R 2 sin 2 θ Ω 2 ) .
Why this step? The forced spin is a constraint that does work in our coordinate , so it lands in T , not V ; we add the two perpendicular speeds via Pythagoras.
Height above the bottom = R ( 1 − cos θ ) , so V = m g R ( 1 − cos θ ) .
Why this step? Gravity is a genuine potential; the height is read exactly as in the pendulum.
Form L = 2 1 m R 2 θ ˙ 2 + 2 1 m R 2 Ω 2 sin 2 θ − m g R ( 1 − cos θ ) .
Why this step? Assemble L = T − V ; the middle term is the spin's gift and will act like a negative potential.
Velocity half: ∂ θ ˙ ∂ L = m R 2 θ ˙ , then d t d ( ∂ θ ˙ ∂ L ) = m R 2 θ ¨ .
Why this step? The Ω -term has no θ ˙ in it, so the velocity-slope is the same as a plain pendulum.
Position half: ∂ θ ∂ L = m R 2 Ω 2 sin θ cos θ − m g R sin θ .
Why this step? Now θ sits in both the spin-kinetic term and V , so both contribute to the position-slope (chain rule on sin 2 θ gives 2 sin θ cos θ , cancelling the 2 1 ).
EL: m R 2 θ ¨ − ( m R 2 Ω 2 sin θ cos θ − m g R sin θ ) = 0 , so
θ ¨ = Ω 2 sin θ cos θ − R g sin θ = sin θ ( Ω 2 cos θ − R g ) .
Why this step? The engine d t d ∂ θ ˙ ∂ L − ∂ θ ∂ L = 0 delivers the equation of motion; factor sin θ to expose the equilibria.
Verify: Equilibria where θ ¨ = 0 : either sin θ = 0 (bottom θ = 0 ) or cos θ = R Ω 2 g . That second solution only exists when R Ω 2 g ≤ 1 , i.e. when Ω 2 ≥ R g — a critical spin rate Ω c = g / R , exactly the forecast. ✓ Below Ω c the bracket Ω 2 cos θ − g / R < 0 near θ = 0 , so the bottom is stable. ✓ Units: Ω 2 and g / R are both s − 2 , and θ ¨ comes out in rad/s 2 . ✓
Recall Which cell is each new problem in? (cover the answers)
A block sliding down a hill, coordinate down-slope ::: Cell B — negative-slope potential.
A double pendulum ::: Cell D — coupled coordinates (two EL equations).
A planet orbiting freely, angle coordinate ::: Cell E — cyclic coordinate, angular momentum conserved.
A puck with no forces ::: Cell F — degenerate, V = 0 , constant velocity.
A pendulum on a driven pivot ::: Cell H — constraint that adds to T .
Mnemonic The workflow that never changes
"Speed it, Stack it, Slope it twice." Speed → write T ; Stack → write V ; Slope twice → ∂ / ∂ q ˙ then d / d t , and ∂ / ∂ q ; subtract; set to zero.