The calculus of variations is a branch of mathematical analysis that studies extrema and critical points of functionals (or energies). Here, by functional we mean a mapping from a function space to the real numbers