Educerie

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 5.2 · SL and HL

Increasing and decreasing functions

If the derivative is the gradient at every point, what does its sign tell you about where a function is going up and where it is going down?

What you will learn

  • Understand that a function is increasing where f'(x) > 0 and decreasing where f'(x) < 0
  • Know that f'(x) = 0 gives a stationary point, which may or may not be a turning point
  • Understand how to read where f rises and falls from the sign of the graph of f'

You must be able to

  1. Find the intervals on which a function is increasing or decreasing by solving f'(x) = 0 and testing signs
  2. Describe f from a given graph of y = f'(x), including where it has a maximum or minimum
  3. Show that a function is increasing for all x, including finding a parameter that makes it so
  4. Justify a maximum or minimum from the sign change of f'
  5. Find increasing and decreasing intervals with a calculator on a given domain
  6. State intervals correctly when the domain is restricted or the function is undefined at a point

In the exam. Papers 1, 2 and 3. On Paper 1 it is a 3 to 5 mark part: differentiate, solve f′(x)=0f'(x) = 0, and state where ff is increasing or decreasing. On Paper 2 the GDC finds the turning points. "Show that" and "find, justify" are the commonest command terms, and Paper 3 uses increasing functions inside longer chains of reasoning. Questions that give the graph of y=f′(x)y = f'(x) and ask about ff are where most marks are dropped.

1What increasing and decreasing mean

Pick any two inputs a<ba < b in an interval where ff is defined.

  • If the right-hand one always gives the bigger output, f(a)<f(b)f(a) < f(b), then ff is increasing on that interval.
  • If it always gives the smaller output, f(a)>f(b)f(a) > f(b), then ff is decreasing there.

Three points.

It is always read left to right. A curve that rises as you move left is decreasing.

It is a property of an interval, not of a point

  • The curve y=(x−2)2y = (x - 2)^{2} is decreasing for x<2x < 2 and increasing for x>2x > 2.
  • A single point has no direction of its own. So x=2x = 2 can go in either interval (x≤2x \le 2 or x≥2x \ge 2) and both statements stay true.

The answer to "where is ff increasing?" is a set of xx-values written as inequalities, such as x<−1x < -1 or x>3x > 3. ("Increasing at x=2x = 2" in a question is shorthand for f′(2)>0f'(2) > 0.)

A gap in the domain splits the answer

  • Take 1x\dfrac{1}{x}. Its derivative −1x2-\dfrac{1}{x^{2}} is negative wherever it exists.
  • Yet f(−1)=−1f(-1) = -1 is smaller than f(1)=1f(1) = 1, so ff is not decreasing across the gap. It is decreasing on x<0x < 0 and, separately, on x>0x > 0.

Some functions go one way throughout (exe^{x} increases for every xx). Most change direction; the work is finding where.

2The sign of f′f' gives the direction

Figure 1 shows the cubic f(x)=x3−3x2−9x+5f(x) = x^{3} - 3x^{2} - 9x + 5 with five tangents.

Figure 1 · The sign of the gradient tells you the direction x y −2 −1 1 2 3 4 −20 −10 10 f′ > 0 f′ = 0 f′ < 0 f′ = 0 f′ > 0 y = x³ − 3x² − 9x + 5 Moving left to right: tangents slope up where f is increasing, down where it is decreasing, and are horizontal at the two points where it turns.
Figure 1 · The sign of the gradient tells you the direction

Where the curve climbs, the gradient is positive. Where it falls, it is negative. At the hump and the dip the tangent is horizontal. So:

f′(x)>0f'(x) > 0 on an interval ⇒f\Rightarrow f is increasing there. f′(x)<0⇒ff'(x) < 0 \Rightarrow f is decreasing. f′(x)=0⇒f'(x) = 0 \Rightarrow the tangent is horizontal: a stationary point.

  • The arrows go one way only.
    • An increasing function can still have f′(x)=0f'(x) = 0 at a single point (x3x^{3} at the origin, section 7). So "increasing" does not force f′>0f' > 0 everywhere.
  • If f′(x)=0f'(x) = 0 for every xx in a whole interval, ff is constant there: neither increasing nor decreasing.
  • A point where f′(x)=0f'(x) = 0 is a stationary point. The hump and the dip in Figure 1 are stationary points.
    • They are also turning points, because the direction changes there. Section 7 shows that the two are not always the same thing.
  • The rule holds for any rate of change. If h(t)h(t) is the depth of water in a tank, dhdt<0\dfrac{dh}{dt} < 0 means it is draining.

3Finding the intervals algebraically

The standard Paper 1 question, on the function from Figure 1.

Find the values of xx for which f(x)=x3−3x2−9x+5f(x) = x^{3} - 3x^{2} - 9x + 5 is decreasing.

f′(x)=3x2−6x−9differentiate term by term (5.3)f'(x) = 3x^{2} - 6x - 9 \qquad \textcolor{#838c91}{\text{differentiate term by term (5.3)}}3x2−6x−9=0stationary points: set f′(x)=03x^{2} - 6x - 9 = 0 \qquad \textcolor{#838c91}{\text{stationary points: set }f'(x) = 0}3(x2−2x−3)=03(x^{2} - 2x - 3) = 03(x+1)(x−3)=03(x + 1)(x - 3) = 0x=−1  or  x=3x = -1 \ \text{ or } \ x = 3
  • These two values split the number line into three intervals. f′f' is continuous, so it cannot change sign without passing through zero.
    • It keeps one sign on each interval. One test value per interval is enough. Use a table or a sign diagram (Figure 3).
