Why the Shortest Path Is Not the Fastest: The Brachistochrone Curve and the Birth of the Calculus of Variations