Darnell says that the function \begin{align*}y=\frac{2x^4+5}{x^4-16}\end{align*} has two vertical asymptotes, Barb says it has only one, and Aruna says it has four. Which one of them is correct?

### Graphing Rational Functions

We have already graphed functions in the form \begin{align*}y=\frac{1}{x-h}+k\end{align*}, where \begin{align*}x = h\end{align*} and \begin{align*}y = k\end{align*} are the asymptotes. In this concept, we will extend graphing rational functions when both the denominator and numerator are linear or both quadratic. So, there will be no “\begin{align*}k\end{align*}” term in this concept. Let’s go through some practice problems to determine any patterns in graphing this type of rational function.

Let's graph \begin{align*}f(x)=\frac{2x-1}{x+4}\end{align*} and find asymptotes, \begin{align*}x\end{align*} and \begin{align*}y\end{align*} intercepts, domain and range.

To find the vertical asymptote, it is the same as before, the value that makes the denominator zero. In this case, \begin{align*}x = -4\end{align*}. Also the same is how to find the \begin{align*}x\end{align*} and \begin{align*}y\end{align*} intercepts.

\begin{align*}y\end{align*}-intercept (when \begin{align*}x = 0\end{align*}): \begin{align*}y=\frac{2 \cdot 0-1}{0+4}=- \frac{1}{4}\end{align*}

\begin{align*}x\end{align*}-intercept (when \begin{align*}y = 0\end{align*}): \begin{align*}0&=\frac{2x-1}{x+4} \\ 0&=2x-1 \\ 1&=2x \\ \frac{1}{2}&=x\end{align*}

When solving for the \begin{align*}x\end{align*}-intercept, to get the denominator out, we multiplied both sides by \begin{align*}x + 4\end{align*}. But, when we multiply anything by 0, it remains 0. Therefore, to find the \begin{align*}x\end{align*}-intercept, we only need to set the numerator equal to zero and solve for \begin{align*}x\end{align*}.

The last thing to find is the horizontal asymptote. We know that the function is positive, so the branches will be in the first and third quadrants. Let’s make a table.

\begin{align*}x\end{align*} |
\begin{align*}y\end{align*} |
---|---|

\begin{align*}-13\end{align*} | 3 |

\begin{align*}-7\end{align*} | 5 |

\begin{align*}-5\end{align*} | 11 |

\begin{align*}-3\end{align*} | \begin{align*}-7\end{align*} |

\begin{align*}-1\end{align*} | \begin{align*}-1\end{align*} |

0 | \begin{align*}-0.25\end{align*} |

2 | 0.5 |

5 | 1 |

14 | 1.5 |

It looks like the horizontal asymptote is \begin{align*}y = 2\end{align*} because both branches seem to approach 2 as \begin{align*}x\end{align*} gets larger, both positive and negative. If we plug in \begin{align*}x = 86, y = 1.9\end{align*} and when \begin{align*}x = -94, y = 2.1\end{align*}. As you can see, even when \begin{align*}x\end{align*} is very large, the function is still approaching 2.

Looking back at the original equation, \begin{align*}f(x)= \frac{2x-1}{x+4}\end{align*}, extract the leading coefficients and leave them numerator over denominator, \begin{align*}\frac{2}{1}\end{align*}. This is the horizontal asymptote. We can generalize this pattern for all rational functions. *When the degree of the numerator is equal to the degree of the denominator, the horizontal asymptote is the ratio of the leading coefficients.*

Finally, the domain is all real numbers; \begin{align*}x \ne -4\end{align*} and the range is all real numbers; \begin{align*}y \ne 2\end{align*}.

Now, let's graph \begin{align*}y=\frac{3x^2+10}{x^2-1}\end{align*} and find the asymptotes, intercepts, domain, and range.

From the previous problem above, we can conclude that the horizontal asymptote is at \begin{align*}y = 3\end{align*}. Because the denominator is squared, there will be two vertical asymptotes because \begin{align*}x^2-1\end{align*} factors to \begin{align*}(x - 1)(x + 1)\end{align*}. Therefore, the vertical asymptotes are \begin{align*}x = 1\end{align*} and \begin{align*}x = -1\end{align*}. As for the intercepts, there are no \begin{align*}x\end{align*}-intercepts because there is no real solution for \begin{align*}3x^2+10=0\end{align*}. Solving for the \begin{align*}y\end{align*}-intercept, we have \begin{align*}y=\frac{10}{-1}=-10\end{align*}.

