The matrix of the second partial derivatives of f(x) is known as the hessian, and is defined as ∇2f(x)=…