The field of mathematics known as the “Calculus of variations” is a branch of calculus that deals with studying and optimizing functionals. Functionals are mathematical expressions that involve functions instead of just variables. In essence, the Calculus of variations seeks …