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

The Hessian Matrix and Second Derivative Test

College Depth 95 in the knowledge graph ☐ I know this ☆ Set as goal
1,019topics build on this
431prerequisites beneath it
See this on the map →
Critical Points, Extrema, and Saddle PointsHigher-Order Partial Derivatives+2 more→→The Second Fundamental Form, Gaussian Curvature, and Mean CurvatureUnconstrained 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 min (det > 0, f_xx > 0), local max (det > 0, f_xx < 0), or saddle point (det < 0).

How It's Best Learned

Classify one function where the diagonal entries mislead, then check along lines. For f = x² + 3xy + y² at the origin, f_xx = f_yy = 2 and f_xy = 3, so det(H) = 4 − 9 = −5, a saddle. Along y = x, f = 5x², which curves up. Along y = −x, f = −x², which curves down. The eigenvalues 5 and −1 match these two directions.

Common Misconceptions

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 Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Inverse Trigonometric Functions → Implicit Differentiation → Related Rates → Optimization Problems → Critical Points of Multivariable Functions → Critical Points and Classification of Extrema → Second Partial Test for Local Extrema (Hessian) → The Hessian Matrix and Second Derivative Test

Longest path: 96 steps · 431 total prerequisite topics

Prerequisites (4)

Leads To (2)