The idea
Key formulas
Lagrange multiplier condition
Two-variable equations
Loading lessons…
Just a moment, getting everything ready. The first load can take up to a minute.
Calculus
At a constrained optimum, the objective gradient aligns with the constraint gradient.
To optimize subject to , a regular constrained extremum satisfies
The gradients are perpendicular to their level curves. At a constrained optimum, the objective level curve just touches the constraint curve, so their normals align. The scalar is the Lagrange multiplier.