Partial differential equations and the Calculus of Variations