4.10.15 · D4Advanced Topics (Elite Level)

Exercises — Hamilton's principle — least action

3,290 words15 min readBack to topic

Quick reference (everything below leans on these):

Here is a generalized coordinate — any single number that pins down the configuration (a position , an angle , a height ). A dot means "rate of change in time," so . See Euler–Lagrange equation and Lagrangian Mechanics for the derivations these exercises exploit.


Level 1 — Recognition

Goal: identify , , , and read off the two slots. No solving of differential equations yet.

Problem 1.1

A single particle of mass moves freely along a line (no forces, no potential). Write its kinetic energy , potential , and Lagrangian . What is and ?

Recall Solution 1.1

What the pieces mean: is the energy of motion (half mass times speed-squared). "Free" means nothing pulls it, so . The momentum slot: differentiate treating as the variable, The force slot: differentiate treating as the variable. Since does not appear, A coordinate that does not appear in is called cyclic — its momentum will be conserved. See Noether's Theorem.

Problem 1.2

A block of mass hangs on a vertical spring of stiffness , position measured from the spring's natural length (gravity ignored). Write and both slots.

Recall Solution 1.2

Spring potential is (energy stored grows as the square of the stretch). Kinetic energy . The minus sign is the spring pulling back toward — a restoring tendency, not a random sign.

Problem 1.3

Which of these is the action of the path : (a) , (b) , (c) ? Explain in one line why the others are wrong.

Recall Solution 1.3

(b) is correct: the action is the Lagrangian accumulated over time. (a) integrates over the wrong variable — action sums a "cost per unit time," so we integrate , not . (c) is just a difference of values; it ignores the whole journey in between, which is exactly what "action" is meant to capture.


Level 2 — Application

Goal: run the Euler–Lagrange machine end to end and get an equation of motion.

Problem 2.1

For the free particle (), apply E–L and show the motion is a straight line at constant velocity.

Recall Solution 2.1

E–L says . From Problem 1.1: and . So What this means: acceleration is zero, so (constant velocity), and integrating once more — a straight line in a position–time plot. This matches Newton's Laws: no force ⇒ no acceleration.

Problem 2.2

A mass on a spring: . Derive the equation of motion and identify the angular frequency .

Recall Solution 2.2

Slots (from Problem 1.2): , . Divide by : . Comparing to , The restoring sign becomes the that produces oscillation.

Problem 2.3

A bead of mass slides on a frictionless wire shaped so its height is (a parabola), in gravity . Using as the coordinate, write and find the E–L equation. (Use .)

Figure below: the violet curve is the wire ; the magenta dot is the bead at . The orange arrow shows the horizontal motion ; the navy arrow shows the induced vertical motion that the constraint forces. The magenta arrow on the left marks gravity pulling down. The point: pushing the bead in automatically moves it in , so its real speed mixes both.

Figure — Hamilton's principle — least action
Recall Solution 2.3

Kinetic energy needs the full speed. The bead moves both horizontally and vertically: So . Potential is gravity: . Momentum slot: . Time-derivative (product rule — both and vary): Force slot: E–L (force slot subtracted): Read it: near the wire is nearly flat, , and it reduces to — small oscillations, just like a spring. The power of the method: we never resolved the normal force from the wire; choosing and writing did all the geometry.


Level 3 — Analysis

Goal: interpret, choose smart coordinates, and use conserved quantities.

Problem 3.1

A pendulum: mass , length , angle from the downward vertical. Show and derive . Then find the small-angle frequency.

Figure below: the navy square is the pivot; the violet line of length swings to the magenta bob. The orange arc marks the angle measured from the dashed vertical. The dotted magenta line shows the bob's height below the pivot, ; the orange arrow tangent to the swing shows the speed . The single number fixes everything.

Figure — Hamilton's principle — least action
Recall Solution 3.1

Speed: the bob traces a circle of radius , so its speed is and . Height: measuring height from the pivot, the bob sits at (lowest when ). So . Slots: , and . E–L: . Small angles: (the graph of hugs the line near ), so , giving .

Problem 3.2

In Problem 3.1, why does the equation not contain the tension in the string? Answer conceptually.

Recall Solution 3.2

