3.3 Graphs of Rational Functions
In Section 3.2, we learned about the types of behaviors to expect from graphs of rational functions: vertical asymptotes, holes in graph, horizontal and slant asymptotes. Moreover, Theorems 3.2, 3.3, and 3.4 tell us exactly when and where these behaviors will occur. We used rough sketches extensively in the last section to help us verify results. In this section, we delve more deeply into graphing rational functions with the goal of sketching relatively accurate graphs without the aid of a graphing utility. Your instructor will ultimately communicate the level of detail expected out of you when it comes to producing graphs of rational functions; what we provide here is an attempt to glean as much information about the graph as possible given the analytical tools at our disposal.
One of the standard tools we will use is the sign diagram which was first introduced in Section 1.5.1, and then revisited in Section 2.1. In these sections, to construct a sign diagram for a function , we first found the zeros of . The zeros broke the domain of into a series of intervals. We determined the sign of over the entire interval by finding the sign of for just one test value per interval. The theorem that justified this approach was the Intermediate Value Theorem, which says that continuous functions cannot change their sign between two values unless there is a zero between those two values.
This strategy fails in general with rational functions. Indeed, the very first function we studied in Section 3.2, changes sign between and , but there is no zero between these two values – instead, the graph changes sign across a vertical asymptote. We could also well imagine the graph of a rational function having a hole where an -intercept should be.[1] It turns out that with Calculus we can show rational functions are continuous on their domains. What this means for us is when we construct sign diagrams, we need to choose test values on either side of values excluded from the domain in addition to checking around zeros.[2]
Steps for Constructing a Sign Diagram for a Rational Function
Suppose is a rational function.
- Determine the domain of .
- Identify holes and vertical asymptotes for the graph of . Indicate any holes in the graph by placing them on the number line with a capital H above them and any vertical asymptotes with a vertical dashed line above them.
- Determine the zeros of and place them on the number line with the number above them.
- Choose a test value in each of the intervals determined in steps 1 and 2.
- Determine and record the sign of for each test value in step 3.
We now present our procedure for graphing rational functions and apply it to a few exhaustive examples. Please note that we decrease the amount of detail given in the explanations as we move through the examples. The reader should be able to fill in any details in those steps which we have abbreviated.
Steps for Graphing Rational Functions
Suppose is a rational function.
- Determine the domain of .
- Reduce to lowest terms, if applicable.
- Determine the location of any vertical asymptotes or holes in the graph, if they exist.
- Identify the axis intercepts, if they exist.
- Analyze the end behavior of . Find the horizontal or slant asymptote, if one exists.
- Use a sign diagram and plot additional points, as needed, to sketch the graph.[3]
Example 3.3.1
Example 3.3.1
Sketch a detailed graph of .
Solution:
We follow the six step procedure outlined above.
- Determine the domain.
To find the domain, we first find the excluded values. To that end, we solve and find .
Our domain is , or, using interval notation, . - Reduce to lowest terms.
We check if is in lowest terms by factoring:There are no common factors which means is already in lowest terms.
- Determine the location of any vertical asymptotes or holes in the graph, if they exist.
Per Theorem 3.2, vertical asymptotes and holes in the graph come from values excluded from the domain of .
The two numbers excluded from the domain of are and , didn’t reduce, thus Theorem 3.2 tells us and are vertical asymptotes of the graph.
We can actually go a step further at this point and determine exactly how the graph approaches the asymptote near each of these values. Though not absolutely necessary,[4] it is good practice for those heading off to Calculus. For the discussion that follows, we use the factored form of .- The behavior of as : Suppose . If we were to build a table of values, we’d use -values a little less than , say , and . While there is no harm in actually building a table like we did in Section 3.2, we want to develop a `number sense’ here. Let’s think about each factor in the formula of as we imagine substituting a number like into . The quantity would be very close to , the quantity would be very close to , and the factor would be very close to . More specifically, would be a little less than , in this case, We will call such a number a `very small ‘, `very small’ meaning close to zero in absolute value. So, mentally, as ,
Now, the closer gets to , the smaller will become, so even though we are multiplying our `very small ‘ by , the denominator will continue to get smaller and smaller, and remain negative. The result is a fraction whose numerator is positive, but whose denominator is very small and negative. Mentally,
The term `very big ‘ means a number with a large absolute value which is negative.[5]
What all of this means is that as , .
Now suppose we wanted to determine the behavior of as . If we imagine substituting something a little larger than in for , say , we mentally estimateWe conclude that as , .
- The behavior of as : Consider . We imagine substituting . Approximating as we did above, we get
We conclude that as , .
Similarly, as , we imagine substituting to getSo as .
We interpret this graphically below.
- The behavior of as : Suppose . If we were to build a table of values, we’d use -values a little less than , say , and . While there is no harm in actually building a table like we did in Section 3.2, we want to develop a `number sense’ here. Let’s think about each factor in the formula of as we imagine substituting a number like into . The quantity would be very close to , the quantity would be very close to , and the factor would be very close to . More specifically, would be a little less than , in this case, We will call such a number a `very small ‘, `very small’ meaning close to zero in absolute value. So, mentally, as ,
- Identify the axis intercepts, if they exist.
To find the -intercepts of the graph, we set . Solving results in thus . Because is in our domain, is the -intercept.
This is also the -intercept,[6] as we can quickly verify with . - Analyze the end behavior of . Find the horizontal or slant asymptote, if one exists.Next, we determine the end behavior of the graph of . The degree of the numerator is , and the degree of the denominator is , and so Theorem 3.3 tells us that is the horizontal asymptote. As with the vertical asymptotes, we can glean more detailed information using `number sense’. For the discussion below, we use the formula .
- The behavior of as : If we were to make a table of values to discuss the behavior of as , we would substitute very `large’ negative numbers in for , say for example, . The numerator would then be , whereas the denominator would be , which is pretty much the same as . Hence,
Notice that if we substituted in , essentially the same kind of division would occur, and we would be left with an even `smaller’ negative number. This not only confirms the fact that as , , it tells us that .
In other words, the graph of is a little bit below the -axis as we move to the far left. - The behavior of as : On the flip side, we can imagine substituting very large positive numbers in for and looking at the behavior of . For example, let . Proceeding as before, we get
The larger the number we put in, the smaller the positive number we would get out. In other words, as , , so the graph of is a little bit above the -axis as we look toward the far right.
We interpret these findings graphically below.
- The behavior of as : If we were to make a table of values to discuss the behavior of as , we would substitute very `large’ negative numbers in for , say for example, . The numerator would then be , whereas the denominator would be , which is pretty much the same as . Hence,
- Use a sign diagram and plot additional points, as needed, to sketch the graph.
Lastly, we construct a sign diagram for . The -values excluded from the domain of are , and the only zero of is .
Displaying these appropriately on the number line gives us four test intervals, and we choose the test values[7] , , and . We find is , is , is and is .
As we begin our sketch, it certainly appears as if the graph could be symmetric about the origin. Taking a moment to check for symmetry, we find . Hence, is odd and the graph of is symmetric about the origin.
Putting all of our work together, we get the graph below.
Something important to note about the above example is that while is the horizontal asymptote, the graph of actually crosses the -axis at . The myth that graphs of rational functions can’t cross their horizontal asymptotes is completely false,[8] as we shall see again in our next example.
Example 3.3.2
Example 3.3.2
Sketch a detailed graph of .
Solution:
- Determine the domain.
To find the values excluded from the domain of , we solve and find and .
Hence, our domain is , or using interval notation: . - Reduce to lowest terms.
To check if is in lowest terms, we factor:There is no cancellation, so is in lowest terms.
- Determine the location of any vertical asymptotes or holes in the graph, if they exist.
Due to the fact that was given to us in lowest terms, we have, once again by Theorem 3.2 vertical asymptotes and .
Keeping in mind , we proceed to our analysis near each of these values.- The behavior of as :} As , we imagine substituting a number a little bit less than . We have
so as , .
On the flip side, as , we getso as , .
- The behavior of as : As , we imagine plugging in a number just shy of . We have
Hence, as , .
As , we getso as , .
We interpret this analysis graphically below.
- The behavior of as :} As , we imagine substituting a number a little bit less than . We have
- Identify the axis intercepts, if they exist.
To find the -intercepts we set . Using the factored form of above, we find the zeros to be the solutions of . We obtain and . Both of these numbers are in the domain of , therefore we have two -intercepts, and .
To find the -intercept, we find , so our -intercept is . - Analyze the end behavior of . Find the horizontal or slant asymptote, if one exists.
As the degrees of the numerator and denominator of are the same, we know from Theorem 3.3 that we can find the horizontal asymptote of the graph of by taking the ratio of the leading terms coefficients, .
However, if we take the time to do a more detailed analysis, we will be able to reveal some `hidden’ behavior which would be lost otherwise. Using long division, we may rewrite as We focus our attention on the term .- The behavior of as : If imagine substituting into , we estimate
[9]
Hence,Hence, as , the graph is a little bit above the line .
- The behavior of as . To consider as , we imagine substituting and, going through the usual mental routine, find
Hence, , so the graph is just below the line as .
- The behavior of as : If imagine substituting into , we estimate
We sketch the end behavior below.
- Use a sign diagram and plot additional points, as needed, to sketch the graph.
Finally we construct our sign diagram. We place an dashed line above and , and a `‘ above and .Choosing test values in the test intervals gives us is on the intervals , and , and on the intervals and .As we piece together all of the information, it stands to reason the graph must cross the horizontal asymptote at some point after in order for it to approach from underneath.[10]To find where intersects , we solve and get , or . Note that is the remainder when is divided by , so it makes sense that for to equal the quotient , the remainder from the division must be . Sure enough, we find .The location of the -intercepts alone dashes all hope of the function being even or odd (do you see why?) so we skip the symmetry check in this case.
More can be said about the graph of . It stands to reason that must attain a local minimum at some point past because the graph of crosses through at but approaches from below as . Calculus verifies a local minimum at . We invite the reader to verify this claim using a graphing utility.
Example 3.3.3
Example 3.3.3
Sketch a detailed graph of .
Solution:
- Determine the domain.
Solving gives and as our excluded values.
Hence, the domain is or, using interval notation, . - Reduce to lowest terms.
To reduce , we need to factor the numerator and denominator. To factor the numerator, we use the techniques[11] set forth in Section 0.3 and get
Note we can use this formula for in our analysis of the graph of as long as we are not substituting . To make this exclusion specific, we write
- Determine the location of any vertical asymptotes or holes in the graph, if they exist.
From Theorem 3.2, we know that is a zero of the denominator of the reduced form of , thus we have a vertical asymptote there.
As for , the factor was divided from the denominator when we reduced , so there will be a hole when . To find the -coordinate of the hole, we substitute into , per Theorem 3.2 and get . Hence, we have a hole on the -axis at .It should make you uncomfortable plugging into the reduced formula for , especially because we’ve made such a big deal about the stipulation `‘ that goes along with that formula. What we are really doing is taking a Calculus short-cut to the more detailed kind of analysis near which we will show below.- The behavior of as : As , we imagine substituting a number a little bit less than . We have
thus as , .
On the other side of , as , we find thatso .
- The behavior of as : As , we imagine plugging in a number a bit less than . We have
Hence, as , . This means that as , the graph is a bit above the point .As , we get
This gives us that as , , so the graph is a little bit lower than here.
We interpret this graphically below.
- The behavior of as : As , we imagine substituting a number a little bit less than . We have
- Identify the axis intercepts, if they exist.
To find the -intercepts, as usual, we set and solve. Solving yields and .The latter isn’t in the domain of , in fact, we know there is a hole at , so we exclude it. Our only -intercept is .To find the -intercept, we set . Due to the fact that , we can use the reduced formula for and we get for a -intercept of . - Analyze the end behavior of . Find the horizontal or slant asymptote, if one exists.
For end behavior, we note that the degree of the numerator of , , is and the degree of the denominator, , is so by Theorem 3.4, the graph of has a slant asymptote.
For , we are far enough away from to use the reduced formula, , .To perform long division, we multiply out the numerator and get , , and rewrite , .By Theorem 3.4, the slant asymptote is , and to better see how the graph approaches the asymptote, we focus our attention on the term generated from the remainder, .- The behavior of as : Substituting into , we get the estimate
Hence,
This means the graph of is a little bit below the line as .
- The behavior of as : If , then
This means
or that the graph of is a little bit above the line as .
We sketch the end behavior below.
- The behavior of as : Substituting into , we get the estimate
- Use a sign diagram and plot additional points, as needed, to sketch the graph.
To make our sign diagram, we place a dashed line above and an `H’ above and a `‘ above .On our four test intervals, we find is on and and is on and .Putting all of our work together yields the graph below.To find if the graph of ever crosses the slant asymptote, we solve . This results in , which has no solution.[12] Hence, the graph of never crosses its slant asymptote.[13]
Our last graphing example is challenging in that our six step process provides us little information to work with.
Example 3.3.4
Example 3.3.4
Sketch a detailed graph of .
Solution:
- Determine the domain.
The denominator is never zero which means there are no excluded values.The domain is , or using interval notation, . - Reduce to lowest terms. <br>With no real zeros in the denominator, is an irreducible quadratic. Our only hope of reducing is if is a factor of . Performing long division gives us
The remainder is not zero so is already reduced.
- Determine the location of any vertical asymptotes or holes in the graph, if they exist. <br>There are no numbers excluded from the domain of , so there are no vertical asymptotes or holes in the graph of .
- Identify the axis intercepts, if they exist. <br>To find the -intercept, we’d set . As there are no real solutions to , we have no -intercepts.<br>, thus we do get as the -intercept.
- Analyze the end behavior of . Find the horizontal or slant asymptote, if one exists.<br>For end behavior, we note that because the degree of the numerator is exactly two more than the degree of the denominator, neither Theorems 3.3 nor 3.4 apply.<br>We know from our attempt to reduce that we can rewrite , so we focus our attention on the term corresponding to the remainder, It should be clear that as ,
which means
So the graph is a little bit above the graph of the parabola as .
- Use a sign diagram and plot additional points, as needed, to sketch the graph.<br>There isn’t much work to do for a sign diagram for , because its domain is all real numbers and it has no zeros. Our sole test interval is , and we know , so we conclude is for all real numbers.<br>We check for symmetry, and find , so is even and, hence, the graph is symmetric about the -axis. It may be tempting at this point to call it quits, reach for a graphing utility, or ask someone who knows Calculus.[14] It turns out, we can do a little bit better. Recall from Section 2.2.1, that when but , , hence . This means for and , .<br>Because , the graph of must fall to either side before heading off to . This means is a local maximum and, moreover, there are at least two local minimums, one on either side of .<br>We invite the reader to confirm this using a graphing utility.
Our last example turns the tables and invites us to write formulas for rational function given their graphs.
Example 3.3.5
Example 3.3.5
Write formulas for rational functions and given their graphs below:
Solution:
The good news is the graph of closely resembles the graph of , so once we know an expression for , we should be able to modify it to obtain .
We are told is a rational function, so we know there are polynomial functions and so that . We can factor and completely in terms of their leading coefficients and their zeros. For simplicity’s sake, we assume neither nor has any non-real zeros.
We focus our attention first on finding an expression for . When finding the -intercepts, we look for the zeros of by solving . This equation quickly reduces to solving .
As is an -intercept of the graph, we know is a zero of , and, hence, a zero of . Due to the fact that we are shown no other -intercepts, we assume , hence , have no other real zeros (and no non-real zeros by our assumption.) Definition 2.9 gives where is the leading coefficient of and is the multiplicity of the zero . The graph of crosses through the -axis in what appears to be a fairly linear fashion at , so it seems reasonable to set . Hence, .
Next, we focus our attention on finding . Theorem 3.2 says comes from a factor of in the denominator of . This means is a factor of . Because there are no other vertical asymptotes or holes in the graph, is the only real zero, hence (per our assumption) the only zero of . At this point, we have where is the leading coefficient of and is the multiplicity of the zero . As the graph of has the horizontal asymptote ,Theorem 3.4 tells us two things: first, degree of must match the degree of ; second, the ratio . Hence, the degree of is so that:
We have yet to use the -intercept, . In this case, we use it as a partial check: , as required. We can sketch by hand, to give a better check of our work.
Now it is time to find a formula for . The graphs of and look identical except the graph of has a hole at instead of an -intercept. Theorem 3.2 tells us this happens because a factor of divides out from the denominator when the formula for is reduced. Hence, we reverse this process and multiply the numerator and denominator of our expression for by :
Again, we can check our answer by applying the six step method to this function or, for a quick verification, we can use a graphing utility.[15]
Another way to approach Example 3.3.5 is to take a cue from Theorem 3.1. The graph of certainly appears to be the result of moving around the graph of . To that end, suppose . As the vertical asymptote is and the horizontal asymptote is , we get and . At this point, we have . We can determine by using the -intercept, : gives us so . Hence, . At this point we could check the -intercept is on the graph, check our answer using a graphing utility, or even better, get common denominators and write as a single rational expression to compare with our answer in the above example.
As usual, the authors offer no apologies for what may be construed as `pedantry’ in this section. We feel that the detail presented in this section is necessary to obtain a firm grasp of the concepts presented here and it also serves as an introduction to the methods employed in Calculus. In the end, your instructor will decide how much, if any, of the kinds of details presented here are `mission critical’ to your understanding of Precalculus. Without further delay, we present you with this section’s Exercises.
3.3.1 Section Exercises
In Exercises 1 – 16, use the six-step procedure to graph the rational function. Be sure to draw any asymptotes as dashed lines.
In Exercises 17 – 20, write a possible formula for the function whose graph is given.
Section 3.3 Exercise Answers can be found in the Appendix … Coming soon
- Take , for instance. ↵
- As excluded values are zeros of the denominator, we can think of this as really just generalizing what we already do. ↵
- It doesn't hurt to check for symmetry at this point, if convenient. ↵
- The sign diagram in step 6 will also determine the behavior near the vertical asymptotes. ↵
- The actual retail value of is approximately . ↵
- Per Exercise 77, functions can have at most one -intercept. is on the graph, thus it is the -intercept. ↵
- In this particular case, we don't need test values because our analysis of the behavior of near the vertical asymptotes and our end behavior analysis have given us the signs on each of the test intervals. In general, however, this won't always be the case, so for demonstration purposes, we continue with our usual construction. ↵
- That's why we called it a MYTH! ↵
- We are once again using the fact that for polynomials, end behavior is determined by the leading term, so in the denominator, the term dominates the and constant terms. ↵
- This subtlety would have been missed had we skipped the long division and subsequent end behavior analysis. ↵
- Bet you never thought you'd never see that stuff again before the Final Exam! ↵
- Alternatively, the remainder after the long division was which is never . ↵
- But rest assured, some graphs do! ↵
- This is exactly what the authors did in the Third Edition. Special thanks go to Erik Boczko from Ohio University for showing us that, in fact, we could do more with this example algebraically. ↵
- Be warned, however, a graphing utility may not show the hole at . ↵