The Principle of Least Action

Of all the ways to get from here to there, nature takes the path that makes one number stationary. Bend a path by hand to find it, then let the same idea produce equations of motion in any coordinates

The Principle of Least Action

Newton’s laws say what happens next, moment by moment. The same physics can be stated by looking at the whole journey at once: of all the conceivable ways of getting from here to there in a given time, the one that actually happens makes a certain total, the action, stationary.

It sounds like magic, and it is equivalent to F = ma.

Bend the Path

Drag the handles to make the action as small as you can, then show Newton’s path and see how close you came. Try the other forces, and give the spring a long time to find a path that is stationary but not the least.

Arrows
−21.606 J·s
action of your path
−21.606 J·s
lowest you have reached
hidden
action of Newton’s path
69.9 N
largest gap between ma and the force, along your path
Drag the five handles to make S as small as you can. Every path here gets from A to B in 2.00 s; only one of them is what the ball would really do.
Wiggle your path by
−161.496 mJ·s
change of action for a 3.0 cm wiggle
−81.025 mJ·s
change for a wiggle half as big
1.99
ratio: near 2 on an ordinary path, 4 on a stationary one
your pathNewton’s pathkinetic energypotential energyforce availablemass × acceleration your path demandsvelocity

A 1 kg particle moving in one dimension. Heights and positions in metres, time in seconds, energy in joules, action in joule seconds. The path is cut into 240 straight pieces: kinetic minus potential energy on each piece, times its duration, added up. Amber shading between the energy curves adds to the action and cyan shading subtracts. “Relax” is gradient descent on that sum, with nothing about F = ma put in; Newton’s path is found separately by Newton’s method and is known to lie on the analytic solution to better than a tenth of a millimetre for the first three choices. In the double well it is the least only among nearby paths: wild ones can go lower. There is no friction: this form of the principle needs every force to come from a potential energy, and friction does not.

Go deeper:The Action, and Why It Gives F = ma

Write T for the kinetic energy and V for the potential energy. The difference L = T − V is called the Lagrangian, and the action of a path q(t) from time 0 to time t1 is its total:

S = ∫ L dt = ∫ (½ m q̇2 − V(q)) dt

Now change the path slightly, to q + εη, where η is zero at both ends. To first order in ε the action changes by ε ∫ (∂L/∂q · η + ∂L/∂q̇ · η̇) dt, and integrating the second term by parts turns this into ε ∫ (∂L/∂q − d/dt ∂L/∂q̇) η dt. If that is to vanish for every wiggle η, the bracket must be zero at every instant. That is the Euler–Lagrange equation:

d/dt (∂L/∂q̇) = ∂L/∂q

For L = ½mq̇2 − V the left side is d/dt(mq̇) = ma, and the right side is −dV/dq, which is the force. So the stationary path is exactly the one with F = ma, and a path that breaks F = ma anywhere can be improved there. In the demo, the violet and rose arrows differ precisely where a wiggle would change the action to first order.

Stationary does not mean least. The second-order change decides, and for a spring of angular frequency ω it is positive for every wiggle only while the time allowed is less than half a period, π/ω. After that, a one-hump wiggle gains more from the potential energy than it costs in kinetic energy, and the true path is a saddle. Over a short enough time the true path is always a minimum. The old name survives from Pierre Louis Maupertuis, who announced a principle of least action in 1744 and saw in it the economy of nature. Leonhard Euler gave the mathematics of it the same year, Joseph-Louis Lagrange made it the engine of his Mécanique analytique (1788), and William Rowan Hamilton put it in the form used here in 1834.

How does the ball know where it is going to land, so as to choose the best path? It does not. The principle is a restatement of a law that acts locally, moment by moment; the pinned endpoint is part of the question we ask, not something the ball consults. The deeper reason it works comes from quantum mechanics, where every path contributes a small rotating arrow with angle S/ħ. Near a stationary path the arrows line up and add; elsewhere they point every way and cancel. See also: The Path Integral in Quantum Field Theory.

Any Coordinates You Like

Pick a system, drag it, and let go: the orange body follows from T − V alone, and the lime ring is the same thing done by Newton’s laws. On the spinning hoop, sweep the spin rate slowly up through the critical value.

1. Choose coordinates
One: the angle θ from straight down. The rod’s length is built in, so there is nothing else to say.
2. Kinetic energy
T = ½ m l2 θ̇2
3. Potential energy
V = −m g l cos θ
4. Turn the handle on L = T − V
θ̈ = −(g/l) sin θ
Newton needs the tension in the rod (the rose arrow), an unknown force that changes at every instant. In Lagrange’s method it never appears.
−3.80722 J
conserved energy T + V
below 0.000001 m
gap between Lagrange and Newton
75.0°
the one coordinate, θ
the Lagrangian engine’s motionNewton’s laws in x and ythe force Newton has to findvelocity

The orange body moves by equations the library derives from T − V alone, differentiating it exactly by computer. The lime ring is a separate simulation in x and y with the forces worked out explicitly. Both use fourth-order Runge–Kutta, 600 steps for each second on screen, and nothing holds them together: they agree because the two formulations do. Long, wild swings of the spring are chaotic, so there rounding errors would in the end show. Idealised: point masses, massless rods and springs, no friction or air. The potential and total bars are drawn from the lowest potential energy; the numbers beside them are V and T + V as written above.

Go deeper:Generalised Coordinates

