Ma · Mathematics

How to Find Extrema When the Second Derivative Is Zero

Published By the 9to5Science editorial team

At a glance

  1. 1. Find critical points

    For an interior point, check where the first derivative is zero or undefined.

  2. 2. Check the second derivative

    If the second derivative is zero, the second-derivative test gives no classification.

  3. 3. Test nearby behavior

    Check whether the first derivative changes sign across the point.

  4. 4. Use higher derivatives

    If available, the first nonzero higher derivative can classify the critical point.

Advertisement

A zero second derivative does not tell you whether a function has a local maximum or minimum. It only means the usual second-derivative test cannot decide. To classify the point, check the function’s behavior on either side or use higher derivatives when their conditions are met.

What the second-derivative test says

For a twice-differentiable function, an interior local extremum can occur only at a critical point, where f′(c)=0f'(c)=0. If f′(c)=0f'(c)=0 and f′′(c)>0f''(c)>0, then cc is a local minimum. If f′′(c)<0f''(c)<0, then cc is a local maximum.

When f′′(c)=0f''(c)=0, neither conclusion follows. The graph’s concavity at that point may be insufficient to distinguish the possibilities. The test is inconclusive, not evidence that there is no extremum.

Also check that the point is critical in the first place. If f′′(c)=0f''(c)=0 but f′(c)≠0f'(c)\ne 0, then a differentiable function does not have a local extremum at the interior point cc.

Use the first-derivative sign test

The most direct method is to check the sign of f′(x)f'(x) just to the left and right of the critical point:

  • If f′f' changes from negative to positive, the function changes from decreasing to increasing, so there is a local minimum.
  • If f′f' changes from positive to negative, there is a local maximum.
  • If f′f' has the same strict sign on both sides, there is no local extremum. If f′f' only keeps a weak sign and vanishes on an interval, a non-strict extremum may still occur, so compare nearby function values.

This test works even when f′′(c)=0f''(c)=0, as long as you can determine the signs of f′f' nearby.

Worked examples at the same point

Consider three functions at x=0x=0. In each case, the first and second derivatives are both zero at the point:

FunctionFirst derivativeBehavior at 0
f(x)=x4f(x)=x^4f′(x)=4x3f'(x)=4x^3Local minimum
g(x)=−x4g(x)=-x^4g′(x)=−4x3g'(x)=-4x^3Local maximum
h(x)=x3h(x)=x^3h′(x)=3x2h'(x)=3x^2Neither

For f(x)=x4f(x)=x^4, f′(x)<0f'(x)<0 when x<0x<0 and f′(x)>0f'(x)>0 when x>0x>0. The function decreases and then increases, so x=0x=0 is a local minimum. Its value is f(0)=0f(0)=0.

For g(x)=−x4g(x)=-x^4, the derivative changes from positive to negative, so x=0x=0 is a local maximum, with value g(0)=0g(0)=0.

For h(x)=x3h(x)=x^3, the derivative is positive on both sides of zero. The function keeps increasing through the point, so there is no local extremum, even though h′(0)=h′′(0)=0h'(0)=h''(0)=0.

These examples show why knowing only that the second derivative is zero is not enough.

Use higher derivatives when possible

Suppose f′(c)=0f'(c)=0, and the first nonzero derivative after f′(c)f'(c) is f(n)(c)f^{(n)}(c). If, in addition, the Taylor expansion at cc has the form

f(x)=f(c)+f(n)(c)n!(x−c)n+o(∣x−c∣n),f(x)=f(c)+\frac{f^{(n)}(c)}{n!}(x-c)^n+o(|x-c|^n),

then:

  • If nn is even and f(n)(c)>0f^{(n)}(c)>0, there is a local minimum.
  • If nn is even and f(n)(c)<0f^{(n)}(c)<0, there is a local maximum.
  • If nn is odd, there is no local maximum or minimum at cc.

For example, with f(x)=x4f(x)=x^4, the first nonzero derivative at zero after f′(0)=0f'(0)=0 is f(4)(0)=24>0f^{(4)}(0)=24>0. Since the order is even, the point is a local minimum. For x3x^3, the first nonzero derivative is the third derivative, of odd order, so there is no extremum. A sufficient condition for the Taylor expansion used here is that ff has continuous derivatives through order nn near cc.

When the derivative conditions are difficult to verify, the first-derivative sign test or direct comparison of nearby function values is often simpler.

Common mistakes

  • Calling f′′(c)=0f''(c)=0 an inflection point automatically. A zero second derivative alone does not establish an inflection point either; concavity must change across the point.
  • Calling the second-derivative test a failure of the function. The test is simply inconclusive. The function may still have a clear extremum.
  • Checking only f′′f''. First confirm that the point is critical. For a differentiable function at an interior local extremum, f′(c)=0f'(c)=0.
  • Ignoring endpoints. The derivative tests described here classify interior points. For a continuous function on a closed interval, check the endpoints and all interior candidates, including points where the derivative is zero or does not exist, when finding absolute extrema.

References

  1. OpenStax, Calculus Volume 1

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.