# Brachistochrone Simulator - Cycloid Race, Tautochrone, Snell’s Law

> Drag the endpoints and race beads down a line, circular arc, cycloid, parabola and your own curve, add friction, and explore the tautochrone and Snell analogy.

- URL: https://qilingtools.com/en/physics/brachistochrone
- Category: Physics Tools (https://qilingtools.com/en/physics)
- Tags: [Physics](https://qilingtools.com/en/tags/physics), [Education](https://qilingtools.com/en/tags/education)
- Last updated: 2026-10-29
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Which path takes a bead from A to B fastest under gravity alone? Not the straight line but a cycloid: this is the brachistochrone problem Johann Bernoulli posed in 1696. Drag the two endpoints and race a straight line, a circular arc, a cycloid, a parabola and a curve you draw yourself, with exact and numerical times, path lengths and final speeds. You can add friction to see how the best curve changes, watch the cycloid bowl where every ball reaches the bottom at the same moment, and follow Bernoulli’s clever derivation using the refraction of light.

## How to use

1. Drag A and B on the canvas to set the start and finish (B must be lower than A)
2. Tick the curves to race; press "✏️ Draw a curve" to sketch one from A to B
3. Press "Start race" to release all beads and compare times and ranks in the table
4. Add sliding friction or switch to Moon or Mars gravity and see what changes
5. Open "Tautochrone" and "Snell’s law analogy" to explore the cycloid’s special properties

## Features

- Line, circular arc, cycloid, parabola and freehand curve in one race
- Cycloid through the endpoint solved numerically, exact vs numerical times
- Optional sliding friction (normal force includes the centripetal term) and other planets’ gravity
- Side-by-side tautochrone animation in cycloid and circular bowls
- Refracted ray through layers approaching the cycloid, with sinφ/v checked
- Touch-friendly dragging and drawing that works on phones

## FAQ

### Why isn’t the straight line the fastest?

The straight line is shortest, but it starts too gently and the bead gains speed slowly. The fastest path drops steeply first to pick up speed early, then uses that speed to cover the remaining distance. Speed depends only on the height fallen, v = √(2gy), so a slightly longer path that reaches high speed sooner wins. The cycloid strikes the exact balance between steep and shallow, as the calculus of variations proves.

### What does a cycloid look like?

A cycloid is the path traced by a point on the rim of a circle rolling along a straight line: x = R(θ − sinθ), y = R(1 − cosθ). As a brachistochrone it hangs upside down, starting vertically and flattening out. When B is farther horizontally than π/2 times the drop, the fastest route actually dips below B and climbs back up. It is very counter-intuitive, and you can see it by dragging B in the tool.

### What is the tautochrone, and what does it have to do with clocks?

In a cycloid-shaped bowl a ball released from rest reaches the bottom in π√(R/g) whatever its starting height, so the cycloid is also the tautochrone (equal-time curve). An ordinary pendulum’s period grows with amplitude. In 1673 Huygens hung a pendulum between cycloidal cheeks so the bob moved along a cycloid, making a clock that was isochronous in theory.

### How did Bernoulli solve it with optics?

He treated the bead as a ray of light. After falling y its speed is v = √(2gy), like light passing through layers in which it travels faster and faster. Light takes the quickest path (Fermat’s principle), so at every boundary Snell’s law holds: sinφ/v = constant. With infinitely many thin layers, that condition gives exactly a cycloid. The "Snell’s law analogy" tab shows a ray refracted through layers converging on the cycloid.

### Is the cycloid still fastest with friction?

Not necessarily. With friction the loss depends on the normal force, which includes both a gravity component and the centripetal term mv²/r, so sharp bends at high speed cost more. The fastest curve with friction is shallower than a cycloid, and when B is far away a bead on the cycloid can even stall partway. The tool integrates the bead-on-a-wire model numerically, so you can compare curves directly.

## Related tools

- [Unit Converter](https://qilingtools.com/en/math/unit): Free online unit converter: length, area, volume, weight, temperature, time, speed, data, pressure, energy and angle — one value converts every unit at once.
- [Vector Calculator](https://qilingtools.com/en/math/vector): Free online vector calculator for 2D and 3D: addition, scalar multiples, dot and cross products, magnitude, angle, unit vector and projections, with checks.
- [Significant Figures Calculator](https://qilingtools.com/en/math/significant-figures): Free online sig fig calculator: count significant figures digit by digit, round to N sig figs or decimals with six rounding modes, and compute by sig fig rules.
- [Tone Generator](https://qilingtools.com/en/audio/tone-generator): Free online tone generator: sine, square, sawtooth and triangle waves from 1 to 20,000 Hz, a note picker, sweeps, white/pink/brown noise and a WAV download.
- [Audio Spectrogram](https://qilingtools.com/en/audio/spectrogram): Free online spectrogram generator: see time, frequency and level from a Hann-windowed STFT, with FFT size, log axis, dB range and colour maps. Exports PNG.
- [Decibel Meter](https://qilingtools.com/en/audio/decibel): Free online decibel meter: measure noise with your mic in real time, A/C/Z weighting, fast/slow response, min/max/average/Leq, 60-second graph and calibration.
- [Physics Formula Calculator](https://qilingtools.com/en/physics/physics): Physics formulas solved with steps: SUVAT, projectiles, Newton’s laws, inclines, energy, Ohm’s law, resistors, RC, buoyancy, waves, lenses, gravity.
- [Fourier Series & FFT Visualizer](https://qilingtools.com/en/math/fourier): Fourier series coefficients and animated partial sums for square, sawtooth, triangle or any function (Gibbs), draw-your-own epicycles and FFT spectra.
