Vector FunctionsHard
Lagrange — maximum of xy subject to x+y=4
Using Lagrange multipliers, maximise f(x,y)=xy subject to x+y=4.
Given data
f(x,y) = xyg: x+y=4- Write ∇f = λ∇g.
- From the constraint x+y=4 with x=y find x.
- Calculate the maximum f(2,2).
Full worked solution
- Write ∇f = λ∇g.Setting gives and , so . The gradient condition equates the two partial derivatives.
- From the constraint x+y=4 with x=y find x.Substituting into gives , . The critical point is .
- Calculate the maximum f(2,2).. This is the maximum value of subject to the constraint .
Result:Maximum f(2,2) = 4.