Given f(x,y)=x−2y .
Let g(x,y)=x2+y2−5 and
let F=f(x,y)+λg(x,y) , where λ is the Lagrangian multiplier.
F=x−2y+λ(x2+y2−5)
To find the maximum and minimum values, we have to solve the system
∂x∂F=0,∂y∂F=0 and ∂λ∂F=0 .
1+2xλ=0−2+2yλ=0x2+y2=5.
From the first and the second equation we get,
x=−2λ1y=λ1
Using these values in the third equation we get,
4λ21+λ21=5λ2=41λ=±21
When λ=−21 ,
x=1 and y=−2
When λ=21 ,
x=−1 and y=2
The maximum and minimum values of f(x,y) are respectively,
f(1,−2)=1+4=5f(−1,2)=−1−4=−5
Comments