3.5: Curve Sketching
( \newcommand{\kernel}{\mathrm{null}\,}\)
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
The following Key Idea 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.
Key Idea 4: Curve Sketching
To produce an accurate sketch a given function
- Find the domain of
. Generally, we assume that the domain is the entire real line then find restrictions, such as where a denominator is 0 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 above). - 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.
Example
Use Key Idea 4 to sketch
Solution
- 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 infinity. We do not have any horizontal asymptotes. - We place the values
and on a number line, as shown in Figure . We mark each subinterval as increasing or decreasing, concave up or down, using the techniques used in Sections 3.3 and 3.4.
Figure
- We plot the appropriate points on axes as shown in Figure
and connect the points with straight lines. In Figure we adjust these lines to demonstrate the proper concavity. Our curve crosses the axis at and crosses the axis near . In Figure we show a graph of drawn with a computer program, verifying the accuracy of our sketch.
Figure
Example
Sketch
Solution
We again follow the steps outlined in Key Idea 4.
- In determining the domain, we assume it is all real numbers and looks 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 when , and is undefined when . Since is undefined only when is, 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 0 (setting the numerator equal to 0 and solving for , we find the only roots to this quadratic are imaginary) and is undefined when . Thus concavity will possibly only change at and . - 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 . 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.
FIgure
- In Figure
, 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 , we adjust the graph with the appropriate concavity. We also show crossing the axis at and .
Figure
Figure
Example
Sketch
Solution
We again follow Key Idea 4
- We assume that the domain of
is all real numbers and consider restrictions. The only restrictions come when the denominator is 0, but this never occurs. Therefore the domain of is all real numbers, . - We find the critical values of
by setting and solving for . We find
- We find the possible points of inflection by solving
for . We find
The cubic in the numerator does not factor very "nicely." We instead approximate the roots at , and . - There are no vertical asymptotes.
- We have a horizontal asymptote of
, as . - We place the critical points and possible points on a number line as shown in Figure
and mark each interval as increasing/decreasing, concave up/down appropriately.
Figure
- In Figure
we plot the significant points from the number line as well as the two roots of , and , and connect the points with straight lines to get a general impression about the graph. In Figure , we add concavity. Figure shows a computer generated graph of , affirming our results.
Figure
In each of our examples, we found a few, significant points on the graph of
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, use special algorithms to plot lots of points only where the graph is "curvy.''
In Figure
Figure
How does Mathematica 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." Mathematica 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
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.
Contributors and Attributions
Gregory Hartman (Virginia Military Institute). Contributions were made by Troy Siemers and Dimplekumar Chalishajar of VMI and Brian Heinold of Mount Saint Mary's University. This content is copyrighted by a Creative Commons Attribution - Noncommercial (BY-NC) License. http://www.apexcalculus.com/
Integrated by Justin Marshall.