Euler-Lagrange Method

Euler-Lagrange Method for finding the shortest Path

Since the derivative of the term inside the bracket is zero, it should be a constant. By solving for the term as a constant [1], we get the constant value for the slope. So, the solution is:

f(x) = mx + b, which is the equation of the straight line.

References:

[1] The Calculus of Variations