I have a two variable function: $f(x,y)=4x^2-y^2-xy-2x+6y$. I need to find its absolute minimum and maximum under the constraints: $y=4-2x$, $x \geq 0$, and $y \geq-2$.
I am not sure how to do it, if to use the triangular domain that the three lines $x=0$, $y=-2$, and $y=4-2x$ creates, of is it Lagrange multipliers. I checked with MAPLE and it says that the min is $f(0.5,3)=7.5$ while the max is $f(3,-2)=20$. I couldn't get these results. How do I use Lagrange multipliers when in addition to $y=4-2x$ I also have the $x \geq 0$ and $y \geq -2$?
There is no need to use Lagrange multipliers, because your constraint explicitly gives $y$ in terms of $x$. Instead, work out the range of possible $x$ values. You have $x \geq 0$ already. If you are going to have $y \geq -2$ then you have $4-2x \geq -2$, or $x \leq 3$. So you want to optimize the one variable function $g(x)=f(x,4-2x)$ over $[0,3]$.