The calculus of variations is a field of mathematical analysis. It usually deals with functions defined on the real numbers, and with finding minima and maxima of such functions. When finding a minimum or maximum, there are often additional conditions that need to be satisfied. In the 18th century, mathematicians such as Leonhard Euler and Joseph-Louis Lagrange made this kind of calculus popular.