Consider the objective function f(x,y)=xy
Let the constraint function be g(x,y)=y−e8x
Use Lagrange Multiplier as follows:
∇f(x,y)=λ∇g(x,y)
Next, find the gradients both sides as,
<y,x>=λ<−8e8x,1>
Equate both sides to obtain,
y=−8λe8x
x=λ
Substitute x for λ into relation y=−8λe8x to obtain y=−8xe8x
Now, substitute −8xe8x for y into constraint equation y−e8x=0 and solve for x as,
−8xe8x−e8x=0
e8x(−8x−1)=0
−8x−1=0,e8x=0
x=−81
Plug x=−81 into relation y=−8xe8x and solve for y as,
y=−8(−81)e8(−81)=e−1
Comments
Leave a comment