Second Derivative Test

Learning Objectives

  • Apply a second derivative test to identify a critical point as a local maximum, local minimum, or saddle point for a function of two variables.

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)^{3}=0[/latex]. However, [latex]f[/latex] does not have an extreme value at [latex]x=0[/latex]. Therefore, the existence of a critical value at [latex]x=x_0[/latex] does not guarantee a local extremum at [latex]x=x_0[/latex]. The same is true for a function of two or more variables. One way this can happen is at a saddle point. An example of a saddle point appears in the following figure.

x^{2}-y^{2}

Figure 1. Graph of the function [latex]\small{z=x^{2}-y^{2}}[/latex]. This graph has a saddle point at the origin.

In this graph, the origin is a saddle point. This is because the first partial derivatives of [latex]f(x, y)=x^{2}-y^{2}[/latex] are both equal to zero at this point, but it is neither a maximum nor a minimum for the function. Furthermore 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 is both a global maximum for one trace and a global minimum for another.

Definition


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 a function of one variable provides a method for determining whether an extremum occurs at a critical point of a function.  Below we recall the the second derivative test as it applies to single-variable functions to note the similarities to its two-variable extension.

Recall: Second Derivative Test (Single Variable Version)

Suppose that [latex]f(x)[/latex] is twice-differentiable at [latex]x = x_0[/latex] and [latex]f'(x_0) = 0[/latex].

  1. If [latex]f''(x_0) < 0[/latex], then [latex]f[/latex] has a local maximum at [latex]x_0[/latex].
  2. If [latex]f''(x_0) > 0[/latex], then [latex]f[/latex] has a local minimum at [latex]x_0[/latex].
  3. If [latex]f''(x_0) = 0[/latex], then the test is inconclusive.

When extending this result to a function of two variables, an issue arises related to the fact that there are, in fact, four different second-order partial derivatives, although 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.

Theorem: 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]

  1. 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].
  2. 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].
  3. If [latex]D<0[/latex], then [latex]f[/latex] has a saddle point at [latex](x_0, y_0)[/latex].
  4. If [latex]D=0[/latex], then the test is inconclusive.

See Figure 2.

This figure consists of three figures labeled a, b, and c. Figure a has two bulbous mounds pointing down, and the two extrema are listed as the local minima. Figure b has two bulbous mounds pointed up, and the two extrema are listed as the local maxima. Figure c is shaped like a saddle, and in the middle of the saddle, a point is marked as the saddle point.

Figure 2. The second derivative test can often determine whether a function of two variables has a local minima (a), a local maxima (b), or a saddle point (c).

To apply the second derivative test, it is necessary that we first find the critical points of the function. There are several steps involved in the entire procedure, which are outlined in a problem-solving strategy.

Problem-solving strategy: using the second derivative test for functions of two variables


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, use the following steps:

  1. Determine the critical points [latex](x_0, y_0)[/latex] of the function [latex]f[/latex] where [latex]f_x(x_0, y_0)=f_y(x_0, y_0)[/latex]. Discard any points where at least one of the partial derivatives does not exist.
  2. 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 of [latex]f[/latex].
  3. Apply Second Derivative Test to determine whether each critical point is a local maximum, local minimum, or saddle point, or whether the theorem is inconclusive.

Example: using the second derivative test

Find the critical points for each of the following functions, and use the second derivative test to find the local extrema:

  1. [latex]f(x, y)=4x^{2}+9y^{2}+8x-36y+24[/latex]
  2. [latex]g(x, y)=\frac{1}{3}x^{3}+y^{2}+2xy-6x-3y+4[/latex]

Try it

Use the second derivative to find the local extrema of the function

[latex]f(x, y)=x^{3}+2xy-6x-4y^{2}[/latex].

Watch the following video to see the worked solution to the above Try It