The string tension does no work: it always points along the string, exactly perpendicular to the bob's motion (which is along the circle). Energy methods only ever see forces through the energies and ; a force that stores no energy and does no work simply never enters . The constraint "length is fixed" was already baked in by using the single coordinate . This is why generalized coordinates are so powerful — Lagrangian Mechanics sidesteps constraint forces entirely.

Problem 3.3

A particle moves in a plane under a central potential (depends only on distance from origin). In polar coordinates . Show that the angular momentum is conserved, and say why from the structure of .

Recall Solution 3.3

Look at the equation. The momentum slot is . The force slot is because does not appear in (only does; depends on alone). E–L for : That constant is the angular momentum . Why: is a cyclic coordinate (absent from ), and E–L then says its momentum's time-derivative is zero. This is Noether's Theorem in miniature: the rotational symmetry of (rotating leaves unchanged) is conservation of angular momentum.


Level 4 — Synthesis

Goal: combine variational reasoning across different fields, or two coordinates at once.

Problem 4.1 (Fermat as least action of light)

Light travels through a medium where its speed is , depending on height . The "optical action" is the travel time where and . Taking the integrand (with playing the role of "time"), write out the E–L equation explicitly, and derive the conserved quantity that appears because is cyclic.

Recall Solution 4.1

Set up E–L. Here the "coordinate" is and the "time" is , so E–L reads Compute each slot for :

\frac{\partial L}{\partial y}=-\frac{v'(y)}{v(y)^2}\sqrt{1+y'^2}.$$ Substituting, the **explicit E–L equation** is $$\frac{d}{dx}\!\left[\frac{y'}{v(y)\sqrt{1+y'^2}}\right]+\frac{v'(y)}{v(y)^2}\sqrt{1+y'^2}=0.$$ **Why a conserved quantity appears (deriving Beltrami step by step).** Notice $L$ has **no explicit $x$**: it depends on $x$ only *through* $y(x)$ and $y'(x)$. Watch what happens to $L$ as $x$ advances — by the chain rule, $$\frac{dL}{dx}=\frac{\partial L}{\partial y}\,y'+\frac{\partial L}{\partial y'}\,y''$$ (no separate $\partial L/\partial x$ term, precisely because $x$ is absent). Now use E–L to replace $\dfrac{\partial L}{\partial y}=\dfrac{d}{dx}\dfrac{\partial L}{\partial y'}$: $$\frac{dL}{dx}=y'\,\frac{d}{dx}\frac{\partial L}{\partial y'}+y''\,\frac{\partial L}{\partial y'} =\frac{d}{dx}\!\left(y'\,\frac{\partial L}{\partial y'}\right)$$ (the last equality is just the product rule read backwards). Bring both sides together: $$\frac{d}{dx}\!\left(L-y'\,\frac{\partial L}{\partial y'}\right)=0 \ \Rightarrow\ L-y'\,\frac{\partial L}{\partial y'}=\text{const}.$$ This is the **Beltrami identity** — it is *not* an extra assumption, it is a consequence of "$x$ cyclic." Plugging our slots in: $$L-y'\frac{\partial L}{\partial y'} =\frac{\sqrt{1+y'^2}}{v}-\frac{y'^2}{v\sqrt{1+y'^2}} =\frac{(1+y'^2)-y'^2}{v\sqrt{1+y'^2}} =\frac{1}{v\sqrt{1+y'^2}}=\text{const}.$$ **Interpretation (correct angle).** Let $\alpha$ be the angle the ray makes with the **horizontal $x$-axis**. Since $y'=\tan\alpha$ (slope = rise over run), we have $\dfrac{1}{\sqrt{1+y'^2}}=\cos\alpha$. So the conserved quantity is $$\frac{\cos\alpha}{v}=\text{const}.$$ Writing the angle $\beta=90^\circ-\alpha$ **from the vertical** (the usual "angle of incidence"), $\cos\alpha=\sin\beta$, giving $\dfrac{\sin\beta}{v}=\text{const}$ — this is exactly **Snell's law**. Least action for mechanics and least time for light are the *same variational idea*; see [[Fermat's Principle]].

Problem 4.2 (Two coordinates: Atwood-style / coupled)

Two masses hang from a rope of fixed length over a pulley. Let be the downward distance of mass below the pulley and the downward distance of mass ; the fixed rope gives . With gravity pointing down, a mass at downward-depth has gravitational potential (lower = deeper = smaller PE, hence the minus). Reduce to one coordinate and find .