The smallest number of quantities that fix a system’s position is its number of degrees of freedom: one for a pendulum, two for a pendulum on a cart. Any set of that many quantities will do as coordinates, whether lengths, angles or something stranger, because the action is a number belonging to the path, and a stationary path is stationary however it is described. Each coordinate qi gets its own equation,

d/dt (∂L/∂q̇i) = ∂L/∂qi

and all of them have the same form. The quantity pi = ∂L/∂q̇i is the momentum belonging to that coordinate. For a distance it is ordinary momentum, and for an angle it is angular momentum.

Why do the tension in the rod and the push of the hoop never appear? Because the coordinates can only describe motions that respect the constraint, and in any such displacement, at a fixed moment, an ideal constraint force does no work: a rod pulls at right angles to the arc. Dropping forces that do no work in the allowed displacements is the idea behind d’Alembert’s principle (1743). The constraint can even move. The hoop is turned by a motor, its push does work on the bead, and T + V is not conserved; but L does not mention the time, and so q̇ ∂L/∂q̇ − L is. For the hoop that is ½mR2θ̇2 plus the effective potential drawn in the demo.

If a coordinate does not appear in L, though its rate of change may, the right side of its equation is zero and its momentum is constant. Such a coordinate is called cyclic. The cart’s position is cyclic, so horizontal momentum is conserved; the planet’s angle is cyclic, so angular momentum is. See also: Symmetry and Conservation.

Nothing in the method asks whether the coordinates are attached to something that turns. Write T in rotating coordinates and the centrifugal and Coriolis terms arrive by themselves, with the right signs. See also: Moving and Spinning Frames. Lagrange was proud that all of this was algebra: the preface to his book announces that no diagrams will be found in it. Friction is the main thing left out, because it is not the slope of a potential energy; it has to be added to the equations by hand, as the hoop’s friction switch does.

The Fastest Slide

Shape a wire from A to B, race a bead down it against the others, then reveal the fastest. The other tabs time beads from different heights in a bowl, send a lifeguard to a swimmer, and show how light solves the puzzle.

Wire, quickest firstLengthPredictedStopwatch
steep drop, then flat5.57 m1.5202 s—
circular arc5.13 m1.8263 s—
your wire5.10 m2.1043 s—
straight line5.10 m2.3027 s—
2.1043 s
your wire
hidden
the fastest possible: θ√(r/g)
hidden
yours is slower by
Every bead starts from rest, and its speed depends only on how far it has dropped. The straight line is the shortest way; is it the quickest? Shape your wire to beat the arc, then reveal the fastest.
your wirestraight linecircular arcsteep drop, then flat

Lengths in metres, times in seconds. Idealised: the beads are point masses, the wires have no friction, and the corner in “steep drop, then flat” is taken at full speed. “Predicted” is the descent-time formula applied to the wire cut into short straight pieces; “Stopwatch” follows the bead step by step (velocity Verlet, 4000 steps a second), so the two can differ in the last place. B can be dragged up and down.

Go deeper:The Brachistochrone, and Other Things That Are Least

In June 1696 Johann Bernoulli challenged the mathematicians of Europe to find the curve of quickest descent, the brachistochrone. Galileo had shown in 1638 that a bead on a circular arc beats one on the straight chord, and seems to have believed the arc to be the best. Solutions came from Leibniz, from Johann’s brother Jakob Bernoulli, from l’Hôpital, and from an anonymous author in England: Newton, who by his niece’s account came home tired from the Mint, and had solved it before he slept. Bernoulli is said to have recognised the author at once, “as the lion is known by his claw”.

With y measured downward from the start, energy conservation gives the speed √(2gy), so the time is

time = ∫ √((1 + y′2) / (2gy)) dx

This is an action with x playing the part of time. The integrand does not mention x, so y′ ∂F/∂y′ − F is constant along the best curve, exactly as energy is constant in mechanics, and that simplifies to y(1 + y′2) = 2r. Its solution is the cycloid x = r(θ − sin θ), y = r(1 − cos θ), along which the bead takes a time θ√(r/g). The curve starts vertically, and it goes below B whenever B is more than π/2 times as far across as down. Johann Bernoulli’s own route was through light: sin θ/v constant in a medium where v = √(2gy) is the same equation. See also: Applications of Integration.

Turned upside down, the cycloid has a second property, found by Huygens in 1659: a bead released at rest anywhere on it reaches the bottom in the same time, π√(r/g). Measured along the curve from the bottom, the height is s2/8r, so the energy is that of a spring and the swing is exactly regular. A pendulum whose string wraps against cycloidal cheeks moves on such a curve, and so keeps time whatever its amplitude. See also: Oscillations and Resonance.

Once looked for, stationary principles are everywhere: soap films settle into surfaces of least area (see also: Minimal Surfaces) and geodesics are paths of stationary length on a curved surface (see also: Differential Geometry). A caution: that nature “economises” is a way of writing laws, not a purpose behind them. Any law whose forces come from a potential can be written so, and the quantity is often not least but only stationary.

Key Takeaways

  • The action of a path is the total, over time, of kinetic minus potential energy.
  • The path that obeys F = ma is the one whose action is stationary: a minimum over short times, sometimes a saddle over long ones.
  • Write T − V in any coordinates and the equations of motion follow, with no constraint forces to find and a conserved momentum for every coordinate that does not appear.
  • The quickest wire is a cycloid and the quickest crossing obeys Snell’s law: asking what is stationary works well beyond mechanics.

Spot a mistake or have an idea?

Search