Very basic question, but we have recently gone over the topic of geodesics in class and I was wondering whether it was permissible to apply Euler-Lagrange to find the extremal of say $ \int \text d s^2 $ instead of the ordinary arc length.
I've tried the case of a straight line and it seems to produce the same result but I'm not sure if this principle is applicable in general (primarily just to eliminate clutter from repeated differentiation of square roots).
If it is part of a more general idea, what are the conditions under which it is valid and in which case it is equivalent to apply this form (e.g. would it also be valid to consider $ \int \text d s^3 $ or $ \int \text d s^4 $, or perhaps a variety of other functions of the original integrand under consideration )