The Hessian has determinant \(-4-4=-8<0\), so its eigenvalues have opposite signs and one is negative. Zero trace does not imply positive semidefiniteness, and the entry \(-2\) is negative.
Criterion characterizing convexity of a twice differentiable function through positive semidefiniteness of its Hessian matrix \(\nabla^2 f(x)\) at every point of the domain.