Multivariable-Calculus ยท Unit 12 ยท Video 2 ยท Interactive Practice
Solving the Lagrange Equations, and Why the Method Works
IKey Formulas
Formula
Name
For f=x2+y2 on xy=3
โf=ฮปโg,g=c
Lagrange system
2x=ฮปy,2y=ฮปx,xy=3
[2โฮปโโฮป2โ][xyโ]=[00โ]
Nonzero solution only if det=0
4โฮป2=0โฮป=ยฑ2
โfโ u^=0 for every u^ tangent to g=c
Why it works: โfโฅโg
At (3โ,3โ): โf=โจ23โ,23โโฉ=2โg
Compare the values of f at all solutions
Min or max?
f=6 at both points; f(t,3/t)=t2+9/t2โโ
Key Insight: Lagrange solutions are the critical points of f on the constraint. They can be minima, maxima or neither, and there is no constrained second derivative test in this course, so you decide by comparing values of f.
IIVisualization 1 โ Which Multipliers Allow a Point Other Than the Origin?
The two linear equations meet only at (0,0) unless det=4โฮป2=0.
๐ก The constant 3 never enters 4โฮป2=0: on any hyperbola xy=c with c>0 the multiplier is ฮป=2, and only the points (cโ,cโ) and (โcโ,โcโ) change.
IIIVisualization 2 โ Where Do โf and โg Line Up?
Along xy=3, f stops changing exactly where โf is perpendicular to the curve, which is where โfโฅโg.
IVVisualization 3 โ Minimum at 6โ, Maximum at Infinity
On the branch point (t,3/t), f=t2+9/t2 bottoms out at 6 but has no upper bound.
๐ก The Lagrange equations found no maximum because there is none: a minimum that exists and is not at infinity must be among the Lagrange solutions, but a maximum at infinity never is.
VQuiz Questions
Problem 1 ยท Find the Multipliers
Given: minimize f=x2+4y2 subject to g=xy=2. The first two Lagrange equations are 2x=ฮปy and 8y=ฮปx. Find the values of ฮป for which these two equations have a solution other than x=y=0.
โ Not quite. That is the multiplier for f=x2+y2. Here โf=โจ2x,8yโฉ, so the matrix has an 8 in the lower-right corner.
โ Close, butโฆ16 is ฮป2, not ฮป. Take the square root of ฮป2=16.
โ Close, butโฆฮป2=16 has two roots. Whether ฮป=โ4 gives any points is decided later by the constraint, not by the determinant.
โ Not quite. Write the two equations as a homogeneous 2ร2 system and set its determinant to zero.
Show solution
โf=โจ2x,8yโฉ and โg=โจy,xโฉ, so โf=ฮปโg reads 2x=ฮปy, 8y=ฮปx. Move everything to one side:
[2โฮปโโฮป8โ][xyโ]=[00โ]
The trivial solution x=y=0 fails xy=2, so we need the matrix to be non-invertible:
det=2โ 8โ(โฮป)(โฮป)=16โฮป2=0โนฮป=ยฑ4
Problem 2 ยท From Multipliers to Points
Given: the same problem, minimize f=x2+4y2 subject to xy=2, with ฮป=ยฑ4. Find the candidate points and the minimum value of f.
Which points solve the Lagrange equations?
What is the minimum value of f?
โ Correct!ฮป=4 gives x=2y, so 2y2=2 and (x,y)=ยฑ(2,1) with f=4+4=8; ฮป=โ4 gives no real points.
โ Not quite.x=y came from the video's f=x2+y2. Here 2x=4y, so x=2y.
โ Close, butโฆ2x=4y gives x=2y, not y=2x. Check: at (1,2), 2x=2 but 4y=8.
โ Not quite.(2,โ1) has xy=โ2๎ =2. With ฮป=โ4, x=โ2y and the constraint becomes โ2y2=2: no real solution.
โ Not quite. Use ฮป=4 in 2x=ฮปy, then substitute into xy=2.
โ Close, butโฆf itself is the value asked for; there is no square root here, since f=x2+4y2 is not a squared distance.
โ Not quite.5=22+12 evaluates x2+y2. The function is f=x2+4y2.
โ Not quite.17=f(1,2), but (1,2) does not solve the Lagrange equations.
โ Not quite. Evaluate f=x2+4y2 at the candidate points.
Show solution
ฮป=4:2x=4y gives x=2y, and 8y=4x says the same. The constraint becomes (2y)y=2, so y2=1 and y=ยฑ1:
(x,y)=(2,1)or(โ2,โ1)
ฮป=โ4:2x=โ4y gives x=โ2y, and the constraint becomes โ2y2=2, i.e. y2=โ1: no real points.
At both candidates f=22+4(1)2=8. As in the video, f(t,2/t)=t2+16/t2โโ as tโโ, so there is no maximum and the minimum is 8.
Problem 3 ยท Rate of Change Along the Constraint
Given: at a point P on a curve g=c, โf(P)=โจ3,โ1โฉ and โg(P)=โจ1,2โฉ. The unit vector u^=5โ1โโจ2,โ1โฉ is tangent to the curve. Find the rate of change of f along the curve in the direction u^.
โ Correct!โfโ u^=5โ1โ(6+1)=5โ7โ๎ =0, so f still changes along the constraint: P is not a constrained critical point, and indeed โจ3,โ1โฉ is not a multiple of โจ1,2โฉ.
โ Not quite. The rate is 0 only at a constrained critical point, where โfโฅโg. Here โจ3,โ1โฉ is not a multiple of โจ1,2โฉ, so compute โfโ u^.
โ Not quite.5โ1โ=5โ1โ(โfโ โg): you dotted with the normal direction โg, not the tangent u^.
โ Not quite.10โ=โฃโfโฃ is the rate in the steepest direction. Along the curve you may move only in the direction u^.
โ Not quite. The directional derivative is โfโ u^.
Show solution
First check that u^ is tangent: โgโ u^=5โ1โ(2โ2)=0. Then
Because this is not zero, moving along g=c in the direction u^ increases f and moving the other way decreases it, so P is neither a constrained minimum nor a constrained maximum.
Problem 4 ยท Compare Values on a Closed Curve
Given: the Lagrange equations for f=xy on the circle x2+y2=8 have exactly four solutions: (2,2) and (โ2,โ2) with ฮป=21โ, and (2,โ2) and (โ2,2) with ฮป=โ21โ. Find the maximum and minimum of f on the circle.
โ Correct!f=4 at (2,2) and (โ2,โ2), f=โ4 at (2,โ2) and (โ2,2); the circle is closed and bounded, so nothing escapes to infinity and both extremes are among these points.
โ Not quite. At (0,22โ), f=0, but that point is not a Lagrange solution: โf=โจ22โ,0โฉ is not parallel to โg=โจ0,42โโฉ. Evaluate f at the four given points.
โ Not quite. Unlike the hyperbola, the circle is bounded: โฃxyโฃโค21โ(x2+y2)=4, so f cannot run off to infinity.
โ Not quite. Those are the multipliers ฮป, not values of f. Compare f=xy at the points.
โ Not quite. Evaluate f=xy at each of the four solutions and compare.
Show solution
Evaluate f=xy at every solution of the Lagrange equations:
f(2,2)=f(โ2,โ2)=4,f(2,โ2)=f(โ2,2)=โ4
The circle is closed and bounded, so f attains a maximum and a minimum on it, and each is a constrained critical point, hence among these four. So the maximum is 4 and the minimum is โ4. The multiplier's sign does not decide min or max; the values of f do.