3.6   OVERVIEW OF CURVE SKETCHING

You might be wondering why you need to spend any more time on curve sketching. We have already drawn numerous graphs over the last three sections. Besides, with a graphing calculator or computer algebra system at your disposal, why must you even consider drawing graphs by hand?


Of course, graphing calculators or computer algebra systems are powerful tools today in the study or application of mathematics. As the authors of this text, we admit it. We have made extensive use of several computer algebra systems (Maple and Mathematica) in preparing the manuscript for this text and even in designing our problems. So then, why should we condemn you to drawing graphs by hand? We're certain that late night talk show hosts would have a list of the top 10 reasons why sadistic mathematics professors would want to inflict such pain on their students, but there's really only one reason. For better or worse, graphing calculators and computer algebra systems do not actually draw graphs. What they do is plot points (albeit lots of them) and then connect the points with a smooth curve. Of course, this works exceptionally well for some functions, but leaves something to be desired for others. The problem boils down to the window in which you draw the graph and how many points you plot in that window. The only way to know how to choose the window or how many points to plot in that window is to use the calculus to determine the properties of the graph that you are interested in seeing. We have already made this point a number of times. The calculus tells us the properties that a representative graph should exhibit. We then try to adjust the window and the number of points plotted in order to produce such a graph.

We begin this section by summarizing the various tests that you should perform on a function when trying to draw a graph of y = f (x).

We start with a very simple example.

6.1   
Drawing a Graph of a Polynomial
 
Draw a graph of f (x) = x4 + 6x3 + 12x2 + 8x + 1 showing all significant features.
 
 
Why shouldn't we simply ask our computer algebra system for a graph? Computer algebra systems and graphing calculators usually do one of two things to determine the window in which they will display a graph. (Some give the user an option as to how to set the default method.) One method is to compute a set number of function values over a given standard range of x - values. The y - range is then chosen so that all of the calculated points can be displayed. This might result in a graph that looks like the one in Figure 3.57a, produced using the computer algebra system Maple. Another method is to draw a graph in a fixed, default window. For instance, most graphing calculators use the default window defined by
- 10 x 10 and - 10 y 10.


Figure 3.57a
y = x4 + 6x3 + 12x2 + 8x + 1 (one view).

Using this window, we get the graph shown in Figure 3.57b. Of course, these two graphs are very different. Without the calculus, it's difficult to tell which, if either, of these is truly representative of the behavior of f. Some analysis will help to clear up the situation. First, note that the domain of f is the entire real line. Further, since f ( x) is a polynomial, it doesn't have any vertical or horizontal asymptotes. (Think about this!) Next, note that
f ' (x) = 4x3 + 18x2 + 24x + 8 = 2( 2x + 1) ( x + 2) 2.


Figure 3.57b
y = x4 + 6x3 + 12x2 + 8x + 1 (standard calculator view).

Drawing number lines for the individual factors in f ' (x), we have that

This also tells us that there is a local minimum at x = - and that there are no local maxima. Next, we have
f '' (x) = 12x2 + 36x + 24 = 12( x + 2)( x + 1).
Drawing number lines for the factors of f '' (x), we have
From this, we see that there are inflection points at x = -2 and at x = - 1. Finally, to find the x - intercepts, we need to solve f (x) = 0 approximately. Doing this (we leave the details as an exercise: use Newton's method or your calculator's solver), we find that there are two x - intercepts: x = -1 (exactly) and x -0.160713. Notice that the significant xvalues that we have identified are x = -2, x = -1 and Computing the corresponding y - values from y = f (x), we get the points ( -2,1), ( -1,0) and We summarize the first and second derivative information in the number lines in the margin. In Figure 3.58, we include all of these important points by setting the x - range to be - 3 x 1 and the y - range to be - 2 y 8.


Figure 3.58
y = x4 + 6x3 + 12x2 + 8x + 1.


 

In the following example, we examine a function that has local extrema, inflection points and both vertical and horizontal asymptotes.

6.2   
Drawing a Graph of a Rational Function
 
Draw a graph of f (x) = showing all significant features.
 
 
The default graph drawn by our computer algebra system (Maple) appears in Figure 3.59a. Notice that this doesn't seem to be a particularly useful graph, since very little is visible (or at least distinguishable from the axes). The graph drawn using the most common graphing calculator default window (with a range of - 10 x 10 and - 10 y 10 ) is seen in Figure 3.59b. This is arguably an improvement over Figure 3.59a, but does this graph convey all that it could about the function (e.g., about local extrema, inflection points, etc.)? We can answer this question only after we do some calculus. We follow the outline given at the beginning of the section.


Figure 3.59a


Figure 3.59b

First, observe that the domain of f includes all real numbers x 0. Since x = 0 is an isolated point not in the domain of f, we scrutinize the limiting behavior of f as x approaches 0. We have
(6.1)
and
(6.2)
From (6.1) and (6.2), we see that the graph has a vertical asymptote at x = 0 .

