the brachistochrone

Assigned the velocity [math]v(x)[/math] for every [math]0 < x < 10 [/math] determine the route of the minimum time, the brachistochrone, between the two red points. Move the green points