[Math] How to find the absolute maximum and minimum for $f(x,y)=2x^{2}-4x+y^{2}-4y+1$ with a given closed and bounded $D$ region

multivariable-calculus

Problem:

Find the absolute maximum and minimum for the smooth function $f(x,y)=2x^{2}-4x+y^{2}-4y+1$ defined on the closed and bounded set $D$. In this case $D$ is the closed region of the triangle with vertices $(0,0)$, $(0,2)$ and $(1,2)$.

Solution:

The first I did was find the functions which defined each edge of the triangle: $(x,2)$, $(x,2x)$ and $(0,y)$:

D region

But I don't know how to proceed to find the absolute maximum and minimum. Any help?

Best Answer

Let's see. First we need to compute the points where the partial derivatives of the function are zero. The partial derivatives are: $$ d f(x,y) = (4x-4, 2y - 4) $$ Which is the zero vector when $x=1$ and $y=2$.

To see whether this point is a maximum, a minimum or a saddle point we can compute the Hessian matrix of second derivatives.

$$ H_f = \left( \begin{array}{ccc} 4 & 0 \\ 0 & 2 \end{array} \right) $$ As $H_f$ is definite positive, we conclude that there is a local minimum in $x=1$, $y=2$.

Now we have to study the boundary region for maximum and minimums.

Using the functions that you worked out to define the edges of the triangle, we can evaluate the function there. $$ f_1(x)=f(x,2)=2x^2-4x-3\\ f_2(x)=f(0,y)=y^2-4y+1\\ f_3(x)=f(x,2x)=6x^2-12x+1 $$ Find the maximum and minimums of this functions in the area which falls within the region of interest and you will have found every local maximum and minimum.