You can drag the two green points to change the shape of the red track. Press play to watch a ball roll down the track and another ball roll down the straight line joining the end points.
Experiment till you find the fastest track.
Then press the Brachistochrone button to see the solution which Newton found.