Calculus of variations provides a unifying language for problems in which the state or trajectory of a system is determined by extremising an energy or action functional. Rooted in classical mechanics ...