Differential Geometry, Calculus of Variations, and Their Applications