At this point, put the equation in your calculator to see the general shape. To graph this function using a TI-83 or 84, enter the function into \begin{align*}Y=\end{align*} like this: \begin{align*}\frac{\left(3x^\land2+10\right)}{\left(x^\land2-1\right)}\end{align*} and press **GRAPH**. You will need to expand the window to include the bottom portion of the graph. The final graph is below.

The domain is still all real numbers except the vertical asymptotes. For this function, that would be all real numbers; \begin{align*}x \ne -1,x \ne 1\end{align*}.

The range is a bit harder to find. Notice the gap in the range from the horizontal asymptote and the \begin{align*}y\end{align*}-intercept. Therefore, the range is \begin{align*}(- \infty, -10] \cup (3,\infty)\end{align*}.

The notation above is one way to write a range of numbers called **interval notation** and was already introduced*.* The \begin{align*}\cup\end{align*} symbol means “union.” Notice that \begin{align*}- \infty\end{align*} and \begin{align*}\infty\end{align*} are not included in the range.

In general, rational functions with quadratics in the denominator are split into six regions and have branches in three of them, like the problem above. However, there are cases when there are no zeros or vertical asymptotes and those look very different. You should always graph the function in a graphing calculator after you find the critical values and make as accurate a sketch as you can.

Finally, let's graph \begin{align*}f(x)=\frac{x^2-8x+12}{x^2-x-6}\end{align*} and find the intercepts, asymptotes, domain and range.

Let’s factor the numerator and denominator to find the intercepts and vertical asymptotes.

\begin{align*}f(x)=\frac{x^2-8x+12}{x^2+x-6}=\frac{\left(x-6\right) \left(x-2\right)}{\left(x+3\right) \left(x-2\right)}\end{align*}

Notice that the numerator and denominator both have a factor of \begin{align*}(x - 2)\end{align*}. When this happens, a **hole** is created because \begin{align*}x = 2\end{align*} is both a zero and an asymptote. Therefore, \begin{align*}x = 2\end{align*} is a hole and neither a zero nor an asymptote.

There is a vertical asymptote at \begin{align*}x = -3\end{align*} and a zero at \begin{align*}x = 6\end{align*}. The horizontal asymptote is at \begin{align*}y = 1\end{align*}. The graph of \begin{align*}f(x)=\frac{x^2-8x+12}{x^2-x-6}\end{align*} will look like the graph of \begin{align*}f(x)=\frac{x-6}{x+3}\end{align*}, but with a hole at \begin{align*}x = 2\end{align*}. A hole is not part of the domain. And, the output value that corresponds with the hole is not part of the range. In this problem, \begin{align*}f(2)=\frac{2-6}{2+3}=\frac{-4}{6}=- \frac{2}{3}\end{align*} is not part of the range. If you were to graph this function on your graphing calculator, the calculator would not show there is a hole.

The domain is \begin{align*}x \in \mathbb{R};x \ne 2,-3\end{align*} and the range is \begin{align*}y \in \mathbb{R};y \ne 1,- \frac{2}{3}\end{align*}.

### Examples

#### Example 1

Earlier, you were asked to determine which student is correct.

The vertical asymptote(s) occur(s) when the denominator of the function equals zero. For the function \begin{align*}y=\frac{2x^4+5}{x^4-16}\end{align*}, the denominator equals zero when \begin{align*}x^4-16 = 0\end{align*}.

\begin{align*} x^4-16 = 0 \\ x^4 = 16\end{align*}

\begin{align*}x = 2\end{align*} or \begin{align*}x = -2\end{align*}

Therefore, there are two vertical asymptotes and Darnell is correct.

**Graph the following functions. Find all intercepts, asymptotes, the domain and range. Double-check your answers with a graphing calculator.**

#### Example 2

\begin{align*}y=\frac{4x-5}{2x+7}\end{align*}

