The brachistochrone problem, as so named by Johannes Bernoulli in the 17th century from the greek βραχιστoσ *brachistos* (shortest) and χρoνoσ *chronos* (time), is a motivating example for the calculus of variations, which happens to fall into a special class that makes it easier to solve.

Geometrically, it can be described as determining a path from a point P vertically higher than, but not directly above, a second point Q, such that the time of travel for a particle to move under the action of gravity is minimised. Friction is ignored and the particle is assumed to have zero initial velocity (that is, to start at rest at P). The curve described turns out to be neither of the obvious choices- a straight line or circular arc; but as the following analysis will reveal, a cycloid.

### Setup

First, we formulate the problem in terms of variational calculus. Working in a vertical plane with cartesian coordinates, take the initial point P as the origin (0,0) and Q to be an arbitrary point (a,b). Then a curve Γ joining those points graphs some function that maps x→y(x), with x∈[0,a] such that y(0)=0 and y(a)=b.

Then, any point on Γ is of the form (x,y(x)) and has some velocity, v. By conservation of energy,

(mv^{2})/2 = mgy(x)

for m the mass of the particle in motion, g the acceleration due to gravity.

From the formula for the arc length s(x) of Γ from (0,0) to (x,y(x)), we can conclude

ds(x)/dx = (1+(y'(x))^{2})^{1/2}

So the time T to traverse the curve Γ is given by

* a * a
* * +- -+
* dt ds 1 * |1+y'(x)^{2}|
* -- -- dx = ------- * sqrt|------- | dx
* ds dx sqrt(2g) * | y(x) |
* 0 * 0 +- -+

(I hope this ascii horror looks about right on your display)

Dropping the unimportant factor of 1/sqrt(2g), the problem becomes to minimise the integral functional

y →J(y) := ∫F(x,u(x),u'(x))dx between 0 and a,

where F(x,y,z)=sqrt((1+z^{2})/y)

That is, the problem is now in standard form for the calculus of variations.

### A special case of the Euler-Lagrange equation.

Observe that in this instance, the functional J is described by a function F which does not depend on its first argument. It follows from the Euler-Lagrange equation that for any extremal u, the function E(x):= F(u(x),u'(x)) - u'(x)∂F(u(x),u'(x))/∂z is simply a constant, and so it becomes possible to describe u' in terms of u and some constants of integration. Separation of variables then gives x in terms of u and those constants.

Further, when F(y,z) takes the form h(y)sqrt(1+z

^{2}), this process is particularly simple; we get, for constants c,d

x=∫du/sqrt((h(u)/c)^{2} -1) + d

### Application to the Brachistochrone problem

Armed with the above, we see that the Brachistochrone problem satisfies F(y,z) takes the form h(y)sqrt(1+z^{2}) with h(y)=1/sqrt(y). Making a change of variables u:=τ/(c^{2}) we obtain

x-d=(1/c^{2})∫sqrt(τ/(1-τ) dτ

This integral can be solved by a second change of variables; introduce θ such that τ:=(sin(θ/2))^{2} then by some simple trigonometric identities, the above formula becomes

x-d = (1/2c^{2})∫(1-cosθ) dθ

Calling the constant (1/2c^{2}) A, and remembering that the second argument y=u(x), we have a cycloid

x= A(θ-sinθ) + d

y= A(1-cosθ)

as desired.