Worked examples — Derivation of Euler-Lagrange equations from D'Alembert's principle
Before we touch numbers, one reminder of what the symbols mean, so nothing is used unearned:
Recall The three quantities you must be able to read off any problem
- ::: the kinetic energy, — "how much motion energy the system has." Depends on the generalized velocities (and sometimes ).
- ::: the potential energy — stored energy that depends on where things are, the only.
- ::: the generalized force on coordinate — every applied (non-constraint) force, projected onto the direction that changing moves the system. When forces come from a potential, .
Here is any generalized coordinate (see Constraints and generalized coordinates): a number that pins down the configuration while automatically respecting the constraints (an angle, a distance, an arc-length). A dot means — rate of change in time.
The scenario matrix
| Cell | What it stress-tests | Example |
|---|---|---|
| A — trivial / sanity | , straight line, recover Newton | Ex 1 |
| B — sign of restoring force | changes sign across equilibrium | Ex 2 (spring) |
| C — | kinetic energy itself depends on position | Ex 3 (pendulum, full) |
| D — coupled coordinates () | two brackets, cross terms | Ex 4 (2D polar orbit) |
| E — velocity-dependent / time-dependent | driven / rotating constraint, "fictitious" terms | Ex 5 (bead on rotating wire, general ) |
| F — limiting / degenerate input | , , small-angle limit | Ex 6 (small-angle pendulum) |
| G — real-world word problem | translate prose → coordinates → EL | Ex 7 (block sliding on a wedge, both free) |
| H — exam twist | non-obvious coordinate, an ignorable (cyclic) coordinate | Ex 8 (Atwood-on-a-cone / conserved momentum) |
Every worked example below is tagged with its cell(s).
Ex 1 — Cell A · the sanity check
Forecast: guess the answer before reading — what does a particle with no force do? Write it down.
- Write . , , so . Why this step? Every EL problem begins by naming the energies; nothing else can be computed until they exist.
- Momentum slot. . Why this step? EL needs — the "generalized momentum" — as its first ingredient.
- Time-derivative. .
- Position slot. (nothing depends on ). Why this step? has no in it, so is cyclic — a preview of conservation (Ex 8).
- Assemble EL: .
Verify: means constant velocity — Newton's first law. Units: , a force, balancing . ✓
Ex 2 — Cell B · sign of the restoring force
Forecast: which direction does the force point when ? When ? Guess the sign pattern.
- Energies. , . So . Why this step? Spring potential is the archetype of "position energy" — see Generalized forces and potentials.
- Momentum slot & derivative. .
- Position slot. . Why this step? This is , the generalized force. Its sign is the whole point: for it is negative (pulls back to ); for it is positive (pushes back to ). Restoring in both signs.
- EL: .
- Read the frequency. , so .
Verify: plug the guessed solution : , and indeed . ✓ Units of : . ✓
Ex 3 — Cell C · when
The pendulum's danger is that the mapping makes velocity depend on , so itself carries . Look at the figure: the bob traces a circle, and the velocity vector is always tangent.

Forecast: will gravity's torque be or ? Guess.
- Position → velocity. , so , and . Why this step? We must express in the chosen coordinate; the collapse is why is the natural choice.
- Energies. , . .
- Momentum slot. .
- Position slot. . Why this step? This is the ""-style term (here it lives in ), the restoring torque — and it is , not .
- EL: .
Verify: the unknown tension in the rod never appeared — exactly the D'Alembert payoff. Dimensionally has units , matching . ✓
Ex 4 — Cell D · coupled coordinates ()

Forecast: two coordinates → two EL equations. Which of them will have a "" term appear from nowhere?
- Velocity in polar. (radial part + tangential part). Why this step? See Kinetic energy in generalized coordinates — the term is what couples the two coordinates.
- Energies. , .
- -equation. ; . EL: . Why this step? The came from — the centripetal term, born of geometry not of any real force.
- -equation. ; . EL: . Why this step? is cyclic (absent from ), so its momentum is conserved.
- Conserved quantity. — angular momentum. (This is Noether's theorem in miniature: rotational symmetry → conserved angular momentum.)
Verify: a free particle moves in a straight line; in polar coordinates a straight line indeed has const (equal-areas / Kepler's 2nd law) and . Check the special case : then , pure radial straight-line motion. ✓
Ex 5 — Cell E · time/velocity structure in (rotating constraint)
Forecast: with no applied force, will the bead sit still, or fly outward? Guess.
- Constraint kills . The wire forces , so is not a coordinate — only is free. Why this step? A moving (time-dependent) constraint reduces the freedom; enters as a fixed number.
- Energies. , .
- Momentum slot. .
- Position slot. . Why this step? This is the term the parent note flagged: kinetic energy depends on position, so produces a real dynamical push.
- EL: .
Verify: solution (for release from rest at ) gives . ✓ The bead accelerates outward — the "centrifugal" effect, produced with no constraint force in sight. Degenerate check: ⇒ , a free bead on a fixed wire. ✓
Ex 6 — Cell F · limiting / degenerate input
Forecast: near the bottom, does the pendulum look like a spring (Ex 2)? Guess the period.
- Small-angle expansion. For , (leading term of the series). Why this step? We test the EL result in a degenerate corner of input space, where geometry linearizes.
- Reduced equation. — identical form to Ex 2's .
- Frequency & period. , so . Numeric: .
- limit. : an infinitely long pendulum feels no restoring pull — locally the arc looks flat, motion becomes uniform. Consistent with Ex 1 (free motion). ✓
Verify: period formula gives for a 1 m pendulum (the classic "seconds pendulum" is m). Units: . ✓
Ex 7 — Cell G · real-world word problem (block on a free wedge)

Forecast: as the block slides down-right, which way does the wedge recoil? Momentum says…?
- Coordinates → positions. Wedge horizontal position . Block position: . Why this step? Two moving objects, two free coordinates ; the incline constraint is baked into these formulas so the normal force disappears.
- Velocities. .
- Energies. , and .
- -equation (cyclic — absent from ): . Why this step? Horizontal momentum of the whole system is conserved (floor is frictionless). Differentiate: .
- -equation. , and . EL: .
- Solve the pair. From (4): . Substitute: And (negative: wedge recoils opposite to the block's horizontal motion — matches the momentum forecast).
Verify — two limits.
- (immovable wedge): , the textbook block-on-fixed-incline result, and . ✓
- : (free fall) and . ✓ Numeric check with : ; . (See VERIFY.)
Ex 8 — Cell H · exam twist (cyclic coordinate → conservation)
Forecast: which of is cyclic? What does its conservation buy you?
- Energies. , . .
- is cyclic. since neither 's -independence nor mentions . Why this step? A missing coordinate signals a conserved momentum — this is the variational shadow of Noether.
- Conserved momentum. (constant angular momentum).
- -equation. .
- Eliminate . Use : Why this step? One conserved quantity turns a 2-D problem into a 1-D one with an effective potential .
Verify — recover Ex 4. Set : . With , the right side is , i.e. — exactly Ex 4. ✓ Numeric spot-check (): , and . ✓
Recall
Recall Which cell needs which move?
Cyclic coordinate (absent from ) ::: its generalized momentum is conserved (Ex 4, 8). ::: kinetic energy depends on position → "fictitious" (centrifugal/centripetal) terms appear (Ex 3, 4, 5). Restoring force sign check ::: must point back to equilibrium for both signs of (Ex 2). Two free bodies ::: two coordinates → two EL equations, solve simultaneously (Ex 7). Immovable / infinite limit ::: send a mass or length to and confirm the textbook special case (Ex 6, 7).