In short

At a critical point c where f'(c) = 0: if f''(c) < 0, the curve is bending downward there and c is a local maximum. If f''(c) > 0, the curve is bending upward and c is a local minimum. If f''(c) = 0, the test is silent — you have to either sign-chart f' or keep differentiating until a higher derivative is nonzero.

Take f(x) = x^3 - 3x^2 - 9x + 5. In the last article you found its critical points by solving f'(x) = 3(x-3)(x+1) = 0, getting x = -1 and x = 3. Then you built a sign chart for f', picked test values in each of three intervals, computed signs, and read off the classification: local max at x = -1, local min at x = 3.

Here is a much faster way. Compute the second derivative: f''(x) = 6x - 6. Plug in the critical points. f''(-1) = -12. Negative — bending down — so x = -1 is a local maximum. f''(3) = 12. Positive — bending up — so x = 3 is a local minimum. Done. No sign chart, no test values, no table — just two plug-ins.

This is the second derivative test. Instead of reading off how f' changes across a critical point, you read off how the curve is bending at the critical point. It is usually faster. It is always more satisfying. And when it works, you should use it.

The intuition, before the statement

Why should the second derivative know about maxima and minima?

The first derivative tells you about slope. At a critical point, the slope is zero — the tangent is horizontal. That alone does not tell you whether you're at a peak or a valley; a horizontal tangent happens at both.

The second derivative tells you about change in slope. If f''(c) < 0, the slope is decreasing at c. So just to the left of c, the slope was a bit higher than at c; just to the right, it will be a bit lower. But at c the slope is zero. So just to the left the slope is positive (the curve was going up), and just to the right the slope is negative (the curve is going down). That is the signature of a local maximum.

The exact same argument with inequalities flipped gives the local minimum case. If f''(c) > 0, the slope is increasing at c, so it went from negative (on the left) through zero (at c) to positive (on the right). The curve was going down, levelled off, and then went back up — a local minimum.

In picture form: f''(c) < 0 means the graph near c looks like the top of a frown; f''(c) > 0 means it looks like the bottom of a smile.

$y = 4 - x^2$ (black) and $y = x^2 - 4$ (red). Both have a critical point at $x = 0$. The black curve bends down ($f''(0) = -2 < 0$) and has a local max. The red curve bends up ($f''(0) = 2 > 0$) and has a local min.

The whole test is just this picture made precise.

The test, stated and proved

The second derivative test

Let f be twice differentiable at x = c, with f'(c) = 0. Then:

  • If f''(c) < 0, f has a local maximum at c.
  • If f''(c) > 0, f has a local minimum at c.
  • If f''(c) = 0, the test is inconclusivec may be a local maximum, a local minimum, or neither.

Proof. Suppose f'(c) = 0 and f''(c) < 0. By definition,

f''(c) = \lim_{h \to 0} \frac{f'(c + h) - f'(c)}{h} = \lim_{h \to 0} \frac{f'(c + h)}{h},

since f'(c) = 0. The limit is negative. So for all sufficiently small |h|, the ratio \frac{f'(c+h)}{h} is also negative (it stays inside any neighbourhood of a negative number for h close enough to zero).

Read what that ratio being negative says. If h > 0, "ratio is negative" means f'(c + h) is negative — the slope is negative a tiny step to the right of c. If h < 0, the h in the denominator is negative, so for the ratio to be negative, the numerator f'(c + h) must be positive — the slope is positive a tiny step to the left of c.

Putting these together: f' is positive just to the left of c and negative just to the right. By the first derivative test, that is exactly the condition for a local maximum at c.

The f''(c) > 0 case is the same argument with inequalities reversed: f' is negative to the left of c and positive to the right, which by the first derivative test gives a local minimum. \blacksquare

The proof reveals something important. The second derivative test is not independent of the first derivative test — it is built out of the first derivative test. f''(c)'s sign controls whether f' is increasing or decreasing near c, which is exactly what you need to know.

So why bother with the second derivative test at all? Because plugging one number into f'' is much faster than building a sign chart for f' with test values. For polynomial problems, the speed-up is enormous. For problems with messy sign charts, it saves even more time.

Running the test

Example 1: Extrema of $f(x) = x^4 - 8x^2 + 16$

Step 1. Differentiate.

f'(x) = 4x^3 - 16x = 4x(x^2 - 4) = 4x(x - 2)(x + 2).

Why: the factored form shows the critical points immediately.

Step 2. Find the critical points. Setting f'(x) = 0 gives x = 0, 2, -2. All three are points where the derivative is zero; the derivative is defined everywhere since f' is a polynomial.

Step 3. Compute the second derivative.

f''(x) = 12x^2 - 16.

Step 4. Test each critical point by plugging into f''.

  • f''(0) = -16. Negative. Local maximum at x = 0.
  • f''(2) = 48 - 16 = 32. Positive. Local minimum at x = 2.
  • f''(-2) = 48 - 16 = 32. Positive. Local minimum at x = -2.

