(1)
Note:
The crucial steps in this application of the Beltrami Identity are
borrowed from the calculus of variations, an upper division
undergraduate course. This derivation applies the
Euler-Lagrange formula and is available as Brachistochrone
Part IV.