A9 · Lesson 12 · Lagrange multipliers
Optimizing under a constraint
A current of 3 A arrives at two resistors in parallel and has to split between them. Of all the ways it could divide, the one nature picks is the one that wastes the least power. You can find that split with a constraint: minimize the total heat while keeping . The answer comes out as the ordinary current divider rule, and the method, Lagrange multipliers, works for any problem with a "subject to" in it: the most area for a given length of wire, the least material for a given volume.
- A total current splits as through and through . The curve is the total power against .
- The marker is the current-divider split, . Is it at the bottom of the curve?
- Change the resistors and check again.
Predict
You want the largest rectangle you can fence with 40 m of wire. What shape is it?
A 10 m square, with area 100 m². Maximize subject to : the multiplier condition forces . A 15 by 5 rectangle encloses only 75 m².
Name it
The method
To find the largest or smallest on the curve , solve
for , and the Lagrange multiplier : three equations, three unknowns.
Why it works. Walk along the constraint curve. At the best point, can't increase in either direction along it, so has no component along the curve: it points straight across it. So does , since is constant along the curve. Two vectors both perpendicular to the curve are parallel: . Geometrically, the level curve of just touches the constraint curve.
What means
is how fast the best value changes as the constraint is loosened: . Economists call it a shadow price. In the current-splitting problem, is twice the voltage across the pair: the extra power per extra amp.
Minimum heat
Minimize with : , so . The two resistors get equal voltages, which is exactly what Kirchhoff's laws give. Current divides in the way that dissipates the least power, and
the power in the parallel combination.
Worked example
Maximize subject to .
Show the solution
- Lagrange's condition. so .
- Apply the constraint. gives , so the maximum is 25, with .
- Check what means. With the best is , whose derivative at is 5.
Answer the maximum is 25, at .
Worked example
3 A splits between 2 Ω and 4 Ω. Find the least-power split.
Show the solution
- Split the current. and A, both resistors at 4 V.
- Total power. the same as .
- The multiplier. which is twice the 4 V across them.
Answer 2 A through the 2 Ω resistor and 1 A through the 4 Ω, for 12 W in all.
Worked example
Find the closed box with surface area 6 m² that holds the most.
Show the solution
- Set up the problem. Maximize with
- Lagrange's condition. gives
- Solve. Dividing pairs shows , so and .
- Read the answer. Symmetric problems often have symmetric answers, but the multiplier method proves it.
Answer the best box is a 1 m cube, holding m³.
Check
What is the largest value of with ?
Check
2 A splits between 2 Ω and 5 Ω so as to dissipate the least power. How much goes through the 2 Ω resistor?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
Check
What is that least power, for 2 A between 3 Ω and 12 Ω?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
For the largest with , what is the multiplier ?
Check
What is the largest area a rectangle with perimeter 100 m can have, in m²?
Check
What is the largest value of on the circle ?
Check
A closed box has surface area 54 m².
(a)
What side gives the largest volume?
Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.
(b)
What is that volume?
Check
Current splits between and to minimize with .
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the minimum power?
Explain why
Why does a current split between parallel resistors in the way that minimizes the total power?
The real split is set by Kirchhoff's laws: both resistors see the same voltage, so . The Lagrange condition for minimizing subject to a fixed total current is , which is the same equal-voltage condition. So the physical split and the least-power split coincide. Maxwell noticed this; it holds for any resistor network, which is one reason resistor networks are well behaved: their equations are the condition for a minimum of a positive definite quantity.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.