Brachistochrone (fastest slide): a calculus of variations example, solved and checked
The brachistochrone (fastest slide) is a classic calculus of variations problem. Here it is solved by a real solver (closed form) and checked: every constraint, and the optimality certificate. Change the numbers below and solve your own.
Solve your own version free, no account needed
The problem
A bead slides without friction under gravity (g = 9.81 m/s^2) from rest at (0, 0) to a point 1 m across and 1 m down. Which curve gets it there fastest, and how long does it take? Compare with a straight ramp.
How the model was built
- Times are in seconds. The time along a curve adds up length ÷ speed, and a bead that has dropped a height y moves at √(2 g y) (energy is conserved), which gives the integral.
The model
Recognized as a standard problem: brachistochrone. The formula states the optimization being solved.
Problem type
Complexity level 7: calculus of variations, nonconvex; solved exactly by the cycloid. Method: closed form.
The answer at a glance
The optimal value of each decision, as the solver returned it.
Verification
Closed form (cycloid through both points, end-point residual 2.2e-16). A straight ramp takes 0.638551 s. Verified.
Solve your own
This is the model as the app reads it. Change any number and solve it in the free box on the front page (no account needed).
pattern: brachistochrone g=9.81 across=1 down=1Checked: the app's answer matches the reference answer in our test set. Built 2026-11-10.
Related examples
Try ProvenDecisions free: type, photograph or say an optimization problem; every answer is checked by a solver.