Second Derivative Test
Consider the function [latex]f(x)=x^{3}[/latex]. This function has a critical point at [latex]x=0[/latex] since [latex]f'(0)=3(0)^{2}=0[/latex]. However, [latex]f[/latex] does not have an extreme value at [latex]x=0[/latex]. The existence of a critical point at [latex]x=x_0[/latex] does not guarantee a local extremum there.
The same is true for functions of two or more variables. One way this can happen is at a saddle point. Here’s an example:

In this graph, the origin is a saddle point. The first partial derivatives of [latex]f(x, y)=x^{2}-y^{2}[/latex] are both zero at this point, but it’s neither a maximum nor a minimum for the function. The vertical trace corresponding to [latex]y=0[/latex] is [latex]z=x^{2}[/latex] (a parabola opening upward), but the vertical trace corresponding to [latex]x=0[/latex] is [latex]z=-y^{2}[/latex] (a parabola opening downward). Therefore, it’s both a global maximum for one trace and a global minimum for another.
saddle point
Given the function [latex]z=f(x, y)[/latex], the point [latex](x_0, y_0, f(x_0, y_0))[/latex] is a saddle point if both [latex]f_x(x_0, y_0)=0[/latex] and [latex]f_y(x_0, y_0)=0[/latex], but [latex]f[/latex] does not have a local extremum at [latex](x_0, y_0)[/latex].
The second derivative test for single-variable functions provides a method for determining whether an extremum occurs at a critical point. Let’s recall how it works before extending it to two variables.
- If [latex]f''(x_0) < 0[/latex], then [latex]f[/latex] has a local maximum at [latex]x_0[/latex].
- If [latex]f''(x_0) > 0[/latex], then [latex]f[/latex] has a local minimum at [latex]x_0[/latex].
- If [latex]f''(x_0) = 0[/latex], then the test is inconclusive.
When extending this to functions of two variables, an issue arises: there are four different second-order partial derivatives (though equality of mixed partials reduces this to three). The second derivative test for a function of two variables, stated in the following theorem, uses a discriminant [latex]D[/latex] that replaces [latex]f''(x_0)[/latex] in the second derivative test for a function of one variable.
second derivative test
Let [latex]z=f(x, y)[/latex] be a function of two variables for which the first- and second-order partial derivatives are continuous on some disk containing the point [latex](x_0, y_0)[/latex]. Suppose [latex]f_x(x_0, y_0)=0[/latex] and [latex]f_y(x_0, y_0)=0[/latex]. Define the quantity
[latex]\large{D=f_{xx}(x_0,y_0)f_{yy}(x_0,y_0)-(f_{xy}(x_0,y_0))^2}.[/latex]
- If [latex]D>0[/latex] and [latex]f_{xx}(x_0,y_0)>0[/latex], then [latex]f[/latex] has a local minimum at [latex](x_0, y_0)[/latex].
- If [latex]D>0[/latex] and [latex]f_{xx}(x_0,y_0)<0[/latex], then [latex]f[/latex] has a local maximum at [latex](x_0,y_0)[/latex].
- If [latex]D<0[/latex], then [latex]f[/latex] has a saddle point at [latex](x_0, y_0)[/latex].
- If [latex]D=0[/latex], then the test is inconclusive.
See Figure 2.

To apply the second derivative test, we first need to find the critical points of the function. Here’s a systematic approach.
Let [latex]z=f(x,y)[/latex] be a function of two variables for which the first- and second-order partial derivatives are continuous on some disk containing the point [latex](x_0, y_0)[/latex]. To apply the second derivative test to find local extrema:
- Find critical points [latex](x_0, y_0)[/latex] where [latex]f_x(x_0, y_0)=f_y(x_0, y_0)=0[/latex]. Discard any points where at least one of the partial derivatives does not exist.
- Calculate the discriminant [latex]D=f_{xx}(x_0,y_0)f_{yy}(x_0,y_0)-(f_{xy}(x_0,y_0))^2[/latex] for each critical point.
- Apply the second derivative test to determine whether each critical point is a local maximum, local minimum, saddle point, or whether the test is inconclusive.
Find the critical points for each of the following functions, and use the second derivative test to find the local extrema:
- [latex]f(x, y)=4x^{2}+9y^{2}+8x-36y+24[/latex]
- [latex]g(x, y)=\frac{1}{3}x^{3}+y^{2}+2xy-6x-3y+4[/latex]

