Section6.3Consequences of the Mean Value Theorem¶ permalink

Just as the Mean Value Theorem for Integrals was used to describe the monotonicity of accumulation functions in terms of the sign of the rate function, the Mean Value Theorem allows us to find the monotonicity of any differentiable function in terms of the sign of its derivative.

Theorem6.3.1Monotonicity of Differentiable Functions

Suppose that \(f\) is a differentiable on an interval \(I\) (open or closed).

If \(f'(x) \gt 0\) for all \(x \in I\), then \(f(x)\) is increasing on \(I\).

If \(f'(x) \lt 0\) for all \(x \in I\), then \(f(x)\) is decreasing on \(I\).

If \(f'(x) = 0\) for all \(x \in I\), then \(f(x)\) is constant on \(I\).

If the interval \(I\) is open but \(f\) is continuous up to and including the end-points, then the conclusion can be extended to include the end-points as well.

Consider any two points \(a,b \in I\) with \(a \lt b\). Because \(f\) is differentiable on \(I\), we know that \(f\) is continuous and differentiable on the subinterval \([a,b]\). The Mean Value Theorem guarantees the existence of a point \(c \in (a,b)\) such that \begin{equation*}f(b)-f(a) = f'(c)\cdot(b-a).\end{equation*}

Now assume that \(f'(x) \gt 0\) for all \(x \in I\). Then \(f'(c) \gt 0\) and \(b-a \gt 0\), guaranteeing that \(f(b)-f(a) \gt 0\). That is, \(f(b) \gt f(a)\). This is what is needed to show that \(f\) is increasing on \(I\).

Next assume that \(f'(x) \lt 0\) for all \(x \in I\). Then \(f'(c) \lt 0\) while \(b-a \gt 0\), guaranteeing that \(f(b)-f(a) \lt 0\). That is, \(f(b) \lt f(a)\), which shows that \(f\) is decreasing on \(I\).

Finally assume that \(f'(x) = 0\) for all \(x \in I\). Then \(f'(c) = 0\), implying that \(f(b)-f(a) = 0\). That is, \(f(b) = f(a)\), which shows that \(f\) is constant on \(I\).

Subsection6.3.1Describing Monotonicity Using Derivatives

Because of the theorem about monotonicity, we can understand the behavior of a function if we can find all of the intervals on which the derivative is positive, negative or zero. The only points where \(f'\) might change sign are where \(f'(x)=0\) or where \(f'(x)\) is discontinuous.

Our strategy will be as follows.

Compute \(f'(x)\).

Solve the equation \(f'(x)=0\).

Use the roots and discontinuities of \(f'(x)\) to identify all relevant intervals.

Test the sign of \(f'(x)\) on each interval.

Apply the Monotonicity theorem to determine the behavior of \(f\) on each interval.

Example6.3.2

Describe the intervals of monotonicity for the function \(f(x) = x^3-2x^2-4x\).

Solve \(f'(x)=0\). This will require factoring. \begin{gather*}
3x^2-4x-4=0\\
(3x+2)(x-2)=0
\end{gather*} There are two possibilities, \(3x+2=0\) or \(x-2=0\). The first leads to \(x=-\frac{2}{3}\); the second leads to \(x=2\).

\(f'(x)\) exists for every value \(x\), so we use these two roots to break the number line into intervals: \((-\infty, -\frac{2}{3})\), \((-\frac{2}{3},2)\) and \((2,\infty)\). It can be convenient to use a graphical number line to identify the intervals, as shown below. We put \(x\)-values below the line and the corresponding values of \(f'(x)\) above the line.

We test the sign of \(f'(x)\) at a point in each of the intervals. Because we factored \(f'(x) = (3x+2)(x-2)\), we can quickly determine the sign by looking at the signs of the factors. We do not need the actual value, so I will summarize the sign of the factor with \(+\) or \(-\). We need to choose one point from each interval.\begin{align*}
f'(-1) &= (3(-1)+2)(-1-2) = (-)(-) = +\\
f'(0) &= (3(0)+2)(0-2) = (+)(-) = -\\
f'(3) &= (3(3)+2)(3-2) = (+)(+) = +
\end{align*} We can summarize these results on our number line by marking the sign of \(f'(x)\) above each interval.

We finish by interpreting the results. Because \(f(x)\) is a polynomial, it is continuous. We can extend all of our monotonicity conclusions to include the end-points.

\(f'(x) \gt 0\) on \((-\infty,-\frac{2}{3})\) \(\implies\) \(f(x)\) is increasing on \((-\infty,-\frac{2}{3}]\).

\(f'(x) \lt 0\) on \((-\frac{2}{3},2)\) \(\implies\) \(f(x)\) is decreasing on \([-\frac{2}{3}, 2]\).

\(f'(x) \gt 0\) on \((2,\infty)\) \(\implies\) \(f(x)\) is increasing on \([2,\infty)\).

A graph of \(y=f(x)\) is shown below for comparison.

Example6.3.3

Describe the intervals of monotonicity for the function \(f(x) = xe^{x-2x^2}\).

Compute \(f'(x)=\frac{d}{dx}[xe^{x-2x^2}]\), which requires a product rule: \begin{align*}
f'(x) &= x \frac{d}{dx}[e^{x-2x^2}] + e^{x-2x^2}\frac{d}{dx}[x]\\
&= x \cdot e^{x-2x^2} \frac{d}{dx}[x-2x^2] + e^{x-2x^2} \cdot 1 \\
&= x(1-4x)e^{x-2x^2} + e^{x-2x^2}
\end{align*}

Solve the equation \(f'(x)=0\). We need to simplify and then factor \(f'(x)\). \begin{align*}
f'(x) &= (x-4x^2) e^{x-2x^2} + e^{x-2x^2}\\
&= e^{x-2x^2} \big( x-4x^2 + 1 \big)
\end{align*} Now solve the equation: \(e^{x-2x^2} (-4x^2+x+1) = 0\). Because \(e^x \gt 0\) for any \(x\), \(e^{x-2x^2}=0\) has no solutions. The only possible solutions come from \(-4x^2+x+1 = 0\). This is quadratic \(ax^2+bx+c=0\) so that solutions are \begin{align*}
x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{-1 \pm \sqrt{1-4(-4)(1)}}{2(-4)} \\
&= \frac{-1 \pm \sqrt{17}}{-8}
\end{align*} These roots are \(x=-\frac{1}{8}-\frac{\sqrt{17}}{8} \approx -0.390\) and \(=-\frac{1}{8}+\frac{\sqrt{17}}{8}\approx 0.640\).

Since \(f'(x)\) is defined for all \(x\), we use the roots to identify intervals.

Testing points in each of the intervals, at \(x \in \{-1,0,1\}\), we can find the sign of \(f'(x)=e^{x-2x^2}(-4x^2+x+1)\).

Updating the number line with this information gives us the following figure.

We interpret our results about each interval.

\(f'(x) \lt 0\) on \((-\infty, \frac{1-\sqrt{17}}{8})\) \(\implies\) \(f(x)\) is decreasing on \((-\infty, \frac{1-\sqrt{17}}{8}]\).

\(f'(x) \gt 0\) on \((\frac{1-\sqrt{17}}{8},\frac{1+\sqrt{17}}{8})\) \(\implies\) \(f(x)\) is increasing on \([\frac{1-\sqrt{17}}{8}, \frac{1+\sqrt{17}}{8}]\).

\(f'(x) \lt 0\) on \((\frac{1+\sqrt{17}}{8},\infty)\) \(\implies\) \(f(x)\) is decreasing on \([\frac{1+\sqrt{17}}{8},\infty)\).

A graph of \(y=f(x)\) is shown below for comparison.

Subsection6.3.2Describing Extreme Values Using Derivatives

Fermat's theorem states that a function \(f\) can have an extreme value only at points where either \(f'(x)=0\) or \(f'(x)\) does not exist. This motivates the definition of critical points.

Definition6.3.4Critical Points

Given a function \(f\) with domain \(D\), a value \(c \in D\) is a critical point of \(f\) if \(f'(c)=0\) or \(f'(c)\) does not exist.

Not every critical point is an extreme value. We need criteria to judge whether or not a given critical point is the location of a maximum or minimum value. Intervals of monotonicity, as determined by the derivative, allow us to make that conclusion. Using monotonicity to classify critical points is justified by the following theorem, known as the first derivative test.

Theorem6.3.5First Derivative Test for Local Extrema

Suppose that \(f\) is continuous at a critical point at \(x=c\). If \(f\) is monotone on intervals immediately to the left and right of \(c\), then the critical point can be classified as follows.

If \(f\) is increasing on the left of \(c\) and decreasing on the right of \(c\), then \(f\) has a local maximum at \(x=c\).

If \(f\) is decreasing on the left of \(c\) and increasing on the right of \(c\), then \(f\) has a local minimum at \(x=c\).

Otherwise, \(f\) has neither a local maximum or minimum at \(x=c\).

The first derivative test is usually applied by looking at the number line summary of the first derivative.

Example6.3.6

Find and classify the local extremes of \(f(x) = x^3(x^2-4)\).

Start by finding the critical points, which requires knowing the derivative. \begin{equation*}f(x)=x^5-4x^3 \qquad \Rightarrow \qquad f'(x) = 5x^4-12x^2 = x^2(5x^2-12)\end{equation*} Now solve \(f'(x)=0\), which gives either \(x^2=0\) or \(5x^2-12=0\). There are three solutions: \(x=0\) and \(x=\pm \sqrt{\frac{12}{5}}\). Because \(f'(x)\) is defined for all values of \(x\), these three are the only critical points.

We test if the critical points are local extremes by seeing if the direction of monotonicity changes at these points. This is summarized using a number line. Testing the value of \(f'(x)\) at points, such as the set \(\{-2, -1, 1, 2\}\), gives us the following signs for the rate of change.

We interpret our results by applying the First Derivative Test. The critical points at \(x=\pm\sqrt{\frac{12}{5}}\) are turning points. But \(x=0\) is not a turning point even though \(f'(0)=0\). Instead, it is a point of inflection. (We would need to show that \(f''(x)\) changes sign at \(x=0\).) The point \(x=-\sqrt{\frac{12}{5}}\) is a local maximum because it is a turning point going from increasing to decreasing. The point \(x=+\sqrt{\frac{12}{5}}\) is a local minimum because it is a turning point going from decreasing to increasing. A graph of \(y=f(x)\) is shown below.

Subsection6.3.3Describing Concavity Using Derivatives

Concavity describes changing slope or rate of change. On a graph, this corresponds to how the curve described by a function is bending. We restate the definition of concavity in terms of the rate of change defined by a derivative.

Definition6.3.7Concavity

Let \(f\) be a function such that the derivative \(f'\) is defined on an interval \(I\). We say \(f\) is concave up on \(I\) if \(f'\) is increasing on \(I\). We say \(f\) is concave down on \(I\) if \(f'\) is decreasing on \(I\).

The four quadrants of a circle illustrate the four possible combinations of monotonicity and concavity.

increasing, concave down (II)

The function has a positive rate of change and that rate of change is decreasing. The graph has a positive slope that is becoming less steep (less positive).

increasing, concave up (IV)

The function has a positive rate of change and that rate of change is increasing. The graph has a positive slope that is becoming steeper (more positive).

decreasing, concave down (I)

The function has a negative rate of change and that rate of change is decreasing. The graph has a negative slope that is becoming steeper (more negative).

decreasing, concave up (III)

The function has a negative rate of change and that rate of change is increasing. The graph has a negative slope that is becoming less steep (less negative).

Concavity is described by finding where the derivative is increasing or decreasing. Since the derivative is itself a function, we can find its derivative. This function will be the derivative of the derivative of the function \(f\), or the second derivative. We write \begin{equation*} f''(x) = \frac{d}{dx}[f'(x)] = \frac{d^2}{dx^2}[f(x)] = \frac{d^2f}{dx^2}.\end{equation*}

Theorem6.3.8Concavity of Twice-Differentiable Functions

Given a function \(f\) for which \(f'\) and \(f''\) are defined on an interval \(I\).

If \(f''(x) \gt 0\) for all \(x \in I\), then \(f(x)\) is concave up on \(I\).

If \(f''(x) \lt 0\) for all \(x \in I\), then \(f(x)\) is concave down on \(I\).

If \(f''(x) = 0\) for all \(x \in I\), then \(f(x)\) is linear on \(I\).

If the interval \(I\) is open but \(f'\) is continuous up to and including the end-points, then the conclusion can be extended to include the end-points as well.

This is just an application of Theorem 6.3.1 applied to \(f'\). Once we know that \(f'\) is increasing on \(I\), the definition of concavity allows us to say that \(f\) is concave up on \(I\). Similarly, knowing that \(f'\) is decreasing is equivalent to saying that \(f\) is concave down. If \(f'\) is constant on an interval \(I\), this is exactly what it means for \(f\) to be linear on \(I\).

Example6.3.9

The concavity of a parabola is completely determined by the sign of the leading coefficient. Suppose \(f(x) = ax^2+bx+c\), where \(a\), \(b\) and \(c\) are parameters. Then \(f'(x) = 2ax+b\) and \(f''(x)=2a\). The second derivative for a quadratic is constant, and the sign is determined by the sign of \(a\). If \(a \gt 0\), \(f\) is concave up on \((-\infty,\infty)\); if \(a \lt 0\), \(f\) is concave down on \((-\infty,\infty)\).

Definition6.3.10Inflection Point

A differentiable function \(f\) has an inflection point at a point \(x=a\) if \(a \in \mathrm{dom}(f)\) and \(f\) changes concavity at \(x=a\). That is, there is are intervals \((a-\delta,a)\) and \((a,a+\delta)\) for \(\delta \gt 0\) such that \(f\) has opposite concavity in these intervals.

Example6.3.11

Given \(f(x) = x^3-3x^2-4x+5\), describe where \(f\) is concave up and concave down.

Start by finding \(f'(x)\) and \(f''(x)\). \begin{align*}
f(x) &= x^3-3x^2-4x+5 \\
f'(x) &= 3x^2-6x-4 \\
f''(x) &= 6x-6
\end{align*} We now see where \(f''(x)\) changes sign by solving \(6x-6=0\). This has a single solution \(x=1\). We test the sign of \(f''(x)\) by choosing values for \(x\) on either side of \(x=1\). \begin{gather*}
f''(0) = -6 \\
f''(2) = 6
\end{gather*} The signs of \(f''(x)\) are summarized with a number line.

We interpret our results using Theorem 6.3.8. Because \(f''(x) \lt 0\) on \((-\infty,1)\), we know \(f'\) is decreasing on the interval. Since \(f'(x)\) is continuous, we can extend the interval to include the end-point and conclude that \(f\) is concave down on \((-\infty,1]\). Similarly, since \(f''(x) \gt 0\) on \((1,\infty)\) and \(f'\) is continuous at \(1\), we know \(f\) is concave up on \([1,\infty)\). Because concavity changes at \(x=1\), \(f\) has an inflection point at \(x=1\).

When a second derivative can be determined conveniently, there is another way to determine whether a critical point is a turning point corresponding to a local extreme. Suppose \(f'(a)=0\) but \(f''(a)\) is positive. This means that \(f'(x)\) is increasing in a neighborhood of \(x=a\). Consequently, \(f'(x) \lt 0\) in an interval with \(x \lt a\) and \(f'(x) \gt 0\) in an interval with \(x \gt 0\). By the First Derivative Test, \(f(x)\) must have a minimum at \(x=a\).

Graphically, this means that at \(x=a\) there is a horizontal tangent with the graph concave up (like a parabola). This point then behaves like the vertex of a parabola opening upward and \(x=a\) is a local minimum. Similarly if \(f''(a) \gt 0\), the function is concave down and the graph behaves somewhat like a downward opening parabola and the point \(x=a\) would be a local maximum. These results are summarized as a theorem.

Theorem6.3.12Second Derivative Test for Local Extrema

Suppose that \(f(x)\) is a function satisfying \(f'(a)=0\) (horizontal tangent) such that \(f''(a)\) exists. If \(f''(a) \gt 0\) (concave up), then \(f(x)\) has a local minimum at \(x=a\). If \(f''(a) \lt 0\) (concave down), then \(f(x)\) has a local maximum at \(x=a\).

Notice that the Second Derivative Test is inconclusive when \(f''(a)=0\). In such a case, we are forced to go back and use the First Derivative Test to see if monotonicity changes.

Example6.3.13

Find and classify the local extremes of \(f(x) = x^3(x^2-4)\) using the Second Derivative Test.

In the previous example, we solved the same problem. We found \(f'(x) = 5x^4-12x^2\). The critical points were at \(x=0\) and \(x=\pm \sqrt{\frac{12}{5}}\). The Second Derivative Test has us compute \(f''(x)=20x^3-24x\) and determine the sign of \(f''(x)\) at each of the critical points.\begin{align*}
f''(x) &= 20x^3-24x = 4x(5x^2-6)\\
f''(0) &= 0\\
f''(-\sqrt{\frac{12}{5}}) &= -4 \sqrt{\frac{12}{5}} (5(\frac{12}{5})-6) = -24 \sqrt{\frac{12}{5}} \lt 0\\
f''(+\sqrt{\frac{12}{5}}) &= +4 \sqrt{\frac{12}{5}} (5(\frac{12}{5})-6) = 24 \sqrt{\frac{12}{5}} \gt 0
\end{align*} The Second Derivative Test is inconclusive about \(x=0\) being a turning point. Since \(f(x)\) is locally concave down at the critical point \(x=-\sqrt{\frac{12}{5}}\), the Second Derivative Test implies that \(f(x)\) has a local maximum at this point. Similarly, \(f(x)\) has a local minimum at \(x=+\sqrt{\frac{12}{5}}\).

From a practical point of view, in order to find the critical points, you will already have had to factor \(f'(x)\). If finding the signs of \(f'(x)\) on the resulting intervals will be faster than computing \(f''(x)\) and then computing the sign at each critical points, then the First Derivative Test is a better strategy. The second derivative test is useful if finding \(f''(x)\) will be especially easy, or at least easier than finding the signs of \(f'(x)\).