• Practice
  • About 24 min
  • 5 practice questions

Monotonicity, extrema and concavity: first and second derivative tests

Find where a function increases or decreases, locate absolute and local extrema with the first and second derivative tests, and find intervals of concavity and points of inflection.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Decide where a function is increasing, strictly increasing, decreasing or strictly decreasing.
  • Tell stationary points from critical points.
  • Find absolute extrema on a closed interval by the three-step procedure.
  • Classify local extrema with the first derivative test and the second derivative test.
  • Find intervals of concavity and points of inflection.

Sections 7.6 and 7.7 of the Tamil Nadu textbook use the sign of f′ to read the rise and fall of a graph and the sign of f″ to read how it bends. Together they locate the highest and lowest points of a function, which is exactly what the optimisation problems of the next lesson need.

Monotonicity

f is increasing on an interval I if a < b implies f(a) ≤ f(b) for all a, b in I, and strictly increasing if a < b implies f(a) < f(b). Decreasing and strictly decreasing are defined with the inequalities reversed. For f differentiable on (a, b):

Sign of f′(x) on (a, b)Behaviour of f
f′(x) ≥ 0increasing
f′(x) > 0strictly increasing
f′(x) ≤ 0decreasing
f′(x) < 0strictly decreasing

The converse of the strict case is false: y = x³ is strictly increasing on the whole real line, yet its derivative 3x² is 0 at x = 0. A stationary point is where f′(x₀) = 0; a critical point is where f′(x₀) = 0 or f′(x₀) does not exist. Every stationary point is critical, but not conversely: f(x) = |x − 3| has a critical point at x = 3 with no derivative there.

Absolute extrema on a closed interval

f(x₀) is the absolute maximum of f on its domain D if f(x₀) ≥ f(x) for every x in D, and the absolute minimum if f(x₀) ≤ f(x) for every x in D. A function need not have either on an open or infinite interval, but the extreme value theorem says a function continuous on a closed interval [a, b] has both. They occur at end points or at critical numbers, so: (1) find the critical numbers in (a, b); (2) evaluate f at them and at a and b; (3) the largest value is the absolute maximum and the smallest the absolute minimum.

Worked example 1: the closed interval method

Find the absolute extrema of f(x) = x³ − 3x² − 9x + 5 on [−2, 6]. Working: f′(x) = 3x² − 6x − 9 = 3(x − 3)(x + 1), so the critical numbers are x = −1 and x = 3, both inside. Values: f(−2) = −8 − 12 + 18 + 5 = 3; f(−1) = −1 − 3 + 9 + 5 = 10; f(3) = 27 − 27 − 27 + 5 = −22; f(6) = 216 − 108 − 54 + 5 = 59. So the absolute maximum is 59 at x = 6 and the absolute minimum is −22 at x = 3. Notice that the local maximum 10 at x = −1 is not the absolute maximum.

Local (relative) extrema and the first derivative test

f has a local maximum at x₀ if f(x₀) is the largest value of f on some open interval containing x₀; a local minimum is defined similarly. By Fermat's theorem, a local extremum can occur only at a critical number. But not every critical number gives one: y = x³ and y = x^(1/3) both have a critical point at the origin and no extremum there.

First derivative test at a critical number c (moving left to right)

  • f′ changes from + to − Local maximum f(c).
  • f′ changes from − to + Local minimum f(c).
  • No sign change Neither a maximum nor a minimum.

Worked example 2: intervals and local extrema

(i) f(x) = x³ − 12x + 1. Working: f′(x) = 3x² − 12 = 3(x − 2)(x + 2). On (−∞, −2), f′ > 0; on (−2, 2), f′ < 0; on (2, ∞), f′ > 0. So f is strictly increasing on (−∞, −2) and (2, ∞) and strictly decreasing on (−2, 2). The sign goes + to − at x = −2: local maximum f(−2) = −8 + 24 + 1 = 17. It goes − to + at x = 2: local minimum f(2) = 8 − 24 + 1 = −15. (ii) f(x) = x e^(−x). Working: f′(x) = e^(−x) − x e^(−x) = (1 − x)e^(−x). Since e^(−x) > 0, the sign is that of 1 − x: positive for x < 1 and negative for x > 1. So there is a local maximum at x = 1 with value 1/e.

Concavity and points of inflection

