4.10.15 · D3Advanced Topics (Elite Level)

Worked examples — Hamilton's principle — least action

3,278 words15 min readBack to topic

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 )?

  1. Momentum slot. . Why this step? Only the term contains ; differentiating gives — ordinary momentum.
  2. Force slot. . Why this step? Only contains ; its slope is . The minus sign means the force pulls back toward — a bowl (positive curvature ).
  3. Assemble E–L. . Why this step? This is the recipe's line 4 verbatim.
  4. 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?

  1. 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.
  2. 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).
  3. 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.
  4. Assemble E–L. . Why this step? Positive coefficient means acceleration points outward — the opposite sign to Ex 1.
  5. 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?

  1. Momentum slot. . Why this step? Only the kinetic term depends on ; its derivative is the ordinary momentum .
  2. 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.
  3. Assemble. . Why this step? A linear potential has constant slope, so the acceleration is a constant.
  4. 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]

Figure — Hamilton's principle — least action
Figure s01 — Ex 4 pendulum. The white rod hangs from the pivot; the amber wedge marks the angle measured from the cyan dashed vertical. The amber dotted arc is the bob's actual path — its rate of sweep is the speed . The short cyan vertical from the bob down to the lowest level is the height that stores potential energy. Read off the arc-speed, off this height.

Forecast: with no forces to resolve, can a single angle carry all the geometry?

  1. 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.
  2. Momentum slot. (this is angular momentum). Why this step? Only the kinetic term contains ; differentiating gives , the angular momentum.
  3. Force slot. (negative for : pulls back down — a restoring torque). Why this step? Only contains ; the derivative of is , giving .
  4. 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)?

  1. 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.
  2. 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.
  3. 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]

Figure — Hamilton's principle — least action
Figure s02 — Ex 6 free particle. The solid cyan line is the true path : a straight line of constant slope from start to end . The dashed amber curve is a rival that shares both endpoints but bulges away in between. Because the action counts , every extra dip and rise of the amber curve only adds cost — so the straight cyan line sits at the bottom of the action.

Forecast: with everything is "kinetic". Which single path minimizes the total?

  1. Force slot is zero. (no in — the degenerate case). Why this step? depends only on , never on itself, so its -derivative vanishes.
  2. 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.
  3. Action of the true path. , so . Why this step? With constant the integrand is constant, so the integral is just value length.
  4. 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.
  5. 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?

  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.
  2. 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 .
  3. 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]

Figure — Hamilton's principle — least action
Figure s03 — Ex 8 bead on a wire. The white curve is the parabola standing in a vertical plane. The cyan bead is pinned to slide along it; the amber down-arrow is gravity . Because the bead cannot leave the wire, its height is dictated by alone — one coordinate () fixes the whole configuration, so we need only one E–L equation.

Forecast: translate the sentence into and . Which single number () pins the bead down?

  1. 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.
  2. Energies. and . So . Why this step? Kinetic energy is using step 1; potential is weight times height .
  3. Momentum slot. . Why this step? Differentiate the kinetic term in , treating as frozen — the factor rides along.
  4. 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 .
  5. 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.
  6. 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?

  1. 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 .
  2. E–L for . Momentum slot ; force slot . So . Why this step? Same potential, but differentiating in gives — the inner sign flips.
  3. 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 .
  4. 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


Active recall

What does it mean for a coordinate to be cyclic, and what follows?
It does not appear in (only its rate does); then , so its conjugate momentum is conserved.
For , why is the solution exponential not cosine?
We need a function whose second derivative is a constant times itself; does that, gives .
How do you read off a given Lagrangian?
is minus the non-kinetic part: if then (a hilltop).
Why is the free particle a guaranteed minimum for any interval?
The second variation is , a sum of squares, so no rival can lower the action.
Small-angle pendulum period for length ?
, from linearizing .
How many Euler–Lagrange equations for a system with coordinates?
Exactly — one per generalized coordinate.
In the bead-on-a-wire problem, why is not an independent coordinate?
The constraint fixes in terms of ; one coordinate suffices.
Relative-mode frequency of two masses on a shared spring ?
; the factor 2 is because both masses stretch the one spring.