constraint minimisation
Objective: Let us consider the given function as f(x,y)=5−(x−2)^2−2⋅(y−1)^2 and the constraint as g(x,y)=x+4y−3 We can use Lagrange multipliers to find the maximum or minimum value of the function. So, we can take f(x,y) as f(x,y,λ) then we have to differentiate…