∇ProvenDecisions
Ctrl K

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.

Answer. The least time is 0.582895. time = 0.582895; straight_ramp_time = 0.638551; cycloid_radius = 0.572917; end_angle_rad = 2.41201.

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

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.

time0.582895straight_ramp_time0.638551cycloid_radius0.572917end_angle_rad2.41201

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=1

Change the numbers and solve it

Checked: the app's answer matches the reference answer in our test set. Built 2026-11-10.

Related examples

All 50 solved examples

Try ProvenDecisions free: type, photograph or say an optimization problem; every answer is checked by a solver.

What do you want to optimize?

Type the math, describe it in words, snap a photo or say it. ProvenDecisions builds the model, solves it, checks it and walks you through it.

One constraint per line, or separated by commas. Add integer: x, y or binary: z for whole-number decisions. LaTeX works too.

Try: