The Brachistochrone Problem

The brachistochrone — from the Greek brachistos (shortest) and chronos (time) — is the curve of fastest descent, and it is the problem that gave birth to a whole branch of mathematics. Fix a start point AA at the origin, take the yy-axis to point downward so depth is positive, and let B=(xB,yB)B=(x_B,y_B) be a lower point that is not directly below AA. A bead released from rest at AA slides without friction under uniform gravity gg. Of all the curves y(x)y(x) that connect AA to BB, which one delivers the bead to BB in the least time? The instinctive answer, the straight chord, is wrong. A curve that dives steeply at the start trades a longer path for a higher speed, and because time is distance divided by speed, front-loading the speed wins. What makes this more than a puzzle is that the descent time is a functional — a number assigned to an entire function — and minimizing it is the founding exercise of the calculus of variations. When Johann Bernoulli posed it as a public challenge in 1696, the answers that came back from Newton, Leibniz, l'Hôpital, and both Bernoulli brothers effectively invented the field that Euler and Lagrange would later systematize. The integrand of the time functional happens to carry no explicit xx-dependence, so a conserved "energy" — the Beltrami first integral — hands us a first-order equation for free, and its solution is a cycloid: the arc traced by a point on the rim of a rolling wheel. The same curve carries a second miracle, the tautochrone property, which let Huygens build a pendulum clock whose period does not depend on how far it swings.