Why: each plug-in is one arithmetic step. You did not build a sign chart, pick test values, or evaluate f' anywhere except at the critical points themselves.

Compute function values at the extrema:

f(0) = 16, \quad f(2) = 16 - 32 + 16 = 0, \quad f(-2) = 16 - 32 + 16 = 0.

Result: local max of 16 at x = 0; local minima of 0 at x = \pm 2. The function is the perfect square (x^2 - 4)^2, which matches — its two roots are \pm 2, and those are where the square is zero.

$y = (x^2 - 4)^2$. Two valleys (at $\pm 2$) and one peak in between (at $0$). The second derivative test picked out all three with one plug-in each.

When the test is silent

The test is silent when f''(c) = 0. It does not say "there is no extremum" — it says "I cannot tell." And silence can be misleading, because f''(c) = 0 can happen in three very different situations:

You can see all three in one picture.

Three functions that all satisfy $f'(0) = f''(0) = 0$. $y = x^4$ (black) has a local minimum at $0$. $y = -x^4$ (red) has a local maximum at $0$. $y = x^3$ (dashed) has neither. The second derivative test cannot distinguish these cases.

When the second derivative test is silent, you have two choices:

  1. Fall back to the first derivative test. Sign-chart f' near the critical point and read off the answer.
  2. Use the higher-order derivative test — described next — which keeps differentiating until you find a derivative that is not zero at c.

For the three functions above:

The higher-order derivative test

Here is what "keep differentiating" means. Suppose f'(c) = 0 and f''(c) = 0 and f'''(c) = 0 and so on, up to some order n - 1, and the first nonzero derivative at c is f^{(n)}(c). Then Taylor's theorem says that near c,

f(x) - f(c) \approx \frac{f^{(n)}(c)}{n!}(x - c)^n.

The sign of the left-hand side — positive or negative — tells you whether the function sits above or below f(c) near the critical point, which is exactly what determines whether c is an extremum.

Look at the right-hand side. The factor \frac{f^{(n)}(c)}{n!} has a fixed sign (it is a single nonzero number). The factor (x - c)^n is the interesting one:

That gives a clean rule.

Higher-order derivative test

Suppose f is n-times differentiable at c, and f'(c) = f''(c) = \dots = f^{(n-1)}(c) = 0 but f^{(n)}(c) \neq 0. Then:

  • If n is even and f^{(n)}(c) < 0: local maximum at c.
  • If n is even and f^{(n)}(c) > 0: local minimum at c.
  • If n is odd: not a local extremum.

The ordinary second derivative test is the n = 2 case of this: n is even, so it's an extremum, and the sign of f''(c) picks max or min.

Apply it to the three examples where the second derivative test was silent:

All three classifications match what the first derivative test said earlier. The higher-order test is just a cleaner way to reach the same answer — and it's particularly useful when you already have the Taylor series of a function.

Example 2: Extrema of $f(x) = x^6 - 6 x^5 + 10 x^4$

Step 1. Differentiate.

f'(x) = 6 x^5 - 30 x^4 + 40 x^3 = 2 x^3 (3 x^2 - 15 x + 20).

Why: the factored form makes the critical points easy to find. One factor gives x = 0 immediately.

Step 2. Solve f'(x) = 0. Either x^3 = 0 (so x = 0) or 3x^2 - 15x + 20 = 0. The discriminant of the quadratic is 225 - 240 = -15, negative, so the quadratic has no real roots. The only critical point in \mathbb{R} is x = 0. Why: a negative discriminant means no real intersections with zero — so only the cubic factor contributes critical points.

Step 3. Try the ordinary second derivative test at x = 0.

f''(x) = 30 x^4 - 120 x^3 + 120 x^2 = 30 x^2 (x^2 - 4x + 4) = 30 x^2 (x - 2)^2.

At x = 0, f''(0) = 0. Inconclusive. Why: the power of x visible in f'' is x^2, which tells you the second derivative has a double zero at the origin — so plugging in gives zero.

Step 4. Keep going. Compute higher derivatives at x = 0 until one is nonzero.

f'''(x) = 120 x^3 - 360 x^2 + 240 x, \quad f'''(0) = 0.
f^{(4)}(x) = 360 x^2 - 720 x + 240, \quad f^{(4)}(0) = 240.

So the first nonzero derivative at 0 is f^{(4)}(0) = 240, at order n = 4.

Step 5. Apply the higher-order test. n = 4 is even, and f^{(4)}(0) = 240 > 0. Local minimum at x = 0.

Result: x = 0 is a local minimum, with f(0) = 0.

