Physics · Interactive · Calculus of Variations

Two beads. One track each.
Only one arrives first.

And the faster one travels a longer path. That is the beautiful paradox at the heart of the Brachistochrone problem.

▶ Try the interactive app

A student once asked me: "Sir, shouldn't the shortest path also be the fastest path?" I smiled. That question has a 328-year-old answer — and it will surprise you.

What is the Brachistochrone?

In 1696, Johann Bernoulli posed a challenge to the mathematicians of Europe: given two points A and B, where B is lower than A, find the curve along which a frictionless bead slides from A to B in the shortest possible time.

Your first instinct is probably: the straight line. Shortest distance, right? Fastest time, right?

"The straight line is the shortest path. But it is not the fastest. The bead that dives deep first — and curves back up — always wins."

The reason is gravity. A path that dips steeply at the beginning gives the bead a burst of speed early. Even though it travels further, it covers the distance in less time because it is moving so much faster throughout the journey.

The answer Bernoulli found was a cycloid — the curve traced by a point on the rim of a rolling circle. Newton solved it overnight and submitted his answer anonymously. Bernoulli supposedly said: "I recognise the lion by his paw."

Distance vs Time — they optimise differently

Straight line

Least distance

Shortest path. Descends at a constant shallow angle. Gravity accelerates the bead slowly and steadily. Arrives second.

Brachistochrone

Least time

Longer path. Dips steeply first, builds maximum speed early, then uses that speed to sweep across. Arrives first.

This is not an approximation or a simulation trick — it is an exact mathematical result provable from the Euler-Lagrange equation and energy conservation.

A live physics simulator — try it yourself

I built an interactive Brachistochrone Explorer that lets you place any two points on a grid, watch both beads race in real time, and read the exact calculations: distance travelled, time taken, speed at midpoint, and the winning margin.

prayogashaala.com/Brachistrochrone/index.html
A B straight brachistochrone arrived first!
Two beads, two paths, one winner — always the cycloid

Open the Explorer →

What makes this different from a textbook diagram: the beads move according to actual physics — energy conservation, velocity integration, Runge-Kutta — not animation shortcuts. The time displayed is the real predicted descent time.

Six physics modes, one question

The standard cycloid is only exact in a frictionless, uniform-gravity world. Change one assumption and the optimal curve changes shape. The explorer lets you see all of them.

Standard — the pure cycloid

Euler-Lagrange + energy conservation. The exact closed-form solution: x = R(θ−sinθ), y = R(1−cosθ). Newton solved this in one night.

With friction

Add Coulomb friction (μ) and the optimal curve becomes shallower. Steep dives waste energy to friction, so the optimal path is a compromise.

With air drag

Quadratic drag (k·v²) punishes high speed. The ODE dv/ds = g·sinα − (k/m)v² is integrated numerically. No closed form exists.

Variable gravity g(y)

Gravity weakens with depth — like inside a planet. The optimal curve bends differently at each depth. Relevant to geophysics tunnels.

Inverse-square gravity

g(r) = GM/r². The optimal path resembles a hypocycloid. A bead must dive very steeply early because gravity weakens as it goes deeper.

Zero gravity

Degenerate case. With no gravity, constant speed v₀ means time = distance / v₀. Straight line wins both distance and time. The problem has no unique solution.

It is not just a curve — it is a way of thinking

🎢

Roller coasters

Designers use brachistochrone principles to maximise speed at specific points along the track.

🚀

Orbital mechanics

Spacecraft transfer orbits minimise fuel (energy), not distance — the same variational logic.

🏔️

Ski slopes

A steep early descent followed by a flatter run is faster than a constant gradient — ask any downhill racer.

🧮

Calculus of variations

The Brachistochrone was one of the founding problems of an entire branch of mathematics.

Optics — Fermat's principle

Light takes the path of least time through a medium — the same minimisation principle, different physical context.

🎓

IB & JEE Physics

Energy conservation, work-energy theorem, and kinematics — all live inside this single problem.

"The Brachistochrone is where physics students first feel the difference between optimising for distance and optimising for time. That distinction runs through all of engineering."

See it move. Try it yourself.

Place two points. Watch the beads race. Read the exact calculations. Change the physics. The cycloid wins every time — until you add friction.

Open the Brachistochrone Explorer →