Key takeaways
  • The brachistochrone problem asks for the curve joining two points AA and BB along which a bead, starting from rest and sliding frictionlessly under gravity, reaches BB in the least time — and the answer is not the straight line.
  • It is the founding problem of the calculus of variations: minimize the time functional T[y]=∫ds/vT[y]=\int \mathrm{d}s/v subject to energy conservation v=2gyv=\sqrt{2gy}.
  • The integrand depends on yy and y′y' but not on xx, so the Beltrami identity gives a first integral immediately, cutting the second-order Euler–Lagrange equation down to one first-order ODE, y(1+y′2)=2ay(1+y'^2)=2a.
  • The solution is the cycloid x=a(θ−sin⁡θ), y=a(1−cos⁡θ)x=a(\theta-\sin\theta),\ y=a(1-\cos\theta); the descent time from the cusp is the strikingly simple T=θBa/gT=\theta_B\sqrt{a/g}.
  • The very same cycloid is the tautochrone: the time to reach its lowest point is πa/g\pi\sqrt{a/g} no matter where the bead is released — the fact Huygens turned into the isochronous pendulum clock.
  • Key idea: minimizing T[y]=∫0xB(1+y′2)/(2gy) dxT[y]=\int_0^{x_B}\sqrt{(1+y'^2)/(2gy)}\,\mathrm{d}x with an xx-independent integrand yields, through the Beltrami identity, a first integral whose solution is the cycloid x=a(θ−sin⁡θ), y=a(1−cos⁡θ)x=a(\theta-\sin\theta),\ y=a(1-\cos\theta).
The core insight

Minimizing the descent-time functional T[y]=∫0xB(1+y′2)/(2gy) dxT[y]=\int_0^{x_B}\sqrt{(1+y'^2)/(2gy)}\,\mathrm{d}x, whose integrand has no explicit xx-dependence, yields through the Beltrami first integral the reduced equation y(1+y′2)=2ay(1+y'^2)=2a, whose solution is the cycloid x=a(θ−sin⁡θ), y=a(1−cos⁡θ)x=a(\theta-\sin\theta),\ y=a(1-\cos\theta) — the curve that is simultaneously the fastest descent (brachistochrone) and the equal-time descent (tautochrone).

Where this lives today

The brachistochrone is three centuries old, yet its machinery is exactly that of modern optimal-control and trajectory optimization. Every problem of the form "minimize a travel time or cost subject to dynamics" — a robot arm slewing in minimum time, a spacecraft threading a low-thrust transfer — is a direct descendant, solved by the Euler–Lagrange equation's control-theory generalization, Pontryagin's maximum principle. The cycloid itself resurfaces in the tautochrone: precision clocks and vibration isolators still exploit cycloidal constraints to make a period amplitude-independent. It is even a live demo: departments race beads down machined straight and cycloidal tracks — the cycloid bead reliably wins, and beads dropped from different heights on the same cycloid arrive at the bottom together, a tabletop proof of the tautochrone. The deepest legacy is conceptual: the optical–mechanical analogy Bernoulli used runs straight through Hamilton's principle and the eikonal limit to the path-integral formulation of quantum mechanics, where a particle "tries all paths" and the classical trajectory is the stationary-time one — the brachistochrone idea, promoted to a law of nature.

The physical picture

Race two beads down two frictionless ramps to the same finishing point: one a straight chord, the other a curve that plunges steeply at first and then flattens. The plunging ramp converts height into speed early, so the bead spends most of its trip travelling fast, and the time saved at high speed more than pays for the extra distance. That is the entire physical content of the problem — a competition between a shorter path and an earlier speed-up — and the calculus of variations is simply the bookkeeping that finds the exact winning compromise. The first figure runs the race with real numbers.

Figure
Two frictionless ramps from A to the same lower point B = (πa, 2a): the straight chord and the cycloid. Starting from rest under gravity g = 9.8 m/s² with a = 1 m, the bead reaches B in T = 1.00 s along the cycloid but 1.19 s along the straight line — the cycloid wins by the factor √(π²+4)/π ≈ 1.19, independent of a and g
The fastest curve is not the shortest — the cycloid dives to gain speed, then wins the race A B = (πa, 2a) straight chord T = 1.19 s cycloid T = 1.00 s g y measured downward · speed v = √(2gy) cycloid beats the chord by √(π²+4)/π ≈ 1.19 for every a and g

Johann Bernoulli found the answer without any calculus of variations at all — he imagined light instead of a bead. By Fermat's principle a light ray takes the path of least time, exactly the quantity we are minimizing. Picture a medium sliced into thin horizontal layers in which the speed of light grows with depth as v=2gyv=\sqrt{2gy}, precisely mimicking the falling bead. Snell's law at each interface keeps the ratio sin⁡ϕ/v\sin\phi/v constant, where ϕ\phi is the angle to the vertical; taking the layers infinitely thin turns that optical condition into an equation identical to the brachistochrone first integral, and the curve the ray sweeps out is the cycloid. This optical–mechanical bridge — a mechanical trajectory extremizes an "action" just as a ray extremizes optical path length — is the seed of Hamilton's principle, and the brachistochrone is where it first flowered. The cycloid answer is geometrically vivid: it is the trace of a chalk mark on a rolling wheel. The bead effectively rolls down an inverted cycloidal track, and — the second miracle — no matter where on that track it starts from rest, it arrives at the lowest point in exactly the same time. The second figure shows how the rolling circle generates the curve and where the two special points AA and BB sit.

Figure
The cycloid x = a(θ − sinθ), y = a(1 − cosθ) is the path traced by a rim point of a circle of radius a rolling beneath the line y = 0. The rolling angle θ runs from 0 at the cusp A to π at the lowest point B = (πa, 2a); this single curve is both the brachistochrone and the tautochrone
A point on a rolling circle traces the cycloid: x = a(θ − sinθ), y = a(1 − cosθ) rolling line y = 0 a θ A cusp θ = 0 tracing point B = (πa, 2a) lowest point θ = π circle rolls this way arc length A→B on the cycloid is 4a; descent time A→B is π√(a/g)

The core equations

The problem starts from a single sentence made precise: the descent time is the accumulated arc length divided by the local speed, integrated along the curve. Everything else is a computation of, or a consequence of, this one functional.

T[y]=∫ABdsv(1)T[y]=\int_A^B \frac{\mathrm{d}s}{v} \qquad (1)

where: TT — total descent time, the functional to be minimized; ds\mathrm{d}s — arc-length element along the curve; vv — the bead's speed at that point. Reading it: to make TT small you want vv large where ds\mathrm{d}s is being accumulated, which biases the curve toward gaining speed early. The speed is fixed pointwise by energy conservation. A bead released from rest and having fallen a depth yy has converted potential energy into kinetic energy, and the mass cancels.

v=2gy(2)v=\sqrt{2gy} \qquad (2)

where: gg — gravitational acceleration; yy — depth fallen below the start, positive downward. Reading it: the speed depends only on the depth, not on the path taken to get there, and it vanishes at the start where y=0y=0. Substituting the arc-length element ds=1+y′2 dx\mathrm{d}s=\sqrt{1+y'^2}\,\mathrm{d}x and the speed (2)(2) turns the abstract functional into an explicit integral over xx.

T[y]=12g∫0xB1+y′2y dx(3)T[y]=\frac{1}{\sqrt{2g}}\int_0^{x_B}\sqrt{\frac{1+y'^2}{y}}\,\mathrm{d}x \qquad (3)

where: y′=dy/dxy'=\mathrm{d}y/\mathrm{d}x — the local slope; xBx_B — the horizontal coordinate of BB. Reading it: the integrand f(y,y′)=(1+y′2)/yf(y,y')=\sqrt{(1+y'^2)/y} contains yy and y′y' but no explicit xx — the structural fact that makes the problem solvable in closed form. Because ff has no explicit xx-dependence, the Euler–Lagrange equation admits a first integral: the combination below is constant along the extremal. This is the Beltrami identity, the "energy" of the variational problem.

f−y′∂f∂y′=C(4)f-y'\frac{\partial f}{\partial y'}=C \qquad (4)

where: ff — the integrand (1+y′2)/y\sqrt{(1+y'^2)/y}; CC — a constant set by the geometry. Reading it: this replaces a second-order differential equation with a first-order one, exactly as conservation of energy replaces Newton's second law with a first-order relation in one-dimensional mechanics. Evaluating (4)(4) for the brachistochrone integrand collapses to a strikingly simple first-order ODE.

y (1+y′2)=2a(5)y\,(1+y'^2)=2a \qquad (5)

where: 2a=1/C22a=1/C^2 — a constant with the dimensions of length; aa turns out to be the radius of the generating circle. Reading it: this separable equation is the whole problem in one line, and every curve satisfying it is a cycloid. Integrating (5)(5) and introducing the rolling angle θ\theta as parameter yields the cycloid in its cleanest form.

x=a(θ−sin⁡θ),y=a(1−cos⁡θ)(6)x=a(\theta-\sin\theta),\qquad y=a(1-\cos\theta) \qquad (6)

where: aa — radius of the generating circle; θ\theta — rolling angle, 0≤θ≤θB0\le\theta\le\theta_B. Reading it: at θ=0\theta=0 the curve is at the cusp AA; the two unknowns aa and θB\theta_B are pinned down by demanding that the curve pass through BB. A remarkable dividend falls out of the cycloid geometry: the descent time from the cusp, worked out in Derivation 3, is linear in the rolling angle and independent of the release point at the bottom.

T=θBag → θB=π  T=πag(7)T=\theta_B\sqrt{\frac{a}{g}}\ \xrightarrow{\ \theta_B=\pi\ }\ T=\pi\sqrt{\frac{a}{g}} \qquad (7)

where: θB\theta_B — rolling angle at the endpoint; the right-hand form is the time to reach the lowest point, the same for any starting height on the arc. Reading it: this is the tautochrone (equal-time) property, the fact Huygens exploited for the pendulum clock. Finally, Bernoulli's optical route encodes the same physics as a Snell's-law condition, revealing the mechanics–optics analogy directly.

sin⁡ϕv=const(8)\frac{\sin\phi}{v}=\text{const} \qquad (8)

where: ϕ\phi — the angle the path makes with the vertical; v=2gyv=\sqrt{2gy} — the local speed. Reading it: this is Snell's law for a continuously stratified medium, and squaring it reproduces the reduced ODE (5)(5) exactly.

Derivation AFrom the descent time to a first integral

The goal is to turn the physical statement "least descent time" into a solvable differential equation. We write the time as an explicit functional, invoke stationarity to get the Euler–Lagrange equation, and then exploit the single most important structural feature of the integrand — that it does not contain the independent variable xx — to extract the Beltrami first integral, reducing a second-order problem to a first-order one that we can separate and integrate. The payoff is the compact equation y(1+y′2)=2ay(1+y'^2)=2a.

Step 1. The descent time is T[y]=12g∫0xBf(y,y′) dxT[y]=\frac{1}{\sqrt{2g}}\int_0^{x_B}f(y,y')\,\mathrm{d}x with f=(1+y′2)/yf=\sqrt{(1+y'^2)/y}, and stationarity δT=0\delta T=0 under variations that vanish at the fixed endpoints gives the Euler–Lagrange equation ∂f∂y−ddx∂f∂y′=0\dfrac{\partial f}{\partial y}-\dfrac{\mathrm{d}}{\mathrm{d}x}\dfrac{\partial f}{\partial y'}=0. Why: the extremal curve is the one for which no admissible small deformation lowers the time to first order.

Step 2. Because ∂f/∂x=0\partial f/\partial x=0, the Euler–Lagrange equation has an immediate first integral: the Beltrami combination f−y′ ∂f/∂y′f-y'\,\partial f/\partial y' is constant along the extremal. Why: this is the variational analogue of energy conservation for an xx-autonomous integrand — it saves one order of differentiation, exactly the shortcut that makes the brachistochrone tractable by hand.

Step 3. Differentiate f=(1+y′2)/yf=\sqrt{(1+y'^2)/y} with respect to y′y' holding yy fixed, giving ∂f∂y′=y′y 1+y′2=y′y(1+y′2)\dfrac{\partial f}{\partial y'}=\dfrac{y'}{\sqrt{y}\,\sqrt{1+y'^2}}=\dfrac{y'}{\sqrt{y(1+y'^2)}}. Why: this is the only derivative the Beltrami identity needs, and it isolates the y′y'-dependence cleanly.

Step 4. Form the first integral: f−y′∂f∂y′=(1+y′2)−y′2y(1+y′2)=1y(1+y′2)=Cf-y'\dfrac{\partial f}{\partial y'}=\dfrac{(1+y'^2)-y'^2}{\sqrt{y(1+y'^2)}}=\dfrac{1}{\sqrt{y(1+y'^2)}}=C. Why: the numerator collapses because the y′2y'^2 term exactly cancels the y′⋅y′y'\cdot y' term, leaving only the "1" — the small algebraic miracle that makes the answer so clean.

Step 5. Square both sides and rearrange to y(1+y′2)=1/C2≡2ay(1+y'^2)=1/C^2\equiv 2a. Why: naming the constant 2a2a anticipates the geometry — aa will be the radius of the rolling circle — and leaves a separable first-order ODE ready to integrate.

Go deeper · Derivation B · 1 minIntegrating the equation to reveal the cycloid
Derivation BIntegrating the equation to reveal the cycloid

The goal is to solve the reduced equation y(1+y′2)=2ay(1+y'^2)=2a explicitly and to recognize its solution as the cycloid. We separate the variables, and the resulting radical y/(2a−y)\sqrt{y/(2a-y)} signals a half-angle substitution that rationalizes everything in one stroke; integrating then produces the parametric cycloid, with the constant of integration fixed by anchoring the curve at the origin. The result is the pair x=a(θ−sin⁡θ), y=a(1−cos⁡θ)x=a(\theta-\sin\theta),\ y=a(1-\cos\theta).

Step 1. Solve (5)(5) for the slope on the descending branch, y′=dydx=2a−yyy'=\dfrac{\mathrm{d}y}{\mathrm{d}x}=\sqrt{\dfrac{2a-y}{y}}, taking the positive root since yy increases with xx as the bead descends. Why: near the start y→0y\to0 makes y′→∞y'\to\infty, correctly predicting the vertical launch — the fastest curve drops straight down to gain speed.

Step 2. Separate the variables into dx=y2a−y dy\mathrm{d}x=\sqrt{\dfrac{y}{2a-y}}\,\mathrm{d}y, putting all yy-dependence on one side. Why: the radical y/(2a−y)\sqrt{y/(2a-y)} is a dead giveaway for a trigonometric substitution that turns yy into a circular function.

Step 3. Substitute y=a(1−cos⁡θ)=2asin⁡2(θ/2)y=a(1-\cos\theta)=2a\sin^2(\theta/2), which makes 2a−y=a(1+cos⁡θ)=2acos⁡2(θ/2)2a-y=a(1+\cos\theta)=2a\cos^2(\theta/2) and hence y/(2a−y)=tan⁡(θ/2)\sqrt{y/(2a-y)}=\tan(\theta/2). Why: this choice is exactly what rationalizes the radical, and it is the parametrization the cusp geometry demands (y=0y=0 at θ=0\theta=0).

Step 4. With dy=asin⁡θ dθ\mathrm{d}y=a\sin\theta\,\mathrm{d}\theta and sin⁡θ=2sin⁡(θ/2)cos⁡(θ/2)\sin\theta=2\sin(\theta/2)\cos(\theta/2), the differential becomes dx=tan⁡(θ/2)⋅asin⁡θ dθ=a(1−cos⁡θ) dθ\mathrm{d}x=\tan(\theta/2)\cdot a\sin\theta\,\mathrm{d}\theta=a(1-\cos\theta)\,\mathrm{d}\theta. Why: the tan⁡(θ/2)\tan(\theta/2) and the cos⁡(θ/2)\cos(\theta/2) inside sin⁡θ\sin\theta combine into the elementary a(1−cos⁡θ)a(1-\cos\theta), which integrates in closed form.

Step 5. Integrate to get x=a(θ−sin⁡θ)+constx=a(\theta-\sin\theta)+\text{const}; anchoring at AA (the origin, x=0x=0 at θ=0\theta=0) sets the constant to zero, so (x,y)=(a(θ−sin⁡θ), a(1−cos⁡θ))(x,y)=\big(a(\theta-\sin\theta),\,a(1-\cos\theta)\big) — a cycloid, with aa and θB\theta_B fixed by requiring passage through BB. Why: exactly two conditions (xBx_B and yBy_B) fix exactly two constants, so the extremal through any admissible BB is unique.

Go deeper · Derivation C · 1 minThe tautochrone descent time
Derivation CThe tautochrone descent time

The goal is to compute how long the bead takes to slide down the cycloid and to expose the tautochrone miracle: the descent time to the lowest point is the same regardless of where on the arc the bead is released from rest. We compute the arc-length and speed as functions of the rolling angle, and watch the awkward sin⁡(θ/2)\sin(\theta/2) factors cancel identically, leaving a trivially constant integrand. The result is T=πa/gT=\pi\sqrt{a/g}, independent of the release point.

Step 1. On the cycloid x˙=a(1−cos⁡θ)\dot x=a(1-\cos\theta) and y˙=asin⁡θ\dot y=a\sin\theta, so the arc-length element is ds=x˙2+y˙2 dθ=2asin⁡(θ/2) dθ\mathrm{d}s=\sqrt{\dot x^2+\dot y^2}\,\mathrm{d}\theta=2a\sin(\theta/2)\,\mathrm{d}\theta. Why: the half-angle identity 2(1−cos⁡θ)=2sin⁡(θ/2)\sqrt{2(1-\cos\theta)}=2\sin(\theta/2) produces the same sin⁡(θ/2)\sin(\theta/2) that will appear in the speed, setting up the cancellation.

Step 2. Releasing from rest at the cusp, the speed is v=2gy=2g⋅2asin⁡2(θ/2)=2ga sin⁡(θ/2)v=\sqrt{2gy}=\sqrt{2g\cdot 2a\sin^2(\theta/2)}=2\sqrt{ga}\,\sin(\theta/2). Why: writing y=2asin⁡2(θ/2)y=2a\sin^2(\theta/2) makes the depth, and hence the speed, proportional to the very factor sin⁡(θ/2)\sin(\theta/2) sitting in ds\mathrm{d}s.

Step 3. The time integral therefore collapses: T=∫0θB2asin⁡(θ/2)2ga sin⁡(θ/2) dθ=ag∫0θBdθ=θBagT=\displaystyle\int_0^{\theta_B}\frac{2a\sin(\theta/2)}{2\sqrt{ga}\,\sin(\theta/2)}\,\mathrm{d}\theta=\sqrt{\frac{a}{g}}\int_0^{\theta_B}\mathrm{d}\theta=\theta_B\sqrt{\frac{a}{g}}. Why: the sin⁡(θ/2)\sin(\theta/2) cancels exactly, so the integrand is a constant — the descent time is simply linear in the rolling angle.

Step 4. Setting θB=π\theta_B=\pi (the lowest point) gives T=πa/gT=\pi\sqrt{a/g}; with a=1 ma=1\ \mathrm{m} and g=9.8 m/s2g=9.8\ \mathrm{m/s^2} this is 1.00 s1.00\ \mathrm{s}. Why: this is the quarter-period of the cycloidal pendulum, the number Huygens needed for a clock.

Step 5. For release from rest at an arbitrary point θ0>0\theta_0>0, the speed becomes v=2ga(cos⁡θ0−cos⁡θ)v=\sqrt{2ga(\cos\theta_0-\cos\theta)}, and the substitution u=cos⁡(θ/2)u=\cos(\theta/2) turns the descent time into T=2ag∫0cos⁡(θ0/2)ducos⁡2(θ0/2)−u2=2ag⋅π2=πagT=2\sqrt{\dfrac{a}{g}}\displaystyle\int_0^{\cos(\theta_0/2)}\dfrac{\mathrm{d}u}{\sqrt{\cos^2(\theta_0/2)-u^2}}=2\sqrt{\dfrac{a}{g}}\cdot\dfrac{\pi}{2}=\pi\sqrt{\dfrac{a}{g}}. Why: the arcsine integral evaluates to π/2\pi/2 whatever θ0\theta_0 is, so every release point gives the identical descent time — the tautochrone property that makes the cycloidal pendulum isochronous.

Limiting cases

CaseResultMeaning
Vertical descent (xB→0x_B\to 0)θB→0, y′→∞\theta_B\to0,\ y'\to\inftyWhen BB lies almost directly below AA, the cycloid degenerates toward a straight vertical free-fall — the only case in which the straight line is optimal.
Cusp at the startdy/dx∣θ→0→∞\left.\mathrm{d}y/\mathrm{d}x\right|_{\theta\to0}\to\inftyAt AA the cycloid leaves vertically: the fastest curve always drops straight down first to build speed as fast as possible.
Endpoint at the bottomθB=π: x=aπ, y=2a\theta_B=\pi:\ x=a\pi,\ y=2aIf BB sits on the horizontal through the cycloid's lowest point, the optimal arc has θB=π\theta_B=\pi and the bead is moving horizontally as it arrives.
Beyond the bottomθB>π: y\theta_B>\pi:\ y decreases againIf xB/yBx_B/y_B is large enough the optimal path first descends below BB and then climbs back up — the bead trades a deeper dive for extra speed.
Straight-line comparisonTline/Tcycloid=π2+4/π≈1.19T_\text{line}/T_\text{cycloid}=\sqrt{\pi^2+4}/\pi\approx1.19For B=(πa,2a)B=(\pi a,2a) the diagonal chord takes about 19% longer than the cycloid; for any horizontally separated BB the chord is strictly slower.

Worked examples

1 · Cycloid versus straight line, with numbers (fully worked)

Take the generating radius a=1 ma=1\ \mathrm{m} and g=9.8 m/s2g=9.8\ \mathrm{m/s^2}, and let BB be the lowest point of the cycloid, B=(πa, 2a)=(3.14, 2.00) mB=(\pi a,\,2a)=(3.14,\,2.00)\ \mathrm{m}. Compute the descent time along the cycloid and along the straight chord, and find the ratio.

Step 1. From Derivation 3 the cycloid descent time from the cusp to the lowest point (θB=π\theta_B=\pi) is Tcyc=πa/g=π1/9.8=π×0.3194=1.00 sT_\text{cyc}=\pi\sqrt{a/g}=\pi\sqrt{1/9.8}=\pi\times0.3194=\mathbf{1.00\ s}. This used no numerical integration — the tautochrone cancellation made the integrand constant.

Step 2. For the straight chord, the bead undergoes uniform acceleration geff=gsin⁡α=g (yB/L)g_\text{eff}=g\sin\alpha=g\,(y_B/L) along an incline of length L=xB2+yB2=π2+4=3.724 mL=\sqrt{x_B^2+y_B^2}=\sqrt{\pi^2+4}=3.724\ \mathrm{m}. So geff=9.8×(2/3.724)=5.263 m/s2g_\text{eff}=9.8\times(2/3.724)=5.263\ \mathrm{m/s^2}, and from rest L=12gefft2L=\tfrac12 g_\text{eff}t^2 gives Tline=2L/geff=2×3.724/5.263=1.415=1.19 sT_\text{line}=\sqrt{2L/g_\text{eff}}=\sqrt{2\times3.724/5.263}=\sqrt{1.415}=\mathbf{1.19\ s}.

Step 3. The ratio is Tline/Tcyc=1.19/1.00=1.186T_\text{line}/T_\text{cyc}=1.19/1.00=1.186, which is exactly the closed form π2+4/π\sqrt{\pi^2+4}/\pi. Notice both times scale as a/g\sqrt{a/g}, so this ratio is independent of aa and gg: to this endpoint the straight chord is always about 19% slower. Cycloid: 1.00 s; straight line: 1.19 s; the cycloid wins by the factor √(π²+4)/π ≈ 1.19.

2 · Huygens's cycloidal pendulum as a seconds clock (fully worked)

Design a cycloidal pendulum whose period is exactly 2 s2\ \mathrm{s} (a "seconds pendulum," one tick per second), and show it beats an ordinary circular pendulum of the same length at large swing.

Step 1. A bob constrained to a cycloid of generating radius aa has period P=4πa/gP=4\pi\sqrt{a/g} — four times the quarter-period πa/g\pi\sqrt{a/g} of Derivation 3, and amplitude-independent because the cycloid is a tautochrone. Setting P=2 sP=2\ \mathrm{s} gives a/g=1/(2π)\sqrt{a/g}=1/(2\pi), so a=g/(4π2)=9.8/39.48=0.248 ma=g/(4\pi^2)=9.8/39.48=\mathbf{0.248\ m}.

Step 2. The cycloidal pendulum swings as if it were a simple pendulum of length L=4aL=4a (from matching 4πa/g=2πL/g4\pi\sqrt{a/g}=2\pi\sqrt{L/g}), giving L=4×0.248=0.993 mL=4\times0.248=\mathbf{0.993\ m} — essentially the textbook seconds-pendulum length. But unlike the simple pendulum this 2.000 s2.000\ \mathrm{s} holds at every amplitude, small or large.

Step 3. Compare a circular pendulum of the same length 0.993 m0.993\ \mathrm{m}. At vanishing amplitude it also gives 2π0.993/9.8=2.000 s2\pi\sqrt{0.993/9.8}=2.000\ \mathrm{s}, but at a 30∘30^\circ swing the true period is longer by the factor 1+θ02/16=1+(0.524)2/16=1.01711+\theta_0^2/16=1+(0.524)^2/16=1.0171, i.e. 2.034 s2.034\ \mathrm{s} — a 34-millisecond error every swing that accumulates to about 2525 minutes a day. Huygens's cycloidal cheeks bend the suspension so the bob follows a cycloid, killing this error exactly. a = 0.248 m, equivalent length L = 4a = 0.993 m, exact 2.000 s period at any amplitude — versus a 34 ms per-swing error for the circular pendulum at 30°.

Physics of the portrait

The brachistochrone is inseparable from the man who threw it down as a gauntlet to Europe. Johann Bernoulli did not merely pose the problem — he solved it by a stroke of physical insight that reads today like a preview of the next century of theoretical physics.

Origins · 1 minJohann Bernoulli and how this was discovered
JB
Johann Bernoulli
1667–1748 · posed the 1696 brachistochrone challenge and solved it by an optical analogy

Johann Bernoulli, the younger of the two Bernoulli brothers who dominated post-Newtonian analysis, issued the brachistochrone as a public challenge in the June 1696 Acta Eruditorum, daring "the sharpest mathematicians of the world" to find the curve of quickest descent. He gave them six months, then a year at Leibniz's urging. Solutions arrived from Leibniz, from l'Hôpital, from his own brother Jakob, and — famously — anonymously from Newton, who reportedly solved it in a single evening after a day at the Mint; Johann is said to have recognized the author "as one knows the lion by his claw." Bernoulli's own solution is the jewel of the collection. Rather than grinding through variations, he imagined the bead as a ray of light descending through a medium whose optical density varies so that the light speed is v=2gyv=\sqrt{2gy}. Fermat's principle of least time then makes the ray's path the brachistochrone, and Snell's law sin⁡ϕ/v=const\sin\phi/v=\text{const}, applied layer by layer and taken to the continuum, is precisely the first integral y(1+y′2)=2ay(1+y'^2)=2a. The curve is a cycloid. In identifying a mechanical trajectory with an optical ray, Bernoulli anticipated the optical–mechanical analogy that Hamilton would formalize 130 years later — the same analogy that, through the eikonal equation, links classical mechanics to wave mechanics. The problem that launched the calculus of variations also, quietly, foreshadowed quantum theory.

History
1638
— Galileo argues in Two New Sciences that a circular arc beats the straight chord, guessing wrongly at the true curve of quickest descent
1673
— Huygens proves the cycloid is the tautochrone and builds the isochronous cycloidal-cheek pendulum clock
1696
— Johann Bernoulli poses the brachistochrone as a public challenge to Europe's mathematicians in the Acta Eruditorum
1697
— Newton, Leibniz, l'Hôpital, and both Bernoulli brothers publish cycloid solutions, and the calculus of variations is born
1744
— Euler and Lagrange abstract the method into the Euler–Lagrange equation, systematizing the whole field

Going further

Texts. Stone & Goldbart, Mathematics for Physics, §1.1 (the brachistochrone as the opening example of variational calculus) · Arfken & Weber, Mathematical Methods for Physicists, Ch. 22 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, Ch. 22 · Lanczos, The Variational Principles of Mechanics, Ch. II (the tautochrone and Huygens) · Goldstein, Classical Mechanics, §2.2 · Hassani, Mathematical Physics, Ch. on the calculus of variations.

Provenance. The equations are standard textbook results, re-verified here. A checker should recompute: (1) the functional T=12g∫(1+y′2)/y dxT=\frac{1}{\sqrt{2g}}\int\sqrt{(1+y'^2)/y}\,\mathrm{d}x from ds/v\mathrm{d}s/v with v=2gyv=\sqrt{2gy}; (2) the Beltrami reduction to y(1+y′2)=2ay(1+y'^2)=2a; (3) that the cycloid (6)(6) satisfies this ODE; (4) the descent time T=θBa/gT=\theta_B\sqrt{a/g} and the tautochrone T=πa/gT=\pi\sqrt{a/g}; (5) the worked-example numbers Tcyc=1.00 sT_\text{cyc}=1.00\ \mathrm{s}, Tline=1.19 sT_\text{line}=1.19\ \mathrm{s}, ratio π2+4/π=1.186\sqrt{\pi^2+4}/\pi=1.186, and the seconds-pendulum a=0.248 ma=0.248\ \mathrm{m}, L=4a=0.993 mL=4a=0.993\ \mathrm{m}. Cross-check against Stone & Goldbart §1.1, Arfken & Weber Ch. 22, Riley–Hobson–Bence Ch. 22, Goldstein §2.2, and Lanczos Ch. II.

Prerequisites. Functionals and Function Spaces · The Euler–Lagrange Equation · The Beltrami Identity and First Integrals · The First Variation and Stationarity. Leads to. Hamilton's Principle of Stationary Action · Geodesics as Variational Problems · Isoperimetric Problems · Lagrangian Mechanics.

Ask the tutor: Ask me to walk through Bernoulli's Snell's-law derivation line by line, or to solve the cycloid endpoint equations for a specific BB and compare the cycloid time against the straight chord.

Why isn't the straight line the fastest path?

Because least time is not least distance. The straight chord is the shortest route, but the bead travels it slowly at first, since it has not yet fallen far and v=2gyv=\sqrt{2gy} is small near the top. A curve that plunges steeply at the start sacrifices some extra length but builds speed immediately, and it then covers most of its journey moving fast. Time is distance divided by speed, so the accumulated saving from moving quickly outweighs the cost of the longer path. The cycloid is the exact optimum of this trade-off; for the endpoint B=(πa,2a)B=(\pi a,2a) it is about 19% faster than the chord even though it is roughly 8% longer.

The integrand blows up at the start where y = 0 — is the descent time really finite?

Yes. The integrand (1+y′2)/y\sqrt{(1+y'^2)/y} does diverge as y→0y\to0 because the bead starts from rest with v=0v=0, but the divergence is the mild, integrable 1/y1/\sqrt{y} kind. Integrals of 1/y1/\sqrt{y} near y=0y=0 converge — ∫0ϵy−1/2 dy=2ϵ\int_0^\epsilon y^{-1/2}\,\mathrm{d}y=2\sqrt{\epsilon} is finite — so both the descent time and the arc length come out finite. Physically, the bead accelerates so quickly out of the cusp (the curve is vertical there) that it spends only a vanishingly short time in the slow region. The tautochrone calculation makes this concrete: the total time to the bottom is the clean finite number πa/g\pi\sqrt{a/g}.

What is the Beltrami identity actually doing here?

It is the variational version of energy conservation. When a Lagrangian or integrand f(y,y′)f(y,y') contains no explicit independent variable — here no explicit xx — the quantity f−y′ ∂f/∂y′f-y'\,\partial f/\partial y' is conserved along the extremal, exactly as energy is conserved for a time-independent mechanical system. This lets you skip the full second-order Euler–Lagrange equation and write down a first-order equation immediately. For the brachistochrone that first-order equation is y(1+y′2)=2ay(1+y'^2)=2a, which is separable and integrable in closed form. Without the Beltrami shortcut you would face a messier second-order ODE; with it, the cycloid drops out in a couple of lines.

How can one curve be both the brachistochrone and the tautochrone?

They are the same cycloid viewed through two different questions. As the brachistochrone it answers "which curve between AA and BB gives the least descent time?" — a minimization over curves. As the tautochrone it answers "on a fixed cycloid, does the descent time to the bottom depend on where I release the bead?" — and the answer is no, the time is πa/g\pi\sqrt{a/g} from any starting height. The two facts are logically independent (one is about comparing curves, the other about comparing starting points on one curve), but both are properties the cycloid happens to possess. That double role is exactly why Huygens could build an accurate clock: the tautochrone gives amplitude independence, the same cycloid the brachistochrone made famous.

Does the bead's mass, or the value of g, change the optimal curve?

No, neither changes the shape. The speed v=2gyv=\sqrt{2gy} is independent of mass (it cancels out of energy conservation), so the optimal curve is the same for a marble or a boulder. And gg enters the descent time only through the overall prefactor 1/2g1/\sqrt{2g} in the functional; minimizing over curves is unaffected by a constant multiplier, so the extremal cycloid x=a(θ−sin⁡θ), y=a(1−cos⁡θ)x=a(\theta-\sin\theta),\ y=a(1-\cos\theta) has the same shape on the Moon as on Earth. What gg does change is the time to traverse it: since T∝1/gT\propto1/\sqrt{g}, the same cycloid is descended more slowly under weaker gravity — a Moon bead would take about 9.8/1.6≈2.5\sqrt{9.8/1.6}\approx2.5 times as long.

What fixes the size of the cycloid and where it stops?

The parametric cycloid has two free constants: the generating radius aa and the final rolling angle θB\theta_B. The requirement that the curve start at AA (the origin) is already built into the parametrization, since x=y=0x=y=0 at θ=0\theta=0. The two remaining constants are then determined by the two coordinates of the endpoint: demanding a(θB−sin⁡θB)=xBa(\theta_B-\sin\theta_B)=x_B and a(1−cos⁡θB)=yBa(1-\cos\theta_B)=y_B gives two equations in aa and θB\theta_B. Their ratio xB/yB=(θB−sin⁡θB)/(1−cos⁡θB)x_B/y_B=(\theta_B-\sin\theta_B)/(1-\cos\theta_B) fixes θB\theta_B (solved numerically in general), and then either equation fixes aa. A larger horizontal-to-vertical ratio pushes θB\theta_B past π\pi, meaning the optimal path dips below BB before climbing back up to it.

How did Bernoulli's light-ray trick actually work?

He replaced the sliding bead with a ray of light in a medium whose optical properties make the light travel at exactly the bead's speed, v=2gyv=\sqrt{2gy}, increasing with depth. Fermat's principle says light follows the least-time path — the very quantity we want to minimize — so the ray traces the brachistochrone. In a layered medium Snell's law holds at each interface, sin⁡ϕ/v=const\sin\phi/v=\text{const}, where ϕ\phi is the angle to the vertical. Taking the layers infinitely thin makes this a continuous condition along the curve, and squaring it, with sin⁡ϕ=1/1+y′2\sin\phi=1/\sqrt{1+y'^2} and v=2gyv=\sqrt{2gy}, reproduces y(1+y′2)=2ay(1+y'^2)=2a — the same first integral the Beltrami identity gives. It is a beautiful shortcut, and it is the historical root of the optical–mechanical analogy at the heart of Hamiltonian mechanics.

Before this

Where this leads