Let be the constraint function. We thus need to solve the system of equations given by

Plugging in our values gives

Expanding the second equation gives the following three equations

Substituting the first equation in the third equation gives which simplifies to

Reducing gives . This tells us that and thus we can divide by it to get that .
Looking at the second equation from the group of three above gives us that

Case 1: x = 0
Plugging x = 0 into gives .
Case 2: x ≠ 0
In this case we divide the equation above by x and obtain
Solving gives . Thus . Plugging these y values into gives .
Compare function values at all candidate points
We found the following six solutions:

Plugging in each of the values gives
and thus the minimum value is -4 and the maximum value is 4.
|