Lemonmath
Tiếng Việt

Monotonicity and extrema

Lesson 1.1 · 24 min read · Updated

A drone flies for 77 minutes. Its height after tt minutes is h(t)=t3−12t2+36t+10h(t)=t^3-12t^2+36t+10 (metres). It takes off from a rooftop at a height of 1010 m, after 22 minutes it is at 4242 m, after 66 minutes it is back down at 1010 m, and it reaches 1717 m when time is up. So during which time intervals is the drone climbing, during which is it descending, and at which moments does it "turn round"?

To answer exactly, we do not need the height at lots of moments. We only need the sign of the derivative h′(t)h'(t).

Monotonicity

Explore: when does the graph go up?

We compute the height at whole minutes, and the derivative h′(t)=3t2−24t+36=3(t−2)(t−6)h'(t)=3t^2-24t+36=3(t-2)(t-6):

tt 00 11 22 33 44 55 66 77
h(t)h(t) 1010 3535 4242 3737 2626 1515 1010 1717
h′(t)h'(t) 3636 1515 00 −9-9 −12-12 −9-9 00 1515

From t=0t=0 to t=2t=2 the height increases and h′>0h'>0. From t=2t=2 to t=6t=6 the height decreases and h′<0h'<0. After t=6t=6 the height increases again and h′>0h'>0. This makes sense: h′(t)h'(t) is the gradient of the tangent, and a positive gradient means the graph is going up.

123456710203040xyO(2, 42)(6, 10)
Height of the drone h(t)=t3−12t2+36t+10h(t)=t^3-12t^2+36t+10

Why is it true? The derivative f′(x)f'(x) is the limit of the ratio f(x2)−f(x1)x2−x1\dfrac{f(x_2)-f(x_1)}{x_2-x_1}. If the graph has an upward-sloping tangent at every point of KK, it cannot go down anywhere in KK. A few points with a horizontal tangent (like y=x3y=x^3 at x=0x=0) do not make the graph turn round.

To study monotonicity, we work in this order:

  1. Find the domain.
  2. Compute f′(x)f'(x) and find the points where f′(x)=0f'(x)=0 (the stationary points) or f′(x)f'(x) is undefined.
  3. Draw the table of variations: find the sign of f′f' on each interval.
  4. State the intervals where ff increases and decreases.

The next example shows that f′(x0)=0f'(x_0)=0 does not always make the function turn round.

Extrema of a function

In the drone problem, the moment t=2t=2 gives a height greater than at all nearby moments, although it is not necessarily the highest of the whole flight. We say that hh has a local maximum at t=2t=2.

The reason: a change from ++ to −- means the graph goes up just before x0x_0 and down just after it, so f(x0)f(x_0) is greater than the nearby values. In Example 1, y′y' changes sign from ++ to −- at x=1x=1, so ff has a local maximum at x=1x=1 with ymax=5y_{\text{max}}=5; likewise ff has a local minimum at x=3x=3 with ymin=1y_{\text{min}}=1.

-2.5-2.0-1.5-1.0-0.50.51.01.52.02.512456xyO(-1, 2)(0, 3)(1, 2)
The graph of y=x4−2x2+3y=x^4-2x^2+3

For a rational function, a value that makes the denominator zero is not in the domain, but it must still be written in the table of variations to split the intervals.

2468-10-551015xy(-1, -2)(3, 6)
The graph of y=x2+3x−1y=\dfrac{x^2+3}{x-1}

Using the second derivative

When the sign of f′f' is hard to find (often with trigonometric functions), we can use the second derivative (grade 11).

Finally, we answer the question about the drone from the start of the lesson.

Key terms

Summary

  • f′>0f'>0 on KK means ff is increasing on KK; f′<0f'<0 means decreasing. If f′≥0f'\ge0 and it is zero at only finitely many points, ff is still increasing.
  • Steps: domain → f′f' and its roots → table of variations → conclusion for each interval.
  • f′f' changes sign +→−+\to- at x0x_0: local maximum; −→+-\to+: local minimum. No sign change: no extremum.
  • Second-derivative test: f′(x0)=0f'(x_0)=0 and f′′(x0)<0f''(x_0)<0 gives a local maximum, f′′(x0)>0f''(x_0)>0 a local minimum.
  • Distinguish the point x0x_0 where the extremum occurs, the extreme value f(x0)f(x_0), and the turning point of the graph (x0,f(x0))(x_0, f(x_0)).

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

Find the intervals on which y=−x3+3x2+1y=-x^3+3x^2+1 is increasing or decreasing.

What you need and how to start

What you need: if y′>0y'>0 on an interval, the function is increasing there; if y′<0y'<0, it is decreasing.

Steps:

  1. Compute y′y' and factorise it.
  2. Find the sign of y′y' (mind the negative coefficient).
