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

Example 8: f(x)=x3−3x2+4xf(x) = x^3-3x^2+4x is increasing on R\R

ExamplesIncreasing and decreasing functions · Section 6.3
The question

Show that the function ff given by

f(x)=x3−3x2+4x,x∈Rf(x) = x^3 - 3x^2 + 4x, \quad x \in \mathbf{R}

is increasing on R\mathbf{R}⁠.

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

Since (x−1)2≥0(x - 1)^2 \ge 0⁠, for all x∈Rx \in \mathbf{R}⁠,

f′(x)≥1>0f'(x) \ge 1 > 0

Hence ff is increasing on R\mathbf{R}⁠.

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

The one idea this problem is built on

Comparing f(x1)f(x_1) with f(x2)f(x_2) directly is awkward for a cubic, so use the derivative instead: by Theorem 1, a function whose derivative is never negative on an interval is increasing there. The derivative 3x2−6x+43x^2 - 6x + 4 is a quadratic, and completing the square shows it equals 3(x−1)2+13(x-1)^2 + 1⁠, which is at least 1 for every real xx⁠.

Given, to find, and the plan
Given
f(x)=x3−3x2+4xf(x) = x^3 - 3x^2 + 4x for all real xx (a polynomial: continuous and differentiable everywhere).
To show
ff is increasing on R\mathbf{R}⁠: x1<x2⇒f(x1)≤f(x2)x_1 < x_2 \Rightarrow f(x_1) \le f(x_2) for all real x1,x2x_1, x_2⁠.
Plan
Differentiate; complete the square to show f′(x)>0f'(x) > 0 for every xx⁠; apply Theorem 1 on the interval between any two points; then upgrade to "strictly increasing", and check without calculus.

Basics you need

1Definition 1 (Section 6.3)

ff is increasing on an interval I if x1<x2x_1 < x_2 in I ⇒f(x1)≤f(x2)\Rightarrow f(x_1) \le f(x_2)⁠; strictly increasing if it gives f(x1)<f(x2)f(x_1) < f(x_2)⁠. Lesson: increasing and decreasing functions

2Theorem 1 (Section 6.3)

Let ff be continuous on [a,b][a, b] and differentiable on (a,b)(a, b)⁠. Then ff is increasing in [a,b][a, b] if f′(x)≥0f'(x) \ge 0 for each x∈(a,b)x \in (a, b)⁠. The book's proof uses the Mean Value Theorem: f(x2)−f(x1)f(x_2) - f(x_1) =f′(c)(x2−x1)= f'(c)(x_2 - x_1) for some cc between x1x_1 and x2x_2⁠.

3Completing the square

x2−2x+1=(x−1)2x^2 - 2x + 1 = (x - 1)^2⁠, and a square is never negative. A quadratic ax2+bx+cax^2 + bx + c with a>0a > 0 and discriminant b2−4ac<0b^2 - 4ac < 0 is positive for every xx⁠. Basics: factorising and the discriminant

