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

Second Partial Test and the Hessian

College Depth 84 in the knowledge graph ☐ I know this ☆ Set as goal
1,001topics build on this
406prerequisites beneath it
See this on the map →
Mixed Partial Derivatives and Clairaut's TheoremThe Second Partials Test+1 more→→Optimization in Multiple Variables
hessian classification

Core Idea

The Hessian H = [[f_xx, f_xy], [f_xy, f_yy]] classifies critical points. If det(H) > 0 and f_xx > 0, it's a local minimum. If det(H) > 0 and f_xx < 0, it's a maximum. If det(H) < 0, it's a saddle point.

Explainer

In single-variable calculus, the second derivative test classifies critical points: if f′(a) = 0 and f′′(a) > 0, the graph is concave up at a, so a is a local minimum; if f′′(a) < 0, it's concave down, so a is a local maximum. For functions of two variables, you already know that critical points satisfy ∇f = 0 (both partial derivatives are zero). The Hessian matrix is the multivariable analogue of the second derivative — it captures the curvature of the surface in all directions simultaneously.

The Hessian at a critical point (a, b) is the 2×2 matrix H = [[f_xx, f_xy], [f_xy, f_yy]], where all second partials are evaluated at (a, b). By Clairaut's theorem (which you have studied), f_xy = f_yx under smoothness conditions, so H is symmetric. The entries measure curvature in specific directions: f_xx is the concavity along the x-axis, f_yy is the concavity along the y-axis, and f_xy measures how the x-slope changes as y varies — a cross-curvature or "twist."

The classification hinges on the determinant D = det(H) = f_xx · f_yy − (f_xy)². Think of D as the product of curvatures in the two "principal" directions of the surface (the directions where the mixed terms vanish). If D > 0, the surface curves the same way in all directions at that point — it's bowl-shaped (either upward or downward), giving a local extremum. The sign of f_xx (or equivalently f_yy when D > 0) tells you which: positive means bowl-opening-upward (local minimum), negative means bowl-opening-downward (local maximum). If D < 0, the surface curves upward in one direction and downward in another — a saddle point, like the surface of a mountain pass that goes up toward ridges but down toward valleys.

Here is the geometric intuition for why D = f_xx · f_yy − (f_xy)² is the right quantity. A quadratic function ax² + 2bxy + cy² (which approximates f near a critical point) curves upward in every direction if and only if a > 0 and ac − b² > 0. The determinant condition is exactly testing whether this quadratic form is positive definite (curves up everywhere), negative definite (curves down everywhere), or indefinite (saddle). When D = 0, the test is inconclusive — you need higher-order information.

The Hessian matrix generalizes naturally beyond two variables: for a function of n variables, H is an n×n symmetric matrix of second partials, and the classification criterion generalizes to checking whether H is positive definite (local min), negative definite (local max), or indefinite (saddle). This is the heart of multivariable optimization, and understanding the Hessian as a curvature object — not just as a formula to memorize — is what makes it usable in more complex settings like constrained optimization and machine learning loss landscapes.

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 → Addition Within 10 → Number Bonds to 10 → 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 → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Literal Equations → Slope-Intercept Form → Point-Slope Form → Writing Linear Equations → Parallel and Perpendicular Line Slopes → Graphing Linear Equations → Piecewise Functions → One-Sided Limits → Continuity Definition → Limits and Continuity in Multiple Variables → Functions of Several Variables → Continuity in Multiple Variables → Partial Derivatives: Definition and Computation → Differentiability in Multiple Variables → Differentiability in Multivariable Functions → Total Differential and Linear Approximation → Chain Rule for Multivariable 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) → Second Partial Test and the Hessian

Longest path: 85 steps · 406 total prerequisite topics

Prerequisites (3)

Leads To (1)