$y = x^6 - 6x^5 + 10x^4 = x^4(x^2 - 6x + 10)$. The factor $x^2 - 6x + 10 = (x-3)^2 + 1$ is always positive, so the sign of $f$ is controlled by $x^4 \geq 0$, with equality only at $x = 0$. That is exactly why the origin is a local (in fact global) minimum.

Points of inflection

One important companion idea to the second derivative test: the point of inflection.

A point of inflection is a point on the graph where the concavity changes — the curve switches from bending down to bending up or vice versa. At such a point, f'' changes sign.

Point of inflection

A point c in the domain of f is a point of inflection if f is continuous at c and f'' changes sign at c — meaning f'' is positive on one side of c and negative on the other.

Two things to notice.

First, points of inflection are not the same as critical points. A critical point has f'(c) = 0 or undefined. A point of inflection has f'' changing sign at c. These are unrelated requirements. Many inflection points have nonzero f'. And many critical points have no inflection.

Second, f''(c) = 0 is necessary but not sufficient for an inflection. If f'' changes sign at c (and f is continuous), then f''(c) must equal zero (because a continuous function that changes sign must pass through zero). But f''(c) = 0 by itself does not mean a sign change — f(x) = x^4 has f''(0) = 0 but f'' is non-negative near 0, so no sign change, no inflection. Always follow up f''(c) = 0 with a sign check on f''.

Example: find the inflection points of f(x) = x^3 - 3x^2 + 1.

Compute f'': f'(x) = 3x^2 - 6x, f''(x) = 6x - 6. Set f''(x) = 0: x = 1. Check the sign of f'' on both sides: f''(0) = -6 < 0 (bending down), f''(2) = 6 > 0 (bending up). Sign change — so x = 1 is a point of inflection. The inflection point on the graph is (1, f(1)) = (1, -1).

$y = x^3 - 3x^2 + 1$. The curve has a local max at $x = 0$ and local min at $x = 2$. Between them, at $x = 1$, the concavity flips from frown to smile — that is the inflection point.

You can see the curve switch from bending down (before x = 1) to bending up (after x = 1). That flip is the inflection point. For cubics, this always lives between the local max and local min, halfway along if the cubic is in standard form.

Common confusions

A few things that trip students up.

Going deeper

You have the second derivative test, the higher-order test, and inflection points. The rest of this section is about where the higher-order test comes from, how it connects to Taylor series, and one genuinely subtle case about concavity.

Where the higher-order test comes from

The higher-order derivative test is really a consequence of Taylor's theorem. If f is n-times differentiable at c with f'(c) = \dots = f^{(n-1)}(c) = 0 and f^{(n)}(c) \neq 0, then Taylor's theorem with remainder gives

f(x) = f(c) + \frac{f^{(n)}(c)}{n!}(x - c)^n + R_n(x),

where the remainder R_n(x) satisfies \lim_{x \to c} \frac{R_n(x)}{(x - c)^n} = 0. So for x very close to c, the remainder is negligible compared to the main term, and

f(x) - f(c) \approx \frac{f^{(n)}(c)}{n!}(x - c)^n.

Everything follows from the sign analysis of (x - c)^n: even powers keep their sign, odd powers flip it.

This is worth internalising. The second derivative test is a first-order Taylor approximation. The higher-order derivative test extends it to functions that are too flat at c for the second derivative alone to catch.

When Taylor's theorem fails

There are pathological functions where every derivative at a point is zero but the function is not identically zero. The standard example is

f(x) = \begin{cases} e^{-1/x^2} & x \neq 0 \\ 0 & x = 0 \end{cases}

Every derivative of f at 0 is zero. The Taylor series of f at 0 is identically zero, but f itself is not. Is 0 a local minimum of f? Yes — because f(x) > 0 for x \neq 0 and f(0) = 0. But the higher-order test can never detect this, because there is no "first nonzero derivative" to read off. You have to prove it from the definition directly.

You will not meet this in JEE. But it is a reminder that the machinery of derivatives, as powerful as it is, has a blind spot: functions that are "too flat" at a point are invisible to every derivative-based test. These are called non-analytic functions, and they are exactly the gap between the real-valued theory of calculus and the complex-valued theory, where such gaps cannot exist.

The genuinely subtle case with inflection and the first derivative

One last thing. A point where f''(c) = 0 and f'' does change sign is an inflection point. But what happens to f' at such a point? f' can take any value — it might even be zero.

If f''(c) = 0, f'' changes sign at c, and f'(c) = 0, then c is simultaneously a critical point and an inflection point. That is the x^3 case: f'(0) = 0 (critical), f''(0) = 0, and f'' changes sign at 0 (inflection). The net result is that the tangent at c is horizontal but the curve still passes through — a so-called horizontal point of inflection. These are the critical points that the higher-order test classifies as "not an extremum."

Where this leads next

The first and second derivative tests are the core toolkit for finding extrema. The next articles combine them with the rest of the geometric information about a curve.