Brachistochrone
A ball slides from point A to a lower point B by gravity alone. Along which path does it arrive first? Drag point B, draw your own path and start the race.
Race
Drag point B with the mouse or a finger. Draw your own path in one stroke from A to B.
Paths
The parabola has its vertex at B, the circular arc starts vertically at A. The cycloid is computed to pass through B.
Physics
A rolling solid ball keeps part of its energy in rotation: v = √(10gy/7) – the same path, a longer time. Friction is approximate (no centrifugal force).
Tautochrone
Three balls released from different heights on the same cycloid reach the bottom at the same time.
Times
| Path | Time | Place |
|---|
Press Start – the balls set off together.
Why not the line?
The line is the shortest, but the ball speeds up slowly on it. A steeper start gets it going fast, and the longer path pays off. The cycloid is the best compromise between length and speed.
Below the level of B
If B is far and low (x_B/y_B > π/2), the fastest path first dips below B and then rises to it – down there it gains speed it still uses at the end.
Tautochrone
On a cycloid, the way to the bottom takes the same time wherever the ball starts: T = π√(r/g). Christiaan Huygens used it for pendulum clocks – a pendulum between cycloidal cheeks swings with the same period at small and large amplitudes.
History
Johann Bernoulli posed the problem in 1696 as a challenge to Europe's mathematicians. Solutions came from Isaac Newton (anonymously – Bernoulli is said to have recognized "the lion by its claw"), Gottfried Leibniz, Jakob Bernoulli and the Marquis de L'Hôpital. The calculus of variations grew out of the problem.
The mathematics behind the demo
The time of the slide is a functional – a number depending on the whole curve. We look for the curve that makes it the smallest.
The time of the slide
By the conservation of energy, the ball at depth y has the speed v = √(2gy) (the y-axis points down). The time is the sum of the pieces ds/v:
T[y] = ∫ ds / v = ∫ √(1 + y′²) / √(2gy) dxThe Euler–Lagrange equation
The integrand F = √((1 + y′²)/y) doesn't depend on x, so Beltrami's identity F − y′·∂F/∂y′ = const gives an equation of the first order:
y · (1 + y′²) = 2rThe cycloid
Its solution is the cycloid – the curve of a point on a circle of radius r rolling along a horizontal line:
x = r(θ − sin θ), y = r(1 − cos θ)The end angle θ_B comes from (θ − sin θ)/(1 − cos θ) = x_B/y_B by bisection, and the time is T = θ_B·√(r/g).
What the demo computes
It splits every path into 400 pieces and adds up the times 2·ds/(v₁ + v₂). For A → B 2 m to the side and 1 m down, the line takes 1.010 s, the parabola 0.862 s, the arc 0.830 s and the cycloid 0.806 s.
The Mathtrace app does the same computation with the steps: the notation functional(sqrt(1 + y'^2)/sqrt(2*9.81*y); y(0) = 0; y(2) = 1) or the Calculus of variations form.