Show solution

y′=−3x2+6x=−3x(x−2)y'=-3x^2+6x=-3x(x-2), with roots 00 and 22. The quadratic has a=−3<0a=-3<0, so it is positive between the roots and negative outside them.

Answer. Increasing on (0,2)(0, 2); decreasing on (−∞,0)(-\infty, 0) and (2,+∞)(2, +\infty).

Exercise 2

Find the extrema of y=x4−8x2+1y=x^4-8x^2+1.

What you need and how to start

What you need: y′y' changes sign from −- to ++ at a local minimum and from ++ to −- at a local maximum.

Steps:

  1. Compute y′=4x3−16xy'=4x^3-16x and find its three roots.
  2. Draw the table of variations.
  3. Compute yy at these points.
Show solution

y′=4x(x−2)(x+2)y'=4x(x-2)(x+2), with roots −2-2, 00, 22. The signs of y′y' on the four intervals are −,+,−,+-, +, -, +. So there is a local minimum at x=±2x=\pm2 with y=16−32+1=−15y=16-32+1=-15, and a local maximum at x=0x=0 with y=1y=1.

Answer. ymin=−15y_{\text{min}}=-15 at x=±2x=\pm2; ymax=1y_{\text{max}}=1 at x=0x=0.

Exercise 3

Determine where y=x+2x−1y=\dfrac{x+2}{x-1} is increasing or decreasing.

What you need and how to start

What you need: (ax+bcx+d)′=ad−bc(cx+d)2\left(\dfrac{ax+b}{cx+d}\right)'=\dfrac{ad-bc}{(cx+d)^2}.

Steps:

  1. Find the domain.
  2. Compute y′y' and look at the sign of the numerator.
Show solution

D=R∖{1}D=\mathbb{R}\setminus\{1\} and y′=1⋅(−1)−2⋅1(x−1)2=−3(x−1)2<0y'=\dfrac{1\cdot(-1)-2\cdot1}{(x-1)^2}=\dfrac{-3}{(x-1)^2}<0 for every x∈Dx\in D.

Answer. The function is decreasing on each interval (−∞,1)(-\infty, 1) and (1,+∞)(1, +\infty), and has no extremum.

Exercise 4

Find the extrema of y=x+4xy=x+\dfrac{4}{x}.

What you need and how to start

What you need: write y′y' as one fraction to find its sign; remember x=0x=0 is not in the domain.

Steps:

  1. Compute y′=1−4x2=x2−4x2y'=1-\dfrac{4}{x^2}=\dfrac{x^2-4}{x^2}.
  2. Draw the table of variations with the values −2-2, 00, 22 marked.
Show solution

y′=(x−2)(x+2)x2y'=\dfrac{(x-2)(x+2)}{x^2} has the sign of (x−2)(x+2)(x-2)(x+2): positive when ∣x∣>2|x|>2, negative when 0<∣x∣<20<|x|<2. So y′y' changes sign +→−+\to- at x=−2x=-2 and −→+-\to+ at x=2x=2.

Answer. ymax=y(−2)=−4y_{\text{max}}=y(-2)=-4; ymin=y(2)=4y_{\text{min}}=y(2)=4.

Exercise 5

A function y=f(x)y=f(x) has derivative f′(x)=x(x−1)2(x+2)f'(x)=x(x-1)^2(x+2) for every x∈Rx\in\mathbb{R}. Is each claim true or false?

a) ff is increasing on the interval (0,+∞)(0, +\infty).

b) ff has three turning points.

c) ff has a local maximum at x=−2x=-2.

d) ff is decreasing on the interval (−2,1)(-2, 1).

What you need and how to start

What you need: the factor (x−1)2(x-1)^2 is non-negative, so it does not make f′f' change sign; extrema occur only where f′f' changes sign.

Steps:

  1. Make a sign table of f′f' with the values −2-2, 00, 11 marked.
  2. Read off where ff increases or decreases and where f′f' changes sign.
Show solution

f′f' has the sign of x(x+2)x(x+2) (except at x=1x=1, where f′=0f'=0): positive on (−∞,−2)(-\infty, -2), negative on (−2,0)(-2, 0), positive on (0,1)(0, 1) and (1,+∞)(1, +\infty).

a) True: f′≥0f'\ge 0 on (0,+∞)(0, +\infty) and it is zero only at x=1x=1.

b) False: f′f' changes sign only at x=−2x=-2 and x=0x=0, so there are two turning points.

c) True: f′f' changes sign from ++ to −- at x=−2x=-2.

d) False: on (0,1)(0, 1) we have f′>0f'>0.

Answer. a) True; b) False; c) True; d) False.

Exercise 6