Solution

  1. Differentiate

    By the power, constant multiple and sum rules:

    f′(x)=3x2−6x+4.f'(x) = 3x^2 - 6x + 4 .
    Theorem 1 converts the question "does ff go up?" into "is f′f' non-negative?", which is a question about a quadratic, much easier than comparing values of a cubic.
    ddx(x3)=3x2\frac{d}{dx}(x^3) = 3x^2⁠, ddx(3x2)=6x\frac{d}{dx}(3x^2) = 6x⁠, ddx(4x)=4\frac{d}{dx}(4x) = 4 (Section 5.3).
  2. Show f′(x)>0f'(x) > 0 for every xx by completing the square

    Take out 3 from the first two terms, then complete the square:

    f′(x)=3(x2−2x)+4=3(x2−2x+1)−3+4=3(x−1)2+1.\begin{aligned} f'(x) &= 3(x^2 - 2x) + 4 \\ &= 3(x^2 - 2x + 1) - 3 + 4 \\ &= 3(x-1)^2+1 . \end{aligned}

    Since (x−1)2≥0(x - 1)^2 \ge 0 for every real xx⁠, we get f′(x)≥0+1=1>0f'(x) \ge 0 + 1 = 1 > 0 for every real xx⁠. The least value 1 occurs at x=1x = 1⁠.

    x y 1 2 −2 2 4 6 8 gold: f′(x) = 3x² − 6x + 4 = 3(x − 1)² + 1 green dashed: y = 1 f′ never dips below 1 blue: f(x) = x³ − 3x² + 4x always rising; least steep at (1, 2), slope 1 there
    Not to scale (the two axes use different units). The gold parabola f′(x)=3(x−1)2+1f'(x) = 3(x-1)^2 + 1 never goes below the dashed line y=1y = 1⁠, so the slope of the blue cubic ff is always at least 1 and the cubic rises everywhere.
    Writing f′f' as "a square times a positive number, plus a positive number" makes its sign obvious at a glance. The book writes the same chain: 3(x2−2x+1)+13(x^2 - 2x + 1) + 1 =3(x−1)2+1>0= 3(x-1)^2 + 1 > 0⁠. Equivalently, the discriminant of 3x2−6x+43x^2 - 6x + 4 is 36−48=−12<036 - 48 = -12 < 0⁠, so f′f' has no real zero, and since its leading coefficient 3 is positive it is positive everywhere.
  3. Apply Theorem 1 and conclude "increasing on R\mathbf{R}"

    Take any two real numbers x1<x2x_1 < x_2 and the interval [x1,x2][x_1, x_2]⁠. The polynomial ff is continuous on [x1,x2][x_1, x_2] and differentiable on (x1,x2)(x_1, x_2)⁠, and f′(x)>0f'(x) > 0⁠, so certainly f′(x)≥0f'(x) \ge 0⁠, on (x1,x2)(x_1, x_2)⁠. By Theorem 1(a), ff is increasing in [x1,x2][x_1, x_2]⁠; in particular f(x1)≤f(x2)f(x_1) \le f(x_2)⁠.

    Since x1<x2x_1 < x_2 were arbitrary, ff is increasing on R\mathbf{R}.

    Theorem 1 is stated for a closed interval [a,b][a, b]⁠, while R\mathbf{R} is not one. The way round this is to notice that the definition of "increasing on R\mathbf{R}" only ever compares two points at a time, and any two points lie in a closed interval where Theorem 1 applies. This is what the book means by ">0> 0⁠, in every interval of R\mathbf{R}".
    Theorem 1(a) and Definition 1(i), Section 6.3. Lesson: increasing and decreasing functions
  4. In fact ff is strictly increasing

    Follow the book's proof of Theorem 1: for x1<x2x_1 < x_2 there is a cc between them with

    f(x2)−f(x1)=f′(c) (x2−x1).f(x_2) - f(x_1) = f'(c)\,(x_2 - x_1) .

    Here f′(c)≥1>0f'(c) \ge 1 > 0 and x2−x1>0x_2 - x_1 > 0⁠, so f(x2)−f(x1)>0f(x_2) - f(x_1) > 0⁠. Hence ff is strictly increasing on R\mathbf{R} (Definition 1(iv)), which is more than the question asks.

    Theorem 1 as printed only promises "increasing" (≤\le⁠), because it allows f′=0f' = 0⁠. When f′f' is strictly positive, the same Mean Value Theorem argument gives the strict inequality. The book's printed proof in fact writes "f′(c)>0f'(c) > 0 (given)" although the theorem assumes only f′≥0f' \ge 0⁠; with f′(c)≥0f'(c) \ge 0 the same line gives f(x2)−f(x1)≥0f(x_2) - f(x_1) \ge 0⁠, which is exactly "increasing". The Remarks after the theorem assume f′>0f' > 0 on an interval without its end points, but they too conclude only "increasing".
    The Mean Value Theorem is used without proof in the book's proof of Theorem 1, which cites it as "Theorem 8 in Chapter 5"; this reprint's Chapter 5 does not contain it.
  5. A check without derivatives

    For any real a<ba < b⁠, factorising gives

    f(b)−f(a)=(b3−a3)−3(b2−a2)+4(b−a)=(b−a) Q,\begin{aligned} f(b) - f(a) &= (b^3 - a^3) - 3(b^2 - a^2) \\ &\quad + 4(b - a) \\ &= (b - a)\,Q, \end{aligned}

    where Q=a2+ab+b2−3(a+b)+4Q = a^2 + ab + b^2 - 3(a + b) + 4⁠. Put p=a−1p = a - 1 and q=b−1q = b - 1⁠; expanding shows

    Q=p2+pq+q2+1,Q = p^2 + pq + q^2 + 1 ,

    and p2+pq+q2=(p+q2)2+34q2≥0p^2 + pq + q^2 = \left(p + \tfrac{q}{2}\right)^2 + \tfrac{3}{4}q^2 \ge 0⁠. So Q≥1Q \ge 1⁠, and f(b)−f(a)=(b−a)Q>0f(b) - f(a) = (b - a)Q > 0⁠.

    This proves "strictly increasing" straight from Definition 1, as in Example 7, with no calculus at all. It is longer, which is exactly why Theorem 1 is so useful.
    b3−a3=(b−a)(a2+ab+b2)b^3 - a^3 = (b - a)(a^2 + ab + b^2) and b2−a2=(b−a)(a+b)b^2 - a^2 = (b - a)(a + b)⁠.