intervalx<−1x < -1−1<x<3-1 < x < 3x>3x > 3
test valuex=−2x = -2x=0x = 0x=4x = 4
f′f'(test value)3(4)+12−9=153(4) + 12 - 9 = 15−9-948−24−9=1548 - 24 - 9 = 15
sign of f′f'++−-++
ff isincreasingdecreasingincreasing

So ff is decreasing for −1<x<3-1 < x < 3, and increasing for x<−1x < -1 and for x>3x > 3.

Figure 2 · Read f′ underneath f (a) y = f(x) = x³ − 3x² − 9x + 5 x y 3 −20 −10 10 −1 (−1, 10) (3, −22) (b) y = f′(x) = 3x² − 6x − 9 x y 10 20 30 −1 3 + + − Where f′ is above the x-axis, f is increasing. Where f′ is below it, f is decreasing. The x-intercepts of f′ are the x-coordinates of the stationary points of f.
Figure 2 · Read f′ underneath f

Figure 2 lines the two graphs up. The derivative y=3x2−6x−9y = 3x^{2} - 6x - 9 is a positive quadratic, negative between its roots. So ff falls exactly where f′f' is below the axis. That is often all you need.

Figure 3 is the sign diagram, the safest method when f′f' has more than two factors. Use one row per factor, then multiply the signs down each column.

Figure 3 · A sign diagram for f′(x) = 3(x + 1)(x − 3) x −1 3 x + 1 − + + x − 3 − − + f′(x) + − + f is increasing decreasing increasing f′ = 0 f′ = 0 Test the sign of each factor on each interval, multiply, then read off the direction of f.
Figure 3 · A sign diagram for f′(x) = 3(x + 1)(x − 3)