A graph is concave up (convex down) on an interval if f′ is strictly increasing there: the curve lies above its tangents and holds water. It is concave down (convex up) if f′ is strictly decreasing: the curve lies below its tangents. Test: f″(x) > 0 on I gives concave up, f″(x) < 0 gives concave down. A point of inflection is a point where the concavity changes. If f″ changes sign at x = c, then (c, f(c)) is a point of inflection, and if f″(c) exists there it equals 0.

Be careful in both directions. f(x) = x⁴ has f″(0) = 0 but is concave up on both sides, so the origin is not a point of inflection. f(x) = x^(1/3) has no second derivative at 0, yet the origin is a point of inflection. And a point of inflection need not be stationary: y = sin x has inflection at (π, 0), where its slope is −1.

The second derivative test

If f′(c) = 0 and f″(c) exists: f″(c) < 0 gives a local maximum, f″(c) > 0 gives a local minimum, and f″(c) = 0 gives no information (go back to the first derivative test).

— Second derivative test

Worked example 3: extrema and inflection of one cubic

Let f(x) = x³ − 6x² + 9x + 1. Working: f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3), so the stationary numbers are 1 and 3. f″(x) = 6x − 12. At x = 1, f″(1) = −6 < 0: local maximum f(1) = 1 − 6 + 9 + 1 = 5. At x = 3, f″(3) = 6 > 0: local minimum f(3) = 27 − 54 + 27 + 1 = 1. Concavity: f″ < 0 for x < 2 (concave down on (−∞, 2)) and f″ > 0 for x > 2 (concave up on (2, ∞)). The sign changes at x = 2, so (2, 3) is the point of inflection, since f(2) = 8 − 24 + 18 + 1 = 3.

Worked example 4: when the second test is silent

For f(x) = x⁴ − 2x², f′(x) = 4x³ − 4x = 4x(x − 1)(x + 1) and f″(x) = 12x² − 4. At x = ±1, f″ = 8 > 0, so both are local minima with value 1 − 2 = −1. At x = 0, f″(0) = −4 < 0, a local maximum with value 0. Now take g(x) = x⁴: g′(0) = 0 and g″(0) = 0, so the second test says nothing. The first test settles it: g′(x) = 4x³ is negative for x < 0 and positive for x > 0, so x = 0 is a local minimum.

Key takeaways: the sign of f′ gives monotonicity and the sign of f″ gives concavity; critical numbers include points where f′ does not exist; on a closed interval compare the values at critical numbers and end points; first derivative test: + to − is a maximum, − to + a minimum; second derivative test: f″ < 0 maximum, f″ > 0 minimum, f″ = 0 inconclusive; an inflection point needs a change of concavity, not just f″ = 0.

Check your understanding

  1. 1. f(x) = x² − 6x + 2 is strictly decreasing on

    1. (3, ∞)
    2. (−∞, 3)
    3. (−3, 3)
    4. the whole real line
    Show answer

    Answer: B. f′(x) = 2x − 6 < 0 exactly when x < 3, so f is strictly decreasing on (−∞, 3) and strictly increasing on (3, ∞).

  2. 2. For f(x) = |x + 2|, the point x = −2 is

    1. a stationary point
    2. a point of inflection
    3. neither stationary nor critical
    4. a critical point that is not stationary
    Show answer

    Answer: D. f′(−2) does not exist (there is a corner), so x = −2 is a critical number, but not a stationary one, which would need f′ = 0. It is in fact the absolute minimum.

  3. 3. The absolute maximum of f(x) = 2x³ − 3x² on [−1, 2] is

    1. 0
    2. 1
    3. 4
    4. 5
    Show answer

    Answer: C. f′(x) = 6x² − 6x = 6x(x − 1), critical numbers 0 and 1. f(−1) = −5, f(0) = 0, f(1) = −1, f(2) = 16 − 12 = 4. The largest is 4 at x = 2.

  4. 4. f(x) = x³ − 3x has a local maximum at

    1. x = −1
    2. x = 0
    3. x = 1
    4. x = 3
    Show answer

    Answer: A. f′(x) = 3x² − 3 = 0 gives x = ±1. f″(x) = 6x, so f″(−1) = −6 < 0: local maximum at x = −1 (value 2). At x = 1, f″ > 0: local minimum.

  5. 5. The point of inflection of y = x³ − 3x² + 4 is

    1. (0, 4)
    2. (2, 0)
    3. (1, 2)
    4. (3, 4)
    Show answer

    Answer: C. y″ = 6x − 6 is zero at x = 1 and changes sign there. y(1) = 1 − 3 + 4 = 2, so the point is (1, 2).

Privacy · Terms · Refunds · Delivery