Why Lagrange multipliers work
7 min read
Short answer
At a constrained maximum or minimum, the level curve of just touches the constraint curve without crossing it. Touching curves share a tangent, so their normals are parallel: . That equation, together with the constraint, locates the candidates.
The tangency picture
Sweep the level curve upward in . While it still crosses the constraint curve, some constrained points have a larger available by sliding along the constraint. The last value of at which the level curve still meets the constraint is the maximum, and there the two curves touch. Crossing curves have different tangents; touching curves share one.
The short proof
Parametrize the constraint near the optimum as a curve with . Two facts follow:
- has an extremum at the optimum, so its derivative vanishes: , so .
- is constant along the curve, so , so .
In the plane, two vectors perpendicular to the same nonzero tangent are parallel, so . This needs , which is the regularity condition: where the constraint has a corner or cusp the method can miss solutions.
What the multiplier means
The multiplier measures how fast the optimal value changes if you loosen the constraint: if is the optimum with constraint , then . In economics this is the "shadow price" of the constraint.
Remember the method only finds candidates. Compare their values, and check endpoints or boundaries separately if the constraint region has any.
Worked example
Maximize subject to , and interpret .
gives . The constraint then gives and , with maximum value .
Interpretation: with the maximum is , whose derivative at is . ✓
Try it yourself
Find the maximum and minimum of on the circle .
Show the answer
gives . The constraint gives , so . The points are with (maximum) and with (minimum).
Keep going with practice
Vidi's constrained-optimization lessons practice the setup this geometric picture justifies.