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

Miscellaneous · Q10: Local maxima, minima and inflexion of f(x)=(x−2)4(x+1)3f(x)=(x-2)^4(x+1)^3

Miscellaneous ExerciseMaxima and minima · First Derivative Test · Miscellaneous Exercise
The question

Find the points at which the function ff given by f(x)=(x−2)4(x+1)3f(x) = (x-2)^4(x+1)^3 has

(i) local maxima    (ii) local minima    (iii) point of inflexion

Exam answer f′(x)=4(x−2)3(x+1)3+3(x−2)4(x+1)2=(x−2)3(x+1)2(7x−2)\begin{aligned} f'(x) &= 4(x - 2)^3(x + 1)^3 \\ &\quad + 3(x - 2)^4(x + 1)^2 \\ &= (x - 2)^3(x + 1)^2(7x - 2) \end{aligned}

f′(x)=0⇒x=2, −1, 27f'(x) = 0 \Rightarrow x = 2,\ -1,\ \frac27⁠.

For x<−1x < -1 and −1<x<27-1 < x < \frac27⁠, f′(x)>0f'(x) > 0⁠; for 27<x<2\frac27 < x < 2⁠, f′(x)<0f'(x) < 0⁠; for x>2x > 2⁠, f′(x)>0f'(x) > 0⁠.

(i) At x=27x = \frac27⁠, f′f' changes from positive to negative.

∴ x=27\therefore\ x = \frac27 is a point of local maxima.

(ii) At x=2x = 2⁠, f′f' changes from negative to positive.

∴ x=2\therefore\ x = 2 is a point of local minima.

(iii) At x=−1x = -1⁠, f′f' does not change sign.

∴ x=−1\therefore\ x = -1 is a point of inflexion.

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

The one idea this problem is built on

Factor f′(x)f'(x) completely and read its sign on each interval. A factor raised to an odd power changes sign as xx passes its zero; a factor raised to an even power does not. So f′f' changes sign at x=27x = \frac{2}{7} and x=2x = 2 (turning points), but not at x=−1x = -1⁠, where the graph only flattens for a moment: a point of inflexion in the book's sense.

Given, to find, and the plan
Given
f(x)=(x−2)4(x+1)3f(x) = (x-2)^4(x+1)^3 for all real xx (a polynomial of degree 7).
To find
The points of local maxima, of local minima, and the point(s) of inflexion.
Plan
(1) Differentiate with the product and chain rules and factor. (2) Find the critical points. (3) Make a sign chart for f′f'⁠. (4) Apply the First Derivative Test (Theorem 3) at each critical point. (5) Explain why the Second Derivative Test cannot settle x=2x = 2 and x=−1x = -1⁠.

Basics you need

1Product and chain rules

(uv)′=u′v+uv′(uv)' = u'v + uv'⁠, and ddx(x−2)4=4(x−2)3\frac{d}{dx}(x-2)^4 = 4(x-2)^3 (chain rule, inner function x−2x - 2 with derivative 1). Basics: the chain rule

2Taking out common factors

Pull out the lowest power of each repeated factor: 4(x−2)3(x+1)34(x-2)^3(x+1)^3 and 3(x−2)4(x+1)23(x-2)^4(x+1)^2 share (x−2)3(x+1)2(x-2)^3(x+1)^2⁠. Basics: factorising

3Sign of a product

A product is positive when it has an even number of negative factors. (x−c)even≥0(x-c)^{\text{even}} \ge 0 always; (x−c)odd(x-c)^{\text{odd}} has the sign of x−cx - c⁠. Basics: sign of a product

4First Derivative Test (Theorem 3, Section 6.4)

At a critical point cc where ff is continuous: f′f' changes from ++ to −-⁠: local maxima; from −- to ++⁠: local minima; no change of sign: neither, and the book calls cc a point of inflection. Lesson: derivative tests

