Hessian matrix
where g denotes the gradient vector of "S", and H denotes the Hessian matrix of "S".