Our functional does not depend explicitly on x, so we can use the first integral .
Letting , we get:
This problem is equivalent to finding the equation of a hanging cable of uniform density with fixed endpoints. To minimize the total potential energy, we make our functional equal to the height of the cable multiplied by the arc length.
Calculus of Variations