ArticleslgStudy

mathematics

Hessian matrix

Hessian matrix is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hessian matrix rather than just read about it. In short: In mathematics, the Hessian matrix, Hessian or (less common used phrase) Hesse matrix is a square matrix of second-order partial derivatives of a scalar-valued function, or scalar field. It describes the local curvature of a function of many variables.

Key takeaways

  • Hessian matrix belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hessian matrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hessian matrix from memory before moving on to harder problems.

Reference excerpt

In mathematics, the Hessian matrix, Hessian or (less common used phrase) Hesse matrix is a square matrix of second-order partial derivatives of a scalar-valued function, or scalar field. It describes the local curvature of a function of many variables. The Hessian matrix was developed in the 19th century by the German mathematician Ludwig Otto Hesse and later named after him. Hesse originally used the term "functional determinants". The Hessian is sometimes denoted by H or ∇∇ or ∇2 or ∇⊗∇ or D2.

Definitions and properties Suppose f:ℝn→ℝ is a function taking as input a vector 𝐱∈ℝn and outputting a scalar f(𝐱)∈ℝ. If all second-order partial derivatives of f exist, then the Hessian matrix 𝐇 of f is a square n×n matrix, usually defined and arranged as 𝐇f=[∂2f∂x12∂2f∂x1∂x2⋯∂2f∂x1∂xn∂2f∂x2∂x1∂2f∂x22⋯∂2f∂x2∂xn⋮⋮⋱⋮∂2f∂xn∂x1∂2f∂xn∂x2⋯∂2f∂xn2]. That is, the entry of the ith row and the jth column is (𝐇f)i,j=∂2f∂xi∂xj. If furthermore the second partial derivatives are all continuous, the Hessian matrix is a symmetric matrix by the symmetry of second derivatives. The determinant of the Hessian matrix is called the Hessian determinant. The Hessian matrix of a function f is the transpose of the Jacobian matrix of the gradient of the function f; that is: 𝐇(f(𝐱))=𝐉(∇f(𝐱))T.

Applications

Inflection points If f is a homogeneous polynomial in three variables, the equation f=0 is the implicit equation of a plane projective curve. The inflection points of the curve are exactly the non-singular points where the Hessian determinant is zero. It follows by Bézout's theorem that a cubic plane curve has at most 9 inflection points, since the Hessian determinant is a polynomial of degree 3.

Second-derivative test

The Hessian matrix of a convex function is positive semi-definite. Refining this property allows us to test whether a critical point x is a local maximum, local minimum, or a saddle point, as follows (for all of which it is also necessary that the gradient of the function is equal to 0 at x):

If the Hessian is positive-definite at x, then f attains an isolated local minimum at x. If the Hessian is negative-definite at x, then f attains an isolated local maximum at x. If the Hessian has both positive and negative eigenvalues, then x is a saddle point for f. Otherwise, the test is inconclusive. This implies that at a local minimum the Hessian is positive-semidefinite, and at a local maximum the Hessian is negative-semidefinite. For positive-semidefinite and negative-semidefinite Hessians, the test is inconclusive (a critical point where the Hessian is semidefinite but not definite may be a local extremum or a saddle point). However, more can be said from the point of view of Morse theory. The second-derivative test for functions of one and two variables is simpler than the general case. In one variable, the Hessian contains exactly one second derivative; if it is positive, then x is a local minimum, and if it is negative, then x is a local maximum; if it is zero, then the test is inconclusive. In two variables, the determinant can be used, because the determinant is the product of the eigenvalues. If it is positive, then the eigenvalues are both positive or both negative. If it is negative, then the two eigenvalues have different signs. If it is zero, then the second-derivative test is inconclusive. Equivalently, the second-order conditions that are sufficient for a local minimum or maximum can be expressed in terms of the sequence of principal (upper-leftmost) minors (determinants of sub-matrices) of the Hessian; these conditions are a special case of those given in the next section for bordered Hessians for constrained optimization—the case in which the number of constraints is zero. Specifically, the sufficient condition for a minimum is that all of these principal minors be positive, while the sufficient condition for a maximum is that the minors alternate in sign, with the 1×1 minor being negative.

Critical points If the gradient (the vector of the partial derivatives) of a function f is zero at some point 𝐱, then f has a critical point (or stationary point) at 𝐱. The determinant of the Hessian at 𝐱 is called, in some contexts, a discriminant. If this determinant is zero then 𝐱 is called a degenerate critical point of f, or a non-Morse critical point of f. Otherwise it is non-degenerate, and called a Morse critical point of f. The Hessian matrix plays an important role in Morse theory and catastrophe theory, because its kernel and eigenvalues allow classification of the critical points. The determinant of the Hessian matrix, when evaluated at a critical point of a function, is equal to the Gaussian curvature of the function considered as a manifold. The eigenvalues of the Hessian at that point are the principal curvatures of the function, and the eigenvectors are the principal directions of curvature. (See Gaussian curvature § Relation to principal curvatures.)

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Hessian matrix

Start with the simplest possible case. Write down what Hessian matrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hessian matrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hessian matrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hessian matrix

In research
Hessian matrix appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hessian matrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hessian matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Differential operators, Matrices (mathematics), Morse theory, so understanding it makes those chapters shorter.
In everyday life
Look for Hessian matrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hessian matrix” →

How to study Hessian matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hessian matrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hessian matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hessian matrix in simple terms?

In mathematics, the Hessian matrix, Hessian or (less common used phrase) Hesse matrix is a square matrix of second-order partial derivatives of a scalar-valued function, or scalar field. It describes the local curvature of a function of many variables.

Why does Hessian matrix matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hessian matrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hessian matrix.

Tags

  • Differential operators
  • Matrices (mathematics)
  • Morse theory
  • Multivariable calculus
  • Singularity theory

Keep exploring