Suppose we have a function $f(x,y) = x^2 -xy +y^2 +3x -2y +1$
To find critical points of $f$, we compute its gradient:
$\nabla f=(3+2x-y,\ -2 -x +2y)$
The Hessian matrix for function $f$ is:
$$ \nabla^2 f = \begin{pmatrix} 2 & -1 \\ -1 & 2 \\ \end{pmatrix} $$
Since the determinant of this self-adjoint matrix is in the form:
$det(\nabla^2 f) = 2*2 -(-1*-1)= 3 > 0$
Then the determinant of $\nabla^2 f$ is positive
Looking at each of the critical points,
and
$det(\nabla^2 f({-4 \over 3}, {1 \over 3})) >0 $, which is negative, therefore $[{-4 \over 3}, {1 \over 3}]$ is a local mimimum of $f$
Is this result correct?