1.2.6 · D5Calculus & Optimization Basics
Question bank — The Hessian matrix
The vocabulary you need is all built in the parent: the Hessian is the matrix of second partial derivatives; a critical point is where the gradient ; eigenvalues measure curvature along special directions. We only reason here — no heavy computation.
The three pictures below anchor the three verdicts (s01), the diagonal-sign check (s02), and how rescaling warps curvature (s03). Refer back to them as you answer.



True or false — justify
True or false: the Hessian is only defined at critical points.
False — is the matrix of second partials and exists wherever is twice-differentiable; only the classification test (min/max/saddle) requires you to be at a critical point.
True or false: a real Hessian always has real eigenvalues.
True (when second partials are continuous) — by Schwarz's theorem is symmetric, and real symmetric matrices have real eigenvalues via the spectral theorem.
True or false: if is positive definite at every point, is convex.
True — a positive-definite Hessian everywhere means every direction curves upward everywhere, which is exactly the second-order characterization of a convex function.
True or false: guarantees a local minimum.
False — only means the eigenvalues share a sign; they could both be negative, giving a maximum (see figure s01, middle dome, and the diagonal-sign check in figure s02). You must also inspect a diagonal entry or the trace.
True or false: a saddle point can occur even if .
False — a saddle needs eigenvalues of opposite signs, so . Positive determinant rules out a 2×2 saddle.
True or false: the gradient and the Hessian both point "uphill".
False — the gradient is a vector pointing uphill; the Hessian is a matrix of curvatures with no single direction. It bends the hill rather than pointing along it.
True or false: doubling every coordinate scale keeps the eigenvalues of unchanged.
False — rescaling variables warps the curvature (figure s03): if is the diagonal scaling matrix defining the change of variables (each new coordinate is an old coordinate divided by its scale), then the Hessian in the new variables is , whose eigenvalues change and so does the condition number — this is exactly why preconditioning matters in optimization.
True or false: if has a zero eigenvalue at a critical point, it must be a degenerate saddle.
False — a zero eigenvalue makes the test inconclusive, not a saddle; the flat direction needs higher-order terms to resolve.
True or false: the Hessian of a purely linear function is the zero matrix.
True — all second partials of a linear function vanish, so ; consistent with the fact that a plane has no curvature.
True or false: for a quadratic with symmetric , the Hessian equals everywhere.
True — a quadratic's second derivatives are constant, so at every point, which is why quadratics are the model Newton's method solves in one step.
Spot the error
"We found here but is positive definite, so it's a local minimum."
Error — the second-derivative test is only valid at critical points. Off a critical point the linear term dominates, so there is nothing to classify.
", so this critical point is a saddle."
Error — means at least one zero eigenvalue, which makes the test inconclusive, not a saddle. A saddle needs strictly opposite-sign eigenvalues.
" is a valid Hessian."
Error — for a function (second partials continuous) Schwarz's theorem forces , so a Hessian must be symmetric; but off-diagonal, so this cannot be such a Hessian.
"Adam adapts each step using the Hessian, so it's a curvature method."
Error — Adam uses only first-order info (running averages of gradients and squared gradients). It never forms or approximates second derivatives.
"The trace of is positive, therefore the point is a minimum."
Error — the trace can be positive while one eigenvalue is negative (e.g. yet is a saddle). Positivity of the sum does not force both signs positive.
"Newton's step is ."
Error — Newton's method uses the inverse Hessian: . Multiplying by instead of has wrong units and diverges.
" and can differ, so the Hessian is generally non-symmetric."
Error — for (continuous second partials) Schwarz's theorem forces , so is symmetric. Only functions failing that regularity hypothesis can break it.
Why questions
Why does 1D need only one second-derivative number but D needs a whole matrix?
In 1D there is a single direction to curve, but in dimensions curvature depends on the direction you look and directions can couple, so you write entries as a matrix — though Schwarz's symmetry () makes only of them independent.
Why do we use eigenvalues rather than raw matrix entries to classify a point?
If we write a nudge in the eigenbasis as — where each is an eigenvector of and is the coordinate along it — the quadratic form decouples into , so each eigenvalue is a clean curvature along its own axis and the signs of the directly give min/max/saddle.
Why does the linear (gradient) term disappear when classifying a critical point?
At a critical point , so the first-order term of the Taylor expansion vanishes and the Hessian term alone decides the local shape.
Why is the symmetry of the Hessian a "gift" for optimization?
Symmetry (guaranteed by Schwarz's theorem) gives real eigenvalues and an orthonormal eigenbasis of the , which is exactly what lets us cleanly diagonalize the curvature and read off min/max/saddle.
Why does a large condition number slow down Gradient descent?
A large means a long thin valley (figure s03, right) where the gradient points mostly across the valley, so plain descent zig-zags instead of heading down the trough.
Why do deep-learning frameworks avoid computing the full Hessian?
For parameters is , which is astronomically large for millions of weights, so methods like L-BFGS build cheap low-rank curvature estimates from gradient differences instead.
Edge cases
What does the test say if both eigenvalues are zero?
Completely inconclusive — the surface is flat to second order in every direction, so only higher-order terms can decide the shape.
What is the Hessian of at the origin, and what does the test conclude?
evaluates to the zero matrix at the origin, so both eigenvalues are and the test is inconclusive — indeed is an inflection, not a min/max.
If is positive semi-definite (one zero, one positive eigenvalue) at a critical point, is it a minimum?
Not determined — the positive direction curves up but the flat direction is undecided, so it may be a minimum or a degenerate saddle depending on higher-order behaviour.
Can a function have everywhere yet no critical point at all?
Yes — describes curvature independent of the gradient; if never vanishes there is no point to classify even though the surface is everywhere saddle-shaped.
At a maximum, what are the signs of the eigenvalues and the determinant (2×2 case)?
Both eigenvalues negative, so the determinant (positive) while a diagonal entry like (figure s02) — the positive determinant is why you must also check a diagonal sign to distinguish max from min.
Recall One-line summary of every trap
The Hessian exists everywhere but only classifies at critical points; needs a diagonal-sign check; zero eigenvalue means inconclusive, never saddle; Adam is first-order; Newton uses .