When determining the sign of f is difficult, we can use another test for local maximum and minimum values. This test is based on the geometrical observation that when the function has a horizontal tangent at c, if the function is concave down, the function has a local maximum at c, and if it is concave up, it has a local minimum (see Figure 1)

Figure 1: If f has a horizontal tangent at a point and is concave up or down around that point, then f has a local extremum there.
Theorem 1. (Second Derivative Test) Suppose f(c)=0.

(a) If f(c)>0, then f has a local minimum at c.

(b) If f(c)<0, then f has a local maximum at c.


Show the proof …


 

  • Recall that if g is continuous at c and g(c)0, then g(x) has the same sign as g(c) for x sufficiently close to c. Therefore, if f is continuous at c and f(c)0, we can say that the function is concave up near c if f(c)>0 and is concave down near c if f(c)<0.
  • There are three situations where the Second Derivative Test is inconclusive:
    1. f(c)=f(c)=0
    2. f(c)=0 and f(c) does not exist.
    3. f(c) does not exist.

    In these cases, c may be a local minimum point, a local maximum point, or neither as shown (Figure 2) by the functions f(x)=x4,f(x)=x4,f(x)=x3. For these functions, f(0)=f(0)=0, but x=0 is a point of local minimum for f(x)=x4, a point of local maximum for f(x)=x4 and neither a local minimum nor maximum point for f(x)=x3.

Figure 2
Figure 2

 

 

  • Whenever the Second Derivative Test is inconclusive (as in the three situations discussed above)
    or when the second derivative is tedious to find, use the First Derivative Test to find
    the local extrema.
Example 1
Use the Second Derivative Test to find the local extrema of f(x)=12x332x2+1.

Solution 1
Let’s calculate the derivative to find the critical points of f: f(x)=32x23x=32x(x2) Because f(0)=f(2)=0, x=0,2 are the critical points of f.

We previously solved this example using the First Derivative Test. Now we use the Second Derivative Test. f(x)=32x23xf(x)=3x3 Because f(0)=3(0)3=3<0(f is concave down) it follows from the Second Derivative Test that f has a local maximum at x=0. Similarly, f(2)=3(2)3>0(f is concave up) and therefore, f has a local minimum at x=2. The graph of f is shown below.

Figure 3
Figure 3: Graph of y=12x332x2+1
Example 2
Use the Second Derivative Test to find the local extrema of f(x)=x24x+5x2+1.

Solution 2
f(x)=x24x+5ux2+1v f(x)=(2x4)u(x2+1)v2xv(x24x+5)u(x2+1)2v2=4(x22x1)(x2+1)2 f(x)=0x22x1=0x=2±4+42=1±2. The critical points of f are c1=1+2andc2=12. Now we need to calculate the second derivative f(x)=4(2x2)(x2+1)24(ddx(x2+1)2)(x22x1)(x2+1)4 Note that we do not need to calculate ddx(x2+1)2 because the expression (x22x1) at the critical points is zero: f(c1,2)=4(2c1,22)()>04()(0)()>0 [(x2+1)2 and (x2+1)4 are always positive]

This means that the sign of f at the critical points is the same as the sign of 2x2=2(x1). sgn(f(1+2))=sgn(1+21)=sgn(2)>0 (f is concave up around x=1+2). Therefore, f has a local minimum at x=1+2. sgn(f(1+2))=sgn(121)=sgn(2)<0 (f is concave down around x=12). Therefore, f has a local maximum at x=12.
The graph of f is shown in Figure 4.

Figure 4
Figure 4: Graph of x24x+5x2+1

Example 3
Use the Second Derivative Test to find the local maxima and minima of f(x)=2sinx+cos2x.

Solution 3
Because f is periodic with period 2π, we find the local maxima and minima in one period [0,2π]. To find the critical points, we calculate the first derivative:

f(x)=2cosx2sin2x=2cosx4sinxcosx=2cosx(12sinx) [Recall that sin2x=2sinxcosx.] f(x)=0cosx=0or12sinx=0 In one period: cosx=0x=π2, x=3π2 12sinx=0sinx=12 Using the unit circle, we find out that sinx=1/2 has two solutions (see Figure 5): x=π6,x=ππ6=5π6.

Figure 5
Figure 5: The solutions of the equation sin(x)=12 in the interval of [0,2π] are x=π6 and x=ππ6=5π6

 

Therefore, there are four critical points:
c1=π6,c2=π2,c3=5π6,c4=3π2.
Now we calculate f(x) and find its sign at each critical point. To differentiate f(x), it is easier to use the first form of  f, i.e.
f(x)=2cosx2sin2xf(x)=2sinx4cos2x.
f(π6)=2sinπ64cosπ3=2(12)4(12)=3<0.
This means f is concave down around x=π/6 and hence f has a local maximum at x=π/6. f(π2)=2sinπ24cosπ=2(1)4(1)=2>0, meaning f is concave up around x=π/2 and hence f has a local minimum at x=π/2. f(5π6)=2sin5π64cos5π3=2(12)4cos(2ππ3)=14cos(π3)(cosine is even)=14cos(π3)=14(12)=3<0, meaning f is concave down around x=5π/6 and hence f has a local maximum at x=5π/6. f(3π2)=2sin3π24cos3π=2(1)4(1)=2>0, meaning f is concave up and hence f has a local minimum at x=3π/2. The graph of f is shown in Figure 6.

Figure 6
Figure 6: Graph of y=2sin(x)+cos(2x)