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
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.
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.
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.
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.
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.
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.
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.
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 first | Length | Predicted | Stopwatch |
|---|---|---|---|
| steep drop, then flat | 5.57 m | 1.5202 s | — |
| circular arc | 5.13 m | 1.8263 s | — |
| your wire | 5.10 m | 2.1043 s | — |
| straight line | 5.10 m | 2.3027 s | — |
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.
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.
Spot a mistake or have an idea?