Solution

  1. Differentiate and factor

    Product rule with u=(x−2)4u = (x-2)^4⁠, v=(x+1)3v = (x+1)^3⁠:

    f′(x)=4(x−2)3(x+1)3+3(x−2)4(x+1)2=(x−2)3(x+1)2 [4(x+1)+3(x−2)]=(x−2)3(x+1)2 (7x−2).\begin{aligned} f'(x) &= 4(x-2)^3(x+1)^3 + 3(x-2)^4(x+1)^2 \\ &= (x-2)^3(x+1)^2\,\big[4(x+1) + 3(x-2)\big] \\ &= (x-2)^3(x+1)^2\,(7x-2). \end{aligned}
    Never expand a degree-7 polynomial here. Taking out the common factor (x−2)3(x+1)2(x-2)^3(x+1)^2 leaves a linear bracket, 4x+4+3x−6=7x−24x + 4 + 3x - 6 = 7x - 2⁠, and the fully factored form shows at once where f′f' is zero and what sign it has.
    u′=4(x−2)3⋅1u' = 4(x-2)^3\cdot 1 and v′=3(x+1)2⋅1v' = 3(x+1)^2\cdot 1 by the chain rule (Theorem 4, Section 5.3.1). Basics: the chain rule
  2. Critical points

    ff is a polynomial, so it is differentiable at every real xx⁠. The critical points are therefore exactly the zeros of f′f'⁠:

    f′(x)=0  ⟺  x=2,  x=−1,  x=27.f'(x) = 0 \iff x = 2,\ \ x = -1,\ \ x = \frac{2}{7}.
    A product is zero exactly when one of its factors is zero: (x−2)3=0(x-2)^3 = 0 at 2, (x+1)2=0(x+1)^2 = 0 at −1-1⁠, 7x−2=07x - 2 = 0 at 27\frac{2}{7}⁠. By Theorem 2 (Section 6.4) local maxima and minima can only occur at these points, so they are the only candidates.
    Critical point: f′(c)=0f'(c) = 0 or ff not differentiable at cc (Note after Theorem 2, Section 6.4). Lesson: maxima and minima
  3. Sign chart for f′f'

    The three critical points split the line into four intervals. On each, every factor keeps one sign:

    • (x−2)3(x-2)^3⁠: odd power, so it has the sign of x−2x - 2⁠: negative for x<2x < 2⁠, positive for x>2x > 2⁠.
    • (x+1)2(x+1)^2⁠: even power, positive except 0 at x=−1x = -1⁠.
    • 7x−27x - 2⁠: negative for x<27x < \frac{2}{7}⁠, positive for x>27x > \frac{2}{7}⁠.
    x −1 2/7 2 (x − 2)³ − − − + 0 (x + 1)² + + + + 0 7x − 2 − − + + 0 f′(x) + + − + 0 0 0 increasing increasing decreasing increasing no turn max min
    Sign chart (not to scale). Multiplying the three rows gives the sign of f′(x)f'(x)⁠: +,+,−,++, +, -, + on (−∞,−1)(-\infty, -1)⁠, (−1,27)\left(-1, \frac{2}{7}\right)⁠, (27,2)\left(\frac{2}{7}, 2\right)⁠, (2,∞)(2, \infty)⁠.
    For instance on (27,2)\left(\frac{2}{7}, 2\right)⁠: (x−2)3<0(x-2)^3 < 0⁠, (x+1)2>0(x+1)^2 > 0⁠, 7x−2>07x - 2 > 0⁠, so exactly one factor is negative and f′<0f' < 0⁠. On (−∞,−1)(-\infty, -1) and (−1,27)\left(-1, \frac{2}{7}\right)⁠, two factors are negative ((x−2)3(x-2)^3 and 7x−27x-2⁠), so f′>0f' > 0⁠. Test values confirm: f′(0)=(−8)(1)(−2)=16>0f'(0) = (-8)(1)(-2) = 16 > 0⁠, f′(1)=(−1)(4)(5)=−20<0f'(1) = (-1)(4)(5) = -20 < 0⁠.
    An even power of a non-zero number is positive, so (x+1)2(x+1)^2 never changes the sign of the product. Basics: sign of a product
  4. (i) Local maxima: x=27x = \frac{2}{7}

    As xx increases through 27\frac{2}{7}⁠, f′f' changes from positive to negative. ff is continuous there (a polynomial), so by the First Derivative Test, Theorem 3 (i), x=27x = \frac{2}{7} is a point of local maxima. The local maximum value is

    f(27)=(−127)4(97)3=124⋅9377=15116544823543≈18.36.\begin{aligned} f\left(\tfrac{2}{7}\right) &= \left(-\tfrac{12}{7}\right)^4\left(\tfrac{9}{7}\right)^3 = \frac{12^4\cdot 9^3}{7^7} \\ &= \frac{15116544}{823543} \approx 18.36. \end{aligned}
    Rising just before 27\frac{2}{7} and falling just after means the graph has a peak there. The value uses 27−2=−127\frac{2}{7} - 2 = -\frac{12}{7} and 27+1=97\frac{2}{7} + 1 = \frac{9}{7}⁠; the even power removes the minus sign. The Second Derivative Test agrees here, since f′′(27)<0f''\left(\frac{2}{7}\right) < 0⁠, but the sign chart already settles it.
    Theorem 3 (i), Section 6.4: f′>0f' > 0 just to the left and f′<0f' < 0 just to the right of cc gives local maxima. Lesson: derivative tests
  5. (ii) Local minima: x=2x = 2

    As xx increases through 2, f′f' changes from negative to positive. By Theorem 3 (ii), x=2x = 2 is a point of local minima, with local minimum value f(2)=04⋅33=0f(2) = 0^4\cdot 3^3 = 0⁠.

    Falling into 2 and rising out of it is a valley. It makes sense directly too: (x−2)4≥0(x-2)^4 \ge 0 and, near x=2x = 2⁠, (x+1)3>0(x+1)^3 > 0⁠, so f(x)≥0=f(2)f(x) \ge 0 = f(2) for all xx close to 2.
    Theorem 3 (ii), Section 6.4. Lesson: derivative tests
  6. (iii) Point of inflexion: x=−1x = -1

    On both sides of −1-1⁠, f′(x)>0f'(x) > 0⁠: the factor (x+1)2(x+1)^2 touches 0 at −1-1 but does not change sign. So f′f' does not change sign as xx increases through −1-1⁠, and by Theorem 3 (iii) x=−1x = -1 is neither a point of local maxima nor of local minima; the book calls such a point a point of inflexion. Here f(−1)=0f(-1) = 0⁠.

    x y −10 10 1 local max at x = 2/7, f ≈ 18.36 local min (2, 0) inflexion (−1, 0) 2/7
    y=(x−2)4(x+1)3y = (x-2)^4(x+1)^3 on −1.4≤x≤2.5-1.4 \le x \le 2.5 (the two axes have different scales). The curve flattens at (−1,0)(-1, 0) but keeps rising, peaks at x=27x = \frac{2}{7}⁠, and touches the xx-axis at the minimum (2,0)(2, 0)⁠.
    Directly: f(x)<0f(x) < 0 just left of −1-1 (the cube (x+1)3(x+1)^3 is negative) and f(x)>0f(x) > 0 just right of it, while f(−1)=0f(-1) = 0⁠. A value that is below on one side and above on the other is neither a peak nor a valley. Going deeper: later courses define a point of inflexion as a point where the curve changes from bending down to bending up (where f′′f'' changes sign). x=−1x = -1 is such a point too, and so are x=2±327x = \frac{2 \pm 3\sqrt2}{7} (about −0.32-0.32 and 0.890.89⁠), where f′′(x)f''(x)⁠, which equals 6(x−2)2(x+1)6(x-2)^2(x+1) × (7x2−4x−2)\times\,(7x^2-4x-2)⁠, changes sign. Those two are not critical points, so they are not what this question, built on Theorem 3, asks for.
    Theorem 3 (iii), Section 6.4: if f′f' does not change sign through cc⁠, then cc is neither a point of local maxima nor of local minima, "such a point is called point of inflection" (the book also spells it inflexion, as in Example 18). Lesson: derivative tests
  7. Why not the Second Derivative Test at 2 and −1-1⁠?

    Differentiating f′f' once more and factoring gives

    f′′(x)=6(x−2)2(x+1)(7x2−4x−2).f''(x) = 6(x-2)^2(x+1)(7x^2-4x-2).

    At x=2x = 2 and x=−1x = -1 this is 0, so by Theorem 4 (iii) the Second Derivative Test fails there, and we must use the First Derivative Test, as we did.

    Repeated factors in f′f' (here (x−2)3(x-2)^3 and (x+1)2(x+1)^2⁠) leave a factor in f′′f'' that vanishes at the same point. Whenever f′f' has a repeated root, expect the second derivative test to be inconclusive there and go straight to the sign chart.
    Theorem 4 (Second Derivative Test), Section 6.4: the test fails if f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0⁠. Lesson: derivative tests
