Skip to main content
Mathematics LibreTexts

4.2: Graphs of Rational Functions

  • Page ID
    80778
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    In this section, we take a closer look at graphing rational functions. In Section 4.1, we learned that the graphs of rational functions may have holes in them and could have vertical, horizontal and slant asymptotes. Theorems 4.1, 4.2 and 4.3 tell us exactly when and where these behaviors will occur, and if we combine these results with what we already know about graphing functions, we will quickly be able to generate reasonable graphs of rational functions.

    One of the standard tools we will use is the sign diagram which was first introduced in Section 2.4, and then revisited in Section 3.1. In those sections, we operated under the belief that a function couldn’t change its sign without its graph crossing through the \(x\)-axis. The major theorem we used to justify this belief was the Intermediate Value Theorem, Theorem 3.1. It turns out the Intermediate Value Theorem applies to all continuous functions,1 not just polynomials. Although rational functions are continuous on their domains,2 Theorem 4.1 tells us that vertical asymptotes and holes occur at the values excluded from their domains. In other words, rational functions aren’t continuous at these excluded values which leaves open the possibility that the function could change sign without crossing through the \(x\)-axis. Consider the graph of \(y=h(x)\) from Example 4.1.1, recorded below for convenience. We have added its \(x\)-intercept at \(\left(\frac{1}{2},0\right)\) for the discussion that follows. Suppose we wish to construct a sign diagram for \(h(x)\). Recall that the intervals where \(h(x)>0\), or \((+)\), correspond to the \(x\)-values where the graph of \(y=h(x)\) is above the \(x\)-axis; the intervals on which \(h(x) < 0\), or \((-)\) correspond to where the graph is below the \(x\)-axis.

    Screen Shot 2022-03-31 at 10.50.24 PM.png

    As we examine the graph of \(y=h(x)\), reading from left to right, we note that from \((-\infty,-1)\), the graph is above the \(x\)-axis, so \(h(x)\) is \((+)\) there. At \(x=-1\), we have a vertical asymptote, at which point the graph ‘jumps’ across the \(x\)-axis. On the interval \(\left(-1,\frac{1}{2}\right)\), the graph is below the \(x\)-axis, so \(h(x)\) is \((-)\) there. The graph crosses through the \(x\)-axis at \(\left(\frac{1}{2},0\right)\) and remains above the \(x\)-axis until \(x=1\), where we have a ‘hole’ in the graph. Since \(h(1)\) is undefined, there is no sign here. So we have \(h(x)\) as \((+)\) on the interval \(\left(\frac{1}{2}, 1\right)\). Continuing, we see that on \((1, \infty)\), the graph of \(y=h(x)\) is above the \(x\)-axis, so we mark \((+)\) there. To construct a sign diagram from this information, we not only need to denote the zero of \(h\), but also the places not in the domain of \(h\). As is our custom, we write ‘\(0\)’ above \(\frac{1}{2}\) on the sign diagram to remind us that it is a zero of \(h\). We need a different notation for \(-1\) and \(1\), and we have chosen to use ‘!’ - a nonstandard symbol called the interrobang. We use this symbol to convey a sense of surprise, caution and wonderment - an appropriate attitude to take when approaching these points. The moral of the story is that when constructing sign diagrams for rational functions, we include the zeros as well as the values excluded from the domain.

    Steps for Constructing a Sign Diagram for a Rational Function

    Suppose \(r\) is a rational function.

    1. Place any values excluded from the domain of \(r\) on the number line with an ‘’ above them.
    2. Find the zeros of \(r\) and place them on the number line with the number \(0\) above them.
    3. Choose a test value in each of the intervals determined in steps 1 and 2.
    4. Determine the sign of \(r(x)\) for each test value in step 3, and write that sign above the corresponding interval

    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. Find the \(x\)- and \(y\)-intercepts of the graph of \(y=r(x)\), if they exist.
    4. Determine the location of any vertical asymptotes or holes in the graph, if they exist. Analyze the behavior of \(r\) on either side of the vertical asymptotes, if applicable.
    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 of \(y=r(x)\).
    Example 4.2.1

    Sketch a detailed graph of \(f(x) = \dfrac{3x}{x^2-4}\).

    Solution. We follow the six step procedure outlined above.

    1. As usual, we set the denominator equal to zero to get \(x^2 - 4 = 0\). We find \(x = \pm 2\), so our domain is \((-\infty, -2) \cup (-2,2) \cup (2,\infty)\).
    2. To reduce \(f(x)\) to lowest terms, we factor the numerator and denominator which yields \(f(x) = \frac{3x}{(x-2)(x+2)}\). There are no common factors which means \(f(x)\) is already in lowest terms.
    3. To find the \(x\)-intercepts of the graph of \(y=f(x)\), we set \(y=f(x) = 0\). Solving \(\frac{3x}{(x-2)(x+2)} = 0\) results in \(x=0\). Since \(x=0\) is in our domain, \((0,0)\) is the \(x\)-intercept. To find the \(y\)-intercept, we set \(x=0\) and find \(y = f(0) = 0\), so that \((0,0)\) is our \(y\)-intercept as well.3
    4. The two numbers excluded from the domain of \(f\) are \(x = -2\) and \(x=2\). Since \(f(x)\) didn’t reduce at all, both of these values of \(x\) still cause trouble in the denominator. Thus by Theorem 4.1, \(x=-2\) and \(x=2\) 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, it is best to use the factored form of \(f(x) = \frac{3x}{(x-2)(x+2)}\).
      • The behavior of \(y=f(x)\) as \(x \rightarrow -2\): Suppose \(x \rightarrow -2^{-}\). If we were to build a table of values, we’d use \(x\)-values a little less than \(-2\), say \(-2.1\), \(-2.01\) and \(-2.001\). While there is no harm in actually building a table like we did in Section 4.1, we want to develop a ‘number sense’ here. Let’s think about each factor in the formula of \(f(x)\) as we imagine substituting a number like \(x=-2.000001\) into \(f(x)\). The quantity \(3x\) would be very close to \(-6\), the quantity \((x-2)\) would be very close to \(-4\), and the factor \((x+2)\) would be very close to \(0\). More specifically, \((x+2)\) would be a little less than \(0\), in this case, \(-0.000001.\) We will call such a number a ‘very small \((-)\)’, ‘very small’ meaning close to zero in absolute value. So, mentally, as \(x \rightarrow -2^{-}\), we estimate \[f(x) = \dfrac{3x}{(x-2)(x+2)} \approx \dfrac{-6}{(-4)\left( \mbox{very small $(-)$}\right)} = \dfrac{3}{2 \left( \mbox{very small $(-)$}\right)}\nonumber\] Now, the closer \(x\) gets to \(-2\), the smaller \((x+2)\) will become, so even though we are multiplying our ‘very small \((-)\)’ by \(2\), 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, \[f(x) \approx \dfrac{3}{2 \left( \mbox{very small $(-)$}\right)} \approx \dfrac{3}{\mbox{very small $(-)$}} \approx \mbox{very big $(-)$}\nonumber\] The term ‘very big \((-)\)’ means a number with a large absolute value which is negative.5 What all of this means is that as \(x \rightarrow -2^{-}\), \(f(x) \rightarrow -\infty\). Now suppose we wanted to determine the behavior of \(f(x)\) as \(x \rightarrow -2^{+}\). If we imagine substituting something a little larger than \(-2\) in for \(x\), say \(-1.999999\), we mentally estimate \[f(x) \approx \dfrac{-6}{(-4)\left( \mbox{very small $(+)$}\right)} = \dfrac{3}{2 \left( \mbox{very small $(+)$}\right)} \approx \dfrac{3}{\mbox{very small $(+)$}} \approx \mbox{very big $(+)$}\nonumber\] We conclude that as \(x \rightarrow -2^{+}\), \(f(x) \rightarrow \infty\).
      • The behavior of \(y=f(x)\) as \(x \rightarrow 2\): Consider \(x \rightarrow 2^{-}\). We imagine substituting \(x = 1.999999\). Approximating \(f(x)\) as we did above, we get \[f(x) \approx \dfrac{6}{\left( \mbox{very small $(-)$}\right)(4)} = \dfrac{3}{2 \left( \mbox{very small $(-)$}\right)} \approx \dfrac{3}{\mbox{very small $(-)$}} \approx \mbox{very big $(-)$}\nonumber\] We conclude that as \(x \rightarrow 2^{-}\), \(f(x) \rightarrow -\infty\). Similarly, as \(x \rightarrow 2^{+}\), we imagine substituting \(x = 2.000001\) to get \(f(x) \approx \frac{3}{\text { very small }(+)} \approx \text { very big }(+)\). So as \(x \rightarrow 2^{+}, f(x) \rightarrow \infty\).

      Graphically, we have that near \(x=-2\) and \(x=2\) the graph of \(y=f(x)\) looks like6

      Screen Shot 2022-03-31 at 11.15.20 PM.png

    5. Next, we determine the end behavior of the graph of \(y=f(x)\). Since the degree of the numerator is \(1\), and the degree of the denominator is \(2\), Theorem 4.2 tells us that \(y=0\) 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 \(f(x) = \frac{3x}{x^2-4}\).
      • The behavior of \(y=f(x)\) as \(x \rightarrow -\infty\): If we were to make a table of values to discuss the behavior of \(f\) as \(x \rightarrow -\infty\), we would substitute very ‘large’ negative numbers in for \(x\), say for example, \(x = billion\). The numerator \(3x\) would then be \(-3 \, \mbox{billion}\), whereas the denominator \(x^2-4\) would be \((billion)^2 - 4\), which is pretty much the same as \(1(\mbox{billion})^2\). Hence, \[f\left(\mbox{$-1$ billion}\right) \approx \dfrac{-3 \, \mbox{billion}}{1(\mbox{billion})^2} \approx - \dfrac{3}{\mbox{billion}} \approx \mbox{very small $(-)$}\nonumber\]
      • The behavior of \(y=f(x)\) as \(x \rightarrow \infty\): On the flip side, we can imagine substituting very large positive numbers in for \(x\) and looking at the behavior of \(f(x)\). For example, let \(x = 1\, billion\). Proceeding as before, we get \[f\left(\mbox{$1$ billion}\right) \approx \dfrac{3 \, \mbox{billion}}{1(\mbox{billion})^2} \approx \dfrac{3}{\mbox{billion}} \approx \mbox{very small $(+)$}\nonumber\] The larger the number we put in, the smaller the positive number we would get out. In other words, as \(x \rightarrow \infty\), \(f(x) \rightarrow 0^{+}\), so the graph of \(y=f(x)\) is a little bit above the \(x\)-axis as we look toward the far right.

      Graphically, we have7

      Screen Shot 2022-03-31 at 11.23.36 PM.png

    6. Lastly, we construct a sign diagram for \(f(x)\). The \(x\)-values excluded from the domain of \(f\) are \(x = \pm 2\), and the only zero of \(f\) is \(x=0\). Displaying these appropriately on the number line gives us four test intervals, and we choose the test values8 \(x=-3\), \(x=-1\), \(x=1\) and \(x=3\). We find \(f(-3)\) is \((-)\), \(f(-1)\) is \((+)\), \(f(1)\) is \((-)\) and \(f(3)\) is \((+)\). Combining this with our previous work, we get the graph of \(y=f(x)\) below.

    Screen Shot 2022-03-31 at 11.25.36 PM.png

    ​​​​​A couple of notes are in order. First, the graph of \(y=f(x)\) certainly seems to possess symmetry with respect to the origin. In fact, we can check \(f(-x) = -f(x)\) to see that \(f\) is an odd function. In some textbooks, checking for symmetry is part of the standard procedure for graphing rational functions; but since it happens comparatively rarely9 we’ll just point it out when we see it. Also note 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,10 as we shall see again in our next example.

    Example 4.2.2

    Sketch a detailed graph of \(g(x) = \dfrac{2x^2-3x-5}{x^2-x-6}\).

    Solution.

    1. Setting \(x^2-x-6 = 0\) gives \(x = -2\) and \(x=3\). Our domain is \((-\infty, -2) \cup (-2,3) \cup (3,\infty)\).
    2. Factoring \(g(x)\) gives \(g(x) = \frac{(2x-5)(x+1)}{(x-3)(x+2)}\). There is no cancellation, so \(g(x)\) is in lowest terms.
    3. To find the \(x\)-intercept we set \(y = g(x) = 0\). Using the factored form of \(g(x)\) above, we find the zeros to be the solutions of \((2x-5)(x+1)=0\). We obtain \(x = \frac{5}{2}\) and \(x=-1\). Since both of these numbers are in the domain of \(g\), we have two \(x\)-intercepts, \(\left( \frac{5}{2},0\right)\) and \((-1,0)\). To find the \(y\)-intercept, we set \(x=0\) and find \(y = g(0) = \frac{5}{6}\), so our \(y\)-intercept is \(\left(0, \frac{5}{6}\right)\).
    4. Since \(g(x)\) was given to us in lowest terms, we have, once again by Theorem 4.1 vertical asymptotes \(x=-2\) and \(x=3\). Keeping in mind \(g(x) = \frac{(2x-5)(x+1)}{(x-3)(x+2)}\), we proceed to our analysis near each of these values.
      • The behavior of \(y=g(x)\) as \(x \rightarrow -2\): As \(x \rightarrow -2^{-}\), we imagine substituting a number a little bit less than \(-2\). We have \[g(x) \approx \frac{(-9)(-1)}{(-5)(\mbox{very small $(-)$})} \approx \frac{9}{\mbox{very small $(+)$}} \approx \mbox{very big (+)}\nonumber\] so as \(x \rightarrow -2^{-}\), \(g(x) \rightarrow \infty\). On the flip side, as \(x \rightarrow -2^{+}\), we get \[g(x) \approx \frac{9}{\mbox{ very small $(-)$}} \approx \mbox{very big $(-)$}\nonumber\] so \(g(x) \rightarrow -\infty\).
      • The behavior of \(y=g(x)\) as \(x \rightarrow 3\): As \(x \rightarrow 3^{-}\), we imagine plugging in a number just shy of \(3\). We have \[g(x) \approx \frac{(1)(4)}{(\mbox{ very small $(-)$}) (5)} \approx \frac{4}{\mbox{very small $(-)$}} \approx \mbox{very big $(-)$}\nonumber\] Hence, as \(x \rightarrow 3^{-}\), \(g(x) \rightarrow -\infty\). As \(x \rightarrow 3^{+}\), we get \[g(x) \approx \frac{4}{\mbox{ very small $(+)$}} \approx \mbox{very big $(+)$}\nonumber\] so \(g(x) \rightarrow \infty\).

      Graphically, we have (again, without labels on the \(y\)-axis)

      Screen Shot 2022-03-31 at 11.36.38 PM.png

    5. Since the degrees of the numerator and denominator of \(g(x)\) are the same, we know from Theorem 4.2 that we can find the horizontal asymptote of the graph of \(g\) by taking the ratio of the leading terms coefficients, \(y = \frac{2}{1} = 2\). 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.11 As in the discussion following Theorem 4.2, we use the result of the long division \(\left(2x^2-3x-5\right) \div \left(x^2-x-6\right)\) to rewrite \(g(x) = \frac{2x^2-3x-5}{x^2-x-6}\) as \(g(x) = 2 - \frac{x-7}{x^2-x-6}.\) We focus our attention on the term \(\frac{x-7}{x^2-x-6}\).
      • The behavior of \(y=g(x)\) as \(x \rightarrow -\infty\): If imagine substituting \(x = billion\) into \(\frac{x-7}{x^2-x-6}\), we estimate \(\frac{x-7}{x^{2}-x-6} \approx \frac{-1 \text { billion }}{1 \text { billion }^{2}} \approx \text { very small }(-)\).12 Hence, \[g(x) = 2 - \frac{x-7}{x^2-x-6} \approx 2 - \mbox{very small $(-)$} = 2 + \mbox{very small $(+)$}\nonumber\] In other words, as \(x \rightarrow -\infty\), the graph of \(y=g(x)\) is a little bit above the line \(y=2\).
      • The behavior of \(y=g(x)\) as \(x \rightarrow \infty\). To consider \(\frac{x-7}{x^2-x-6}\) as \(x \rightarrow \infty\), we imagine substituting \(x = 1\, billion\) and, going through the usual mental routine, find \[\frac{x-7}{x^2-x-6} \approx \mbox{very small $(+)$}\nonumber\] Hence, \(g(x) \approx 2-\text { very small }(+)\), in other words, the graph of \(y=g(x)\) is just below the line \(y=2\) as \(x \rightarrow \infty\).

      On \(y=g(x)\), we have (again, without labels on the \(x\)-axis)

      Screen Shot 2022-03-31 at 11.43.43 PM.png

    6. Finally we construct our sign diagram. We place an ‘’ above \(x=-2\) and \(x=3\), and a ‘\(0\)’ above \(x = \frac{5}{2}\) and \(x=-1\). Choosing test values in the test intervals gives us \(f(x)\) is \((+)\) on the intervals \((-\infty, -2)\), \(\left(-1, \frac{5}{2}\right)\) and \((3, \infty)\), and \((-)\) on the intervals \((-2,-1)\) and \(\left(\frac{5}{2}, 3\right)\). As we piece together all of the information, we note that the graph must cross the horizontal asymptote at some point after \(x=3\) in order for it to approach \(y=2\) from underneath. This is the subtlety that we would have missed had we skipped the long division and subsequent end behavior analysis. We can, in fact, find exactly when the graph crosses \(y=2\). As a result of the long division, we have \(g(x) = 2 - \frac{x-7}{x^2-x-6}\). For \(g(x) = 2\), we would need \(\frac{x-7}{x^2-x-6} = 0\). This gives \(x-7= 0\), or \(x=7\). Note that \(x-7\) is the remainder when \(2x^2-3x-5\) is divided by \(x^2-x-6\), so it makes sense that for \(g(x)\) to equal the quotient \(2\), the remainder from the division must be \(0\). Sure enough, we find \(g(7)=2\). Moreover, it stands to reason that \(g\) must attain a relative minimum at some point past \(x=7\). Calculus verifies that at \(x=13\), we have such a minimum at exactly \((13, 1.96)\). The reader is challenged to find calculator windows which show the graph crossing its horizontal asymptote on one window, and the relative minimum in the other.

    Screen Shot 2022-03-31 at 11.46.35 PM.png

    ​​​​​​Our next example gives us an opportunity to more thoroughly analyze a slant asymptote.

    Example 4.2.3

    Sketch a detailed graph of \(h(x) = \dfrac{2x^3+5x^2+4x+1}{x^2+3x+2}\).

    Solution.

    1. For domain, you know the drill. Solving \(x^2+3x+2 = 0\) gives \(x = -2\) and \(x=-1\). Our answer is \((-\infty, -2) \cup (-2, -1) \cup (-1, \infty)\).
    2. To reduce \(h(x)\), we need to factor the numerator and denominator. To factor the numerator, we use the techniques13 set forth in Section 3.3 and we get \[h(x) = \dfrac{2x^3+5x^2+4x+1}{x^2+3x+2} = \dfrac{(2x+1)(x+1)^2}{(x+2)(x+1)} = \dfrac{ (2x+1) (x+1)^{\cancelto{1}{2}} }{(x+2)\cancel{(x+1)}} = \dfrac{(2x+1)(x+1)}{x+2}\nonumber\] We will use this reduced formula for \(h(x)\) as long as we’re not substituting \(x = −1\). To make this exclusion specific, we write \(h(x)=\frac{(2 x+1)(x+1)}{x+2}, x \neq-1\).
    3. To find the \(x\)-intercepts, as usual, we set \(h(x) = 0\) and solve. Solving \(\frac{(2x+1)(x+1)}{x+2}=0\) yields \(x=-\frac{1}{2}\) and \(x=-1\). The latter isn’t in the domain of \(h\), so we exclude it. Our only \(x\)-intercept is \(\left(-\frac{1}{2}, 0\right)\). To find the \(y\)-intercept, we set \(x=0\). Since \(0 \neq -1\), we can use the reduced formula for \(h(x)\) and we get \(h(0) = \frac{1}{2}\) for a \(y\)-intercept of \(\left(0,\frac{1}{2}\right)\).
    4. From Theorem 4.1, we know that since \(x=-2\) still poses a threat in the denominator of the reduced function, we have a vertical asymptote there. As for \(x=-1\), the factor \((x+1)\) was canceled from the denominator when we reduced \(h(x)\), so it no longer causes trouble there. This means that we get a hole when \(x=-1\). To find the \(y\)-coordinate of the hole, we substitute \(x=-1\) into \(\frac{(2x+1)(x+1)}{x+2}\), per Theorem 4.1 and get \(0\). Hence, we have a hole on the \(x\)-axis at \((-1,0)\). It should make you uncomfortable plugging \(x=-1\) into the reduced formula for \(h(x)\), especially since we’ve made such a big deal concerning the stipulation about not letting \(x=-1\) for that formula. What we are really doing is taking a Calculus short-cut to the more detailed kind of analysis near \(x=-1\) which we will show below. Speaking of which, for the discussion that follows, we will use the formula \(h(x) = \frac{(2x+1)(x+1)}{x+2}\), \(x \neq -1\).
      • The behavior of \(y=h(x)\) as \(x \rightarrow -2\): As \(x \rightarrow -2^{-}\), we imagine substituting a number a little bit less than \(-2\). We have \(h(x) \approx \frac{(-3)(-1)}{(\text { very small }(-))} \approx \frac{3}{(\text { very small }(-))} \approx \text { very big }(-)\) thus as \(x \rightarrow -2^{-}\), \(h(x) \rightarrow -\infty\). On the other side of \(-2\), as \(x \rightarrow -2^{+}\), we find that \(h(x) \approx \frac{3}{\text { very small }(+)} \approx \text { very big }(+)\), so \(h(x) \rightarrow \infty\).
      • The behavior of \(y=h(x)\) as \(x \rightarrow -1\). As \(x \rightarrow -1^{-}\), we imagine plugging in a number a bit less than \(x=-1\). We have \(h(x) \approx \frac{(-1)(\text { very small }(-))}{1}=\text { very small }(+)\) Hence, as \(x \rightarrow -1^{-}\), \(h(x) \rightarrow 0^{+}\). This means that as \(x \rightarrow -1^{-}\), the graph is a bit above the point \((-1,0)\). As \(x \rightarrow -1^{+}\), we get \(h(x) \approx \frac{(-1)(\text { very small }(+))}{1}=\text { very small }(-)\). This gives us that as \(x \rightarrow -1^{+}\), \(h(x) \rightarrow 0^{-}\), so the graph is a little bit lower than \((-1,0)\) here.

      Graphically, we have

      Screen Shot 2022-03-31 at 11.50.57 PM.png

    5. For end behavior, we note that the degree of the numerator of \(h(x)\), \(2x^3+5x^2+4x+1\), is \(3\) and the degree of the denominator, \(x^2+3x+2\), is \(2\) so by Theorem 4.3, the graph of \(y = h(x)\) has a slant asymptote. For \(x\rightarrow \pm \infty\), we are far enough away from \(x=-1\) to use the reduced formula, \(h(x) = \frac{(2x+1)(x+1)}{x+2}\), \(x \neq -1\). To perform long division, we multiply out the numerator and get \(h(x) = \frac{2x^2+3x+1}{x+2}\), \(x \neq -1\), and rewrite \(h(x) = 2x-1+\frac{3}{x+2}\), \(x \neq -1\). By Theorem 4.3, the slant asymptote is \(y = 2x-1\), and to better see how the graph approaches the asymptote, we focus our attention on the term generated from the remainder, \(\frac{3}{x+2}\).
      • The behavior of \(y=h(x)\) as \(x \rightarrow -\infty\): Substituting \(x = billion\) into \(\frac{3}{x+2}\), we get the estimate \(\frac{3}{-1 \text { billion }} \approx \text { very small }(-)\). Hence, \(h(x)=2 x-1+\frac{3}{x+2} \approx 2 x-1+\text { very small }(-)\). This means the graph of \(y=h(x)\) is a little bit below the line \(y=2x-1\) as \(x \rightarrow -\infty\).
      • The behavior of \(y=h(x)\) as \(x \rightarrow \infty\): If \(x \rightarrow \infty\), then \(\frac{3}{x+2} \approx \text { very small }(+)\). This means \(h(x) \approx 2 x-1+\text { very small }(+)\), or that the graph of \(y=h(x)\) is a little bit above the line \(y=2x-1\) as \(x \rightarrow \infty\).

      Graphically we have

      Screen Shot 2022-03-31 at 11.52.56 PM.png

    6. To make our sign diagram, we place an ‘’ above \(x=-2\) and \(x=-1\) and a ‘\(0\)’ above \(x=-\frac{1}{2}\). On our four test intervals, we find \(h(x)\) is \((+)\) on \((-2,-1)\) and \(\left(-\frac{1}{2}, \infty\right)\) and \(h(x)\) is \((-)\) on \((-\infty, -2)\) and \(\left(-1,-\frac{1}{2}\right)\). Putting all of our work together yields the graph below.

      Screen Shot 2022-04-01 at 12.03.29 AM.png

      We could ask whether the graph of \(y=h(x)\) crosses its slant asymptote. From the formula \(h(x) = 2x-1+\frac{3}{x+2}\), \(x \neq -1\), we see that if \(h(x) = 2x-1\), we would have \(\frac{3}{x+2} = 0\). Since this will never happen, we conclude the graph never crosses its slant asymptote.14

    We end this section with an example that shows it’s not all pathological weirdness when it comes to rational functions and technology still has a role to play in studying their graphs at this level.

    Example 4.2.4

    Sketch the graph of \(r(x) = \dfrac{x^4+1}{x^2+1}\).

    Solution.

    1. The denominator \(x^2+1\) is never zero so the domain is \((-\infty, \infty)\).
    2. With no real zeros in the denominator, \(x^2+1\) is an irreducible quadratic. Our only hope of reducing \(r(x)\) is if \(x^2+1\) is a factor of \(x^4+1\). Performing long division gives us \[\frac{x^4+1}{x^2+1} = x^2-1+\frac{2}{x^2+1}\nonumber\] The remainder is not zero so \(r(x)\) is already reduced.
    3. To find the \(x\)-intercept, we’d set \(r(x) = 0\). Since there are no real solutions to \(\frac{x^4+1}{x^2+1}=0\), we have no \(x\)-intercepts. Since \(r(0) = 1\), we get \((0,1)\) as the \(y\)-intercept.
    4. This step doesn’t apply to \(r\), since its domain is all real numbers.
    5. For end behavior, we note that since the degree of the numerator is exactly two more than the degree of the denominator, neither Theorems 4.2 nor 4.3 apply.15 We know from our attempt to reduce \(r(x)\) that we can rewrite \(r(x) = x^2-1+\frac{2}{x^2+1}\), so we focus our attention on the term corresponding to the remainder, \(\frac{2}{x^2+1}\) It should be clear that as \(x \rightarrow \pm \infty\), \(\frac{2}{x^{2}+1} \approx \text { very small }(+)\), which means \(r(x) \approx x^{2}-1+\text { very small }(+)\). So the graph \(y=r(x)\) is a little bit above the graph of the parabola \(y=x^2-1\) as \(x \rightarrow \pm \infty\). Graphically,

      Screen Shot 2022-04-01 at 12.12.10 AM.png

    6. There isn’t much work to do for a sign diagram for \(r(x)\), since its domain is all real numbers and it has no zeros. Our sole test interval is \((-\infty, \infty)\), and since we know \(r(0) = 1\), we conclude \(r(x)\) is \((+)\) for all real numbers. At this point, we don’t have much to go on for a graph.16 Below is a comparison of what we have determined analytically versus what the calculator shows us. We have no way to detect the relative extrema analytically17 apart from brute force plotting of points, which is done more efficiently by the calculator.

    Screen Shot 2022-04-01 at 12.13.51 AM.png

    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. As we have said many times in the past, 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.

    4.2.1 Exercises

    In Exercises 1 - 16, use the six-step procedure to graph the rational function. Be sure to draw any asymptotes as dashed lines.

    1. \(f(x) = \dfrac{4}{x + 2}\)
    2. \(f(x) = \dfrac{5x}{6 - 2x}\)
    3. \(f(x) = \dfrac{1}{x^{2}}\)
    4. \(f(x) = \dfrac{1}{x^{2} + x - 12}\)
    5. \(f(x) = \dfrac{2x - 1}{-2x^{2} - 5x + 3}\)
    6. \(f(x) = \dfrac{x}{x^{2} + x - 12}\)
    7. \(f(x) = \dfrac{4x}{x^2+4}\)
    8. \(f(x) = \dfrac{4x}{x^2-4}\)
    9. \(f(x) = \dfrac{x^2-x-12}{x^2+x-6}\)
    10. \(f(x) = \dfrac{3x^2-5x-2}{x^2-9}\)
    11. \(f(x) = \dfrac{x^2-x-6}{x+1}\)
    12. \(f(x) = \dfrac{x^2-x}{3-x}\)
    13. \(f(x) = \dfrac{x^3+2x^2+x}{x^2-x-2}\)
    14. \(f(x) = \dfrac{-x^{3} + 4x}{x^{2} - 9}\)
    15. \(f(x) = \dfrac{x^3-2x^2+3x}{2x^2+2}\)
    16. 18 \(f(x) = \dfrac{x^{2} - 2x + 1}{x^{3} + x^{2} - 2x}\)

    In Exercises 17 - 20, graph the rational function by applying transformations to the graph of \(y = \dfrac{1}{x}\).

    1. \(f(x) = \dfrac{1}{x - 2}\)
    2. \(g(x) = 1 - \dfrac{3}{x}\)
    3. \(h(x) = \dfrac{-2x + 1}{x}\) (Hint: Divide)
    4. \(j(x) = \dfrac{3x - 7}{x - 2}\) (Hint: Divide)
    5. Discuss with your classmates how you would graph \(f(x) = \dfrac{ax + b}{cx + d}\). What restrictions must be placed on \(a, b, c\) and \(d\) so that the graph is indeed a transformation of \(y = \dfrac{1}{x}\)?
    6. In Example 3.1.1 in Section 3.1 we showed that \(p(x) = \frac{4x+x^3}{x}\) is not a polynomial even though its formula reduced to \(4 + x^{2}\) for \(x \neq 0\). However, it is a rational function similar to those studied in the section. With the help of your classmates, graph \(p(x)\).
    7. Let \(g(x) = \displaystyle \frac{x^{4} - 8x^{3} + 24x^{2} - 72x + 135}{x^{3} - 9x^{2} + 15x - 7}.\;\) With the help of your classmates, find the \(x\)- and \(y\)- intercepts of the graph of \(g\). Find the intervals on which the function is increasing, the intervals on which it is decreasing and the local extrema. Find all of the asymptotes of the graph of \(g\) and any holes in the graph, if they exist. Be sure to show all of your work including any polynomial or synthetic division. Sketch the graph of \(g\), using more than one picture if necessary to show all of the important features of the graph.

    Example 4.2.4 showed us that the six-step procedure cannot tell us everything of importance about the graph of a rational function. Without Calculus, we need to use our graphing calculators to reveal the hidden mysteries of rational function behavior. Working with your classmates, use a graphing calculator to examine the graphs of the rational functions given in Exercises 24 - 27. Compare and contrast their features. Which features can the six-step process reveal and which features cannot be detected by it?

    1. \(f(x) = \dfrac{1}{x^{2} + 1}\)
    2. \(f(x) = \dfrac{x}{x^{2} + 1}\)
    3. \(f(x) = \dfrac{x^{2}}{x^{2} + 1}\)
    4. \(f(x) = \dfrac{x^{3}}{x^{2} + 1}\)

    4.2.2 Answers

    1. \(f(x) = \dfrac{4}{x + 2}\)
      Domain: \((-\infty, -2) \cup (-2, \infty)\)
      No \(x\)-intercepts
      \(y\)-intercept: \((0, 2)\)
      Vertical asymptote: \(x = -2\)
      As \(x \rightarrow -2^{-}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow -2^{+}, \; f(x) \rightarrow \infty\)
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow 0^{-}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 12.54.43 AM.png

    2. \(f(x) = \dfrac{5x}{6 - 2x}\)
      Domain: \((-\infty, 3) \cup (3, \infty)\)
      \(x\)-intercept: \((0, 0)\)
      \(y\)-intercept: \((0, 0)\)
      Vertical asymptote: \(x = 3\)
      As \(x \rightarrow 3^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow 3^{+}, \; f(x) \rightarrow -\infty\)
      Horizontal asymptote: \(y = -\frac{5}{2}\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow -\frac{5}{2}^{+}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow -\frac{5}{2}^{-}\)

      Screen Shot 2022-04-01 at 12.55.11 AM.png

    3. \(f(x) = \dfrac{1}{x^{2}}\)
      Domain: \((-\infty, 0) \cup (0, \infty)\)
      No \(x\)-intercepts
      No \(y\)-intercepts
      Vertical asymptote: \(x = 0\)
      As \(x \rightarrow 0^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow 0^{+}, \; f(x) \rightarrow \infty\)
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow 0^{+}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 12.55.44 AM.png

    4. \(f(x) = \dfrac{1}{x^{2} + x - 12} = \dfrac{1}{(x - 3)(x + 4)}\)
      Domain: \((-\infty, -4) \cup (-4, 3) \cup (3, \infty)\)
      No \(x\)-intercepts
      \(y\)-intercept: \((0, -\frac{1}{12})\)
      Vertical asymptotes: \(x = -4\) and \(x = 3\)
      As \(x \rightarrow -4^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow -4^{+}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow 3^{-}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow 3^{+}, \; f(x) \rightarrow \infty\)
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow 0^{+}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 12.56.19 AM.png

    5. \(f(x) = \dfrac{2x - 1}{-2x^{2} - 5x + 3} = -\dfrac{2x - 1}{(2x - 1)(x + 3)}\)
      Domain: \((-\infty, -3) \cup (-3, \frac{1}{2}) \cup (\frac{1}{2}, \infty)\)
      No \(x\)-intercepts
      \(y\)-intercept: \((0, -\frac{1}{3})\)
      \(f(x) = \dfrac{-1}{x + 3}, \; x \neq \frac{1}{2}\)
      Hole in the graph at \((\frac{1}{2}, -\frac{2}{7})\)
      Vertical asymptote: \(x = -3\)
      As \(x \rightarrow -3^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow -3^{+}, \; f(x) \rightarrow -\infty\)
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow 0^{+}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow 0^{-}\)

      Screen Shot 2022-04-01 at 12.56.49 AM.png

    6. \(f(x) = \dfrac{x}{x^{2} + x - 12} = \dfrac{x}{(x - 3)(x + 4)}\)
      Domain: \((-\infty, -4) \cup (-4, 3) \cup (3, \infty)\)
      \(x\)-intercept: \((0, 0)\)
      \(y\)-intercept: \((0, 0)\)
      Vertical asymptotes: \(x = -4\) and \(x = 3\)
      As \(x \rightarrow -4^{-}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow -4^{+}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow 3^{-}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow 3^{+}, \; f(x) \rightarrow \infty\)
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow 0^{-}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 12.57.30 AM.png

    7. \(f(x) = \dfrac{4x}{x^{2} + 4}\)
      Domain: \((-\infty, \infty)\)
      \(x\)-intercept: \((0,0)\)
      \(y\)-intercept: \((0,0)\)
      No vertical asymptotes
      No holes in the graph
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, f(x) \rightarrow 0^{-}\)
      As \(x \rightarrow \infty, f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 12.58.02 AM.png

    8. \(f(x) = \dfrac{4x}{x^{2} -4} = \dfrac{4x}{(x + 2)(x - 2)}\)
      Domain: \((-\infty, -2) \cup (-2, 2) \cup (2, \infty)\)
      \(x\)-intercept: \((0,0)\)
      \(y\)-intercept: \((0,0)\)
      Vertical asymptotes: \(x = -2, x = 2\)
      As \(x \rightarrow -2^{-}, f(x) \rightarrow -\infty\)
      As \(x \rightarrow -2^{+}, f(x) \rightarrow \infty\)
      As \(x \rightarrow 2^{-}, f(x) \rightarrow -\infty\)
      As \(x \rightarrow 2^{+}, f(x) \rightarrow \infty\)
      No holes in the graph
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, f(x) \rightarrow 0^{-}\)
      As \(x \rightarrow \infty, f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 12.58.33 AM.png

    9. \(f(x) = \dfrac{x^2-x-12}{x^{2} +x - 6} = \dfrac{x-4}{x - 2} \, x \neq -3\)
      Domain: \((-\infty, -3) \cup (-3, 2) \cup (2, \infty)\)
      \(x\)-intercept: \((4,0)\)
      \(y\)-intercept: \((0,2)\)
      Vertical asymptote: \(x = 2\)
      As \(x \rightarrow 2^{-}, f(x) \rightarrow \infty\)
      As \(x \rightarrow 2^{+}, f(x) \rightarrow -\infty\)
      Hole at \(\left(-3, \frac{7}{5} \right)\)
      Horizontal asymptote: \(y = 1\)
      As \(x \rightarrow -\infty, f(x) \rightarrow 1^{+}\)
      As \(x \rightarrow \infty, f(x) \rightarrow 1^{-}\)

      Screen Shot 2022-04-01 at 12.59.10 AM.png

    10. \(f(x) = \dfrac{3x^2-5x-2}{x^{2} -9} = \dfrac{(3x+1)(x-2)}{(x + 3)(x - 3)}\)
      Domain: \((-\infty, -3) \cup (-3, 3) \cup (3, \infty)\)
      \(x\)-intercepts: \(\left(-\frac{1}{3}, 0 \right)\), \((2,0)\)
      \(y\)-intercept: \(\left(0, \frac{2}{9} \right)\)
      Vertical asymptotes: \(x = -3, x = 3\)
      As \(x \rightarrow -3^{-}, f(x) \rightarrow \infty\)
      As \(x \rightarrow -3^{+}, f(x) \rightarrow -\infty\)
      As \(x \rightarrow 3^{-}, f(x) \rightarrow -\infty\)
      As \(x \rightarrow 3^{+}, f(x) \rightarrow \infty\)
      No holes in the graph
      Horizontal asymptote: \(y = 3\)
      As \(x \rightarrow -\infty, f(x) \rightarrow 3^{+}\)
      As \(x \rightarrow \infty, f(x) \rightarrow 3^{-}\)

      Screen Shot 2022-04-01 at 12.59.46 AM.png

    11. \(f(x) = \dfrac{x^2-x-6}{x+1} = \dfrac{(x-3)(x+2)}{x+1}\)
      Domain: \((-\infty, -1) \cup (-1, \infty)\)
      \(x\)-intercepts: \((-2,0)\), \((3,0)\)
      \(y\)-intercept: \((0,-6)\)
      Vertical asymptote: \(x = -1\)
      As \(x \rightarrow -1^{-}, f(x) \rightarrow \infty\)
      As \(x \rightarrow -1^{+}, f(x) \rightarrow -\infty\)
      Slant asymptote: \(y = x-2\)
      As \(x \rightarrow -\infty\), the graph is above \(y=x-2\)
      As \(x \rightarrow \infty\), the graph is below \(y=x-2\)

      Screen Shot 2022-04-01 at 1.02.05 AM.png

    12. \(f(x) = \dfrac{x^2-x}{3-x} = \dfrac{x(x-1)}{3-x}\)
      Domain: \((-\infty, 3) \cup (3, \infty)\)
      \(x\)-intercepts: \((0,0)\), \((1,0)\)
      \(y\)-intercept: \((0,0)\)
      Vertical asymptote: \(x = 3\)
      As \(x \rightarrow 3^{-}, f(x) \rightarrow \infty\)
      As \(x \rightarrow 3^{+}, f(x) \rightarrow -\infty\)
      Slant asymptote: \(y = -x-2\)
      As \(x \rightarrow -\infty\), the graph is above \(y=-x-2\)
      As \(x \rightarrow \infty\), the graph is below \(y=-x-2\)

      Screen Shot 2022-04-01 at 1.02.50 AM.png

    13. \(f(x) = \dfrac{x^3+2x^2+x}{x^{2} -x-2} = \dfrac{x(x+1)}{x - 2} \, x \neq -1\)
      Domain: \((-\infty, -1) \cup (-1, 2) \cup (2, \infty)\)
      \(x\)-intercept: \((0,0)\)
      \(y\)-intercept: \((0,0)\)
      Vertical asymptote: \(x = 2\)
      As \(x \rightarrow 2^{-}, f(x) \rightarrow -\infty\)
      As \(x \rightarrow 2^{+}, f(x) \rightarrow \infty\)
      Hole at \((-1,0)\)
      Slant asymptote: \(y = x+3\)
      As \(x \rightarrow -\infty\), the graph is below \(y=x+3\)
      As \(x \rightarrow \infty\), the graph is above \(y=x+3\)

      Screen Shot 2022-04-01 at 1.06.52 AM.png

    14. \(f(x) = \dfrac{-x^{3} + 4x}{x^{2} - 9}\)
      Domain: \((-\infty, -3) \cup (-3, 3) \cup (3, \infty)\)
      \(x\)-intercepts: \((-2, 0), (0, 0), (2, 0)\)
      \(y\)-intercept: \((0, 0)\)
      Vertical asymptotes: \(x = -3, x = 3\)
      As \(x \rightarrow -3^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow -3^{+}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow 3^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow 3^{+}, \; f(x) \rightarrow -\infty\)
      Slant asymptote: \(y = -x\)
      As \(x \rightarrow -\infty\), the graph is above \(y=-x\)
      As \(x \rightarrow \infty\), the graph is below \(y=-x\)

      Screen Shot 2022-04-01 at 1.07.28 AM.png

    15. \(f(x) = \dfrac{x^3-2x^2+3x}{2x^2+2}\)
      Domain: \((-\infty,\infty)\)
      \(x\)-intercept: \((0,0)\)
      \(y\)-intercept: \((0,0)\)
      Slant asymptote: \(y = \frac{1}{2}x-1\)
      As \(x \rightarrow -\infty\), the graph is below \(y = \frac{1}{2}x-1\)
      As \(x \rightarrow \infty\), the graph is above \(y = \frac{1}{2}x-1\)

      Screen Shot 2022-04-01 at 1.08.05 AM.png

    16. \(f(x) = \dfrac{x^{2} - 2x + 1}{x^{3} + x^{2} - 2x}\)
      Domain: \((-\infty, -2) \cup (-2, 0) \cup (0, 1) \cup (1, \infty)\)
      \(f(x) = \dfrac{x - 1}{x(x + 2)}, \; x \neq 1\)
      No \(x\)-intercepts
      No \(y\)-intercepts
      Vertical asymptotes: \(x = -2\) and \(x = 0\)
      As \(x \rightarrow -2^{-}, \; f(x) \rightarrow -\infty\)
      As \(x \rightarrow -2^{+}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow 0^{-}, \; f(x) \rightarrow \infty\)
      As \(x \rightarrow 0^{+}, \; f(x) \rightarrow -\infty\)
      Hole in the graph at \((1, 0)\)
      Horizontal asymptote: \(y = 0\)
      As \(x \rightarrow -\infty, \; f(x) \rightarrow 0^{-}\)
      As \(x \rightarrow \infty, \; f(x) \rightarrow 0^{+}\)

      Screen Shot 2022-04-01 at 1.09.12 AM.png

    17. \(f(x) = \dfrac{1}{x - 2}\)
      Shift the graph of \(y = \dfrac{1}{x}\)
      to the right 2 units.

      Screen Shot 2022-04-01 at 1.09.52 AM.png

    18. \(g(x) = 1 - \dfrac{3}{x}\)
      Vertically stretch the graph of \(y = \dfrac{1}{x}\)
      by a factor of 3.
      Reflect the graph of \(y = \dfrac{3}{x}\)
      about the \(x\)-axis.
      Shift the graph of \(y = -\dfrac{3}{x}\)
      up 1 unit.

      Screen Shot 2022-04-01 at 1.10.15 AM.png

    19. \(h(x) = \dfrac{-2x + 1}{x} = -2 + \dfrac{1}{x}\)
      Shift the graph of \(y = \dfrac{1}{x}\)
      down 2 units.

      Screen Shot 2022-04-01 at 1.10.45 AM.png

    20. \(j(x) = \dfrac{3x - 7}{x - 2} = 3 - \dfrac{1}{x - 2}\)
      Shift the graph of \(y = \dfrac{1}{x}\)
      to the right 2 units.
      Reflect the graph of \(y = \dfrac{1}{x - 2}\)
      about the \(x\)-axis.
      Shift the graph of \(y = -\dfrac{1}{x - 2}\)
      up 3 units.

      Screen Shot 2022-04-01 at 1.11.15 AM.png


    Reference

    1 Recall that, for our purposes, this means the graphs are devoid of any breaks, jumps or holes

    2 Another result from Calculus.

    3 As we mentioned at least once earlier, since functions can have at most one \(y\)-intercept, once we find that (0, 0) is on the graph, we know it is the \(y\)-intercept.

    4 The sign diagram in step 6 will also determine the behavior near the vertical asymptotes.

    5 The actual retail value of \(f(−2.000001)\) is approximately −1,500,000.

    6 We have deliberately left off the labels on the y-axis because we know only the behavior near \(x = ±2\), not the actual function values.

    7 As with the vertical asymptotes in the previous step, we know only the behavior of the graph as \(x \rightarrow \pm \infty\). For that reason, we provide no \(x\)-axis labels.

    8 In this particular case, we can eschew test values, since our analysis of the behavior of \(f\) 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.

    9 And Jeff doesn’t think much of it to begin with...

    10 That’s why we called it a MYT!

    11 That is, if you use a calculator to graph. Once again, Calculus is the ultimate graphing power tool.

    12 In the denominator, we would have \((\text { billion })^{2}-1 \text { billion }-6\). It’s easy to see why the 6 is insignificant, but to ignore the 1 billion seems criminal. However, compared to \((1 \text { billion })^{2}\), it’s on the insignificant side; it’s 1018 versus 109 . We are once again using the fact that for polynomials, end behavior is determined by the leading term, so in the denominator, the \(x^{2}\) term wins out over the \(x\) term.

    13 Bet you never thought you’d never see that stuff again before the Final Exam!

    14 But rest assured, some graphs do!

    15 This won’t stop us from giving it the old community college try, however!

    16 So even Jeff at this point may check for symmetry! We leave it to the reader to show \(r(−x) = r(x)\) so \(r\) is even, and, hence, its graph is symmetric about the \(y\)-axis.

    17 Without appealing to Calculus, of course.

    18 Once you’ve done the six-step procedure, use your calculator to graph this function on the viewing window [0, 12] × [0, 0.25]. What do you see?


    This page titled 4.2: Graphs of Rational Functions is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Carl Stitz & Jeff Zeager via source content that was edited to the style and standards of the LibreTexts platform.