Use metric signature and write , . For an orientation-preserving affine change , with , and . Homogeneity of both terms of the Lagrangian therefore leaves unchanged. Proper-time parametrization is used again when deriving the final equation.
Under , the action changes by . The fixed-endpoint variational principle is gauge invariant; the action itself can change by a boundary term. This is the precise version of the printed invariance claim. Negative reverses orientation and requires a corresponding reorientation of the path, rather than the simple positive-parameter calculation above.
The canonical momentum is
The Euler-Lagrange equation gives . Hence, with and proper time ,
Antisymmetry verifies the consistency condition directly: .
For the uncharged Lagrangian in the same sign convention, , so . Equivalently is the gauge-invariant kinetic covector in this convention. This illustrates electromagnetic minimal coupling: replace the free canonical momentum by the gauge-covariant combination when introducing the field. The physical contravariant kinetic four-momentum is conventionally ; its sign must not be confused with the covector obtained by differentiating the particular negative-length Lagrangian used here.