In June 1696 Johann Bernoulli posed the brachistochrone as a public challenge “to the sharpest mathematicians of the world,” allowing six months. Correct solutions came from Leibniz, from Johann’s brother and rival Jakob Bernoulli, from l’Hôpital, and — famously — from Isaac Newton, then Master of the Mint. Newton reportedly received the problem in the afternoon, stayed up through the night, and sent his solution anonymously. Bernoulli, recognising the author instantly from the power of the method, is said to have remarked “tanquam ex ungue leonem” — “I recognise the lion by his claw.” Johann’s own solution was a stroke of genius: he treated the bead as a ray of light and applied Fermat’s principle and Snell’s law layer by layer, uncovering the deep link between least-time optics and mechanics that Hamilton would later make into a single theory. The winning curve, the cycloid, is also Huygens’s tautochrone — the curve on which a bead’s period is independent of where it starts — so the fastest descent and the perfect pendulum are the same shape.
12.3 Classic problems: brachistochrone, catenary, geodesics, Fermat
The Euler–Lagrange equation and its two first integrals (12.2) are now enough to solve the problems that built the subject. Each is a different integrand ; the method is identical every time.
The brachistochrone
A bead slides without friction from a high point to a lower point under gravity. Of all the curves joining them, which gives the shortest descent time? (Greek brákhistos, shortest; khrónos, time.) Not the straight line — the answer is a cycloid, and it is where the calculus of variations began.
▶ The fastest descent is a cycloid Derivation
Put at the origin with measured downward. A bead released from rest reaches depth with speed set by energy conservation, , so . The travel time is arc length over speed:
The integrand has no explicit , so use the Beltrami identity . Computing and forming the combination, the terms collapse:
with a positive constant. This is the differential equation of a cycloid — the curve traced by a point on a rim of a wheel of radius rolling along the underside of the -axis. Its solution in parametric form is
as you can verify by substituting into using . The single constant (and the range of ) is fixed by requiring the curve to pass through .
- descent time — the functional being minimised s
- bead speed at depth y (from rest, energy conservation) m/s
- radius of the generating circle of the cycloid m
- the rolling angle parametrising the cycloid rad
The straight line is the shortest path but not the fastest: the cycloid drops steeply at first to build speed, then flattens. Minimising travel time is a calculus-of-variations problem, and its extremal is this curve.
Race the three curves. The straight line is the shortest path but not the fastest: the cycloid dives steeply at the start to buy speed, then trades that speed for a gentler run-in to , and wins overall. Move and the winning margin changes but the cycloid always leads. That the fastest route is not the shortest is the lesson the brachistochrone taught the seventeenth century — and the first hint that “least” problems in physics rarely have the naïve answer.
The history — Bernoulli's challenge and the lion's claw
The catenary and the soap film
Hang a flexible chain from two points and it settles into a curve that minimises its gravitational potential energy — the catenary. The identical curve arises, for a different reason, as the shape of a soap film spanning two rings: the film minimises its area, and the surface of revolution of least area has a catenary profile.
▶ Least area of revolution gives y = a cosh(x/a) Derivation
Revolving about the -axis sweeps a surface of area . Drop the constant ; the integrand has no explicit , so Beltrami again:
Rearranging, , a separable first-order equation whose solution is the hyperbolic cosine:
The constants and are set by the two endpoints. The hanging chain gives the same for a subtly different problem — minimise potential energy subject to fixed chain length — a constrained problem we solve with a Lagrange multiplier in 12.4.
Geodesics
The geodesic problem — the shortest path between two points on a surface — is the arc-length functional restricted to the surface. On a plane the extremal is a straight line (12.2); on a sphere it is a great circle; on a cylinder a helix. Writing the surface’s own distance element in surface coordinates and applying Euler–Lagrange yields the geodesic equation, whose solutions are the “straightest possible” curves a surface allows. This is the exact object that, for the curved spacetime of general relativity, becomes the path of a freely falling body: gravity as geometry is a variational principle, .
Fermat’s principle and Snell’s law
Light travels between two points along the path of least time — Fermat’s principle. In a medium of refractive index the local speed is , so the time is proportional to the optical path length . From this one functional, the law of refraction falls out.
▶ Snell's law from least time Derivation
Take layers stacked in , with index , and describe the ray by . The optical path is with ; the integrand has no explicit , so the coordinate is cyclic and its conjugate quantity is conserved:
The fraction is , where is the angle the ray makes with the vertical (the normal to the layers). Hence
along the ray — Snell’s law in its general form. Across a sharp interface between two media it becomes . The same first-integral logic gives the acoustic Snell’s law for sound crossing a sound-speed gradient (Sound 7.2) and underlies ray (geometric) acoustics.
These four problems — one integrand each — show the pattern the whole subject runs on: write the quantity to be extremised as , apply Euler–Lagrange or a first integral, and read off the curve. The next lesson handles the case the catenary flagged — extremising when the competitors must also satisfy a constraint.