A912 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 I12R1+I22R2 while keeping I1+I2=3. 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 I splits as I1 through R1 and I−I1 through R2. The curve is the total power against I1.
  • The marker is the current-divider split, I1=IR2R1+R2. 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?

Name it

The method

To find the largest or smallest f(x,y) on the curve g(x,y)=c, solve

∇f=λ∇gg(x,y)=c

for x, y and the Lagrange multiplier λ: three equations, three unknowns.

Why it works. Walk along the constraint curve. At the best point, f can't increase in either direction along it, so ∇f has no component along the curve: it points straight across it. So does ∇g, since g is constant along the curve. Two vectors both perpendicular to the curve are parallel: ∇f=λ∇g. Geometrically, the level curve of f just touches the constraint curve.

What λ means

λ is how fast the best value changes as the constraint is loosened: λ=dfbestdc. 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 I12R1+I22R2 with I1+I2=I: (2I1R1,2I2R2)=λ(1,1), so I1R1=I2R2. 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

I1=IR2R1+R2Pmin=I2R1R2R1+R2

the power in the parallel combination.

Worked example

Maximize xy subject to x+y=10.

Show the solution
  1. Lagrange's condition. (y,x)=λ(1,1) so x=y=λ.
  2. Apply the constraint. x+y=10 gives x=y=5, so the maximum is 25, with λ=5.
  3. Check what λ means. With x+y=c the best is c2/4, whose derivative at c=10 is 5.

Answer the maximum is 25, at x=y=5.

Worked example

3 A splits between 2 Ω and 4 Ω. Find the least-power split.

Show the solution
  1. Split the current. I1=3×46=2A and I2=1 A, both resistors at 4 V.
  2. Total power. P=4×2+1×4=12W the same as 9×86.
  3. The multiplier. λ=2I1R1=8 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
  1. Set up the problem. Maximize V=xyz with g=2(xy+yz+zx)=6
  2. Lagrange's condition. ∇V=λ∇g gives yz=2λ(y+z)xz=2λ(x+z)xy=2λ(x+y)
  3. Solve. Dividing pairs shows x=y=z, so 6x2=6 and x=1.
  4. 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 V=1 m³.

Check

What is the largest value of xy with x+y=12?

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 xy with x+y=10, 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 x+y on the circle x2+y2=32?

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 I splits between R1 and R2 to minimize R1i12+R2i22 with i1+i2=I.

Step 1

What is i1?

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°.

Explain why

Why does a current split between parallel resistors in the way that minimizes the total power?

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.