Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Example 21: 2x3−6x2+6x+52x^3-6x^2+6x+5⁠: when the second derivative test fails

ExamplesSecond derivative test · Section 6.4
The question

Find all the points of local maxima and local minima of the function ff given by

f(x)=2x3−6x2+6x+5.f(x) = 2x^3 - 6x^2 + 6x + 5.
Exam answer f′(x)=6x2−12x+6=6(x−1)2f′′(x)=12(x−1)\begin{aligned} f'(x) &= 6x^2 - 12x + 6 \\ &= 6(x - 1)^2 \\ f''(x) &= 12(x - 1) \end{aligned}

f′(x)=0⇒x=1f'(x) = 0 \Rightarrow x = 1⁠, and f′′(1)=0f''(1) = 0⁠. So the second derivative test fails.

For x≠1x \ne 1⁠, f′(x)=6(x−1)2>0f'(x) = 6(x - 1)^2 > 0⁠. So f′f' does not change sign as xx increases through 1.

Hence x=1x = 1 is a point of inflexion, and ff has no point of local maxima or local minima.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The second derivative test can only say "maximum" or "minimum" when f′′(c)f''(c) is not zero. When f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0 the test gives no answer at all, and we must go back to the first derivative test and look at the sign of f′f' on each side of cc⁠. Here f′(x)=6(x−1)2f'(x) = 6(x-1)^2 is positive on both sides of 1, so the graph keeps climbing through x=1x = 1⁠: it only flattens for an instant, with no hill and no valley.

Given, to find, and the plan
Given
f(x)=2x3−6x2+6x+5f(x) = 2x^3 - 6x^2 + 6x + 5 for every real xx (a polynomial, so differentiable everywhere).
To find
Every point of local maxima and every point of local minima of ff⁠.
Plan
Find f′f' and the critical points. Try the second derivative test (Theorem 4). It fails, so apply the first derivative test (Theorem 3). Finally confirm the answer directly from the definition, using f(x)=2(x−1)3+7f(x) = 2(x-1)^3 + 7⁠.

Basics you need

1Local maxima and minima (Definition 4, Section 6.4)

An interior point cc is a point of local maxima if, for some h>0h > 0⁠, f(c)≥f(x)f(c) \ge f(x) for every xx in (c−h,c+h)(c-h, c+h)⁠; a point of local minima if f(c)≤f(x)f(c) \le f(x) there. Lesson: maxima and minima

2Critical points (Note after Theorem 2)

A point where f′(c)=0f'(c) = 0 or where ff is not differentiable. By Theorem 2, local extrema can only occur at critical points, but a critical point need not be one (the book's example is x3x^3 at 0).

3The two tests (Theorems 3 and 4)

First derivative test: f′f' changes from ++ to −- through cc⁠: local maxima; from −- to ++⁠: local minima; no change of sign: neither (a point of inflection). Second derivative test: f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0⁠: local maxima; f′′(c)>0f''(c) > 0⁠: local minima; f′′(c)=0f''(c) = 0⁠: the test fails. Lesson: first and second derivative tests

4A square is never negative

(x−1)2>0(x-1)^2 > 0 for every x≠1x \ne 1⁠, and (x−1)2=0(x-1)^2 = 0 only at x=1x = 1⁠. So the sign of 6(x−1)26(x-1)^2 is easy to read. Basics: sign of a product

5Factorising a quadratic

x2−2x+1=(x−1)2x^2 - 2x + 1 = (x-1)^2⁠, a perfect square. Basics: factorising and the discriminant

