notesonly.in

One notebook for every subject — open it anywhere.

Log in

First and Second Derivative Tests: Explained with Examples

The first and second derivative tests answer the question "is this critical point a maximum or a minimum?" The first derivative test watches the sign of f' change as you pass through the point: plus-to-minus means a peak, minus-to-plus means a valley. The second derivative test is quicker — it just checks the concavity at the point — but it only works when the second derivative is non-zero.

These tests matter because finding critical points is only half of optimization; classifying them is the other half. Without the tests, you cannot tell a genuine maximum from a flat spot like the origin of y = x³. Both tests appear constantly in curve sketching, economics, and every optimization word problem.

Key Concepts

  • First derivative test: at a critical point c, if f' changes from positive to negative, f has a local maximum at c; if it changes from negative to positive, a local minimum; if it does not change sign, neither.
  • Second derivative test: at a critical point c with f'(c) = 0: if f''(c) greater than 0, local minimum; if f''(c) smaller than 0, local maximum; if f''(c) = 0, the test is inconclusive.
  • Why they work: the first test reads the rise-then-fall (or fall-then-rise) shape directly; the second test uses the fact that concave-up curves bottom out and concave-down curves top out.
  • Scope: both tests classify local extrema only; absolute extrema on an interval still need endpoint checks.

How It Works

  1. Step 1: Find critical points by solving f'(x) = 0.
  2. Step 2 (second derivative test): Compute f''(x) and evaluate it at each critical point; classify by its sign.
  3. Step 3 (fallback): Where f''(c) = 0, use the first derivative test: check the sign of f' just left and just right of c.
  4. Step 4: Compute the function values at the classified points to state the actual maxima and minima.

Worked Example

Classify the critical points of f(x) = x³ − 3x² − 9x + 12.

  1. Step 1: f'(x) = 3x² − 6x − 9 = 3(x² − 2x − 3) = 3(x − 3)(x + 1). Critical points: x = −1 and x = 3.
  2. Step 2: f''(x) = 6x − 6. At x = −1: f''(−1) = −6 − 6 = −12, which is smaller than 0, so there is a local maximum at x = −1.
  3. Step 3: At x = 3: f''(3) = 18 − 6 = 12, which is greater than 0, so there is a local minimum at x = 3.
  4. Step 4: The values are f(−1) = −1 − 3 + 9 + 12 = 17 (local maximum value) and f(3) = 27 − 27 − 27 + 12 = −15 (local minimum value).
  5. Step 5 (first-derivative cross-check): f' is positive left of −1, negative between −1 and 3, positive right of 3 — plus-to-minus at −1 confirms the maximum, minus-to-plus at 3 confirms the minimum.

Common Misconceptions

  • "f''(c) = 0 means there is an inflection point." Not necessarily — for y = x⁴, f''(0) = 0 but x = 0 is a minimum. The second derivative test simply says "inconclusive" here; use the first derivative test.
  • "The second derivative test always works." It fails when f''(c) = 0 or when f'' does not exist at c; the first derivative test is the more general tool.
  • "Local maximum means the biggest value." Local only compares with nearby points — in the example, 17 is a local maximum but the function goes to infinity as x grows, so there is no absolute maximum.

Real-World Applications

  • Economics: verifying that a critical point of a profit function is truly a maximum (not a minimum) before recommending a production level.
  • Engineering: confirming that a design point minimizes stress or material rather than maximizing it.
  • Physics: equilibrium points of a potential energy function are minima (stable) or maxima (unstable) — the second derivative test tells them apart.
  • Machine learning: checking whether an optimization has reached a minimum of the loss function rather than a saddle point.

To recap: use the second derivative test first for speed — positive means minimum, negative means maximum. When it gives zero, fall back to the first derivative test and watch how the sign of f' changes.