The Hessian has entry 0 in position (2,2) and 3 off the diagonal, so a suitable vector gives a negative quadratic form. The option with diagonal 2 and 0 off it drops the xy mixing term.
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.