Result

f′(x)=(x−2)3(x+1)2(7x−2)f'(x) = (x-2)^3(x+1)^2(7x-2)⁠. (i) Local maxima at x=27x = \frac{2}{7} (local maximum value 124⋅9377≈18.36\frac{12^4\cdot 9^3}{7^7} \approx 18.36⁠). (ii) Local minima at x=2x = 2 (local minimum value 0). (iii) Point of inflexion at x=−1x = -1. (The answer key in this reprint has no entry for this question.)

Check it with numbers

Around 27≈0.286\frac{2}{7} \approx 0.286⁠: f(0)=16⋅1=16f(0) = 16 \cdot 1 = 16 and f(1)=1⋅8=8f(1) = 1 \cdot 8 = 8⁠, both below 18.3618.36 ✓. Around 2: f(1.9)=0.0001×2.93f(1.9) = 0.0001 \times 2.9^3 =0.0024389= 0.0024389 and f(2.1)=0.0001×3.13f(2.1) = 0.0001 \times 3.1^3 =0.0029791= 0.0029791⁠, both above f(2)=0f(2) = 0 ✓. Around −1-1⁠: f(−1.1)=3.14×(−0.1)3f(-1.1) = 3.1^4 \times (-0.1)^3 ≈−0.0924\approx -0.0924 and f(−0.9)=2.94×0.13f(-0.9) = 2.9^4 \times 0.1^3 ≈0.0707\approx 0.0707⁠: one below and one above f(−1)=0f(-1) = 0⁠, so no extremum ✓.

