Second Derivative Test for a Two-Variable Function ( f(x, y) )
The Second Derivative Test is used to classify the critical points of a function ( f(x, y) ) as local maxima, local minima, or saddle points. Here’s a step-by-step explanation:
Step 1: Find the Critical Points
A critical point occurs where the first partial derivatives are zero (or undefined).
- Compute the first partial derivatives:
[
f_x = \frac{\partial f}{\partial x}, \quad f_y = \frac{\partial f}{\partial y}
]
- Solve the system of equations:
[
f_x(x, y) = 0 \quad \text{and} \quad f_y(x, y) = 0
]
The solutions ((a, b)) are the critical points.
Step 2: Compute the Second Partial Derivatives
At each critical point ((a, b)), compute the second partial derivatives:
[
f_{xx} = \frac{\partial^2 f}{\partial x^2}, \quad f_{yy} = \frac{\partial^2 f}{\partial y^2}, \quad f_{xy} = \frac{\partial^2 f}{\partial x \partial y}
]
Step 3: Compute the Discriminant (D)
The discriminant (also called the Hessian determinant) is:
[
D = f_{xx}(a, b) \cdot f_{yy}(a, b) - \left[ f_{xy}(a, b) \right]^2
]
Step 4: Apply the Second Derivative Test
Use ( D ) and ( f_{xx}(a, b) ) to classify the critical point:
-
If ( D > 0 ) and ( f_{xx}(a, b) > 0 ):
( (a, b) ) is a local minimum (concave up).
-
If ( D > 0 ) and ( f_{xx}(a, b) < 0 ):
( (a, b) ) is a local maximum (concave down).
-
If ( D < 0 ):
( (a, b) ) is a saddle point (neither max nor min).
-
If ( D = 0 ):
The test is inconclusive (further analysis needed).
Example
Let’s apply this to ( f(x, y) = x^3 + y^3 - 3xy ).
Step 1: Find Critical Points
- Compute first partial derivatives:
[
f_x = 3x^2 - 3y, \quad f_y = 3y^2 - 3x
]
- Set them to zero:
[
3x^2 - 3y = 0 \implies y = x^2
]
[
3y^2 - 3x = 0 \implies y^2 = x
]
- Substitute ( y = x^2 ) into ( y^2 = x ):
[
(x^2)^2 = x \implies x^4 - x = 0 \implies x(x^3 - 1) = 0
]
Solutions: ( x = 0 ) or ( x = 1 ).
- If ( x = 0 ), ( y = 0^2 = 0 ). Critical point: ( (0, 0) ).
- If ( x = 1 ), ( y = 1^2 = 1 ). Critical point: ( (1, 1) ).
Step 2: Compute Second Derivatives
[
f_{xx} = 6x, \quad f_{yy} = 6y, \quad f_{xy} = -3
]
Step 3: Compute Discriminant ( D )
At ( (0, 0) ):
[
D = (6 \cdot 0)(6 \cdot 0) - (-3)^2 = 0 - 9 = -9
]
Since ( D < 0 ), ( (0, 0) ) is a saddle point.
At ( (1, 1) ):
[
D = (6 \cdot 1)(6 \cdot 1) - (-3)^2 = 36 - 9 = 27
]
Since ( D > 0 ) and ( f_{xx} = 6 > 0 ), ( (1, 1) ) is a local minimum.
Summary
- Critical Points: Solve ( f_x = 0 ) and ( f_y = 0 ).
- Second Derivatives: Compute ( f_{xx}, f_{yy}, f_{xy} ).
- Discriminant: ( D = f_{xx} f_{yy} - (f_{xy})^2 ).
- Classification:
- ( D > 0 ) and ( f_{xx} > 0 ): Local minimum.
- ( D > 0 ) and ( f_{xx} < 0 ): Local maximum.
- ( D < 0 ): Saddle point.
- ( D = 0 ): Test fails.
This method efficiently classifies critical points for most smooth functions.