Text this: Differential geometry and the calculus of variations.