Common mistakes
  1. Expanding ff before differentiating. The degree-7 polynomial is hard to factor afterwards; differentiate the factored form with the product rule.
  2. Treating x=−1x = -1 as an extremum because f′(−1)=0f'(-1) = 0⁠. A zero derivative is necessary, not sufficient; the sign must change (Remark after Theorem 2).
  3. Forgetting that (x+1)2(x+1)^2 never changes sign, and so flipping the sign of f′f' at −1-1 in the chart.
  4. Using the Second Derivative Test at 2 or −1-1: f′′=0f'' = 0 there, so it says nothing.
What to take away
  1. For f=(x−p)m(x−q)nf = (x-p)^m(x-q)^n⁠, factor f′f' as (x−p)m−1(x−q)n−1(x-p)^{m-1}(x-q)^{n-1} times a linear factor.
  2. Odd multiplicity in f′f'⁠: sign change, so a maximum or minimum. Even multiplicity: no sign change, so a point of inflexion in the sense of Theorem 3 (iii).
  3. The same reasoning appears in Example 18, where f′(x)=6(x−1)2f'(x) = 6(x-1)^2 gives a point of inflexion at x=1x = 1⁠.

Every fact used, and where it comes from

FactUsed inSource
Product rule and chain ruleStep 1Chapter 5; chain rule Theorem 4, Section 5.3.1 (Basics: the chain rule)
Polynomials are differentiable everywhereStep 2Chapter 5
Extrema only at critical points; definition of critical pointStep 2Theorem 2 and the Note after it, Section 6.4 (Lesson: maxima and minima)
Sign of a product; even and odd powersStep 3Algebra (Basics: sign of a product)
First Derivative Test, parts (i), (ii), (iii); "point of inflection"Steps 4 to 6Theorem 3, Section 6.4 (Lesson: derivative tests)
Second Derivative Test and when it failsSteps 4, 7Theorem 4, Section 6.4
All values, signs and f′′f''Steps 3 to 7, CheckRecomputed with sympy (and 40 test points per interval) in the site's verification script
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 →