Use hessian matrix to find the extrema of a multivariable function and classify them.