NOTE: You may view the original PDFs of the notes written in class by clicking on the link for the 1:30 Section or 2:30 Section, respectively.
Lecture 17: The I/D and 1st Derivative Test
Goal: Use the 1st derivative to determine properties of the original function.
Recall what it means for a function \( f \) to increase or decrease on an interval.
We say \(f\) is increasing if whenever \( x_1 < x_2 \), \( f(x_1) < f(x_2) \) (See Figure 1 for an example).
Figure 1
We say \(f\) is decreasing if whenever \( x_1 < x_2 \), \( f(x_1) > f(x_2) \) (See Figure 2 for an example).
Figure 2
If we want to determine when a function increases or decreases using the definition, we would have to fiddle around with inequalities. Ideally, we would rather do a calculation to determine this. When \(f\) is differentiable, we have a procedure to determine when it increases or decreases motivated by the following theorem:
Theorem (The I/D Test)
Let \( f \) be a differentiable function on an open interval \( I \):
- If \( f'(x) > 0 \) for every \( x \) in \( I \), then \( f \) is increasing on \( I \).
- If \( f'(x) < 0 \) for every \( x \) in \( I \), then \( f \) is dereasing. on \( I \).
Example 1
When is \( f(x) = \dfrac{x^2}{1+x^2} \) increasing and decreasing?
Step 1 Determine all critical numbers of \( f \)
\[ \begin{gathered} f'(x) = \frac{2x(1+x^2) - (2x)x^2}{(x^2+1)^2} = \frac{2x + 2x^3 - 2x^3}{(x^2+1)^2} \\[0.5em] = \frac{2x}{(x^2+1)^2} \overset{\text{set}}{=} 0 \\[0.5em] 2x = 0 \\[0.5em] x = 0 \end{gathered} \]Step 2 Use the critical numbers to divide the \( x \)-axis into regions to determine the sign of \( f' \).
| \( (-\infty, 0) \) | \( (0, \infty) \) | |
|---|---|---|
| Test Point: | \( -1 \) | \( 1 \) |
| Sign of \( 2x \): | \( - \) | \( + \) |
| Sign of \( (x^2+1)^2 \) | \( + \) | \( + \) |
| Sign of \( f' \) | \( - \) | \( + \) |
| Results of ID Test | Dec | Inc |
Conclusion: \( f \) is increasing on \( (0, \infty) \), while \( f \) is decreasing on \( (-\infty, 0) \). Moreover, by the First Derivative Test (defined later in the notes), \(f\) has a relative minimum at \(x = 0\).
NOTE:
People often just use a number line to organize this information. Here is an example of how it would look like if we used it in the previous example.
Figure 3
Example 2
Let \( f \) be a polynomial such that
\[ f'(x) = (x-2)(x+1)(x-4) \]Determine when \( f \) is increasing and decreasing.
Step 1
\[ \begin{gathered} (x-2)(x+1)(x-4) \overset{\text{set}}{=} 0 \\[0.5em] \Rightarrow x = 2, -1, 4 \Rightarrow x = -1, 2, 4 \end{gathered} \]Step 2 We make our table, which is sometimes called a "sign chart."
| \( (-\infty, -1) \) | \( (-1, 2) \) | \( (2,4) \) | \((4, \infty)\) | |
|---|---|---|---|---|
| Test Point | \( -10^6 \) | \( 0 \) | \( 3 \) | \( 10^6 \) |
| Sign of \( x+1 \) | \( - \) | \( + \) | \( + \) | \( + \) |
| Sign of \( x-2 \) | \( - \) | \( - \) | \( + \) | \( + \) |
| Sign of \( x-4 \) | \( - \) | \( - \) | \( - \) | \( + \) |
| Sign of \( f' \) | \( - \) | \( + \) | \( - \) | \( + \) |
| Results of ID Test | Dec | Inc | Dec | Inc |
Conclusion: \( f \) is increasing on \( (-1, 2) \cup (4, \infty) \) and \( f \) is decreasing on \( (-\infty, -1) \cup (2, 4) \). Moreover, by the First Derivative Test (defined later in the notes), \(f\) has relative minima at \(x=-1\) and \(x = 4\), while \(f\) has a relative maximum at \(x=2\).
Figure 6
Example 3
When is \( f(x) = x^3 \) increasing and decreasing?
Step 1
\[ f'(x) = 3x^2 \overset{\text{set}}{=} 0 \Longrightarrow x = 0 \]Step 2
| \( (-\infty, 0) \) | \( (0, \infty) \) | |
|---|---|---|
| Test Point | \( -1 \) | \( 1 \) |
| Sign of \( f' \) | \( + \) | \( + \) |
| Results | Inc | Inc |
Conclusion: \( f \) is increasing on \( (-\infty, \infty) \) as opposed to \( (-\infty, 0) \cup (0, \infty) \). Moreover, by the First Derivative Test (defined later in the notes), \(f\) has no relative extrema.
Figure 7
NOTE:
As a general guideline, you will want to use open intervals (i.e., use parantheses as opposed to brackets). This is so as the I/D Test can not be applied if the endpoints are involved since \(f'\) is no longer strictly positive or negative on the interval. However, you may need to include the endpoint if the sign of \(f'\) does not change at the critical number (like what we did in Example 3). In Example 3, we determined \(f\) is increasing on \((-\infty, 0) \cup (0, \infty)\) and we can conclude \(f\) is increasing on \((-\infty, \infty)\) from the original definition of increasing, not from the I/D Test.
This is a bit of a rant, but long story short, you only need to break the interval at the critical number if it changes from increasing to decreasing (or vice versa).
Hunting for Relative Extrema
The I/D Test gives us a way to determine the locations of relative extrema since they are located where the derivative changes sign (see the Figures below):
Figure 8
Figure 9
Figure 10
Theorem (1st Derivative Test)
Let \( c \) be a critical number of a differentiable function \( f \).
- If \( f' \) switches from positive to negative at \( c \), then \( f \) has a relative maximum at \( c \).
- If \( f' \) switches from negative to positive at \( c \), then \( f \) has a relative minimum at \( c \).
- If \( f' \) does not switch signs at \( c \), then \( f \) has neither a rel. max nor rel. min at \( c \).
Example 4
The critical numbers of \( g(x) = x + 2\sin x \) on \( (0, 2\pi) \) are \( \frac{2\pi}{3} \) and \( \frac{4\pi}{3} \). Determine the locations of any relative extrema on the interval \( (0, 2\pi) \)
Step 1 We already know the critical numbers, but we will need to find the derivative for Step 2.
\[ g'(x) = 1 + 2\cos x \]Step 2
Figure 11
| \( (0, \frac{2\pi}{3} )\) | \( (\frac{2\pi}{3}, \frac{4\pi}{3}) \) | \( (\frac{4\pi}{3}, 2\pi )\) | |
| Test Point | \( \frac{\pi}{2} \) | \( \pi \) | \( \frac{3\pi}{2} \) |
| Sign of \( g' \) | \( g'\left(\frac{\pi}{2}\right) = 1 \quad + \) | \( g'(\pi) = -1 \quad - \) | \( g'\left(\frac{3\pi}{2}\right) = 1 \quad + \) |
| ID Test | Inc | Dec | Inc |
Conclusion: By the First Derivative Test, \(g\) has a relative maximum at \(x = \frac{2\pi}{3}\) and a relative minimum at \(x = \frac{4\pi}{3}\)
.Example 5
Classify and determine all relative extrema of the function \( f(x) = \frac{1}{8} e^{2x} \left( 4x^3 - 6x^2 - 6x + 3 \right) \).
Step 1 Determine all critical numbers
\[ \begin{aligned} f'(x) &= \frac{1}{4} e^{2x} \left( 4x^3 - 6x^2 - 6x + 3 \right) + \frac{1}{8} e^{2x} \left( 12x^2 - 12x - 6 \right) \\ &= e^{2x} \left( x^3 - \frac{3}{2}x^2 - \frac{3}{2}x + \frac{3}{4} \right) + e^{2x} \left( \frac{3}{2}x^2 - \frac{3}{2}x - \frac{3}{4} \right) \\ &= e^{2x} \left( x^3 - 3x \right) \\ &= e^{2x} x \left( x^2 - 3 \right) \quad \overset{\text{Set}}{=} 0\\ \Longrightarrow x &=~ 0, \pm \sqrt{3} \end{aligned} \]Step 2 Make the sign chart, using \(\sqrt{3} \approx 1.7\) to determine the test points.
| \( (-\infty, -\sqrt{3}) \) | \( (-\sqrt{3}, 0) \) | \( (0, \sqrt{3}) \) | \((\sqrt{3}, 0)\) | |
|---|---|---|---|---|
| Test Points | \( -10^6 \) | \( -1 \) | \(1\) | \( 100 \) |
| Sign of \( e^{2x} \) | \( + \) | \( + \) | \( + \) | \( + \) |
| Sign of \( x^2 - 3 \) | \( + \) | \( - \) | \( - \) | \( + \) |
| Sign of \( x \) | \( - \) | \( - \) | \( + \) | \( + \) |
| Sign of \( f' \) | \( - \) | \( + \) | \( - \) | \( + \) |
Conclusion: By the First Derivative Test, \(f\) has relative minima at \(x = \pm\sqrt{3}\) and a relative maximum at \(x = 0\)