To determine the critical points we have to solve the system of equations
From the second equation we get that or If then from the first equation and so or Hence and are critical points. If then from the first equation and so Hence the critical points of are
To decide the behaviour of at these points we determine its Hessian matrix:
Hence the Hessian matrix is
We next look at at every critical point:
We have and so and showing that attains a maximum at
Next we have and so and showing that attains a minimum at
Next we have and so showing that has a saddle point at
Finally we have and so showing that has another saddle point at