Example (brachistochrone)

See also example sheet 1 Q6.

A bead slides on a wire under the influence of gravity between points $A$ and $B$, starting from rest. What shape of wire takes the shortest time?

Fix $A$ at the origin and let $B$ be $(x_B,y_B)$. Parametrise the curve by $(x,y(x))$.

By conservation of energy, the speed $v$ at $(x,y)$ is $$ \begin{align*} 0 = \frac{1}{2}mv^2 + mgy \implies v = \sqrt{-2gy}. \end{align*} $$

We want to minimise $$ \begin{align*} T[y] = \int_{A}^{B} \frac{dl}{v} = \frac{1}{\sqrt{2g}} \int_{0}^{x_B} \underbrace{ \frac{\sqrt{1+(y')^2}}{\sqrt{-y}}}_{f(y,y')} \,dx \end{align*} $$ subject to $y(0) = 0$ and $y(x_B) = y_B$.

Since $f$ does not depend on $x$, we use the first integral: $$ \begin{align*} \kappa &= f - y' \pdfd{f}{y'} \\ &= \frac{\sqrt{1+(y')^2}}{\sqrt{-y}}- y'\frac{y'}{\sqrt{1+(y')^2}\sqrt{-y}} \\ &= \frac{1}{\sqrt{1+(y')^2}\sqrt{-y}} \\ 1+(y')^2 &= \frac{1}{-\kappa^2 y} \\ y' &= \pm \frac{\sqrt{1+\kappa^2 y}}{\kappa\sqrt{-y}} \\ x &= \pm \kappa\int \frac{\sqrt{-y}}{\sqrt{1+\kappa^2 y}}\, dy. \end{align*} $$ Substituting $y=-(1/\kappa^2) \sin^2 \theta/2$, $$ \begin{align*} x &= \pm \kappa\int \frac{(1/\kappa)\sin\theta/2}{\cos \theta/2} \left(-\frac{1}{\kappa^2} \sin(\theta/2)\cos(\theta/2)\right)\,d\theta \\ &= \mp \int \sin^2 (\theta/2)\, d\theta \\ &= \mp \frac{1}{2\kappa^2}(\theta-\sin\theta) + c. \end{align*} $$

Taking $x=0$ when $\theta=0$, we have $c=0$. Also assume $x$ is increasing. Then $$ \begin{align*} (x,y) = \left(\frac{1}{2\kappa^2}(\theta-\sin\theta), -\frac{1}{2\kappa^2} (1-\cos\theta\right). \end{align*} $$ This is a cycloid.

We choose a $\kappa$ for the curve to pass through $(x_B, y_B)$.