- Verberg vooruitgang Hide progress Toon vooruitgang Show progress
- Verwijder je antwoorden (op deze pagina) Remove your answers (on this page)
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.
Suppose \(f\) is a rational function.
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.
Suppose \(r\) is a rational function.
Solution. We follow the six step procedure outlined above.
Per Theorem vavshole, vertical asymptotes and holes in the graph come from values excluded from the domain of \(f\). The two numbers excluded from the domain of \(f\) are \(x = -2\) and \(x=2\) and since \(f(x)\) didn’t reduce, we know \(f\) will be unbounded near \(x=-2\) and \(x=2\), so we have are vertical asymptotes there. 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, it is good practice for those heading off to Calculus. For the discussion that follows, we 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 IntroRational, 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^{-}\),
Now we turn our attention to \(x \rightarrow -2^{+}\). If we imagine substituting something a little larger than \(-2\) in for \(x\), say \(-1.999999\), we mentally estimate
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
We interpret this graphically below on the left.
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 hathm 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 = \text {$-1$ billion}\). The numerator \(3x\) would then be \(-3 \, \text {billion}\), whereas the denominator \(x^2-4\) would be \((\text {$-1$ billion})^2 - 4\), which is pretty much the same as \(1(\text {billion})^2\). Hence,
Notice that if we substituted in \(x = \text {$-1$ trillion}\), essentially the same kind of cancellation would happen, and we would be left with an even ‘smaller’ negative number. This not only confirms the fact that as \(x \rightarrow -\infty \), \(f(x) \rightarrow 0\), it tells us that \(f(x) \rightarrow 0^{-}\). In other words, the graph of \(y=f(x)\) is a little bit below the \(x\)-axis as we move to the far left.
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 = \text {$1$ billion}\). Proceeding as before, we get
We interpret these findings graphically below on the right.
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 values \(x=-3\), \(x=-1\), \(x=1\) and \(x=3\). We find \(f(-3)\) is \((-)\), \(f(-1)\) is \((+)\), \(f(1)\) is \((-)\) and \(f(3)\) 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 \(f(-x) = \frac {3(-x)}{(-x)^2-4} = -\frac {3x}{x^2-4} = -f(x)\). Hence, \(f\) is odd and the graph of \(y = f(x)\) 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 \(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.
Solution.
Since \(g(t)\) was given to us in lowest terms, we know the graph has vertical asymptotes \(t=-2\) and \(t=3\). Keeping in mind \(g(t) = \frac {(2t-5)(t+1)}{(t-3)(t+2)}\), we proceed to our analysis near each of these values.
The behavior of \(y=g(t)\) as \(t \rightarrow -2\): As \(t \rightarrow -2^{-}\), we imagine substituting a number a little bit less than \(-2\). We have
The behavior of \(y=g(t)\) as \(t \rightarrow 3\): As \(t \rightarrow 3^{-}\), we imagine substituting a number just shy of \(3\). We have
We interpret this analysis graphically below.
Since the degrees of the numerator and denominator of \(g(t)\) are the same, we know from Theorem hathm 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. Using long division, we may rewrite \(g(t)\) as \(g(t) = 2 - \frac {t-7}{t^2-t-6}.\) We focus our attention on the term \(\frac {t-7}{t^2-t-6}\).
The behavior of \(y=g(t)\) as \(t \rightarrow -\infty \): If imagine substituting \(t = \text {$-1$ billion}\) into \(\frac {t-7}{t^2-t-6}\), we estimate \(\frac {t-7}{t^2-t-6} \approx \frac {-1 { billion}}{1 \text {billion}^2} = \frac {-1}{\text { billion}} \approx \text {very small $(-)$}\). Hence,
The behavior of \(y=g(t)\) as \(t \rightarrow \infty \): To consider \(\frac {t-7}{t^2-t-6}\) as \(t \rightarrow \infty \), we imagine substituting \(t= \text {$1$ billion}\) and, going through the usual mental routine, find
We sketch the end behavior below.
Finally we construct our sign diagram. We draw a dotted line through \(t=-2\) and \(t=3\), and a ‘\(0\)’ above \(t = \frac {5}{2}\) and \(t=-1\). Choosing test values in the test intervals gives us \(g(t)\) 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, it stands to reason the graph must cross the horizontal asymptote at some point after \(t=3\) in order for it to approach \(y=2\) from underneath. To find where \(y = g(t)\) intersects \(y = 2\), we solve \(g(t) = 2 - \frac {t-7}{t^2-t-6} = 2\) and get \(t-7= 0\), or \(t=7\). Note that \(t-7\) is the remainder when \(2t^2-3t-5\) is divided by \(t^2-t-6\), so it makes sense that for \(g(t)\) to equal the quotient \(2\), the remainder from the division must be \(0\). Sure enough, we find \(g(7)=2\). The location of the \(t\)-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 \(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.
Solution.
To reduce \(h(x)\), we need to factor the numerator and denominator. To factor the numerator, we use the techniques set forth in Section RealZeros and get
Note we can use this formula for \(h(x)\) in our analysis of the graph of \(h\) as long as we are not substituting \(x=-1\). To make this exclusion specific, we write \(h(x) = \frac {(2x+1)(x+1)}{x+2}\), \(x \neq -1\).
Since the factor \((x+2)\) remains in the denominator of \(h(x)\) in lowest terms, we expect the graph to have the vertical asymptote \(x=-2\). As for \(x=-1\), the factor \((x+1)\) was canceled from the denominator when we reduced \(h(x)\), so there will be a hole when \(x=-1\).
The behavior of \(y=h(x)\) as \(x \rightarrow -1\). As \(x \rightarrow -1\), we have \(2x+1 \rightarrow -1\), \(x+1 \rightarrow 0\), and \(x+2 \rightarrow 1\). Hence, \(\frac {(2x+1)(x+1)}{x+2} \rightarrow \frac {(-1)(0)}{1} = 0\) so \(\ds {\lim _{x \rightarrow -1} h(x) = 0}\). This means we have a hole at \((-1,0)\). More specifically, we note that as \(x \rightarrow -1^{-}\), \(h(x) > 0\) whereas as \(x \rightarrow -1^{+}\), \(h(x) < 0\). This helps us sketch the graph of \(h\) near \((-1,0)\).
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 sathm, the graph of \(y = h(x)\) has a slant asymptote. For \(x\rightarrow -\infty \) or \(x \rightarrow \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 sathm, 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}\).
We sketch the end behavior below.
To find if the graph of \(h\) ever crosses the slant asymptote, we solve \(h(x) = 2x-1+\frac {3}{x+2}= 2x-1\). This results in \(\frac {3}{x+2} = 0\), which has no solution. Hence, the graph of \(h\) never crosses its slant asymptote. □
Our last graphing example is challenging in that our six step process provides us little information to work with.
Solution.
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
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. We check for symmetry, and find \(r(-x) = \frac {(-x)^4+1}{(-x)^2+1} = \frac {x^4+1}{x^2+1} = r(x)\), so \(r\) is even and, hence, the graph is symmetric about the \(y\)-axis. It may be tempting at this point to call it quits, reach for a graphing utility, or ask someone who knows Calculus. It turns out, we can do a little bit better. Recall from Section MonomialFunctions, that when \(|x| <1\) but \(x \neq 0\), \(x^4 < x^2\), hence \(x^4+1 < x^2+1\). This means for \(-1<x<0\) and \(0<x<1\), \(r(x) = \frac {x^4+1}{x^2+1} < 1\). Since we know \(r(0) = 1\), this means the graph of \(y = r(x)\) must fall to either side before heading off to \(\infty \). This means \((0,1)\) is a local maximum and, moreover, there are at least two local minimums, at least one on either side of \((0,1)\). 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 functions given their graphs.
Solution. The good news is the graph of \(r\) closely resembles the graph of \(F\), so once we know an expression for \(r(x)\), we should be able to modify it to obtain \(F(x)\). We are told \(r\) is a rational function, so we know there are polynomial functions \(p\) and \(q\) so that \(r(x) = \frac {p(x)}{q(x)}\). We know from Theorem complexfactorization that we can factor \(p(x)\) and \(q(x)\) completely in terms of their leading coefficients and their zeros. For simplicity’s sake, we assume neither \(p\) nor \(q\) has any non-real zeros.
We focus our attention first on finding an expression for \(p(x)\). When finding the \(x\)-intercepts, we look for the zeros of \(r\) by solving \(r(x) = \frac {p(x)}{q(x)} = 0\). This equation quickly reduces to solving \(p(x) =0\). Since \(\left (\frac {5}{3}, 0 \right )\) is an \(x\)-intercept of the graph, we know \(x = \frac {5}{3}\) is a zero of \(r\), and, hence, a zero of \(p\). Since we are shown no other \(x\)-intercepts, we assume \(r\), hence \(p\) have no other real zeros (and no non-real zeros by our assumption.) Theorem complexfactorization gives \(p(x) = a\left (x - \frac {5}{3}\right )^m\) where \(a\) is the leading coefficient of \(p(x)\) and \(m\) is the multiplicity of the zero \(x = \frac {5}{3}\). Since the graph of \(y = r(x)\) crosses through the \(x\)-axis in what appears to be a fairly linear fashion at \(\left (\frac {5}{3}, 0 \right )\), it seems reasonable to set \(m=1\). Hence, \(p(x) = a \left (x - \frac {5}{3}\right )\).
Next, we focus our attention on finding \(q(x)\). Per Theorem vavshole, the vertical asymptote \(x=1\) comes from a factor of \((x-1)\) in the denominator of \(r(x)\). This means \((x-1)\) is a factor of \(q(x)\). Since there are no other vertical asymptotes or holes in the graph, \(x=1\) is the only real zero, hence (per our assumption) only zero of \(q\). At this point, we have \(q(x) = b(x-1)^m\) where \(b\) is the leading coefficient of \(q(x)\) and \(m\) is the multiplicity of the zero \(x=1\). Since the graph of \(r\) has the horizontal asymptote \(y = 3\),Theorem ha tells us two things: first, degree of \(q\) must match the degree of \(p\); second, the ratio \(\frac {a}{b} = 3\). Hence, the degree of \(q\) is \(1\) so that:
We have yet to use the \(y\)-intercept, \((0,5)\). In this case, we use it as a partial check: \(r(0) = \frac {3(0)-5}{0-1} = 5\), as required. We can sketch \(y=r(x)\) by hand, or with a graphing utility, to give a better check of our work.
Now it is time to find a formula for \(F(x)\). The graphs of \(r\) and \(F\) look identical except the graph has a hole in the graph at \(\left (\frac {5}{3}, 0 \right )\) instead of an \(x\)-intercept. Theorem vavshole tells us this happens because a factor of \(\left (x - \frac {5}{3} \right )\) cancels from the denominator when the formula for \(F(x)\) is reduced. Hence, we reverse this process and multiply the numerator and denominator of our expression for \(r(x)\) by \(\left (x - \frac {5}{3} \right )\):
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. □
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.