Recall Solution 4.2

Sign convention first. We measure downward (positive = further down). Gravity does positive work as a mass descends, so potential energy must decrease with depth: and . That is where each minus sign comes from — it is forced by "PE drops as you fall," not a free choice. Apply the constraint. The rope is inextensible: (constant), so and differentiating, (as drops, rises at the same rate). Kinetic energy (substitute , and ): Potential (substitute ): Why the constant may be dropped — shown, not asserted. A constant added to changes by . Its contributions to both slots vanish: and (the derivative of a constant is zero). So it cannot affect the E–L equation at all — we keep it in but it plays no role. Slots: , . E–L: , so Sanity check: if the acceleration is zero (balanced); if it is (free fall of ). This is the classic Atwood-machine result, derived without a single free-body diagram.


Level 5 — Mastery

Goal: justify the framework itself; handle degenerate and limiting cases.

Problem 5.1 (Stationary, not minimum)

Give a one-line argument for why "least action" should really be called "stationary action," and describe a concrete case where the true path is not a minimum.

Recall Solution 5.1

The one-line argument: the derivation of E–L only ever forced the first-order change of the action to vanish, ; but a vanishing first derivative marks a minimum, a maximum, or a saddle — so all the physics guarantees is stationarity, not minimality. A concrete non-minimum case. Consider a mass on a spring (or any oscillator) with period . Compare the true path between two points to nearby paths:

  • For a short time interval , the true path is a genuine local minimum of the action.
  • Once the interval exceeds a conjugate point (here , half a period, where all nearby oscillator paths refocus), the true path becomes a saddle: some neighbouring paths lower the action while others raise it. It still satisfies , but it is no longer a minimum. The same happens for light passing through a focus and for orbits past their focal point. Hence the honest name is principle of stationary action.

Problem 5.2 (Adding a total time-derivative)

Show that replacing by for any smooth gives the same equation of motion. Why does this matter?

Recall Solution 5.2

The extra action is which depends only on the fixed endpoints. When we vary the path with , this endpoint term does not change at all, so . Same variation ⇒ same E–L equation. Why it matters: the Lagrangian is not unique — you may add any total time-derivative ("gauge freedom") without changing physics. This underlies why different textbooks write different-looking 's that agree on dynamics, and it is central to Hamiltonian Mechanics and gauge theory.

Problem 5.3 (Degenerate: massless / vanishing kinetic term)

Suppose someone writes with no kinetic term (). What does E–L say, and why is this degenerate?

Recall Solution 5.3

Momentum slot: (no anywhere). Force slot: . E–L: What happened: there is no equation for how evolves in time — E–L only demands sit at a critical point of (an algebraic condition, not a differential one). With no inertia, the theory is degenerate: it cannot predict motion, only equilibrium. This is exactly why a genuine kinetic term (quadratic in ) is what makes the E–L equation a second-order equation of motion with a well-posed initial-value problem.

Problem 5.4 (Full circle to Newton, general potential)

Starting from , show E–L is identical to Newton's second law, and state precisely which principle replaces "" in the variational picture.

Recall Solution 5.4

. And . E–L: . Since force is (force points downhill on the potential), this is , Newton's Laws. The replacement: " holds at every instant" becomes "the whole path makes stationary." A local, instant-by-instant law is re-expressed as a single global optimisation. Both give the identical trajectory — but the variational form transfers cleanly to fields, relativity, and quantum mechanics, where "force" is hard to define.


Active recall

What are the two "slots" you read off any Lagrangian?
The momentum slot and the force slot ; E–L sets .
On the parabola wire , why is ?
Moving in forces , so the true speed-squared is and .
Why does the pendulum equation contain no tension?
Tension does no work (perpendicular to motion) and the constraint is built into the single coordinate , so it never enters .
When is angular momentum conserved?
When is cyclic (absent from ), i.e. the potential depends only on ; then E–L gives .
Why "stationary" and not "least" action?
The derivation only kills the first-order change; the true path can be a minimum, maximum, or saddle (e.g. past a conjugate point).
Does adding to change the motion?
No — it only alters the fixed endpoints, which vanish under the variation, so the E–L equation is unchanged.