Optimizing a Whole Path
Ordinary optimization picks the best number—a price or a batch size. The calculus of variations picks the best function: an entire path through time, because most real decisions are movies, not photographs.
The object being scored is a functional: a rule that eats a whole curve and returns one single number.
Here is the functional score, is time, is the path, and is its rate of change. Examples include production costs or lifetime utility. Changing the path anywhere alters the total score.
| Concept | Eats | Returns | Example |
|---|---|---|---|
| Function | A number | A number | |
| Functional | An entire curve | A number | Total fuel |
The Euler-Lagrange Equation
At an optimal path, no small deformation or variation can improve the score. Forcing this condition through the integral yields the Euler-Lagrange equation:
This differential equation dictates the optimal path at every instant, forcing global optimality through local perfection everywhere.
Economic applications: The Ramsey model splits output between consumption and investment over decades. It governs optimal advertising spend and finite resource extraction.
Common pitfall: Solving a path problem by optimizing each instant separately. The Euler-Lagrange logic is necessary because the best path balances across time; sprinting production today changes tomorrow's costs.