Second Derivative Test Examples: Easy Step-by-Step Maxima and Minima Guide
When you have found a critical point and need to classify it, the second derivative test is often the fastest route from algebra to a clear conclusion. This guide focuses on second derivative test examples that show how to find local maxima, local minima, and inconclusive cases without getting lost in theory.
Rather than only memorizing the rule, you will see it applied to quadratics, cubics, trigonometric functions, exponential functions, and rational functions. Each example highlights the same core idea: evaluate f''(c) at a stationary point and interpret its sign through concavity.
The Logic Behind the Second Derivative Test
For a differentiable function f, a stationary point c satisfies f'(c)=0. The first derivative tells you where the tangent is horizontal, but it does not automatically tell you whether the graph reaches a peak or a valley there. The second derivative, f''(x), measures how the slope is changing and therefore describes concavity.
If f''(c) > 0, the graph is concave up near c, so the curve bends upward like a cup. That makes c a local minimum. If f''(c) < 0, the graph is concave down, bending like a cap, so c is a local maximum. If f''(c)=0, the test gives no verdict and another method is required.
Concavity and the Sign of f''
Concavity is the geometric meaning behind the test. A positive second derivative means the slopes are increasing as x increases. At a stationary point, that change from decreasing slope to increasing slope creates a valley. A negative second derivative means slopes are decreasing, which creates a peak at the stationary point.
For a simple check, compare f(x)=x^2 and f(x)=-x^2. Both have a critical point at x=0. The first has f''=2 > 0, so it opens upward and has a local minimum. The second has f''=-2 < 0, so it opens downward and has a local maximum.
Step-by-Step Procedure for Applying the Test
Begin by finding f'(x) and solving f'(x)=0 to locate stationary points inside the domain. Then compute f''(x), preferably before substituting numbers, so the sign is easier to analyze. Evaluate f''(c) at each stationary point c and record whether it is positive, negative, or zero.
If f''(c) is positive, label c as a local minimum. If it is negative, label c as a local maximum. If it is zero, do not force a conclusion; use the first derivative test, a sign chart, or a higher-order derivative test. Also remember that endpoints and points outside the domain are not handled by this test.
Worked Second Derivative Test Examples
The fastest way to internalize the method is to work through complete examples, from differentiation to interpretation. The following problems use polynomials first because their derivatives are straightforward and the critical points are easy to compare.
As you read each solution, notice how the sign of f'' at the critical point determines the final answer. The arithmetic matters, but the conceptual step is always the same.
Example 1: A Quadratic Function
Consider f(x)=3x^2 - 12x + 7. Differentiate to get f'(x)=6x - 12. Setting f'(x)=0 gives 6x - 12 = 0, so x=2 is the only critical point.
Now compute f''(x)=6. Since f''(2)=6 > 0, the function is concave up at x=2, so this is a local minimum. The value is f(2)=3(4)-12(2)+7 = 12 - 24 + 7 = -5, giving the minimum point (2,-5).
Example 2: A Cubic Polynomial with Two Turning Points
Let f(x)=x^3 - 3x^2 - 9x + 5. The first derivative is f'(x)=3x^2 - 6x - 9 = 3(x^2 - 2x - 3) = 3(x-3)(x+1). Thus the stationary points are x=-1 and x=3.
The second derivative is f''(x)=6x - 6. At x=-1, f''(-1)=-12 < 0, so x=-1 is a local maximum. At x=3, f''(3)=12 > 0, so x=3 is a local minimum. Evaluating the function gives f(-1)=10 and f(3)=-22, so the local maximum is (-1,10) and the local minimum is (3,-22).
Advanced Second Derivative Test Examples and Pitfalls
Polynomials are a good starting point, but the second derivative test also works for trigonometric, exponential, and rational functions when the critical points lie inside the domain. These examples add layers such as periodic intervals, domain restrictions, and the inconclusive case f''(c)=0.
Keep an eye on the domain throughout. A value that makes f'(x)=0 is only a candidate if the function is defined and differentiable there. The test cannot classify endpoints, vertical asymptotes, or points where the derivative fails to exist.
Example 3: Trigonometric Function on a Restricted Interval
Analyze f(x)=sin x + cos x on the interval [0, 2π]. The derivative is f'(x)=cos x - sin x. Setting cos x = sin x gives tan x = 1, so the critical points in the interval are x=π/4 and x=5π/4.
The second derivative is f''(x)=-sin x - cos x. At x=π/4, f''(π/4)=-(√2/2) - (√2/2) = -√2 < 0, so this is a local maximum with value f(π/4)=√2. At x=5π/4, f''(5π/4)=√2/2 + √2/2 = √2 > 0, so this is a local minimum with value f(5π/4)=-√2.
Example 4: Exponential Function with a Polynomial Factor
Let f(x)=x e^{-x}. Use the product rule: f'(x)=e^{-x} - x e^{-x} = e^{-x}(1-x). Because e^{-x} is never zero, the only critical point is x=1.
Differentiate again to get f''(x)=e^{-x}(x-2). At x=1, f''(1)=e^{-1}(-1) < 0, so x=1 is a local maximum. The function value is f(1)=1/e, which is approximately 0.368.
Example 5: When the Second Derivative Equals Zero
Consider f(x)=x^4. The derivative f'(x)=4x^3 gives a critical point at x=0. The second derivative is f''(x)=12x^2, so f''(0)=0. The second derivative test is inconclusive here.
Use the first derivative instead: f'(x)=4x^3 is negative for x < 0 and positive for x > 0. The derivative changes from negative to positive, so x=0 is a local minimum. By contrast, f(x)=x^3 has f'(x)=3x^2 and f''(0)=0, but f' does not change sign; x=0 is neither a maximum nor a minimum.
Example 6: Rational Function with Domain Restrictions
Analyze f(x)=x + 1/x, whose domain is all real numbers except x=0. The derivative is f'(x)=1 - 1/x^2. Setting this equal to zero gives 1 = 1/x^2, so x^2=1 and the critical points are x=-1 and x=1.
The second derivative is f''(x)=2/x^3. At x=1, f''(1)=2 > 0, so x=1 is a local minimum with f(1)=2. At x=-1, f''(-1)=-2 < 0, so x=-1 is a local maximum with f(-1)=-2. The point x=0 is not a candidate because it is outside the domain.
Keep these second derivative test examples as a reference when you practice, and try varying the coefficients to see how the locations of maxima and minima shift. The more you connect the sign of f'' to the shape of the curve, the less the test feels like a formula and the more it becomes a reliable way to read a graph. Next time you face a critical point, reach for the second derivative, interpret its sign, and let the concavity tell you the story.