issue called the brachistochrone problem, specifying the curve connecting two points