Solution

  1. Differentiate twice

    f′(x)=6x2−12x+6=6(x2−2x+1)=6(x−1)2,f′′(x)=12x−12=12(x−1).\begin{aligned} f'(x) &= 6x^2 - 12x + 6 \\ &= 6(x^2 - 2x + 1) = 6(x-1)^2, \\ f''(x) &= 12x - 12 = 12(x-1). \end{aligned}
    Both tests need derivatives: the first test needs f′f'⁠, the second needs f′′f'' as well. Factorising f′f' now pays off twice: it shows at once where f′=0f' = 0 and what sign f′f' has elsewhere.
    Power rule, term by term: ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}⁠, constants differentiate to 0. x2−2x+1=(x−1)2x^2 - 2x + 1 = (x-1)^2 is a perfect square (Basic 5).
  2. Find the critical points

    f′(x)=0  ⟺  6(x−1)2=0  ⟺  x=1.f'(x) = 0 \iff 6(x-1)^2 = 0 \iff x = 1.

    ff is a polynomial, so it is differentiable at every real xx⁠; there are no critical points of the "not differentiable" kind. So x=1x = 1 is the only critical point, and f(1)=2−6+6+5=7f(1) = 2 - 6 + 6 + 5 = 7⁠.

    By Theorem 2, a local maximum or minimum of a function on an open interval can only happen where f′=0f' = 0 or ff is not differentiable. So x=1x = 1 is the only candidate, and the whole question reduces to: what happens at x=1x = 1⁠?
    Critical point: f′(c)=0f'(c) = 0 or ff not differentiable at cc (Basic 2). Lesson: maxima and minima
  3. Try the second derivative test: it fails

    f′′(1)=12(1−1)=0.f''(1) = 12(1 - 1) = 0.

    So f′(1)=0f'(1) = 0 and f′′(1)=0f''(1) = 0⁠. This is case (iii) of Theorem 4: the test fails.

    "The test fails" means the test gives no information. It does not mean "neither maximum nor minimum". Functions with f′(c)=f′′(c)=0f'(c) = f''(c) = 0 can have a minimum at cc (x4x^4 at 0), a maximum (−x4-x^4 at 0) or neither (x3x^3 at 0). So we need a different tool.
    Theorem 4 (Second Derivative Test), part (iii): the test fails if f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0⁠; "in this case, we go back to the first derivative test". Lesson: first and second derivative tests
  4. Apply the first derivative test at x=1x = 1

    Read the sign of f′(x)=6(x−1)2f'(x) = 6(x-1)^2 on each side of 1:

    xx(x−1)2(x-1)^2f′(x)=6(x−1)2f'(x) = 6(x-1)^2ff is
    x<1x < 1 (e.g. 0.9)>0> 0++ (0.06)increasing
    x=1x = 10000flat for an instant
    x>1x > 1 (e.g. 1.1)>0> 0++ (0.06)increasing

    f′f' is positive just to the left of 1 and positive just to the right: it does not change sign as xx increases through 1. By Theorem 3(iii), x=1x = 1 is neither a point of local maxima nor a point of local minima; it is a point of inflexion.

    A local maximum needs the graph to rise and then fall (f′f' from ++ to −-⁠); a local minimum needs fall then rise (−- to ++⁠). Here the graph rises, pauses with a horizontal tangent at (1,7)(1, 7)⁠, and rises again. The book reaches the same conclusion in Example 18, which is this very function done with the first derivative test from the start.
    Theorem 3 (First Derivative Test), part (iii): if f′(x)f'(x) does not change sign as xx increases through cc⁠, then cc is neither a point of local maxima nor of local minima. Basics: sign of a product
  5. Confirm from the definition

    Complete the cube: 2(x−1)3=2x3−6x2+6x−22(x-1)^3 = 2x^3 - 6x^2 + 6x - 2⁠, so

    f(x)=2(x−1)3+7.f(x) = 2(x-1)^3 + 7.

    If x<1x < 1 then (x−1)3<0(x-1)^3 < 0 and f(x)<7=f(1)f(x) < 7 = f(1)⁠. If x>1x > 1 then (x−1)3>0(x-1)^3 > 0 and f(x)>7=f(1)f(x) > 7 = f(1)⁠. So every interval (1−h,1+h)(1-h, 1+h)⁠, however small, contains points where ff is below f(1)f(1) and points where it is above. Neither "f(1)≥f(x)f(1) \ge f(x) for all nearby xx" nor "f(1)≤f(x)f(1) \le f(x) for all nearby xx" can hold, so by Definition 4, x=1x = 1 is neither kind of point.

    The tests are shortcuts; the definition is the final word. Writing ff around the point x=1x = 1 shows the conclusion with no theorem at all, and it also shows that ff is strictly increasing on all of R\R (a cube is strictly increasing). A strictly increasing function never has a turning point.
    (x−1)3=x3−3x2+3x−1(x-1)^3 = x^3 - 3x^2 + 3x - 1 (expansion of (a−b)3(a-b)^3⁠). Definition 4 is Basic 1.
  6. Why the book calls x=1x = 1 a point of inflexion

    f′′(x)=12(x−1)f''(x) = 12(x-1) is negative for x<1x < 1 and positive for x>1x > 1⁠. So the graph bends downward (its slope is decreasing) to the left of 1 and bends upward to the right of 1: the bending changes direction exactly at (1,7)(1, 7)⁠, where the tangent is horizontal.

    1 2 5 7 10 x y (1, 7) tangent y = 7 f(x) = 2(x − 1)³ + 7 rising on both sides of x = 1 up
    f(x)=2(x−1)3+7f(x) = 2(x-1)^3 + 7⁠. The tangent at (1,7)(1, 7) is horizontal (dashed), yet the curve rises on both sides of it: no hill, no valley.
    Theorem 3(iii) uses the name "point of inflection" for a critical point where f′f' keeps its sign. The picture shows why the word fits: the curve crosses its own tangent line there, switching from bending down to bending up.
    The sign of f′′f'' tells whether the slope f′f' is decreasing (f′′<0f'' < 0⁠) or increasing (f′′>0f'' > 0⁠). Lesson: first and second derivative tests
Result

ff has no point of local maxima and no point of local minima. Its only critical point, x=1x = 1 (where f(1)=7f(1) = 7⁠), is a point of inflexion: the second derivative test fails there (f′′(1)=0f''(1) = 0⁠), and f′(x)=6(x−1)2f'(x) = 6(x-1)^2 does not change sign through 1.

Check it with numbers

f(0.9)=6.998f(0.9) = 6.998⁠, f(1)=7f(1) = 7⁠, f(1.1)=7.002f(1.1) = 7.002⁠: the value just before 1 is smaller and the value just after is larger, so f(1)f(1) is neither the biggest nor the smallest nearby value. Also f′(0.9)=f′(1.1)=0.06>0f'(0.9) = f'(1.1) = 0.06 > 0⁠, while f′′(0.9)=−1.2f''(0.9) = -1.2 and f′′(1.1)=1.2f''(1.1) = 1.2 have opposite signs, as Step 6 says.

Common mistakes
  1. Reading "the test fails" as "no extremum". When f′′(c)=0f''(c) = 0 the second derivative test says nothing; you must use the first derivative test (or the definition).
  2. Calling every critical point a maximum or minimum. f′(1)=0f'(1) = 0 only makes x=1x = 1 a candidate (Theorem 2 has no converse).
  3. Checking the sign of f′f' at only one side. The first derivative test compares both sides of cc⁠.
  4. Expanding instead of factorising f′f'⁠. In the form 6x2−12x+66x^2 - 12x + 6 the sign is not obvious; in the form 6(x−1)26(x-1)^2 it is.
What to take away
  1. Order of attack: critical points, then the second derivative test, and if f′′(c)=0f''(c) = 0⁠, the first derivative test.
  2. A derivative of the form k(x−c)2k(x-c)^2 with k>0k > 0 never changes sign: the function rises straight through cc⁠.
  3. Rewriting a cubic about its critical point, here 2(x−1)3+72(x-1)^3 + 7⁠, turns the whole question into a one-line check.

Every fact used, and where it comes from

FactUsed inSource
f′(x)=6(x−1)2f'(x) = 6(x-1)^2⁠, f′′(x)=12(x−1)f''(x) = 12(x-1)Step 1Power rule (Chapter 5); perfect square
Critical point; extrema only at critical pointsStep 2Theorem 2 and the Note after it, Section 6.4
Second Derivative Test, case (iii)Step 3Theorem 4, Section 6.4 (Lesson: tests)
First Derivative Test, case (iii)Step 4Theorem 3, Section 6.4
Same function by the first testStep 4Example 18, Section 6.4
Local maxima and minimaStep 5Definition 4, Section 6.4
f(x)=2(x−1)3+7f(x) = 2(x-1)^3 + 7Steps 5, 6Expansion of (x−1)3(x-1)^3
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →