Before you can read The Hessian matrix, a stream of new symbols will appear. This page introduces them one at a time, from zero, and nothing is used before it is defined and pictured. If you can read a graph, you can read this. By the last section you will meet the Hessian matrix itself — fully assembled from the atoms below.
The picture. Think of a landscape. You stand at a spot given by two coordinates (x,y) (east–west and north–south), and f(x,y) is the altitude at your feet. The whole function is a hilly surface floating above the flat ground.
Why the topic needs it. The Hessian lives on such surfaces. It only makes sense when there are several input directions — that is exactly what Rn gives us. A single number (n=1) has just one way to curve; more inputs mean more directions, and that is the whole reason the Hessian is a matrix.
Why "freeze the others"? On a landscape, if you walk due east and hold your north–south position fixed, you feel a definite up-or-down slope. That slope is ∂f/∂x. Walk due north instead: ∂f/∂y. Each freezes the other so the question "how steep?" has one clear answer.
Why the topic needs it. Every entry of the gradient and every entry of the Hessian is a partial derivative. This is the atom of the whole subject.
The picture. At every point on the landscape, ∇f is an arrow lying flat on the ground pointing in the direction of steepest uphill. Its length says how steep. Where the ground is flat (a peak, a pit, a saddle), the arrow shrinks to nothing: ∇f=0.
Why the topic needs it. The Hessian starts working after the gradient. A critical point is where ∇f=0 — the flat spots. Only there does the Hessian get to decide "peak, pit, or saddle?". See The gradient vector for the full story.
The picture. Imagine driving along a road profile:
f′′>0: the road bends upward — a valley shape (smile). ⌣
f′′<0: the road bends downward — a hill shape (frown). ⌢
f′′=0: no bending here — locally straight.
Why the topic needs it. The Hessian is literally "the second derivative for functions of many variables." Understand f′′ as a picture (smile vs frown) and every eigenvalue of it will read the same way.
Now combine the two atoms of the last sections: partial (freeze the others) and second derivative (differentiate twice). In many variables you can differentiate twice in the same direction, or in two different directions.
Why a grid and not a single number? In 1D there is one curvature, f′′. With several inputs, curvature depends on which direction you look, and directions can interact — the mixed partials capture that interaction. You need n2 numbers, so a matrix.
How to read the sandwich.v is the direction you choose to walk; H is the curvature grid; the output number reports the curvature along that path. Positive ⇒ that path bends up (valley-like); negative ⇒ bends down (hill-like).
Why the topic needs it. The fast 2×2 second-derivative test in the parent note is built on detH plus the diagonal check. It replaces "find the eigenvalues" with "check one product and one sign."
The picture for the Hessian. Because H is symmetric, its eigenvectors are the "natural axes" of the curved surface — the directions along which the bowl or saddle is aligned. Along each such axis the surface behaves like a simple 1D parabola, and its eigenvalue λis that parabola's f′′:
Everything flows into one place: The Hessian matrix. Once these atoms are solid, the parent note is just assembling them — and downstream tools Newton's method, Gradient descent and Convex functions all reuse the same ideas.
Try to answer each before revealing. If any stumps you, reread its section above.
What does f:R2→R take in and give out?
Two numbers (x,y) in, one number (a height) out — a surface over the plane.
What smoothness do we assume about f, and what does it buy us?
f∈C2 (second partials exist and are continuous); this guarantees the Hessian exists AND is symmetric.
What does the curly ∂ signal that the straight d does not?
That other variables exist and are being held frozen while we differentiate w.r.t. one.
In one word, what does the gradient ∇f point toward?
Steepest-uphill.
What is the Hessian H, in one sentence?
The square grid of all second partial derivatives, Hij=∂2f/∂xi∂xj — the multivariable second derivative.
What does the transpose M⊤ do, and what makes a matrix symmetric?
It mirrors the matrix across its diagonal (rows become columns); symmetric means M=M⊤.
Why is H symmetric?
Because for continuous second partials the mixed partials are equal, ∂2f/∂x∂y=∂2f/∂y∂x — both measure the same twist.
How do you compute the length ∥v∥ of a vector, and what is a unit vector?
By Pythagoras, ∥v∥=v12+v22; a unit vector has length exactly 1.
Where does the 21 in the curvature term come from?
From Taylor's 1/k! rule at order k=2: 1/2!=21, exactly as in the 1D term 21f′′(x)h2.
Where does the second-derivative test become usable, and why?
Only at critical points (∇f=0), because there the slope is flat and only curvature decides the shape.
Smile or frown: does f′′>0 describe a valley or a hill?
Valley (curves upward, ⌣).
Why must v be a unit vector to read true directional curvature from v⊤Hv?
Because scaling v scales the value by the square of its length; only with ∥v∥=1 is the number the real curvature — otherwise only its sign is meaningful.
detH>0 — is that a minimum? What extra check is needed?
Not yet; det>0 only means the curvatures share a sign. Check a (or the trace): a>0 ⇒ min, a<0 ⇒ max.
For a 2×2 symmetric H, what are detH and trH in terms of eigenvalues?
detH=λ1λ2 (product) and trH=λ1+λ2 (sum).
What geometric fact makes an eigenvector special for H?
H only stretches it (by λ) without rotating it — it is a natural axis of the surface, and λ is the 1D curvature along it.