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
Review the theory: Funzioni Vettoriali
Steps
0 / 3
  1. Write ∇f = λ∇g.
  2. From the constraint x+y=4 with x=y find x.
  3. Calculate the maximum f(2,2).
Full worked solution
  1. Write ∇f = λ∇g.
    (y,x)=λ(1,1)⇒x=y(y,x) = \lambda(1,1) \Rightarrow x=y
    Setting ∇f=λ∇g\nabla f = \lambda \nabla g gives (y,x)=λ(1,1)→y=λ(y, x) = \lambda(1, 1) \rightarrow y = \lambda and x=λx = \lambda, so x=yx = y. The gradient condition equates the two partial derivatives.
  2. From the constraint x+y=4 with x=y find x.
    2x=4⇒x=y=22x=4 \Rightarrow x=y=2
    Substituting x=yx = y into x+y=4x + y = 4 gives 2x=4→x=22x = 4 \rightarrow x = \mathbf{2}, y=2y = \mathbf{2}. The critical point is (2,2)(2,2).
  3. Calculate the maximum f(2,2).
    f(2,2)=4f(2,2) = 4
    f(2,2)=2×2=4f(2,2) = 2 \times 2 = \mathbf{4}. This is the maximum value of xyxy subject to the constraint x+y=4x+y=4.
Result:Maximum f(2,2) = 4.