We have been learning how we can understand the behavior of a function based on its first and second derivatives. While we have been treating the properties of a function separately (increasing and decreasing, concave up and concave down, etc.), we combine them here to produce an accurate graph of the function without plotting lots of extraneous points.
Why bother? Graphing utilities are very accessible, whether on a computer, a hand-held calculator, or a smartphone. These resources are usually very fast and accurate. We will see that our method is not particularly fast — it will require time (but it is not hard). So again: why bother?
We are attempting to understand the behavior of a function based on the information given by its derivatives. While all of a function’s derivatives relay information about it, it turns out that “most” of the behavior we care about is explained by and . Understanding the interactions between the graph of and and is important. To gain this understanding, one might argue that all that is needed is to look at lots of graphs. This is true to a point, but is somewhat similar to stating that one understands how an engine works after looking only at pictures. It is true that the basic ideas will be conveyed, but “hands-on” access increases understanding.
Key Idea 3.5.1 summarizes what we have learned so far that is applicable to sketching graphs of functions and gives a framework for putting that information together. It is followed by several examples.
Find the domain of . Generally, we assume that the domain is the entire real line then find restrictions, such as where a denominator is or where negatives appear under the radical.
Find the critical values of .
Find the possible points of inflection of .
Find the location of any vertical asymptotes of (usually done in conjunction with Item 1).
Consider the limits and to determine the end behavior of the function.
Create a number line that includes all critical points, possible points of inflection, and locations of vertical asymptotes. For each interval created, determine whether is increasing or decreasing, concave up or down.
Evaluate at each critical point and possible point of inflection. Plot these points on a set of axes. Connect these points with curves exhibiting the proper concavity. Sketch asymptotes and and intercepts where applicable.
The domain of is the entire real line; there are no values for which is not defined.
Find the critical values of . We compute . Use the Quadratic Formula to find the roots of :
.
Find the possible points of inflection of . Compute . We have
.
There are no vertical asymptotes.
We determine the end behavior using limits as approaches .
.
We do not have any horizontal asymptotes.
We place the values and on a number line, as shown in Figure 3.5.3. We mark each subinterval as increasing or decreasing, concave up or down, using the techniques used in Sections 3.3–3.4.
Evaluate at each critical number and possible inflection point.
We plot the appropriate points on axes as shown in Figure 3.5.4.(a) and connect the points with straight lines (to show increasing/decreasig behavior). In Figure 3.5.4.(b) we adjust these lines to demonstrate the proper concavity. In Figure 3.5.4.(c) we show a graph of drawn with a computer program, verifying the accuracy of our sketch.
A number line is shown, on which three points are marked. The first point is marked as , or approximately ; it is a critical point of , and a relative maximum.
The second point is marked as , or approximately ; it is an inflection point of .
The last point is marked as , or approximately ; it is a critical point of , and a relative minimum.
These points divide the number line into four intervals. Above each interval, the signs of both and are given, along with whether is increasing or decreasing, and concave up or down.
This information is as follows:
For ,, so is increasing, and , so is concave down.
For ,, so is decreasing, and , so is concave down.
For ,, so is decreasing, and , so is concave up.
For ,\ft, so is increasing, and , so is concave up.
The graph is hand-drawn with plotted significant points from the number line. It connects these points with straight lines to give a general impression of the graph’s shape.
(a)
The image shows an adjusted graph of the piecewise linear function. The function is now a smooth, continuous curve that crosses the -axis at . This adjustment demonstrates the proper concavity of the function.
(b)
The image shows a computer-generated graph of the function. The graph verifies the accuracy of our sketch: there is very little difference between this graph and the previous graph, showing that accounting for concavity helps to ensure an accurate sketch.
In determining the domain, we assume it is all real numbers and look for restrictions. We find that at and , is not defined. So the domain of is .
To find the critical values of , we first find . Using the Quotient Rule, we find
.
We get when , and is undefined when . Since is undefined only when is also undefined, these are not critical values. The only critical value is .
To find the possible points of inflection, we find , again employing the Quotient Rule:
.
We find that is never (setting the numerator equal to and solving for , we find the only roots to this quadratic are not real numbers) and is undefined when . Thus concavity will possibly only change at and (which are not in the domain of , so these won’t be inflection points).
The vertical asymptotes of are at and , the places where is undefined.
There is a horizontal asymptote of , as and .
We place the values , and on a number line as shown in Figure 3.5.6. We mark in each interval whether is increasing or decreasing, concave up or down. We see that has a relative maximum at ; concavity changes only at the vertical asymptotes.
Evaluate at each critical number.
In Figure 3.5.7.(a), we plot the points from the number line on a set of axes and connect the points with straight lines to get a general idea of what the function looks like (these lines effectively only convey increasing/decreasing information). In Figure 3.5.7.(b), we adjust the graph with the appropriate concavity. We also show crossing the -axis at and and crossing the -axis at . Finally, Figure 3.5.7.(c) shows a computer generated graph of , which verifies the accuracy of our sketch.
On a number line there are three marked points: ,, and . At and , the graph of has a vertical asymptote. The point is a critical point of , and a relative maximum.
These three points divide the number line into four intervals. Above each interval, the following information is indicated:
For ,, so is increasing, and , so is concave up.
For ,, so is increasing, and , so is concave down.
For ,, so is decreasing, and , so is concave down.
The figure shows a linear piecewise graph on a Cartesian plane with the -axis ranging from to , and the -axis from to . The graph consists of two line segments forming a V shape, with the tip intersecting the -axis at .
(a)
The image displays an adjusted version of the piecewise graph, now with concavity.
(b)
The image shows a computer-generated graph of the function. The graph verifies the accuracy of our sketch: there is very little difference between this graph and the previous graph, showing that accounting for concavity helps to ensure an accurate sketch.
We assume that the domain of is all real numbers and consider restrictions. The only restrictions could come when the denominator is , but this never occurs because the denominator is a quadratic polynomial with no real roots. Therefore the domain of is all real numbers, .
We find the critical values of by setting and solving for . We find
.
Since the denominator of is just the square of the denominator of , there are no values of for which is undefined.
We find the possible points of inflection by solving for (again, there are no values of for which is undefined.) We find
.
The cubic in the numerator does not factor very “nicely.” We instead approximate the roots (using a CAS) at , and .
There are no vertical asymptotes as the denominator never equals zero.
We have a horizontal asymptote of , as .
We place the critical points and possible points on a number line as shown in Figure 3.5.9 and mark each interval as increasing/decreasing, concave up/down appropriately.
Evaluate at each critical number, possible inflection point.
In Figure 3.5.10.(a) we plot the significant points from the number line as well as the - and -intercepts, and connect the points with straight lines to get a general impression about the graph (this graph only includes increasing/decreasing information). In Figure 3.5.10.(b), we add concavity, drawing the function so that it is smooth (since is differentiable everywhere, there should be no kinks or corners). Figure 3.5.10.(c) shows a computer generated graph of , affirming our results.
A number line is shown, on which five points are marked. The points are labeled, from left to right, as ,,,, and . The points and are the critical points of .
The three decimal values are the possible inflection points of , which had to be approximated using software. These points divide the number line into six intervals; above each interval, the following information is indicated:
For ,, so is increasing, and , so is concave up.
For ,, so is increasing, and , so is concave down.
For ,, so is decreasing, and , so is concave down.
For ,, so is decreasing, and , so is concave up.
For ,, so is increasing, and , so is concave up.
For ,, so is increasing, and , so is concave down.
Figure3.5.9.Number line for in Example Example 3.5.8
The graph is hand-drawn with plotted significant points from the number line. It connects these points with straight lines to give a general impression of the graph’s shape.
(a)
The graph is hand-drawn with plotted significant points from the number line. It connects these points with smooth curves to give a general impression of the graph’s shape.
(b)
The graph is a computer generated graph of the function, showing the same critical points as the hand-drawn graph.
To get some more practice with curve sketching, we include a few more video examples to illustrate the process. (The last of these could be considered “archival footage”: it was from a first run at using our new lightboard.)
In each of our examples, we found a few significant points on the graph of that corresponded to changes in increasing/decreasing or concavity. We connected these points with straight lines, then adjusted for concavity, and finished by showing a very accurate, computer generated graph.
Why are computer graphics so good? It is not because computers are “smarter” than we are. Rather, it is largely because computers are much faster at computing than we are. In general, computers graph functions much like most students do when first learning to draw graphs: they plot equally spaced points, then connect the dots using lines. By using lots of points, the connecting lines are short and the graph looks smooth.
This does a fine job of graphing in most cases (in fact, this is the method used for many graphs in this text). However, in regions where the graph is very “curvy,” this can generate noticeable sharp edges on the graph unless a large number of points are used. High quality computer algebra systems, such as Mathematica and Sage, use special algorithms to plot lots of points only where the graph is “curvy.”
In Figure 3.5.14, two graph of is given, generated by Sage and Mathematica. The small points represent each of the places where each CAS sampled the function. Notice how at the “bends” of , lots of points are used; where is relatively straight, fewer points are used. (In the Mathematica plot, many points are also used at the endpoints to ensure the “end behavior” is accurate.)
The plot features a solid blue curve representing the sine wave. The -axis is labeled from to , and the -axis ranges from to . Sample points are marked along the curve with blue dots, indicating the places where the function was sampled.
(a)Sage output
The same plot of the sine function, showing the location of the sample points. This version comes from the software Mathematica. In addition to more frequent sampling in areas with more curvature, Mathematica also uses extra sample points at the ends of the domain.
(b)Mathematica output
Figure3.5.14.CAS plots of illustrating the sample points
How does Sage know where the graph is “curvy”? Calculus. When we study curvature in a later chapter, we will see how the first and second derivatives of a function work together to provide a measurement of “curviness.” Sage employs algorithms to determine regions of “high curvature” and plots extra points there.
Again, the goal of this section is not “How to graph a function when there is no computer to help.” Rather, the goal is “Understand that the shape of the graph of a function is largely determined by understanding the behavior of the function at a few key places.” In Example 3.5.8, we were able to accurately sketch a complicated graph using only five points and knowledge of asymptotes!
There are many applications of our understanding of derivatives beyond curve sketching. The next chapter explores some of these applications, demonstrating just a few kinds of problems that can be solved with a basic knowledge of differentiation.
In the following exercises, a function with the parameters and are given. Describe the critical points and possible points of inflection of in terms of and .