01 / 21

Second Derivative Test
& Hessian Matrix

Learn to classify critical points of multivariable functions using second-order partial derivatives and the Hessian determinant.

Multivariable Calculus

What is a Critical Point?

For a function \( f(x,y) \), a critical point occurs at \( (a,b) \) where both first partial derivatives equal zero:

$$ f_x(a,b) = 0 \quad \text{and} \quad f_y(a,b) = 0 $$

Three Types of Critical Points

Local Minimum
Surface curves upward in every direction. Like the bottom of a bowl.
Local Maximum
Surface curves downward in every direction. Like the top of a hill.
Saddle Point
Curves up in one direction, down in another. Like a horse saddle or mountain pass.

Visualizing Min, Max, & Saddle

Local Min
Bowl shape
Local Max
Hilltop shape
Saddle Point
Up & down
violet: up red: down

The Hessian Matrix

The Hessian matrix collects all second-order partial derivatives of \( f(x,y) \) into one matrix:

$$ H = \begin{bmatrix} f_{xx} & f_{xy} \\ f_{yx} & f_{yy} \end{bmatrix} $$

The Discriminant \( D \)

The key quantity in the second derivative test is the determinant of the Hessian, often called the discriminant:

$$ D = f_{xx} \cdot f_{yy} - (f_{xy})^2 $$

The Second Derivative Test

At a critical point \( (a,b) \) where \( f_x = 0 \) and \( f_y = 0 \), compute \( D = f_{xx}f_{yy} - (f_{xy})^2 \). Then:

1
If \( D > 0 \) and \( f_{xx} > 0 \): local minimum
2
If \( D > 0 \) and \( f_{xx} < 0 \): local maximum
3
If \( D < 0 \): saddle point
4
If \( D = 0 \): inconclusive (need other methods)

Why \( D > 0 \) Splits Into Min & Max

When \( D > 0 \), the eigenvalues of the Hessian have the same sign. The sign of \( f_{xx} \) tells us which:

\( f_{xx} > 0 \)
Both eigenvalues are positive. The surface is concave up in every direction: a local minimum.
\( f_{xx} < 0 \)
Both eigenvalues are negative. The surface is concave down in every direction: a local maximum.

\( D < 0 \) vs. \( D = 0 \): Key Distinction

\( D < 0 \): Saddle
Eigenvalues have opposite signs. The surface curves up in one direction and down in another. Definite conclusion: always a saddle point.
\( D = 0 \): Inconclusive
At least one eigenvalue is zero. Could be a min, max, saddle, or even a degenerate flat. The test gives no answer: use other techniques.

How to Apply the Test

1
Find critical points: Solve \( f_x = 0 \) and \( f_y = 0 \) simultaneously.
2
Compute second partials: Find \( f_{xx} \), \( f_{yy} \), and \( f_{xy} \).
3
Calculate discriminant: \( D = f_{xx} \cdot f_{yy} - (f_{xy})^2 \).
4
Evaluate at each critical point: Plug in \( (a,b) \) and apply the classification rules.
5
State your conclusion: Local min, local max, saddle, or inconclusive.

Example 1: \( f(x,y) = x^2 + y^2 \)

x
f
\((0,0)\)
x-slice
y-slice
Both slices curve up: local min

Example 2: \( f(x,y) = x^2 - y^2 \)

x
f
\((0,0)\)
x-slice (up)
y-slice (down)
Opposite curvature: saddle point

Example 3: \( f(x,y) = x^3 - 3xy + y^3 \)

Step 1: Find critical points.
\( f_x = 3x^2 - 3y = 0 \implies y = x^2 \)
\( f_y = -3x + 3y^2 = 0 \implies x = y^2 \)
Substituting: \( x = (x^2)^2 = x^4 \), so \( x^4 - x = 0 \), giving \( x(x^3 - 1) = 0 \).
Critical points: \( (0,0) \) and \( (1,1) \).

Step 2: Second partials.
\( f_{xx} = 6x \), \( f_{yy} = 6y \), \( f_{xy} = -3 \).

At \( (0,0) \)
\( D = (0)(0) - (-3)^2 = -9 < 0 \)
Saddle point
At \( (1,1) \)
\( D = (6)(6) - (-3)^2 = 27 > 0 \), \( f_{xx} = 6 > 0 \)
Local minimum

Example 3: Contour View

x
y
1
1
\((0,0)\) Saddle
\((1,1)\) Min

Common Mistakes to Avoid

✕ Forgetting \( f_{xy} \)
Students compute \( D = f_{xx} \cdot f_{yy} \) and omit the \( (f_{xy})^2 \) term. The cross partial is essential.
✕ \( D = 0 \) means saddle
\( D = 0 \) is inconclusive, not a saddle point. You need other methods like examining level curves or higher-order terms.
✕ Checking \( f_{xx} \) when \( D < 0 \)
When \( D < 0 \), the sign of \( f_{xx} \) is irrelevant. It is always a saddle point regardless of \( f_{xx} \).

Classification Summary Table

Condition \( f_{xx} \) Sign Classification
\( D > 0 \) \( f_{xx} > 0 \) Local Minimum
\( D > 0 \) \( f_{xx} < 0 \) Local Maximum
\( D < 0 \) Any sign Saddle Point
\( D = 0 \) Any sign Inconclusive

Question 1 of 5

For \( f(x,y) = x^2 + 4y^2 \), what is the discriminant \( D \) at the critical point \( (0,0) \)?

Question 2 of 5

At a critical point, you find \( D > 0 \) and \( f_{xx} < 0 \). What type of critical point is it?

Question 3 of 5

For \( g(x,y) = xy \), the only critical point is \( (0,0) \). What is the classification?

Question 4 of 5

If \( f_{xx} = 3 \), \( f_{yy} = 5 \), and \( f_{xy} = 4 \) at a critical point, what is \( D \)?

Question 5 of 5

For \( h(x,y) = -x^2 - y^2 + 4x + 6y \), classify the critical point \( (2,3) \).