The function y=x3−3x2−9x+4y=x^3-3x^2-9x+4 has a local maximum value ymaxy_{\text{max}} and a local minimum value yminy_{\text{min}}. Compute ymax−yminy_{\text{max}}-y_{\text{min}}.

What you need and how to start

What you need: for a cubic with two extrema and a>0a>0, the local maximum occurs at the smaller root of y′y'.

Steps:

  1. Solve y′=3x2−6x−9=0y'=3x^2-6x-9=0.
  2. Compute yy at the two roots.
Show solution

y′=3(x+1)(x−3)y'=3(x+1)(x-3). Since a=3>0a=3>0, y′y' changes sign +→−+\to- at x=−1x=-1 and −→+-\to+ at x=3x=3. y(−1)=−1−3+9+4=9y(-1)=-1-3+9+4=9, y(3)=27−27−27+4=−23y(3)=27-27-27+4=-23. The difference is 9−(−23)=329-(-23)=32.

Answer. 3232.

Exercise 7

The concentration of a medicine in the blood tt hours after an injection is C(t)=30tt2+9C(t)=\dfrac{30t}{t^2+9} (mg/l), t>0t>0. During which time interval does the concentration increase, and when does it decrease? When does it reach its local maximum, and what is that value?

What you need and how to start

What you need: the quotient rule (uv)′=u′v−uv′v2\left(\dfrac{u}{v}\right)'=\dfrac{u'v-uv'}{v^2}.

Steps:

  1. Compute C′(t)C'(t) and simplify the numerator.
  2. Find the sign of C′(t)C'(t) for t>0t>0.
Show solution

C′(t)=30(t2+9)−30t⋅2t(t2+9)2=30(9−t2)(t2+9)2C'(t)=\dfrac{30(t^2+9)-30t\cdot 2t}{(t^2+9)^2}=\dfrac{30(9-t^2)}{(t^2+9)^2}. For t>0t>0: C′>0C'>0 when 0<t<30<t<3 and C′<0C'<0 when t>3t>3. So CC has a local maximum at t=3t=3, C(3)=9018=5C(3)=\dfrac{90}{18}=5.

Answer. It increases during the first 33 hours and decreases afterwards; the local maximum is 55 mg/l at t=3t=3 hours.

Exercise 8 Review

Find the extrema of y=x+2cos⁡xy=x+2\cos x on the interval (0,π)(0, \pi).

What you need and how to start

What you need: the equation sin⁡x=12\sin x=\dfrac12 (basic trigonometric equations, grade 11) and the second-derivative test.

Steps:

  1. Solve y′=1−2sin⁡x=0y'=1-2\sin x=0 on (0,π)(0, \pi).
  2. Compute y′′=−2cos⁡xy''=-2\cos x at each root.
Show solution

sin⁡x=12\sin x=\dfrac12 gives x=π6x=\dfrac{\pi}{6} or x=5π6x=\dfrac{5\pi}{6}. y′′(π6)=−3<0y''\left(\dfrac{\pi}{6}\right)=-\sqrt3<0: local maximum; y′′(5π6)=3>0y''\left(\dfrac{5\pi}{6}\right)=\sqrt3>0: local minimum.

Answer. ymax=π6+3y_{\text{max}}=\dfrac{\pi}{6}+\sqrt3 at x=π6x=\dfrac{\pi}{6}; ymin=5π6−3y_{\text{min}}=\dfrac{5\pi}{6}-\sqrt3 at x=5π6x=\dfrac{5\pi}{6}.

Exercise 9 Review

Prove that y=x3+x2+x+1y=x^3+x^2+x+1 is increasing on R\mathbb{R}.

What you need and how to start

What you need: a quadratic expression with Δ<0\Delta<0 always has the sign of aa (see the sign of a quadratic expression).

Steps:

  1. Compute y′y'.
  2. Compute the discriminant of y′y' and look at the sign of aa.
Show solution

y′=3x2+2x+1y'=3x^2+2x+1 has Δ=4−12=−8<0\Delta=4-12=-8<0 and a=3>0a=3>0, so y′>0y'>0 for every xx.

Answer. y′>0y'>0 for every x∈Rx\in\mathbb{R}, so the function is increasing on R\mathbb{R}.

Exercise 10 Challenge

Find the intervals on which y=x4−x2y=x\sqrt{4-x^2} is increasing or decreasing, and its extrema.

What you need and how to start

What you need: (u)′=u′2u\left(\sqrt{u}\right)'=\dfrac{u'}{2\sqrt{u}}; a square root is defined only when the expression under it is non-negative.

Steps:

  1. Find the domain.
  2. Compute y′y' and write it as a single fraction.
  3. Find the sign of the numerator on (−2,2)(-2, 2).
Show solution

