A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

The Hessian Matrix and Second Derivative Test

College Depth 84 in the knowledge graph I know this Set as goal
1,002topics build on this
403prerequisites beneath it
See this on the map →
Critical Points, Extrema, and Saddle PointsHigher-Order Partial Derivatives+1 moreUnconstrained Optimization: Finding Extrema
hessian second-derivative-test eigenvalues

Core Idea

The Hessian matrix H = [[f_xx, f_xy], [f_yx, f_yy]] contains all second partial derivatives. At a critical point, the determinant det(H) and trace tr(H) determine whether it is a local max (det > 0, f_xx > 0), local min (det > 0, f_xx < 0), or saddle point (det < 0).

Explainer

You already know how to find critical points of a multivariable function: set ∇f = 0 and solve. A critical point could be a local minimum, a local maximum, or a saddle point. In single-variable calculus, the second derivative test resolves this cleanly: f''(c) > 0 means the function curves upward, giving a local minimum; f''(c) < 0 means downward curvature, giving a local maximum. The Hessian matrix extends this idea to higher dimensions, packaging all second-order information into a matrix that captures curvature in every direction simultaneously.

For f: R² → R, the Hessian is H = [[f_xx, f_xy], [f_yx, f_yy]]. Since Clairaut's theorem guarantees f_xy = f_yx under continuity, H is symmetric. The question at a critical point is: does f curve upward in every direction (local min), downward in every direction (local max), or upward in some directions and downward in others (saddle)? That question is exactly whether H is positive definite, negative definite, or indefinite — which is determined by the signs of its eigenvalues. Positive definite means all eigenvalues are positive (upward curvature in every direction); negative definite means all eigenvalues are negative; indefinite means mixed signs.

For the 2×2 Hessian, the eigenvalue structure reduces to two computable numbers: det(H) = f_xx · f_yy − (f_xy)² and f_xx. If det(H) > 0 and f_xx > 0, the Hessian is positive definite: both eigenvalues are positive, the function curves upward in every direction from the critical point, and you have a local minimum. If det(H) > 0 and f_xx < 0, the Hessian is negative definite: both eigenvalues are negative, downward curvature everywhere, giving a local maximum. If det(H) < 0, the eigenvalues have opposite signs, giving a saddle point — one direction curves up, another down. When det(H) = 0, an eigenvalue is zero and the test is inconclusive.

The geometric intuition for saddle points is worth dwelling on. At a saddle the function increases along some paths through the critical point and decreases along others — like the center of a mountain pass, which is a local maximum along the ridge but a local minimum along the crossing direction. The Hessian test at such a point has one positive and one negative eigenvalue, hence negative determinant. In optimization applications, saddle points are critical to identify because gradient descent can stall near them, mistaking them for minima. For higher-dimensional functions, the full spectrum of the Hessian — not just its determinant — governs the classification, making eigenvalue analysis the natural tool.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsOne-Sided LimitsContinuity DefinitionLimits and Continuity in Multiple VariablesFunctions of Several VariablesContinuity in Multiple VariablesPartial Derivatives: Definition and ComputationDifferentiability in Multiple VariablesDifferentiability in Multivariable FunctionsTotal Differential and Linear ApproximationChain Rule for Multivariable FunctionsImplicit DifferentiationRelated RatesOptimization ProblemsCritical Points of Multivariable FunctionsCritical Points and Classification of ExtremaSecond Partial Test for Local Extrema (Hessian)The Hessian Matrix and Second Derivative Test

Longest path: 85 steps · 403 total prerequisite topics

Prerequisites (3)

Leads To (1)