Jump to content

Science:Math Exam Resources/Courses/MATH105/April 2014/Question 03 (a)/Solution 1

From UBC Wiki

The object function is f(x,y)=(x+1)2+(y2)2 and the constraint is x2+y2=125, i. e. g(x,y)=x2+y2125=0.

By the method Lagrange multipliers, set f=λg,g=0 which tells us 2(x+1),2(y2)=λ2x,2y,x2+y2125=0.

Looking at the vector equation in components, we have that

2(x+1)=2λxx+1=λx(1)2(y1)=2λyy2=λy.(2)

Provided we don't divide by zero (so that y2), we can divide (1) by (2) to yield x+1y2=λxλy=xyxy+y=xy2xy=2x where the first implication came by cross multiplying.

If y=x then from the constraint x2+y2125=0 we must have x2+(2x)2125=5x2125=0x=±5 and y=2x=10.

Evaluating f(5,10)=(5+1)2+(102)2=180 and f(5,10)=(5+1)2+(102)2=80.

We still need to consider the possibility that y=2. If y=2 then (2) reads 0=2λλ=0. If λ=0 then (1) tells us that x+1=0 so that x=1. However, (1,2) does not satisfy g(x,y)=0 so this is not a valid solution to the Lagrange system.

Overall have found that the maximum value is 180 and the minimum value is 80.