D=[−2,2]D=[-2, 2]. On (−2,2)(-2, 2): y′=4−x2−x24−x2=4−2x24−x2,y'=\sqrt{4-x^2}-\frac{x^2}{\sqrt{4-x^2}}=\frac{4-2x^2}{\sqrt{4-x^2}}, which is zero when x=±2x=\pm\sqrt2. The numerator is positive when ∣x∣<2|x|<\sqrt2 and negative when 2<∣x∣<2\sqrt2<|x|<2. y(2)=2⋅2=2y(\sqrt2)=\sqrt2\cdot\sqrt2=2, y(−2)=−2y(-\sqrt2)=-2.

Answer. Increasing on (−2,2)(-\sqrt2, \sqrt2), decreasing on (−2,−2)(-2, -\sqrt2) and (2,2)(\sqrt2, 2); ymin=−2y_{\text{min}}=-2 at x=−2x=-\sqrt2, ymax=2y_{\text{max}}=2 at x=2x=\sqrt2.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. On which of these intervals is y=x3−3x2+2y=x^3-3x^2+2 decreasing?
Question 2. The function y=−x3+3x+1y=-x^3+3x+1 has a local maximum at
Question 3. A function y=f(x)y=f(x) has a second derivative on R\mathbb{R}, with f′(2)=0f'(2)=0 and f′′(2)=−3f''(2)=-3. Which statement is correct?
Question 4. Which function is increasing on R\mathbb{R}?

Part II. True or false

Question 1. Let f(x)=2x3−3x2−12x+1f(x)=2x^3-3x^2-12x+1.
a) f′(x)=6x2−6x−12f'(x)=6x^2-6x-12.
b) ff is increasing on the interval (−1,2)(-1, 2).
c) The local maximum value of ff is 88.
d) The line through the two turning points of the graph has gradient 99.

Part III. Short answer

Question 1. Find the sum of the local maximum value and the local minimum value of y=−x4+8x2−3y=-x^4+8x^2-3.

Question 2. The water level in a reservoir after tt hours is modelled by h(t)=t3−15t2+60t+100h(t)=t^3-15t^2+60t+100 (cm), 0≤t≤120\le t\le 12. For how many hours does the water level fall? Give your answer to 1 decimal place.

Show answers and explanations
  1. Part I, question 1: C. y′=3x2−6x=3x(x−2)y'=3x^2-6x=3x(x-2) has a=3>0a=3>0, so y′<0y'<0 between the roots 00 and 22. Option D comes from solving y′=0y'=0 wrongly as x=0x=0, x=−2x=-2.
  2. Part I, question 2: B. y′=−3(x−1)(x+1)y'=-3(x-1)(x+1) changes sign from ++ to −- as xx passes through 11. Option C is the local maximum value y(1)=3y(1)=3, not where it occurs; x=0x=0 is the root of y′′y''.
  3. Part I, question 3: D. By the second-derivative test, f′(2)=0f'(2)=0 and f′′(2)<0f''(2)<0 give a local maximum at x=2x=2. The number −3-3 is the value of f′′(2)f''(2), not a point.
  4. Part I, question 4: A. y′=3x2+3>0y'=3x^2+3>0 for every xx. Function C is increasing only on each interval (−∞,−3)(-\infty, -3) and (−3,+∞)(-3, +\infty), because it is undefined at x=−3x=-3; function D has y′=4x(x2+1)y'=4x(x^2+1), which is negative for x<0x<0.
  5. Part II, question 1: a) True; b) False; c) True; d) False. a) True: differentiate term by term. b) False: f′(x)=6(x+1)(x−2)<0f'(x)=6(x+1)(x-2)<0 on (−1,2)(-1, 2), so ff is decreasing. c) True: f′f' changes sign from ++ to −- at x=−1x=-1 and f(−1)=8f(-1)=8. d) False: the turning points are (−1,8)(-1, 8) and (2,−19)(2, -19), so the gradient is −19−82−(−1)=−9\dfrac{-19-8}{2-(-1)}=-9.
  6. Part III, question 1: 10. y′=−4x(x−2)(x+2)y'=-4x(x-2)(x+2); there is a local maximum at x=±2x=\pm2 with ymax=13y_{\text{max}}=13 and a local minimum at x=0x=0 with ymin=−3y_{\text{min}}=-3. The sum is 13+(−3)=1013+(-3)=10 (the local maximum value is counted once).
  7. Part III, question 2: 4.5. h′(t)=3(t2−10t+20)<0h'(t)=3(t^2-10t+20)<0 when 5−5<t<5+55-\sqrt5<t<5+\sqrt5, and this whole interval lies in [0,12][0, 12]. Its length is 25≈4.472\sqrt5\approx 4.47, which rounds to 4.54.5 hours.