Lagrange Multipliers
When you have to optimize while staying on a curve , the best points are where the constraint curve just touches a level curve of instead of crossing it. Touching curves face the same way, so their gradients are parallel: .
What the symbols mean
- Lagrange multiplier
How much the optimal value changes per unit change in k: the 'price' of the constraint.
- Constraint normal
Perpendicular to the constraint curve.
Explanation
Lagrange multipliers are simply a method for finding the best value of something when you're not free to choose anything you like, only things that obey a rule, like the most output you can get on a fixed budget. The method is named after Joseph-Louis Lagrange, who came up with it in the 1700s, and the "multiplier" is the extra number it introduces. The equation looks abstract, but it's three pieces: (the direction that improves what you want most), (the direction that breaks your rule fastest) and (a scaling number). It says those two arrows line up. That's the whole condition; the rest is solving equations.
The last lesson found extremes on a region by checking the interior and then the edge. Often the edge is the whole problem: you're required to stay on a curve, like spending exactly your budget. Substituting the constraint can get messy, so here's a cleaner idea.
The picture. Walk along the constraint curve , watching the value of . Each time you cross a level curve of , you're passing from lower values to higher ones (or the reverse), so you could keep going and do better. So at the best point, the constraint curve can't cross the level curve of . It has to just touch it, tangentially. Now think about what tangent curves have in common: they face the same direction, so their normals are parallel. And we know from the last unit that the normal to a level curve is the gradient. So and point along the same line, which is what says.
The method: solve the system
then evaluate at every solution. When the constraint is a closed curve, the largest value is the max and the smallest is the min. A handy trick for solving: divide the first two equations to get rid of .
It extends directly to three variables, and to two constraints, where .
See it
Worked examples
Find the extreme values of on the circle .
- 1
With , Lagrange's condition is and . Dividing the second by the first gets rid of : , so .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Maximize subject to .
Find the maximum of on .
Minimize subject to .
An open-top box must hold 32 cm³. What is its minimum surface area?
Maximize with budget . Give .
A factory has \1200L$30K$20Q = L^{0.6}K^{0.4}$. How many units of labor maximize output?
The hardest one here. Get it, and you've got this lesson.
The ellipse is tilted. What's the largest distance from the origin to a point on it?
Where it's used
Consumers maximizing utility on a budget, engineers minimizing weight at fixed strength, and physicists finding equilibrium under constraints all use Lagrange multipliers; in economics is the marginal value of an extra dollar.