Brachistochrone problem, finding the curve that allows fastest descent without friction, a classic application. Link to wiki

A method to find extremal functions that minimize or maximize functionals, i.e. functions of a function. Given an input , a function and a third function , functionals are typically of the form

i.e. an integral over the function and its derivative .

In order to do calculus, the idea of a derivative must be extended to functions, so we need to be able to take a derivative . This is called a functional derivative.

Euler-Lagrange equation

The Euler-Lagrange equation gives a formula for the functions which are the extreme of , similar to the first-derivative condition to see if an input minimizes or maximizes a function. This condition is necessary but not sufficient. The equation states that if is an extrema, then

The calculus of variations is also related to Variational inference. There are many applications in physics, including mechanics, optics, optimal control, etc.