Next, we look for whatever information the first derivative will yield. We have
Quotient rule.
Factor out an x2.
Combine terms.
Factor difference of two squares.
Looking at the individual factors in f ' (x), we have the number lines shown below. Thus,
(6.3)

Note that this says that f has a local minimum at x = -3 and a local maximum at x = 3 .

Next, we look at
Quotient rule.
Factor out - 2x3 .
Combine terms.
Factor difference of two squares.
Looking at the individual factors in f '' (x), we obtain the number lines found in the margin. Thus, we have
(6.4)

This says that there are inflection points at . (Why is there no inflection point at x = 0 ?)

To determine the limiting behavior as x, we consider
(6.5)
Likewise, we have
(6.6)

So, the line y = 0 is a horizontal asymptote both as x and as x - . Finally, the x - intercepts are where
that is, at x = ±. Notice that there are no y - intercepts, since x = 0 is not in the domain of the function. We now have all of the information that we need to draw a representative graph. With some experimentation, you can set the x - and y - ranges so that most of the significant features of the graph (i.e., vertical and horizontal asymptotes, local extrema, inflection points, etc.) are displayed, as in Figure 3.60. Notice that the graph in Figure3.60 is consistent with all of the information that we accumulated on the function in (6.1) - (6.6). Although the existence of the inflection points is clearly indicated by the change in concavity, their precise location is as yet a bit fuzzy in this graph. Notice, however, that both vertical and horizontal asymptotes and the local extrema are clearly indicated, something which cannot be said about either of Figures 3.59a or 3.59b.


Figure 3.60
.


 

In the following example, there are multiple vertical asymptotes, only one extremum and no inflection points.

6.3   
A Graph with Two Vertical Asymptotes
 
Draw a graph of f (x) = showing all significant features.
 
 
The default graph produced by our computer algebra system is seen in Figure 3.61a, while the default graph drawn by most graphing calculators looks like the graph seen in Figure 3.61b. Notice that the domain of f includes all x except x = ±2 (since the denominator is zero at x = ±2). Figure 3.61b suggests that there are vertical asymptotes at x = ±2, but let's establish this carefully. We have
(6.7)


Figure 3.61a
.


Figure 3.61b
.

Similarly, we get
(6.8)
and
(6.9)
Thus, there are vertical asymptotes at x = 2. Next, we have
Since the denominator is positive for x ±2, it is a simple matter to see that
 f increasing. (6.10)
 f decreasing.  
In particular, notice that the only critical number is x = 0 (since x = -2,2 are not in the domain of f ). Thus, the only local extremum is the local maximum located at x = 0. Next, we have
   Quotient rule.
Factor out 8(x2 -4).
Combine terms.
Factor difference of two squares.

Since the numerator is positive for all x, we need only consider the terms in the denominator, as seen in the margin. We then have
(6.11)
However, since x = 2, -2 are not in the domain of f, there are no inflection points. It is an easy exercise to verify that
(6.12)
and
(6.13)
From (6.12) and (6.13), we have that y = 1 is a horizontal asymptote, both as x and as x - . Finally, we observe that the only x - intercept is at x = 0. We can now summarize the information in (6.7) - (6.13) in the graph seen in Figure 3.62.


Figure 3.62


 

In the following example, we need to use computer-generated graphs, as well as a rootfinding method to determine the behavior of the function.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.4   
Graphing Where the Domain and Extrema Must be Approximated
 
Draw a graph of showing all significant features.
 
 
The default graph drawn by most graphing calculators and computer algebra systems looks something like the one shown in Figure 3.63. This seems to reveal more about the function than did its counterparts in example 6.3, but we can only determine all the significant features by doing some calculus.


Figure 3.63

Since f is a rational function, it is defined for all x, except for where the denominator is zero, that is, where
x3 + 3x2 + 3x + 3 = 0.
If you don't see how to factor the expression to find the zeros exactly, you must rely on approximate methods. First, to get an idea of where the zero(s) might be, draw a graph of the cubic (see Figure 3.64). The graph does not need to be elaborate, merely detailed enough to get an idea of where and how many zeros there are. In the present case, we see that there is only one zero, around x = - 2. We can verify that this is the only zero, since


Figure 3.64
y = x3 + 3x2 + 3x + 3.

Since the derivative is never negative, observe that the function cannot decrease to cross the x - axis a second time. We can obtain an approximation of this zero, as accurate as needed, using Newton's method or your calculator's solver. Here, we get the approximate zero x = a -2.25992. Even though we don't know this zero exactly, we can use the graph in Figure 3.64 to help us compute the limits
(6.14)
and
. (6.15)
From (6.14) and (6.15), f has a vertical asymptote at x = a. Turning to the derivative information, we have
f ' (x) = - (x3 + 3x2 + 3x + 3) - 2(3x2 + 6x + 3)

< 0, for x a.

(6.16)
Thus, f is decreasing for all x a. Also, notice that the only critical number is x = - 1, but since f is decreasing everywhere except at x = a, there are no local extrema. Turning to the second derivative, we get

