Pioneers of calculus, such as Pierre de Fermat and Gottfried Wilhelm Leibniz, saw that the derivative gave a way to find maxima (maximum values) and minima (minimum values) of a function f(x) of a real variable x, since f′(x) = 0 at all such points. However, real variable optimization problems were not the first in the history of analysis. Since ancient times, mathematicians sought to optimize quantities that depended on varying a function. Here are three classic problems where the function (in this case a curve) varies.
In the 18th century Leonhard Euler and Joseph-Louis Lagrange solved general classes of optimization problems, such as finding shortest curves on surfaces, by finding a differential equation satisfied by the optimal member in a certain class of functions. Because their method made “small variations” in the hypothetical optimal function, the subject came to be called the calculus of variations. Its fundamental importance was underlined in 1846 when Pierre de Maupertuis proposed the principle of least action, a sweeping generalization of Fermat’s principle that was supposed to explain all of mechanics.
Action is the integral of energy with respect to time, and the correct principle is actually not least action but stationary action (in some cases, the action is a maximum). In the 1830s William Rowan Hamilton showed that all the classical laws of mechanics follow from the assumption of stationary action and, conversely, that the classical laws imply stationary action. Thus, all classical mechanics can be encapsulated in a simple, coordinate-free principle involving just energy and time. An even greater tribute to the principle is that it yields the relativity theory and quantum mechanics of the 20th century.