Writing the answer. Inequalities are the clearest: −1<x<3-1 < x < 3. The IB also writes open intervals with reversed brackets, ]−1,3[]-1, 3[. Two points need care.

  • Two separate pieces are joined with "or", or listed: x<−1x < -1, x>3x > 3. Never write −1>x>3-1 > x > 3, which no number satisfies.
  • At a stationary point f′f' is zero, not positive.
    • Yet ff is still increasing on x≤−1x \le -1, end point included, because f(−1)f(-1) is bigger than every value to its left. So x<−1x < -1 and x≤−1x \le -1 are both correct.
    • Strict inequalities match the rule f′(x)>0f'(x) > 0 and are the safe habit.

A negative leading coefficient flips everything

  • Take p(x)=−x3+3x2+45xp(x) = -x^{3} + 3x^{2} + 45x. Then p′(x)=−3x2+6x+45=−3(x+3)(x−5)p'(x) = -3x^{2} + 6x + 45 = -3(x + 3)(x - 5) is a negative quadratic, so it is positive between its roots.
  • So pp is increasing for −3<x<5-3 < x < 5 and decreasing for x<−3x < -3 and x>5x > 5. Count the −3-3 in the sign row.

4Restricted domains, undefined points and other functions

A restricted domain

  • Only the domain counts.
  • Roots of f′f' outside it are ignored, and the intervals stop at its ends.

Example: g(x)=2x3−9x2+12x+1g(x) = 2x^{3} - 9x^{2} + 12x + 1 for 1.5≤x≤41.5 \le x \le 4.

g′(x)=6x2−18x+12=6(x−1)(x−2)roots 1 and 2g'(x) = 6x^{2} - 18x + 12 = 6(x - 1)(x - 2) \qquad \textcolor{#838c91}{\text{roots 1 and 2}}

The root x=1x = 1 lies outside the domain, so the only split is at x=2x = 2. Test g′(1.8)=6(0.8)(−0.2)<0g'(1.8) = 6(0.8)(-0.2) < 0 and g′(3)=6(2)(1)=12>0g'(3) = 6(2)(1) = 12 > 0. So gg is decreasing for 1.5<x<21.5 < x < 2 and increasing for 2<x<42 < x < 4.

Writing 1.5≤x≤21.5 \le x \le 2 and 2≤x≤42 \le x \le 4 is also correct.

A fraction, or any function not defined everywhere

  • Split the number line at every xx where f′f' is zero and every xx where ff or f′f' is undefined.
  • Then test each piece.

Example: for r(x)=x2+3x+1r(x) = \dfrac{x^{2} + 3}{x + 1}, the quotient rule (5.6) gives

r′(x)=2x(x+1)−(x2+3)(x+1)2=x2+2x−3(x+1)2=(x+3)(x−1)(x+1)2the denominator is a square: never negativer'(x) = \frac{2x(x + 1) - (x^{2} + 3)}{(x + 1)^{2}} = \frac{x^{2} + 2x - 3}{(x + 1)^{2}} = \frac{(x + 3)(x - 1)}{(x + 1)^{2}} \qquad \textcolor{#838c91}{\text{the denominator is a square: never negative}}
  • The numerator is zero at x=−3x = -3 and x=1x = 1, and rr is undefined at x=−1x = -1.
    • Because (x+1)2>0(x + 1)^{2} > 0, the sign of r′r' is the sign of (x+3)(x−1)(x + 3)(x - 1).
  • So rr is increasing for x<−3x < -3 and for x>1x > 1. It is decreasing for −3<x<−1-3 < x < -1 and for −1<x<1-1 < x < 1.
    • Do not merge the last two into −3<x<1-3 < x < 1, because rr does not exist at x=−1x = -1.

Exponentials and logarithms.

  • For n(x)=x−2ln⁡xn(x) = x - 2\ln x the domain is x>0x > 0 and n′(x)=x−2xn'(x) = \dfrac{x - 2}{x}. So nn is decreasing for 0<x<20 < x < 2 and increasing for x>2x > 2.
  • For m(x)=x e−2xm(x) = x\,e^{-2x}, m′(x)=e−2x(1−2x)m'(x) = e^{-2x}(1 - 2x) has the sign of 1−2x1 - 2x, because e−2x>0e^{-2x} > 0. So mm is increasing for x<12x < \tfrac{1}{2} and decreasing for x>12x > \tfrac{1}{2}.

5Classifying a stationary point by the sign of f′f'

The direction on each side tells you what a stationary point is. This is the first derivative test, the core of "find, justify" questions.

  • f′f' changes from ++ to −- as xx increases through cc: ff climbs then falls, so there is a local maximum at x=cx = c.
  • f′f' changes from −- to ++: a local minimum.
  • f′f' has the same sign on both sides: no turn (section 7).
  • Example: classify the stationary points of w(x)=x3−12x+4w(x) = x^{3} - 12x + 4. Here w′(x)=3x2−12=3(x−2)(x+2)w'(x) = 3x^{2} - 12 = 3(x - 2)(x + 2), zero at x=±2x = \pm 2.
    • Test w′(−3)=15>0w'(-3) = 15 > 0, w′(0)=−12<0w'(0) = -12 < 0, w′(3)=15>0w'(3) = 15 > 0. The sign goes +,−,++, -, +, so there is a maximum at x=−2x = -2 and a minimum at x=2x = 2.
    • Substitute back: w(−2)=−8+24+4=20w(-2) = -8 + 24 + 4 = 20 and w(2)=8−24+4=−12w(2) = 8 - 24 + 4 = -12. So the maximum is (−2,20)(-2, 20) and the minimum is (2,−12)(2, -12).
  • Justify with the sign change: "w′w' changes from positive to negative at x=−2x = -2, so ww has a local maximum there."
    • Note local: this cubic has no highest point overall.

6Reading a graph of f′f'

  • Read one thing: is the graph of f′f' above or below the xx-axis?
    • Whether f′f' is itself rising or falling says nothing about the direction of ff. Only its sign does.

Figure 4(a) is a graph you might be given: y=f′(x)y = f'(x), crossing the xx-axis at −2-2, 1 and 3.

Figure 4 · Given the graph of f′, describe f (a) the given graph: y = f′(x) x y −20 −10 10 20 −2 1 3 − + − + (b) what it tells you: y = f(x) x y 1 3 4 12 −2 minimum maximum minimum Only the sign of f′ matters for direction: below the axis f falls, above it f rises. f′ crosses the axis three times, so f turns three times.
Figure 4 · Given the graph of f′, describe f

Read it from left to right.

  • x<−2x < -2: f′f' is below the axis, so ff is decreasing.
  • At x=−2x = -2, f′f' crosses from negative to positive, so ff stops falling and starts rising: ff has a minimum.
  • −2<x<1-2 < x < 1: f′f' is above the axis, so ff is increasing.
    • f′f' rises and then falls here, but it stays positive, so ff climbs throughout. The hump of f′f' marks where ff climbs most steeply, not a maximum of ff.
  • At x=1x = 1, f′f' goes from positive to negative: ff has a maximum.
  • 1<x<31 < x < 3: ff is decreasing, and at x=3x = 3, where f′f' goes from negative to positive, ff has another minimum.
  • x>3x > 3: ff is increasing.
  • Figure 4(b) shows a curve with those properties.
    • Its height can't be found from f′f' alone, because curves differing by a vertical shift share one derivative (5.5). But its shape is fixed.

Where f′f' crosses the axis from ++ to −-, ff has a maximum. Where it crosses from −- to ++, ff has a minimum. Where f′f' touches the axis without crossing, ff has a stationary point but does not turn.

The reverse trip: ff has a minimum at x=4x = 4 and a maximum at x=9x = 9. Then f′f' is negative, then positive, then negative, crossing the axis at 4 and 9. Do not sketch it the wrong way up.

7Stationary points that are not turning points

  • Take f(x)=x3f(x) = x^{3}. Then f′(x)=3x2f'(x) = 3x^{2}, which is zero at x=0x = 0. But 3x23x^{2} is positive on both sides of 0.
    • So the curve flattens at the origin and carries on upwards (Figure 5(a)). x3x^{3} is increasing on the whole real line.
  • A stationary point where the curve does not turn is a stationary point of inflexion; 5.7 and 5.8 come back to it.
Figure 5 · f′ = 0 does not always mean a turn (a) y = x³: f′(x) = 3x² ≥ 0 x y 1 −4 4 −1 increasing throughout (b) y = x⁴ − 4x³ + 10: f′(x) = 4x²(x − 3) x y 3 −17 (0, 10) stationary, not a turn (3, −17) minimum Both curves have a horizontal tangent at x = 0, but f′ does not change sign there, so the direction of the curve does not change. A stationary point is not always a turning point.
Figure 5 · f′ = 0 does not always mean a turn

Figure 5(b) puts the same idea in a longer question. For f(x)=x4−4x3+10f(x) = x^{4} - 4x^{3} + 10, f′(x)=4x3−12x2=4x2(x−3)f'(x) = 4x^{3} - 12x^{2} = 4x^{2}(x - 3).

The factor 4x24x^{2} is never negative. So the sign of f′f' is the sign of (x−3)(x - 3):

intervalx<0x < 00<x<30 < x < 3x>3x > 3
sign of 4x24x^{2}++++++
sign of x−3x - 3−-−-++
sign of f′f'−-−-++

So ff is decreasing for x<3x < 3 (the stationary point at x=0x = 0 does not interrupt it) and increasing for x>3x > 3, with a minimum at (3,−17)(3, -17).

  • A squared factor in f′f', or any even power, is the tell: a zero where the sign does not change.
    • So test the sign; never assume the signs alternate.

8Showing a function is always increasing

"Show that ff is increasing for all xx" normally means: show f′(x)>0f'(x) > 0 for every xx. There are three usual routes.

Every term is clearly positive

  • For f(x)=2x3+7x−1f(x) = 2x^{3} + 7x - 1, f′(x)=6x2+7≥7>0f'(x) = 6x^{2} + 7 \ge 7 > 0, since x2≥0x^{2} \ge 0.
  • So ff is increasing for all xx.

Complete the square, or use the discriminant. For f(x)=x3−4x2+9x+2f(x) = x^{3} - 4x^{2} + 9x + 2:

f′(x)=3x2−8x+9=3(x2−83x)+9=3(x−43)2−163+9complete the square=3(x−43)2+113\begin{aligned}f'(x) &= 3x^{2} - 8x + 9 \\[6pt] &= 3\left(x^{2} - \tfrac{8}{3}x\right) + 9 \\[6pt] &= 3\left(x - \tfrac{4}{3}\right)^{2} - \tfrac{16}{3} + 9 && \textcolor{#838c91}{\text{complete the square}} \\[6pt] &= 3\left(x - \tfrac{4}{3}\right)^{2} + \tfrac{11}{3}\end{aligned}≥113>0 for all xa square is never negative\ge \tfrac{11}{3} > 0 \text{ for all } x \qquad \textcolor{#838c91}{\text{a square is never negative}}

Or: f′f' is a positive quadratic with discriminant (−8)2−4(3)(9)=−44<0(-8)^{2} - 4(3)(9) = -44 < 0. So it has no roots and is positive for all xx.

Either argument is complete only with a closing sentence:

"f′(x)>0f'(x) > 0 for all xx, therefore ff is increasing for all xx."

A parameter

  • Find the values of pp for which f(x)=x3+px2+12xf(x) = x^{3} + px^{2} + 12x is increasing for all xx.
  • Here f′(x)=3x2+2px+12f'(x) = 3x^{2} + 2px + 12, a positive quadratic. So f′≥0f' \ge 0 everywhere exactly when its discriminant is not positive.
    • (Equivalently, its minimum value at the vertex, 12−p2312 - \tfrac{p^{2}}{3}, is not negative.)
(2p)2−4(3)(12)≤0(2p)^{2} - 4(3)(12) \le 04p2≤1444p^{2} \le 144−6≤p≤6-6 \le p \le 6
  • At p=±6p = \pm 6, f′(x)=3(x±2)2f'(x) = 3(x \pm 2)^{2}, zero at one point only. So ff is still increasing and the end values belong in the answer.
    • They drop out only if the question asks for f′(x)>0f'(x) > 0 for all xx: then −6<p<6-6 < p < 6.

Zeros that do not spoil it

  • If f′(x)≥0f'(x) \ge 0 and it is zero only at isolated points, ff is still increasing.
  • For s(x)=x−sin⁡xs(x) = x - \sin x, s′(x)=1−cos⁡x≥0s'(x) = 1 - \cos x \ge 0, zero only at x=0,±2π,…x = 0, \pm 2\pi, \dots. So ss is increasing for all xx.

9Using "increasing" as a tool

One-to-one, so an inverse

  • A function increasing on its whole domain never takes a value twice. So it is one-to-one and has an inverse (2.5).
  • Example: for f(x)=ex+3xf(x) = e^{x} + 3x, f′(x)=ex+3>0f'(x) = e^{x} + 3 > 0. So ff is increasing for all xx, hence one-to-one, hence f−1f^{-1} exists.

Proving an inequality

  • To show ex>1+xe^{x} > 1 + x for x>0x > 0, define g(x)=ex−1−xg(x) = e^{x} - 1 - x. Then g′(x)=ex−1>0g'(x) = e^{x} - 1 > 0 for x>0x > 0, so gg is increasing on x≥0x \ge 0.
  • Since g(0)=0g(0) = 0, every later value is bigger. So g(x)>0g(x) > 0 for x>0x > 0, which is the claim.
  • Method: move everything to one side, differentiate, show a sign, compare with a starting value.

10Intervals with technology

On Paper 2, when f′(x)=0f'(x) = 0 has no neat solutions:

  1. Graph y=f(x)y = f(x) over the domain given.
  2. Use the maximum and minimum tools to find the xx-coordinates of the turning points.
  3. Read the direction between them and write the intervals.

For f(x)=x−2sin⁡xf(x) = x - 2\sin x on 0≤x≤2π0 \le x \le 2\pi, Figure 6 shows the GDC output: a minimum at x≈1.05x \approx 1.05 and a maximum at x≈5.24x \approx 5.24.

Figure 6 · Reading intervals from a GDC graph x y 2 3 4 5 6 2 4 6 1 min (1.05, −0.685) max (5.24, 6.97) increasing decr. decr. f(x) = x − 2 sin x for 0 ≤ x ≤ 2π. The GDC's minimum and maximum give the x-values where f turns.
Figure 6 · Reading intervals from a GDC graph
  • So ff is decreasing for 0<x<1.050 < x < 1.05, increasing for 1.05<x<5.241.05 < x < 5.24, and decreasing again for 5.24<x<2π5.24 < x < 2\pi (3 s.f.).
    • With 5.6 you can check exactly: f′(x)=1−2cos⁡xf'(x) = 1 - 2\cos x is zero at x=π3≈1.047x = \dfrac{\pi}{3} \approx 1.047 and x=5π3≈5.236x = \dfrac{5\pi}{3} \approx 5.236.

Two cautions:

  • The GDC misses a stationary point of inflexion like the one in Figure 5 (which does not change the intervals).
  • The window must match the domain given, or you may report a turning point outside it.

You can also graph y=f′(x)y = f'(x) with the numerical derivative and find its axis crossings, the Figure 4 method.

Practice questions

8 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.