To determine the critical points we have to solve the system of equations
\begin{align*}
\frac{\partial f}{\partial x}(x,y)
\amp =3x^2+3y^2-6x=0\\
\frac{\partial f}{\partial y}(x,y)
\amp =6xy-6y=0.\text{.}
\end{align*}
From the second equation we get that \(y=0\) or \(x=1\text{.}\) If \(y=0\) then from the first equation \(x(3x-6)=0\) and so \(x=0\) or \(x=2\text{.}\) Hence \((0,0)\) and \((2,0)\) are critical points. If \(x=1\) then from the first equation \(3+3y^2-6=0\text{,}\) and so \(y=\pm 1\text{.}\) Hence the critical points of \(f\) are
\begin{equation*}
(0,0),\quad(2,0),\quad(1,1)\quad\text{and}\quad(1,-1)\text{.}
\end{equation*}
To decide the behaviour of \(f\) at these points we determine its Hessian matrix:
\begin{align*}
\frac{\partial^2f}{\partial x^2}(x,y)
\amp =\frac{\partial}{\partial x}(3x^2+3y^2-6x)=6x-6\\
\frac{\partial^2f}{\partial y^2}(x,y)
\amp =\frac{\partial}{\partial y}(6xy-6y)=6x-6\\
\frac{\partial^2f}{\partial y\partial x}(x,y)
\amp =\frac{\partial^2f}{\partial x\partial y}(x,y)
=\frac{\partial}{\partial x}(6xy-6y)
=6y\text{.}
\end{align*}
Hence the Hessian matrix is
\begin{equation*}
H_f(x,y)=6
\begin{bmatrix}
x-1 \amp y \\
y \amp x-1
\end{bmatrix}.\text{.}
\end{equation*}
We next look at \(H_f(x,y)\) at every critical point:
-
We have
\(H_f(0,0)=6
\begin{bmatrix}
-1 \amp 0 \\ 0\amp -1
\end{bmatrix}
\text{,}\) and so
\(-1\lt 0\) and
\(\det H_f(0,0)=1\text{,}\) showing that
\(f\) attains a maximum at
\((0,0)\text{.}\)
-
Next we have
\(H_f(2,0)=6
\begin{bmatrix}
1 \amp 0 \\ 0\amp 1
\end{bmatrix}
\text{,}\) and so
\(1\gt 0\) and
\(\det H_f(0,0)=1\text{,}\) showing that
\(f\) attains a minimum at
\((2,0)\text{.}\)
-
Next we have
\(H_f(1,1)=6
\begin{bmatrix}
0 \amp 1 \\ 1\amp 0
\end{bmatrix}
\text{,}\) and so
\(\det H_f(0,0)=-1\lt 0\text{,}\) showing that
\(f\) has a saddle point at
\((1,1)\text{.}\)
-
Finally we have
\(H_f(1,-1)=6
\begin{bmatrix}
0 \amp -1 \\ -1\amp 0
\end{bmatrix}
\text{,}\) and so
\(\det H_f(0,0)=-1\lt 0\text{,}\) showing that
\(f\) has another saddle point at
\((1,-1)\text{.}\)