6.3 Derivatives and Graphs
In the previous section, we learned that critical numbers are the ONLY candidates for the places at which a function may have relative extrema. How do we find the relative maximum and minimum in a function? We can use the first derivative test to examine whether critical points are relative extrema or not. In order to start our discussion on the first derivative test, we need to know the following rules:
If for all on an interval, then is increasing on the interval.
If for all on an interval, then is decreasing on the interval.
Let’s look at some examples. Consider the following function:
First, take the first derivative with respect with :
This means that when . When is not -2 or 4, is always either positive or negative before -2, between -2 and 4, and after 4. We can pick a number within each interval, let’s say -3, 0, and 5, and then calculate the values of for those numbers to test the behavior of the function.
This means that when or , and when . This means that is increasing when or , and is decreasing when .
Now let’s find when and .
We can summarize this result in a table as follows:
... | -2 | ... | 4 | ... | |
+ | 0 | - | 0 | + | |
33 | -75 |
This result suggests that when , the graph of the function has a peak value of 33, and when , the graph of the function has a valley or bottom value of -75, which are the local maximum and local minimum, respectively. Given this, we can state the first derivative test.
Let be a critical number of a continuous function .
If changes from positive to negative at , then has a local maximum at .
If changes from negative to positive at , then has a local minimum at .
If does not change sign at (from positive to negative or from negative to positive as shown above), then has no local maximum or local minimum at .
Now we know when the function is increasing and decreasing and where the critical points and relative extrema are. However, if we plot the function, we know that is not a straight line but rather a curve. In order to understand not only the critical points and the relative extrema but also the curvature of the graph, we need to learn the second derivative test. Before we discuss the second derivative test, let’s define concavity and convexity of a function.
A function is convex on an interval (, ) if the graph of lies above all of its tangents on an interval (, ). Similarly, a function is concave on an interval (, ) if the graph of lies below all of its tangents on an interval (, ).
Finally, another definition that we should know is inflection point. A point on a curve is called an inflection point if is continuous and the curve changes from convex to concave or from concave to convex (see the graph below).
In order to understand the curve of a graph mathematically, whether it is concave or convex, we can use the second derivative. Let’s go back to our previous example. We have the function and the first derivative of the function as follows:
Therefore, the second derivative of the function is
So we know that is 0 when . Let’s plot the graph and see how this second derivative helps us understand the concavity and convexity of the graph.
First, let’s look at the graph when . Even though it is hard to identify with our eyes, it is an inflection point of this function, which means that it changes from concave to convex at . When , the graph looks concave, and when , the graph looks convex. Given this result, we can say two things. When , (i.e., ). When , (i.e., ). Given this result, we can define the concavity test.
The concavity test states that if for all on the interval (, ), then the graph of is concave on the interval. Similarly, if for all on the interval (, ), then the graph of is convex on the interval.
The table below summarizes increasing versus decreasing (fourth row) and concave versus convex (fifth row).
... | -2 | ... | 1 | ... | 4 | ... | |
+ | 0 | - | - | - | 0 | + | |
- | - | - | 0 | + | + | + | |
33 | -21 | -75 | |||||
33 | -21 | -75 |
Combining the fourth and the fifth rows, we can make a nice summary of the graph in the table below.
... | -2 | ... | 1 | ... | 4 | ... | |
+ | 0 | - | - | - | 0 | + | |
- | - | - | 0 | + | + | + | |
33 | -21 | -75 |
With the first and second derivatives (as shown in the table above), we can state the second derivative test. Suppose is continuous near . The function has a relative maximum at if and . Similarly, has a relative minimum at if and . As the second derivative test tells us, we have the relative (local) maximum at since and , and we have the relative (local) minimum at since and .
Example
Let’s analyze and graph the following function:
The first derivative of the function is:
Thus, when . When , . When , . When , . This tells us that is increasing when and . is decreasing when .
Now the second derivative is
Thus, when . when , and when . This means that is shaped concave when , and is shaped convex when . We can put these results in a table as:
... | -4 | ... | ... | 1 | ... | ||
+ | 0 | - | - | - | 0 | + | |
- | - | - | 0 | + | + | + | |
Also, for convenience, when , . Given this information, we can draw a graph as follows.