Then, the action for that curve is the integral of the composition
where is a Lagrangian. That is
with fixed for every .
(in the context of the variational bicomplex, the Lagrangian is a differential form of type and the action is , see Anderson_1992 page 9).
The trick to find such that is "critical" is what follows. Consider that the whole lie inside a local chart (if not, I think that it could be done in a partition of unity, the same that we would have for the integration process). In local coordinates, let , with .
We can choose any vector field over , for example , and a little real number to construct a new curve that in local coordinates looks like
This curve gives us a (the prolongation of ), which in local coordinates is written
its derivative respect to should be null for in order to be a extrema of this functional. So, let's go. Consider that the specified local char induces in coordinates , then:
Integrating the second term by parts:
And since the end points are fixed
And since this is valid for every we get, finally:
or more compactly
It is a straightforward calculation to check that Euler-Lagrange equations "behave in a good way" for change of variables.