Worked examples — Hamilton's principle — least action
Before we start, one reminder of the recipe you will use every single time:
Here means "the rate of change of with time" and (curly d) means "differentiate treating the other slots as frozen constants". That is the only notation we need.
The scenario matrix
Every problem in this topic falls into one of these cells. The examples below each carry a tag like [Cell A] so you can see the whole grid gets covered.
| Cell | Case class | What makes it special | Example |
|---|---|---|---|
| A | Linear coordinate, sign of positive-curvature (bowl) | restoring force → oscillation | Ex 1 |
| B | Linear coordinate, sign of negative-curvature (hill) | anti-restoring → runaway | Ex 2 |
| C | Constant force / linear | constant acceleration | Ex 3 |
| D | Angular coordinate | geometry hides inside | Ex 4 |
| E | Cyclic (ignorable) coordinate — absent from | conserved momentum (Noether's Theorem) | Ex 5 |
| F | Degenerate / zero potential (free particle) | straight-line motion, minimum check | Ex 6 |
| G | Limiting behaviour (small-angle limit) | nonlinear → linear as amplitude → 0 | Ex 7 |
| H | Real-world word problem (bead on a wire) | translate words → | Ex 8 |
| I | Exam twist — two coordinates coupled | E–L applied per-coordinate | Ex 9 |
We also touch every sign of the force slot: positive (Ex 2), negative (Ex 1, 4), zero (Ex 3, 5, 6).
Example 1 — Bowl-shaped potential (spring) · [Cell A]
Forecast: guess before reading — the mass should oscillate; will the frequency go up or down if we stiffen the spring (larger )?
- Momentum slot. . Why this step? Only the term contains ; differentiating gives — ordinary momentum.
- Force slot. . Why this step? Only contains ; its slope is . The minus sign means the force pulls back toward — a bowl (positive curvature ).
- Assemble E–L. . Why this step? This is the recipe's line 4 verbatim.
- Read the physics. with . Solution .
Verify: . Units: ✓. Stiffer spring ⇒ larger ⇒ higher ✓ (matches forecast).
Example 2 — Hill-shaped potential (unstable) · [Cell B]
Forecast: the sign of flipped. Does the mass still oscillate, or run away?
- Read off from . We are given . Match against the recipe's : the kinetic part is , so what remains must equal . That is, , hence . Why this step? The potential is not whatever term follows the minus sign in — it is minus the non-kinetic part. Since has , algebra forces : curvature , a hilltop.
- Momentum slot. . Why this step? Recipe line 3, first half — never skip it. Only contains ; its derivative is the ordinary momentum (identical to Ex 1, since the kinetic energy is unchanged).
- Force slot. . Why this step? Only contains ; its slope is . The plus sign means the force pushes away from the origin — consistent with the hilltop found in step 1.
- Assemble E–L. . Why this step? Positive coefficient means acceleration points outward — the opposite sign to Ex 1.
- Read the physics. has solutions with — exponential growth, not oscillation. Why and not ? We need a function whose second derivative equals plus a constant times itself. gives minus; the exponential gives — same sign. That is precisely the tool that answers "second derivative = itself".
Verify: . Check and ✓. Runaway confirmed — this is an unstable equilibrium; least action still holds, but the extremum is a saddle, not a minimum.
Example 3 — Constant force (linear potential) · [Cell C]
Forecast: a constant force means constant acceleration. Which classic formula do you expect to fall out?
- Momentum slot. . Why this step? Only the kinetic term depends on ; its derivative is the ordinary momentum .
- Force slot. (constant — the force slot does not depend on ; here it is a nonzero constant, our "constant-force" case). Why this step? Only contains ; its slope is the constant , the weight pulling downward.
- Assemble. . Why this step? A linear potential has constant slope, so the acceleration is a constant.
- Integrate twice. , . Why this step? Antiderivatives of a constant give the familiar kinematic equations — E–L reproduces them exactly.
Verify: set : . Units: ✓.
Example 4 — Angular coordinate: the pendulum · [Cell D]

Forecast: with no forces to resolve, can a single angle carry all the geometry?
- Build from geometry. Speed of the bob (arc length rate), so . Height above the lowest point , so . Drop the constant: . Why this step? Look at the figure: the amber dotted arc shows the bob's path; its length rate is the speed. The cyan vertical shows the height. No tension, no force components needed.
- Momentum slot. (this is angular momentum). Why this step? Only the kinetic term contains ; differentiating gives , the angular momentum.
- Force slot. (negative for : pulls back down — a restoring torque). Why this step? Only contains ; the derivative of is , giving .
- Assemble. . Why this step? This is the recipe's line 4; dividing by isolates the angular acceleration.
Verify: at , , so . The minus sign says it accelerates back toward ✓. Units , correct for angular acceleration ✓.
Example 5 — Cyclic coordinate: conserved momentum · [Cell E]
Forecast: what happens to E–L when a coordinate itself never appears in (only its rate does)?
- Spot the missing coordinate. contains but not . We call such a coordinate cyclic (or ignorable). Why this step? If is absent, then — the force slot for is exactly zero.
- Write E–L for . . Why this step? Zero force slot means the momentum slot is constant in time — that is a conservation law, the seed of Noether's Theorem.
- Identify the constant. const. This is angular momentum. Why this step? Only the term contains ; its derivative is , which step 2 just proved is constant.
Verify: . Units: = angular momentum ✓. (Contrast Ex 1–4 where the force slot was nonzero, so momentum changed.)
Example 6 — Degenerate case: the free particle · [Cell F]

Forecast: with everything is "kinetic". Which single path minimizes the total?
- Force slot is zero. (no in — the degenerate case). Why this step? depends only on , never on itself, so its -derivative vanishes.
- E–L. const. Constant velocity ⇒ straight line (slope ). Why this step? Zero force slot ⇒ momentum constant ⇒ uniform speed. The figure's straight cyan line is the true path.
- Action of the true path. , so . Why this step? With constant the integrand is constant, so the integral is just value length.
- Action of a wiggly rival. Try (same endpoints: ). Then and . Why this step? The cross-term integrates to zero over a half-period, leaving extra positive — pure added cost.
- Why is this a genuine minimum (not a saddle)? Write any rival as with . The action difference is exactly . Why this step? The linear term in vanishes (that is E–L holding), and the second variation is — a sum of squares, so it can never be negative. Hence the true path is a strict minimum here, for any interval length, not just "short" ones. Free particles are the one case where the minimum is guaranteed globally; the "short interval" caveat (conjugate points) only bites when the potential can bend nearby paths back together, which a flat never does.
Verify: . The straight line wins ✓ — and step 5 proves it is a true minimum, since always.
Example 7 — Limiting behaviour: small-angle pendulum · [Cell G]
Forecast: for tiny swings, does the nonlinear pendulum become the linear oscillator of Example 1?
- Approximate . For small , (the arc and its chord coincide). Why this step? ; as the leading term dominates. This is the limit that turns a hard equation into an easy one.
- Linearize. . This is exactly with — the same shape as Ex 1's spring. Why this step? We recognize the SHM template; its solution is a cosine of angular frequency .
- Period. . Why this step? For one full cycle takes time — the definition of period.
Verify: . Units ✓. As amplitude → 0 the nonlinear system limits to the linear one ✓.
Example 8 — Word problem: bead on a parabolic wire · [Cell H]

Forecast: translate the sentence into and . Which single number () pins the bead down?
- Constraint into coordinates. On the wire, , so differentiating in time . The bead's speed. Why this step? The bead is forced to stay on the curve, so is not free — it is a function of . One coordinate suffices, exactly as the figure's single pinned bead suggests.
- Energies. and . So . Why this step? Kinetic energy is using step 1; potential is weight times height .
- Momentum slot. . Why this step? Differentiate the kinetic term in , treating as frozen — the factor rides along.
- Force slot. . Why this step? appears in both the kinetic term (through ) and the potential; differentiate each. The first piece comes from , the second from .
- Assemble E–L. . Expanding the time-derivative: , i.e. . Why this step? Recipe line 4. The product rule on the momentum slot produces the terms; one of them cancels against the kinetic force-slot term, leaving the clean exact equation.
- Small oscillations near . For small : and (higher order), leaving . Why this step? Small swings drop the higher-order-in- terms — the same limiting move as Ex 7 — giving SHM with .
Verify: . Units ✓ (here has units ).
Example 9 — Exam twist: two coupled coordinates · [Cell I]
Forecast: with two coordinates, how many E–L equations do we get, and how do they talk to each other?
- E–L for . Momentum slot ; force slot . So . Why this step? One E–L equation per coordinate — the parent's "one per generalized coordinate" rule. The chain rule on , differentiating in , gives .
- E–L for . Momentum slot ; force slot . So . Why this step? Same potential, but differentiating in gives — the inner sign flips.
- Decouple into the relative coordinate. Let (the stretch). Subtract eq 1 from eq 2: , so . Why this step? Subtracting cancels the shared centre-of-mass motion, exposing a clean SHM in the relative coordinate — frequency .
- Centre-of-mass check. Add eq 1 and eq 2: : the centre of mass drifts at constant velocity (a conservation echoing the cyclic case Ex 5). Why this step? Adding cancels the equal-and-opposite spring terms, leaving no net force on the pair.
Verify: . Two coordinates → two equations ✓; the factor comes from both masses sharing the one spring ✓. Units ✓.
Recall Which cell was which?
Ex 1 bowl (stable oscillation) ::: Cell A Ex 2 hilltop (unstable, exponential) ::: Cell B Ex 3 constant force (free fall) ::: Cell C Ex 4 angular pendulum ::: Cell D Ex 5 cyclic coordinate → conserved momentum ::: Cell E Ex 6 free particle, degenerate ::: Cell F Ex 7 small-angle limit ::: Cell G Ex 8 bead on a wire (word problem) ::: Cell H Ex 9 two coupled coordinates (exam twist) ::: Cell I