The Second-Derivative Test
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Suppose the function has continuous second-order partial derivatives. The matrix
is called the Hessian matrix of the function .
Since the mixed partial derivatives are equal when they are continuous, the Hessian matrix is a symmetric matrix.
For a function of variables , the Hessian matrix is an matrix:
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
The sufficient condition for an extremum: suppose the function has continuous first-order and second-order partial derivatives in a neighbourhood of the stationary point , and put
with the discriminant . Then:
- When , the function attains an extremum at :
- when (or ) it is a local minimum
- when (or ) it is a local maximum
- When , the function does not attain an extremum at (it is a saddle point)
- When , nothing can be determined, and you have to use the definition or another method to decide
An Intuitive Understanding of the Test
(using the positive definiteness of the Hessian matrix)
- and ⟺ the Hessian matrix is positive definite ⟺ a local minimum
- and ⟺ the Hessian matrix is negative definite ⟺ a local maximum
- ⟺ the Hessian matrix is indefinite ⟺ a saddle point
- ⟺ the Hessian matrix is positive or negative semidefinite ⟺ nothing can be determined
This conclusion generalises to functions of variables: at a stationary point, a positive definite Hessian means a local minimum, a negative definite one means a local maximum, and an indefinite one means a saddle point.
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Suppose the function of variables has continuous second-order partial derivatives at the stationary point , and let be the Hessian matrix. Then:
- If is positive definite, then is a local minimum point
- If is negative definite, then is a local maximum point
- If is indefinite, then is not an extremum point (a saddle point)
- If is positive or negative semidefinite, then nothing can be determined
The criterion for positive definiteness: all the leading principal minors are positive; for negative definiteness: the odd-order leading principal minors are negative and the even-order ones are positive.
When , the second-derivative test fails, and you have to use the definition or higher-order derivatives.
Typical Examples with
- at : and , but it is in fact a local minimum point.
- at : , but it is a local maximum point.
- at : , but it is not an extremum point.
These three examples show that when anything can happen, and each case has to be analysed individually.
Example 1: Finding an Extremum
Find the extrema of the function .
Approach:
The stationary points are already known; the key second step is to classify them with the second-derivative test.
Steps:
- From the example in the previous section, the stationary points are and
- The second-order partial derivatives: , and
- At : , and , so is not an extremum point (a saddle point)
- At : , and with , so is a local minimum point
- The local minimum value:
Answer: the local minimum is , and is a saddle point.
Example 2: The Test Fails
Find the extrema of .
Approach:
When the discriminant is zero the second-derivative test fails, and you have to go back to the definition or use a higher-order test.
Steps:
- and
- Setting gives or , and or
- There are 9 stationary points in all:
- , and
- At : , and , so a local minimum with
- At and : or and , so saddle points
- At : , and , so a local maximum with
Answer: the local maximum is ; the local minimum is (four local minimum points in all); the remaining four are saddle points.
Example 3: The Extremum of a Function of Three Variables
Find the extrema of .
Approach:
For a function of three variables you use the leading principal minors, starting from the sign of the first-order leading principal minor.
Steps:
- , and
- Setting the partial derivatives to zero: , so the stationary point is
- The Hessian matrix:
- The leading principal minors: , and , so the Hessian matrix is positive definite
- Hence is a local minimum point
- The local minimum value:
Answer: the local minimum is .
Exercise 1
Find the extrema of .
Approach:
Find the stationary points and then classify each of them with the second-derivative test.
Steps:
- and
- The stationary points: or , and or , giving 4 stationary points in all
- , and
- : , a local minimum with
- : , a saddle point
- : , a saddle point
- : , a local maximum with
Answer: the local minimum is , the local maximum is , and the remaining points are saddle points.
Exercise 2
Find the extrema of .
Approach:
The procedure is the same; the exponential factor is always positive, so it does not affect the determination of the stationary points or the type of the extremum.
Steps:
- and
- Setting : ; substituting into : and
- The stationary point is
- , and
- At : , and , so a local minimum
Answer: the local minimum is .
Symbols Used in This Article
| Symbol | Type | Pronunciation/Explanation | Meaning in This Article |
|---|---|---|---|
| Second-order partial derivatives | A, B, C | The values of at the stationary point | |
| Discriminant | delta | ||
| Hessian matrix | Hessian of f | The matrix formed by the second-order partial derivatives | |
| Determinant | determinant | The determinant of the matrix |
