Derivatives and the Shape of a Graph: Learn It 3

The Second Derivative Test

The first derivative test provides a systematic approach to identify local extrema, but in some cases, using the second derivative can be more straightforward. A function must have a local extremum at a critical point, but not all critical points are extremas.

Consider a function [latex]f[/latex] that is twice-differentiable on an open interval [latex]I[/latex] containing [latex]a[/latex].

  • If [latex]f^{\prime \prime}(x)<0[/latex] and [latex]f^{\prime}(a)=0[/latex], [latex]f[/latex]is concave down at [latex]a[/latex], indicating a local maximum.
  • If [latex]f^{\prime \prime}(x)>0[/latex] and [latex]f^{\prime}(a)=0[/latex], [latex]f[/latex]is concave up at [latex]a[/latex], suggesting a local minimum at [latex]a[/latex].

Furthermore, if [latex]f^{\prime \prime}[/latex] is continuous over [latex]I[/latex] and remains positive, [latex]f[/latex] is consistently concave up across [latex]I[/latex], which helps in determining the behavior of [latex]f[/latex] at other critical points.

For instance, suppose there exists a point [latex]b[/latex] such that [latex]f^{\prime}(b)=0[/latex] and [latex]f^{\prime \prime}[/latex] is positive throughout, [latex]f[/latex] has a local minimum at [latex]b[/latex]. The second derivative thus confirms the nature of local extrema by providing insight into the concavity of the function at critical points.

A function f(x) is graphed in the first quadrant with a and b marked on the x-axis. The function is vaguely sinusoidal, increasing first to x = a, then decreasing to x = b, and increasing again. At (a, f(a)), the tangent is marked, and it is noted that f’(a) = 0 and f’’(a) < 0. At (b, f(b)), the tangent is marked, and it is noted f’(b) = 0 and f’’(b) > 0.
Figure 9. Consider a twice-differentiable function [latex]f[/latex] such that [latex]f^{\prime \prime}[/latex] is continuous. Since [latex]f^{\prime}(a)=0[/latex] and [latex]f^{\prime \prime}(a)<0[/latex], there is an interval [latex]I[/latex] containing [latex]a[/latex] such that for all [latex]x[/latex] in [latex]I[/latex], [latex]f[/latex] is increasing if [latex]x<a[/latex] and [latex]f[/latex] is decreasing if [latex]x>a[/latex]. As a result, [latex]f[/latex] has a local maximum at [latex]x=a[/latex]. Since [latex]f^{\prime}(b)=0[/latex] and [latex]f^{\prime \prime}(b)>0[/latex], there is an interval [latex]I[/latex] containing [latex]b[/latex] such that for all [latex]x[/latex] in [latex]I[/latex], [latex]f[/latex] is decreasing if [latex]x<b[/latex] and [latex]f[/latex] is increasing if [latex]x>b[/latex]. As a result, [latex]f[/latex] has a local minimum at [latex]x=b[/latex].

second derivative test

Suppose [latex]f^{\prime}(c)=0, \, f^{\prime \prime}[/latex] is continuous over an interval containing [latex]c[/latex].

  1. If [latex]f^{\prime \prime}(c)>0[/latex], then [latex]f[/latex] has a local minimum at [latex]c[/latex].
  2. If [latex]f^{\prime \prime}(c)<0[/latex], then [latex]f[/latex] has a local maximum at [latex]c[/latex].
  3. If [latex]f^{\prime \prime}(c)=0[/latex], then the test is inconclusive.

Note that for case iii. when [latex]f^{\prime \prime}(c)=0[/latex], then [latex]f[/latex] may have a local maximum, local minimum, or neither at [latex]c[/latex].

The functions [latex]f(x)=x^3[/latex], [latex]f(x)=x^4[/latex], and [latex]f(x)=−x^4[/latex] all have critical points at [latex]x=0[/latex]. In each case, the second derivative is zero at [latex]x=0[/latex].

However, the function [latex]f(x)=x^4[/latex] has a local minimum at [latex]x=0[/latex] whereas the function [latex]f(x)=−x^4[/latex] has a local maximum at [latex]x=0[/latex] and the function [latex]f(x)=x^3[/latex] does not have a local extremum at [latex]x=0[/latex].

Let’s now look at how to use the second derivative test to determine whether [latex]f[/latex] has a local maximum or local minimum at a critical point [latex]c[/latex] where [latex]f^{\prime}(c)=0[/latex].

Use the second derivative to find the location of all local extrema for [latex]f(x)=x^5-5x^3[/latex].