Skip to main content

Section 22 Monotonicity and first derivative test

Definition 22.1. Increasing, decreasing, monotonic.

Assume \(f\) is defined on the interval \(I\text{.}\)
  • \(f\) is increasing on \(I\) if \(a< b\) implies \(f(a)< f(b)\) for all \(a,b\in I\text{.}\)
  • \(f\) is decreasing on \(I\) if \(a< b\) implies \(f(a)> f(b)\) for all \(a,b\in I\text{.}\)
  • \(f\) is monotonic on \(I\) if it is either increasing on \(I\) or decreasing on \(I\text{.}\)

Proof.

Statement (1) is identical to Corollary 21.5, which we have already proved.
The proofs of (2) and (3) are nearly identical. We prove (2). Assume \(f'(x)> 0\) for all interior points \(x\in I\text{.}\) Suppose \(a,b\in I\) satisfy \(a< b\text{.}\) Since the function \(f\) is continuous on \([a,b]\) and differentiable on \((a,b)\text{,}\) the mean value theorem implies
\begin{equation*} f'(c)=\frac{f(b)-f(a)}{b-a} \end{equation*}
for some \(c\in (a,b)\text{.}\) But then, after a little algebra, we see that
\begin{equation*} f(b)=f'(c)(b-a)+f(a)> f(a)\text{,} \end{equation*}
since \(f'(c)> 0\) by assumption. Thus we have shown
\begin{equation*} a< b\implies f(a)< f(b) \end{equation*}
for all \(a,b\in I\text{.}\) In other words, \(f\) is increasing on \(I\text{.}\)
Before putting Theorem 22.2 to good analytic work on some example functions, we first illustrate that we cannot apply the theorem if the underlying set is not an interval.

Example 22.3. Monotonicity: reciprocal.

Let \(f(x)=\frac{1}{x}\) with domain \(D=\R-\{0\}\text{.}\) Observe that \(f'(x)=-1/x^2\) is negative for all \(x\in D\text{.}\) However it is not true that \(f\) is decreasing on its entire domain \(D\text{:}\) indeed, we have \(-1< 1\text{,}\) and yet \(-1=f(-1)\not> f(1)=1\text{.}\)
What went wrong here? Why couldn’t we apply Theorem 22.2? The answer is that \(D\) is not an interval! In fact we have
\begin{equation*} D=\underset{I_1}{(-\infty, 0)}\cup \underset{I_2}{(0,\infty)}\text{,} \end{equation*}
a union of two intervals. We are permitted to apply Theorem 22.2 to \(I_1\) and \(I_2\) separately to conclude that \(f\) is decreasing on each of these intervals, but this does not imply that it is increasing on their union.
According to Theorem 22.2 determining the sets on which a function \(f\) is increasing/decreasing essentially amounts to solving the inequalities \(f'(x)> 0\) and \(f'(x)< 0\text{.}\) This is most efficiently done using a sign diagram of \(f'\text{,}\) as illustrated in the next example and defined more precisely in Procedure 22.5.

Example 22.4. Monotonicity: polynomial.

Let \(f(x)=3x^5-5x^3\text{.}\) Find all intervals where \(f\) is increasing, and all intervals where \(f\) is decreasing.
Solution.
We compute
\begin{equation*} f'(x)=15x^4-15x^2=15x^2(x^2-1)=15x^2(x-1)(x+1)\text{.} \end{equation*}
Since \(f'\) is continuous, and since \(0,1,-1\) are the only roots of \(f'\text{,}\) the intermediate value theorem implies that \(f'\) is either always positive or always negative on each of the resulting intervals \((-\infty,-1),(-1,0),(0,1),(1,\infty)\text{.}\) This means we can determine the sign of \(f'\) on each interval by evaluating it at one test point. It is easy to see that
\begin{align*} f'(-2) \amp > 0\\ f'(-1/2) \amp < 0 \\ f'(1/2) \amp < 0\\ f'(2) \amp > 0\text{.} \end{align*}
Thus the sign of \(f'\) for various portions of the real line is described by the following sign diagram.
Sign diagram for derivative of f
Note that underneath the information about the sign of \(f'\text{,}\) we have indicated the implied increasing/decreasing behavior of \(f\text{.}\)
From the sign diagram we conclude that \(f\) is increasing on the intervals \((-\infty, -1]\) and \([1,\infty)\text{,}\) and decreasing on the interval \([-1,1]\text{.}\)
Let’s give a formal description of the technique used in the example above.

Example 22.8. Classifying critical points: polynomial.

Let \(f(x)=3x^5-5x^3\text{.}\) Find all critical points of \(f\text{,}\) and for each critical point \(a\) classify \(f(a)\) as a local maximum value of \(f\text{,}\) a local minimum value of \(f\text{,}\) or neither.
Solution.
In the course of the sign diagram from Example 22.4 we saw that \(x=-1,0,1\) were the critical points of \(f\text{.}\) Since the sign of \(f'\) switches from positive to negative at \(-1\text{,}\) \(f(-1)\) is a local maximum value of \(f\text{;}\) since the sign of \(f'\) switches from negative to positive at \(1\text{,}\) \(f(1)\) is a local minimum value of \(f\text{.}\) Since \(f'(x)\ne 0\) for \(x\) close to \(0\) and since the sign of \(f'\) does not switch at \(x=0\text{,}\) we see that \(f(0)\) is neither a local maximum nor a local minimum value.

Example 22.9. Monotonicity and critical points: trig.

Let \(f(x)=2\cos x+\sqrt{2}\cos^2 x\) and let \(I=[\pi/2, 3\pi/2]\text{.}\)
  1. Find all critical points of \(f\text{,}\) and for each critical point \(a\) classify \(f(a)\) as a local maximum value of \(f\text{,}\) a local minimum value of \(f\text{,}\) or neither.
  2. Apply Procedure 22.5 to find the intervals of monotonicity of \(f\) within \(I\text{.}\)
Solution.
We first compute
\begin{align*} f'(x) \amp = -2\sin x-\sqrt{2}\cos x\sin x=-2\sin x(1+\sqrt{2}\cos x) \text{.} \end{align*}
Since \(f\) is differentiable everywhere, critical points of \(f\) are solutions to \(f'(x)=0\text{.}\) We thus solve:
\begin{align*} f'(x) \amp =0\\ -2\sin x(1+\sqrt{2}\cos x) \amp = 0\\ \sin x =0 \amp\text{ or } 1+\sqrt{2}\cos x=0 \\ \sin x =0 \amp \text{ or } \cos x=-\frac{1}{\sqrt{2}} \text{.} \end{align*}
We have \(\sin x=0\) if and only if \(x=\pi n\) for some integer \(n\in \Z\text{.}\) Only one of these solutions lies in \(I=[\pi/2,3\pi /2]\text{:}\) namely, \(x=\pi\text{.}\) Next, observing that \(1/\sqrt{2}=\sqrt{2}/2\text{,}\) and recalling facts about the unit circle, we see that \(x\) solves \(\cos x=-1/\sqrt{2}=-\sqrt{2}/2\) if and only if
\begin{equation*} x=\frac{3\pi }{4}+2\pi n \text{ or } x=\frac{5\pi }{4}+2\pi n \end{equation*}
for some integer \(n\in \Z\text{.}\) There are exactly two such solutions lying in \([\pi/2, 3\pi/2]\text{:}\) namely, \(x=3\pi/4\) and \(x=5\pi /4\text{.}\) In conclusion, the critical points of \(f\) are \(3\pi/4, \pi, 5\pi/4\text{.}\)
To finish the problem essentially all we have to do is produce the sign diagram of \(f'\text{.}\)
Sign diagram of derivative of trig function
This was produced by performing the following test point evaluations:
\begin{align*} f'(2\pi/3) \amp = -2(\sqrt{3}/2)(1-\sqrt{2}/2)< 0 \\ f'(5\pi/6) \amp = -2(1/2)(1-\sqrt{6}/2)> 0 \amp (\sqrt{6}> 2)\\ f'(7\pi/6) \amp = -2(-1/2)(1-\sqrt{2}/2)< 0 \amp (\sqrt{6}> 2)\\ f'(4\pi/3) \amp = -2(-\sqrt{3}/2)(1-\sqrt{2}/2)> 0 \text{.} \end{align*}
It follows that \(f(3\pi/4)\) is a local minimum value, \(f(\pi)\) is a local maximum value, and \(f(5\pi/4)\) is a local minimum value of \(f\text{.}\)
Furthermore, we see that within the interval \([\pi,3\pi/2]\) the function \(f\) is increasing on \([\pi,3\pi/4]\) and \([\pi, 5\pi /4]\text{,}\) and decreasing on \([3\pi/4, \pi]\) and \([5\pi/4, 3\pi /2]\text{.}\)
We verify our conclusions below with the actual graph of \(f\) on \([\pi, 3\pi/2]\text{.}\)
Graph of the trig function of the example
Figure 22.10. Graph of \(f(x)=2\cos x+\sqrt{2}\cos^2 x\)

Example 22.11. Monotonicity and critical points: radical.

Let \(f(x)=x\, \sqrt{7-x^2}\text{.}\) Find all critical points of \(f\text{,}\) and for each critical point \(a\) classify \(f(a)\) as a local maximum value of \(f\text{,}\) local minimum value of \(f\text{,}\) or neither.
Solution.
Note first that the implied domain \(D\) of \(f\) is
\begin{equation*} D=\{x\in \R\colon 7-x^2\geq 0\}=\{x\in \R\colon -\sqrt{7}\leq x\leq \sqrt{7}\}=[-\sqrt{7},\sqrt{7}]\text{.} \end{equation*}
Following Procedure 22.7, we first determine the critical points of \(f\text{.}\) Note first that in this case \(f\) is not differentiable at \(\pm \sqrt{7}\text{,}\) making these critical points. Next, for all \(x\ne \pm \sqrt{7}\text{,}\) we compute \(f'(x)\) using the product and chain rules:
\begin{align*} f'(x) \amp =\sqrt{7-x^2}-\frac{x^2}{\sqrt{7-x^2}} \\ \amp =\frac{1}{\sqrt{7-x^2}}(7-x^2-x^2)\\ \amp \frac{7-2x^2}{\sqrt{7-x^2}}\text{.} \end{align*}
It follows that we have \(f'(x)=0\) if and only if \(7-2x^2=0\text{,}\) or equivalently, \(x=\pm \sqrt{7/2}\text{.}\) We conclude that there are in total four critical points: \(x=\pm \sqrt{7}\) (where \(f\) is not differentiable), and \(x=\pm\sqrt{7/2}\text{.}\)
Sign diagram for derivative of example function
This diagram was the result of the following test point evaluations of \(f'\text{:}\)
\begin{align*} f'(-2) \amp = -\frac{1}{\sqrt{3}}< 0 \\ f'(0) \amp = \frac{7}{\sqrt{7}}> 0\\ f'(2) \amp = -\frac{1}{\sqrt{3}}< 0 \text{.} \end{align*}
Note that \(\sqrt{7/2}< 2< \sqrt{7}\text{.}\)
We conclude that \(f(-\sqrt{7})\) and \(f(\sqrt{7/2})\) are local maximum values, and \(f(-\sqrt{7/2}\) and \(f(\sqrt{7}\) are local minimum values. These conclusions are verified by the actual graph of \(f\text{.}\)
Graph of the original function of the example
Figure 22.12. Graph of \(f(x)=x\, \sqrt{7-x^2}\)