In Section IntroRational, 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 vavshole, hathm and sathm tell us exactly when and where these behaviors will occur. We used graphing technology 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 QuadraticFunctions, and then revisited in Section RealZeros. In these sections, to construct a sign diagram for a function \(f\), we first found the zeros of \(f\). The zeros broke the domain of \(f\) into a series of intervals. We determined the sign of \(f(x)\) over the entire interval by finding the sign of \(f(x)\) for just one test value per interval. The theorem that justified this approach was the Intermediate Value Theorem, Theorem IVT, 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 IntroRational, \(r(x) = \frac {1}{x}\) changes sign between \(x=-1\) and \(x=1\), 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 \(x\)-intercept should be. With Calculus we can show rational functions are continuous on their domains which means when constructing sign diagrams, we need to choose test values on either side of values excluded from the domain in addition to checking around zeros.

Steps for Constructing a Sign Diagram for a Rational Function

  Suppose \(f\) is a rational function.

  1. Note any values excluded from the domain of \(f\) on the number line. You may wish to use a dashed line for a vertical asymptote and an open circle for a hole in the graph.
  2. Mark the zeros of \(f\) on the number line.
  3. Choose a test value in each of the intervals determined in steps 1 and 2.
  4. Determine and record the sign of \(f(x)\) 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 \(r\) is a rational function.

  1. Find the domain of \(r\).
  2. Reduce \(r(x)\) to lowest terms, if applicable.
  3. Determine the location of any vertical asymptotes or holes in the graph, if they exist.
  4. Find the axis intercepts, if they exist.
  5. Analyze the end behavior of \(r\). Find the horizontal or slant asymptote, if one exists.
  6. Use a sign diagram and plot additional points, as needed, to sketch the graph.

Something important to note about the above example is that while \(y=0\) is the horizontal asymptote, the graph of \(f\) actually crosses the \(x\)-axis at \((0,0)\). The myth that graphs of rational functions can’t cross their horizontal asymptotes is completely false, as we shall see again in our next example.

More can be said about the graph of \(y = g(t)\) above. It stands to reason that \(g\) must attain a local minimum at some point past \(t=7\) since the graph of \(g\) crosses through \(y=2\) at \((2,7)\) but approaches \(y=2\) from below as \(t \rightarrow \infty \). Calculus verifies a local minimum at \((13, 1.96)\). We invite the reader to verify this claim using a graphing utility.

Our last graphing example is challenging in that our six step process provides us little information to work with.

Our last example turns the tables and invites us to write formulas for rational functions given their graphs.

Another way to approach Example rationalfromgraph is to take a cue from Theorem linearlaurentlgraphs. The graph of \(y=r(x)\) certainly appears to be the result of moving around the graph of \(f(x) = \frac {1}{x}\). To that end, suppose \(r(x) = \frac {a}{x-k} + k\). Since the vertical asymptote is \(x=1\) and the horizontal asymptote is \(y=3\), we get \(h=1\) and \(k=3\). At this point, we have \(r(x) = \frac {a}{x-1}+3\). We can determine \(a\) by using the \(y\)-intercept, \((0,5)\): \(r(0) =5\) gives us \(-a+3 = 5\) so \(a = -2\). Hence, \(r(x) = \frac {-2}{x-1}+3\). At this point we could check the \(x\)-intercept \(\left (\frac {5}{3}, 0 \right )\) is on the graph, check our answer using a graphing utility, or even better, get common denominators and write \(r(x)\) 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.