# 5.3: The Second Derivative Test

The basis of the first derivative test is that if the derivative changes from positive to negative at a point at which the derivative is zero then there is a local maximum at the point, and similarly for a local minimum. If \(f'\) changes from positive to negative it is decreasing; this means that the derivative of \(f'\), \(f''\), might be negative, and if in fact \(f''\) is negative then \(f'\) is definitely decreasing, so there is a local maximum at the point in question.

Note well that \(f'\) might change from positive to negative while \(f''\) is zero, in which case \(f''\) gives us no information about the critical value. Similarly, if \(f'\) changes from negative to positive there is a local minimum at the point, and \(f'\) is increasing. If \(f''>0\) at the point, this tells us that \(f'\) is increasing, and so there is a local minimum.

Example 5.3.1 |
---|

Consider again \(f(x)=\sin x + \cos x\), with \(f'(x)=\cos x-\sin x\) and \( f''(x)=-\sin x -\cos x\). Since \[ f''(\pi/4)=-\sqrt{2}/2-\sqrt2/2=-\sqrt2 < 0,\] we know there is a local maximum at \(\pi/4\). Since \[ f''(5\pi/4)=--\sqrt{2}/2--\sqrt2/2=\sqrt2>0,\] there is a local minimum at \(5\pi/4\). |

When it works, the second derivative test is often the easiest way to identify local maximum and minimum points. Sometimes the test fails, and sometimes the second derivative is quite difficult to evaluate; in such cases we must fall back on one of the previous tests.

Example 5.3.2 |
---|

Let \( f(x)=x^4\). The derivatives are \(f'(x)=4x^3\) and \(f''(x)=12x^2\). Zero is the only critical value, but \(f''(0)=0\), so the second derivative test tells us nothing. However, \(f(x)\) is positive everywhere except at zero, so clearly \(f(x)\) has a local minimum at zero. On the other hand, \( f(x)=-x^4\) also has zero as its only critical value, and the second derivative is again zero, but \( -x^4\) has a local maximum at zero. |