Result

f′(x)=3x2−6x+4f'(x) = 3x^2 - 6x + 4 =3(x−1)2+1= 3(x - 1)^2 + 1 ≥1>0\ge 1 > 0 for every real xx⁠. By Theorem 1, f(x)=x3−3x2+4xf(x) = x^3 - 3x^2 + 4x is increasing on R\mathbf{R}; in fact it is strictly increasing on R\mathbf{R}⁠. This agrees with the book's solution.

Check it with numbers
xx−1-100112233
f(x)f(x)−8-802412
f′(x)f'(x)1341413

The values of ff rise all the way, and every slope is at least 1, the smallest being at x=1x = 1⁠, where the graph is flattest but still rising.

Common mistakes
  1. Solving f′(x)=0f'(x) = 0 and finding nothing, then stopping. No real zero is not enough by itself; you must also know the sign (here positive, as the leading coefficient 3 is positive).
  2. Completing the square wrongly, for example 3(x−1)2+43(x - 1)^2 + 4⁠. Taking out 3 from 3x2−6x3x^2 - 6x and adding 1 inside the bracket adds 3 in total, so subtract 3 outside: 4−3=14 - 3 = 1⁠.
  3. Applying Theorem 1 to R\mathbf{R} directly. It is stated for closed intervals [a,b][a, b]⁠; use it on [x1,x2][x_1, x_2] for arbitrary x1<x2x_1 < x_2⁠.
What to take away
  1. To show a function is increasing everywhere, show its derivative is never negative.
  2. A quadratic derivative: complete the square (or use the discriminant) to read off its sign.
  3. f′>0f' > 0 everywhere gives strictly increasing, by the Mean Value Theorem argument of Theorem 1.

Every fact used, and where it comes from

FactUsed inSource
Power, constant multiple and sum rulesStep 1Table 5.3 and the algebra of derivatives, Section 5.3
Completing the square; discriminantStep 2Basics: factorising and the discriminant
f′≥0f' \ge 0 on (a,b)(a,b) gives increasing on [a,b][a,b]Step 3Theorem 1(a), Section 6.3 (Lesson)
Increasing, strictly increasingSteps 3, 4, 5Definition 1 (i), (iv), Section 6.3
Mean Value TheoremStep 4Used without proof in the book's proof of Theorem 1, Section 6.3 (cited there as "Theorem 8 in Chapter 5", which this reprint's Chapter 5 does not contain: a stale reference)
b3−a3b^3 - a^3 and b2−a2b^2 - a^2 factorisationsStep 5Algebraic identities
Table of valuesCheckArithmetic, recomputed 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 →