\begin{align*}y\end{align*}-intercept: \begin{align*}y=\frac{-5}{7}=- \frac{5}{7}\end{align*}, \begin{align*}x\end{align*}-intercept: \begin{align*}0=4x-5 \rightarrow x=\frac{5}{4}\end{align*}, horizontal asymptote: \begin{align*}y=\frac{4}{2}=2\end{align*}, vertical asymptote: \begin{align*}2x+7=0 \rightarrow x=- \frac{7}{2}\end{align*}, domain: \begin{align*}\mathbb{R};x \ne - \frac{7}{2}\end{align*}, range: \begin{align*}\mathbb{R};y \ne 2\end{align*}

#### Example 3

\begin{align*}f(x)=\frac{x^2-9}{x^2+1}\end{align*}

\begin{align*}y\end{align*}-intercept: \begin{align*}y=\frac{-9}{1}=-9\end{align*}, \begin{align*}x\end{align*}-intercepts: \begin{align*}0=x^2-9 \rightarrow x= \pm 3\end{align*}, horizontal asymptote: \begin{align*}y=1\end{align*}, vertical asymptote: none, domain: \begin{align*}\mathbb{R}\end{align*}, range: \begin{align*}\mathbb{R};y \ne 1\end{align*}

**Special Note:** When there are no vertical asymptotes and the numerator and denominator are both quadratics, this is the general shape. It could also be reflected over the horizontal asymptote.

#### Example 4

\begin{align*}y=\frac{2x^2+7x+3}{x^2+3x+2}\end{align*}

\begin{align*}y\end{align*}-intercept: \begin{align*}\left(0, \frac{3}{2}\right)\end{align*}, \begin{align*}x\end{align*}-intercepts: \begin{align*}(-3,0)\end{align*} and \begin{align*}\left(- \frac{1}{2},0\right)\end{align*}, horizontal asymptote: \begin{align*}y = 2\end{align*}, vertical asymptotes: \begin{align*}x = -2, x = -1\end{align*}.

domain: \begin{align*}\mathbb{R};x \ne -1,-2\end{align*}

range: \begin{align*}y \in (- \infty,2.1] \cup [12, \infty)\end{align*}

#### Example 5

\begin{align*}y=\frac{x^2-4}{2x^2-5x+2}\end{align*}

horizontal asymptote: \begin{align*}y=\frac{1}{2}\end{align*}, \begin{align*}y\end{align*}-intercept: \begin{align*}(0,-2)\end{align*}

vertical asymptotes: \begin{align*}x=\frac{1}{2}\end{align*}, \begin{align*}x\end{align*}-intercept: \begin{align*}(-2,0)\end{align*}

hole: \begin{align*}x = 2, f(2)=\frac{4}{3}\end{align*}

domain: \begin{align*}\mathbb{R};x \ne \frac{1}{2},2\end{align*}

range: \begin{align*}\mathbb{R};y \ne \frac{1}{2}, \frac{4}{3}\end{align*}

### Review

- What are the vertical and horizontal asymptotes for \begin{align*}y=\frac{x-2}{x+7}\end{align*}?
- What is the domain of this function?
- What is the range of this function?
- Are there any
*x*-intercepts? If so, what are they? - Is there a
*y*-intercept? If so, what is it?

Graph the following rational functions. Write down the equations of the asymptotes, the domain and range, \begin{align*}x\end{align*} and \begin{align*}y\end{align*} intercepts and identify any holes.

- \begin{align*}y=\frac{x+3}{x-5}\end{align*}
- \begin{align*}y=\frac{5x+2}{x-4}\end{align*}
- \begin{align*}y=\frac{3-x}{2x+10}\end{align*}
- \begin{align*}y=\frac{x^2+5x+6}{x^2-8x+12}\end{align*}
- \begin{align*}y=\frac{x^2+4}{2x^2+x-3}\end{align*}
- \begin{align*}y=\frac{2x^2-x-10}{3x^2+10x+8}\end{align*}
- \begin{align*}y=\frac{x^2-4}{x^2+3x-10}\end{align*}
- \begin{align*}y=\frac{6x^2-7x-3}{4x^2-1}\end{align*}
- \begin{align*}y=\frac{x^3-8}{x^3+x^2-4x-4}\end{align*}
- Graph \begin{align*}y=\frac{1}{x-2}+3\end{align*} and \begin{align*}y=\frac{3x-5}{x-2}\end{align*} on the same set of axes. Compare the two. What do you notice? Explain your results.

### Answers for Review Problems

To see the Review answers, open this PDF file and look for section 9.5.