Since (x2 + 3x + 3) > 0 for all x (Why is that?), we need not consider this factor. Considering the remaining factors, we have the number lines shown in the margin. Thus, we have that
(6.17)
It now follows that there are inflection points at x = 0 and at x = - 1. Notice that in Figures 3.63, the concavity information is not very clear and the inflection points are difficult to discern.

We note the obvious fact that the function is never zero and hence, there are no x intercepts. Finally, we consider the limits
(6.18)
and
(6.19)


Figure 3.65

Using all of the information in (6.14) - (6.19), we draw the graph seen in Figure 3.65. Here, we can clearly see the vertical and horizontal asymptotes, the changes in concavity and the fact that the function is decreasing across its entire domain. Since these are all of the features of the graph that we discovered through the calculus, this graph is representative of the major features in the behavior of the function.
 

In the following example, we consider the graph of a transcendental function with a vertical asymptote.

6.5   
Graphing Where Some Features Are Difficult to See
 
Draw a graph of f (x) = e1/x showing all significant features.
 
 
The default graph produced by our computer algebra system is not particularly helpful (see Figure 3.66a). The default graph produced by most graphing calculators (see Figure 3.66b) is certainly better, but we can't be sure if this is adequate without further analysis. First, notice that the domain of f is ( - ,0) (0, ). Thus, we consider


Figure 3.66a
y = e1/x.


Figure 3.66b
y = e1/x.

(6.20)
since 1/x as x 0 + . Also, since 1/x - as x 0 - (and et 0, as t - ),
(6.21)
From (6.20) and (6.21), there is a vertical asymptote at x = 0, but an unusual one, in that f (x) on one side of 0 and f (x) 0 on the other side. Next,
(6.22)
since e1/x > 0, for all x. From (6.22), we have that f is decreasing for all x 0. We also have

(6.23)
Since x = 0 is not in the domain of f, the only inflection point is at x = - . Next, note that
(6.24)
since 1/x 0 as x and et 1 as t 0. Likewise,
(6.25)
From (6.24) and (6.25), y = 1 is a horizontal asymptote, both as x and as x - . Finally, since
e1/x > 0,
for all x 0, there are no x - intercepts. It is worthwhile noting that all of these features of the graph were discernible from Figure 3.66b, except for the inflection point at x = - . Note that in almost any graph you draw, it is difficult to see all of the features of the function. This happens because the inflection point or ( -0.5,0.135335 ) is so close to the x - axis. Since the horizontal asymptote is the line y = 1, it is difficult to see both of these features on the same graph (without drawing the graph on a very large piece of paper). We settle for the graph seen in Figure 3.67, which shows all of the features except the inflection point and the concavity on the interval . To clearly see the behavior near the inflection point, we draw a graph that is zoomed-in on the area of the inflection point (see Figure 3.68). Here, while we have resolved the problem of the concavity near x = 0 and the inflection point, we have lost the details of the “big picture. ”


Figure 3.67
y = e1/x.


Figure 3.68
y = e1/x.


 

In our final example, we consider the graph of a function that is the sum of a trigonometric function and a polynomial.

6.6   
Graphing the Sum of a Polynomial and a Trigonometric Function
 
Draw a graph of f (x) = cos x - x, showing all significant features.
 
 
The default graph provided by our computer algebra system can be seen in Figure 3.69a. The graph produced by most graphing calculators looks like that in Figure 3.69b. As always, we will use the calculus to determine the behavior of the function more precisely. First, notice that the domain of f is the entire real line. Consequently, there are no vertical asymptotes. Next, we have
f ' (x) = - sin x - 1 0, for all x. (6.26)
Further, f ' (x) = 0 if and only if sin x = - 1. So, there are critical numbers (here, these are all locations of horizontal tangent lines), but since f ' (x) does not change sign, there are no local extrema. Even so, it is still of interest to find the locations of the horizontal tangent lines. Recall that
and more generally, for
for any integer n. Next, we see that
f '' (x) = - cos x
and on the interval [0,2 ], we have
So,
(6.27)
Outside of [0,2 ], f '' (x) simply repeats this pattern. In particular, this says that the graph has infinitely many inflection points, located at odd multiples of /2 .

To determine the behavior as x, we examine the limits
(6.28)
and
, (6.29)
since -1 cos x 1, for all x and since

Finally, to determine the x - intercept(s), we need to solve
f (x) = cos x - x = 0.
This can't be solved exactly, however. Since f ' (x) 0 for all x and Figures 3.69a and 3.69b show a zero around x = 1, there is only one zero and we must approximate this (use Newton's method or your calculator's solver). We get x 0.739085 as an approximation to the only x - intercept. Assembling all of the information in (6.26) - (6.29), we can draw the graph seen in Figure 3.70. Notice that Figure 3.69b shows the behavior just as clearly as Figure 3.70, but for a smaller range of x - values. Which of these is more “representative” is open to discussion.


Figure 3.69a
y = cos x - x.


Figure 3.69b
y = cos x - x.


Figure 3.70
y = cos x - x.


 


© 2002 McGraw-Hill Companies, Inc.