Lecture: Section 4.3 Derivatives and the Shape of a Graph
In this section, we'll delve deeper into how the first and second derivatives of a function, $f'(x)$ and $f''(x)$, reveal crucial information about the shape and behavior of the original function's graph, $y=f(x)$. We'll learn how to determine where a function is rising or falling, identify its peaks and valleys, and understand its curvature.
Topic 1: Increasing and Decreasing Functions 📈📉
We intuitively know what it means for a graph to go "uphill" (increasing) or "downhill" (decreasing) as we move from left to right. The first derivative gives us a precise way to determine this.
Definitions of Increasing and Decreasing
A function $f$ is called:
Increasing on an interval $I$ if $f(x_1) < f(x_2)$ whenever $x_1 < x_2$ in $I$.
Decreasing on an interval $I$ if $f(x_1) > f(x_2)$ whenever $x_1 < x_2$ in $I$.
Think about the slope of the tangent line. When the function is increasing, the tangent lines have positive slopes. When the function is decreasing, the tangent lines have negative slopes. This leads to a powerful test:
Increasing/Decreasing (I/D) Test
If $f'(x) > 0$ on an interval, then $f$ is increasing on that interval.
If $f'(x) < 0$ on an interval, then $f$ is decreasing on that interval.
To apply this test, we first find the critical numbers of $f$ (where $f'(x)=0$ or $f'(x)$ does not exist). These numbers divide the domain into intervals. We then test the sign of $f'(x)$ in each interval.
Move the slider a to see the relationship between the sign of the derivative and where f is increasing/decreasing
Example 1: Finding Intervals of Increase/Decrease (Polynomial)
Find where the function $f(x) = x^3 - 6x^2 + 5$ is increasing and decreasing.
Solution:
1. Find the derivative:
$$f'(x) = 3x^2 - 12x$$
2. Find critical numbers: Set $f'(x) = 0$.
$$3x^2 - 12x = 0 \implies 3x(x-4) = 0$$
The critical numbers are $x=0$ and $x=4$. (Since $f'(x)$ is a polynomial, it exists everywhere).
3. Create intervals and test signs: The critical numbers divide the number line into $(-\infty, 0)$, $(0, 4)$, and $(4, \infty)$. We pick a test value in each interval and check the sign of $f'(x)$.
Set $f'(x) = 0$: $\frac{x(x-2)}{(x-1)^2} = 0 \implies x(x-2) = 0$. So $x=0$ and $x=2$ are critical numbers.
Find where $f'(x)$ DNE: The derivative is undefined at $x=1$, but $x=1$ is not in the domain of $f$. So it's not a critical number, but we must use it to define our intervals.
4. Create intervals and test signs: The points $x=0, x=1, x=2$ divide the domain into $(-\infty, 0)$, $(0, 1)$, $(1, 2)$, and $(2, \infty)$. Notice the denominator $(x-1)^2$ is always positive where defined.
Topic 2: The First Derivative Test for Local Extrema ⛰️
The points where a function changes from increasing to decreasing (or vice versa) are often local maximums or minimums (collectively called local extrema). The sign analysis of $f'(x)$ around its critical numbers tells us exactly what's happening.
The First Derivative Test
Suppose $c$ is a critical number of a continuous function $f$.
If $f'$ changes from positive to negative at $c$, then $f$ has a local maximum at $c$. (Function goes from increasing to decreasing).
If $f'$ changes from negative to positive at $c$, then $f$ has a local minimum at $c$. (Function goes from decreasing to increasing).
If $f'$ does not change sign at $c$ (e.g., positive on both sides or negative on both sides), then $f$ has no local maximum or minimum at $c$. (Like at $x=0$ for $f(x)=x^3$).
interval
$12x$
$x-2$
$x+1$
$f'(x)$
$f$
$x < -1$ (e.g., $x=-2$)
$-$
$-$
$-$
$-$
Decreasing on $(-\infty, -1)$
$-1 < x < 0$ (e.g., $x=-0.5$)
$-$
$-$
$+$
$+$
Increasing on $(-1, 0)$
$0 < x < 2$ (e.g., $x=1$)
$+$
$-$
$+$
$-$
Decreasing on $(0, 2)$
$x > 2$ (e.g., $x=3$)
$+$
$+$
$+$
$+$
Increasing on $(2, \infty)$
Essentially, we use the same sign analysis from the Increasing/Decreasing Test. We just add a conclusion about local extrema based on how the sign changes at each critical number.
Example 1: Applying the First Derivative Test (Polynomial)
Find the local maximum and minimum values of $f(x) = x^3 - 6x^2 + 5$ (from Topic 1, Example 1).
At $x=0$: $f'$ changes from positive to negative (+ to -). Therefore, $f$ has a local maximum at $x=0$. The local maximum value is $f(0) = 0^3 - 6(0)^2 + 5 = 5$.
At $x=4$: $f'$ changes from negative to positive (- to +). Therefore, $f$ has a local minimum at $x=4$. The local minimum value is $f(4) = 4^3 - 6(4)^2 + 5 = 64 - 96 + 5 = -27$.
Conclusion: Local maximum value is 5 at $x=0$. Local minimum value is -27 at $x=4$.
Example 2: Applying the First Derivative Test (Rational Function)
Find the local maximum and minimum values of $f(x) = \frac{x^2}{x-1}$ (from Topic 1, Example 2).
Solution:
From the previous example, we know:
$f'(x) = \frac{x(x-2)}{(x-1)^2}$.
Critical numbers are $x=0$ and $x=2$. ($x=1$ is not in the domain).
At $x=0$: $f'$ changes from positive to negative (+ to -). Therefore, $f$ has a local maximum at $x=0$. The value is $f(0) = \frac{0^2}{0-1} = 0$.
At $x=1$: This is not a critical number (it's a vertical asymptote), so the test doesn't apply here. There's no local extremum at $x=1$.
At $x=2$: $f'$ changes from negative to positive (- to +). Therefore, $f$ has a local minimum at $x=2$. The value is $f(2) = \frac{2^2}{2-1} = \frac{4}{1} = 4$.
Conclusion: Local maximum value is 0 at $x=0$. Local minimum value is 4 at $x=2$.
Check Your Understanding 🤔
Find the local maximum and minimum values of $f(x) = x e^{-x}$ (from the previous CYU).
At $x=1$: $f'$ changes from positive to negative (+ to -). Therefore, $f$ has a local maximum at $x=1$. The value is $f(1) = 1 \cdot e^{-1} = 1/e$.
Conclusion: Local maximum value is $1/e$ at $x=1$. There is no local minimum.
Topic 3: Concavity and Inflection Points ☕🥄
While the first derivative tells us if the function is increasing or decreasing, the second derivative tells us about the *way* it's increasing or decreasing – its curvature or "concavity."
Definition of Concavity
If the graph of $f$ lies above all of its tangents on an interval $I$, it is called concave upward (CU) on $I$. (Like a cup holding water ☕).
If the graph of $f$ lies below all of its tangents on an interval $I$, it is called concave downward (CD) on $I$. (Like a spoon spilling water 🥄).
How does $f''$ relate? If $f'' > 0$, then $f'$ is increasing. This means the slopes of the tangent lines are getting larger (less negative, or more positive), causing the graph to bend upward (CU). If $f'' < 0$, then $f'$ is decreasing, the slopes are getting smaller, and the graph bends downward (CD).
Concavity Test
If $f''(x) > 0$ for all $x$ in $I$, then the graph of $f$ is concave upward on $I$.
If $f''(x) < 0$ for all $x$ in $I$, then the graph of $f$ is concave downward on $I$.
A point where the concavity changes is called an inflection point.
Definition of Inflection Point
A point $P$ on a curve $y=f(x)$ is called an inflection point if $f$ is continuous there and the curve changes from concave upward to concave downward, or vice versa, at $P$. These often occur where $f''(x)=0$ or $f''(x)$ DNE.
Example 1: Finding Concavity and Inflection Points (Polynomial)
Determine the intervals of concavity and find the inflection points for $f(x) = x^4 - 6x^2$.
2. Find where $f''(x)=0$ or DNE: Set $f''(x)=0$. The denominator $(x^2+1)^2$ is always positive. The numerator is zero when $1-x^2=0$, so $x=1$ and $x=-1$. $f''(x)$ exists everywhere.
3. Create intervals and test signs of $f''(x)$: $(-\infty, -1)$, $(-1, 1)$, $(1, \infty)$.
Conclusion: CD on $(-\infty, -1) \cup (1, \infty)$; CU on $(-1, 1)$. Inflection points at $(-1, \ln 2)$ and $(1, \ln 2)$.
Topic 4: The Second Derivative Test for Local Extrema 🤔
There's another way to classify local extrema, specifically at points where $f'(c)=0$. Instead of checking the sign of $f'$ on either side of $c$, we can sometimes just check the sign of $f''(c)$ *at* $c$.
The Second Derivative Test
Suppose $f''$ is continuous near $c$.
If $f'(c) = 0$ and $f''(c) > 0$, then $f$ has a local minimum at $c$. (Think: $f'(c)=0$ means flat tangent, $f''(c)>0$ means concave up like a cup $\implies$ bottom of the cup).
If $f'(c) = 0$ and $f''(c) < 0$, then $f$ has a local maximum at $c$. (Think: $f'(c)=0$ means flat tangent, $f''(c)<0$ means concave down like a frown $\implies$ top of the frown).
If $f'(c) = 0$ and $f''(c) = 0$, the test is inconclusive. $f$ might have a local max, local min, or neither at $c$. (You must use the First Derivative Test in this case).
This test is often quicker than the First Derivative Test if the second derivative is easy to compute and evaluate. However, its major drawback is that it fails when $f''(c)=0$.
Example 1: Using the Second Derivative Test
Use the Second Derivative Test to find the local extrema of $f(x) = x^3 - 6x^2 + 5$.
Solution:
1. Find $f'(x)$ and critical numbers (where $f'=0$):
$$f'(x) = 3x^2 - 12x = 3x(x-4)$$
Critical numbers (where $f'=0$) are $x=0$ and $x=4$.
2. Find $f''(x)$:
$$f''(x) = 6x - 12$$
3. Evaluate $f''(x)$ at each critical number:
At $x=0$: $f''(0) = 6(0) - 12 = -12$. Since $f''(0) < 0$, the Second Derivative Test indicates a local maximum at $x=0$. The value is $f(0)=5$.
At $x=4$: $f''(4) = 6(4) - 12 = 24 - 12 = 12$. Since $f''(4) > 0$, the Second Derivative Test indicates a local minimum at $x=4$. The value is $f(4)=-27$.
Conclusion: Local max at $(0, 5)$, local min at $(4, -27)$. (This matches the result from the First Derivative Test example).
Example 2: Inconclusive Second Derivative Test
Try to use the Second Derivative Test to classify the critical point of $f(x) = x^4$.
Solution:
1. Find $f'(x)$ and critical numbers (where $f'=0$):
$$f'(x) = 4x^3$$
Set $f'(x)=0 \implies 4x^3=0 \implies x=0$. The only critical number is $x=0$.
2. Find $f''(x)$:
$$f''(x) = 12x^2$$
3. Evaluate $f''(x)$ at the critical number:
$$f''(0) = 12(0)^2 = 0$$
Conclusion: Since $f''(0)=0$, the Second Derivative Test is inconclusive. We cannot determine if $x=0$ corresponds to a local max, min, or neither using this test.
(Note: If we used the First Derivative Test: $f'(x)=4x^3$ is negative for $x<0$ and positive for $x>0$. Since $f'$ changes from - to + at $x=0$, there is a local minimum there. The Second Derivative Test failed, but the First Derivative Test worked.)
Check Your Understanding 🤔
Use the Second Derivative Test to find the local extrema of $f(x) = x e^{-x}$.
Solution:
1. Find $f'(x)$ and critical numbers (where $f'=0$):
From previous work, $f'(x) = e^{-x}(1-x)$. The only critical number where $f'=0$ is $x=1$.
d) Inflection Points: Occur where concavity changes (i.e., where $f'$ changes direction, at its local extrema).
From the graph, $f'$ has local extrema (peaks/valleys) at the points where $f''(x)=0$.
Inflection points at $x = \frac{13 - 2\sqrt{7}}{3} \approx 2.57$ and $x = \frac{13 + 2\sqrt{7}}{3} \approx 6.10$.
Lecture Conclusion ✅
Today, we established the fundamental connections between a function and its first and second derivatives regarding the shape of its graph. The sign of $f'$ tells us whether the function is rising or falling, and the sign of $f''$ tells us about its concavity.
First Derivative Test: Classifies local extrema based on sign changes in $f'$ at critical numbers (+ to - is local max, - to + is local min).
Concavity Test: $f'' > 0 \implies$ Concave Up (CU), $f'' < 0 \implies$ Concave Down (CD). Find intervals using points where $f''=0$ or DNE.
Inflection Points: Occur where concavity changes (often where $f''=0$ or DNE).
Second Derivative Test: An alternative way to classify local extrema where $f'(c)=0$: If $f''(c)>0$, local min; if $f''(c)<0$, local max; if $f''(c)=0$, inconclusive.
These tests are the building blocks for accurately sketching the graph of a function, which we will explore further in Section 4.5.