<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation

Graphs of Rational Functions when the Degrees are Equal

Graphing functions with single horizontal asymptotes

Atoms Practice
This indicates how strong in your memory this concept is
Practice Now
Turn In
Graphing when the Degrees of the Numerator and Denominator are the Same

Darnell says that the function y=2x4+5x416 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 y=1xh+k, where x=h and y=k 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 “k” 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 f(x)=2x1x+4 and find asymptotes, x and y 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, x=4. Also the same is how to find the x and y intercepts.

y-intercept (when x=0): y=2010+4=14

x-intercept (when y=0): 00112=2x1x+4=2x1=2x=x

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

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.

x y
13 3
7 5
5 11
3 7
1 1
0 0.25
2 0.5
5 1
14 1.5

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

Looking back at the original equation, f(x)=2x1x+4, extract the leading coefficients and leave them numerator over denominator, 21. 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; x4 and the range is all real numbers; y2.

Now, let's graph y=3x2+10x21 and find the asymptotes, intercepts, domain, and range.

From the previous problem above, we can conclude that the horizontal asymptote is at y=3. Because the denominator is squared, there will be two vertical asymptotes because x21 factors to (x1)(x+1). Therefore, the vertical asymptotes are x=1 and x=1. As for the intercepts, there are no x-intercepts because there is no real solution for 3x2+10=0. Solving for the y-intercept, we have y=101=10.

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*}Y= like this: \begin{align*}\frac{\left(3x^\land2+10\right)}{\left(x^\land2-1\right)}\end{align*}(3x2+10)(x21) 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*}x1,x1.

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*}y-intercept. Therefore, the range is \begin{align*}(- \infty, -10] \cup (3,\infty)\end{align*}(,10](3,).

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*}f(x)=x28x+12x2x6 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*}f(x)=x28x+12x2+x6=(x6)(x2)(x+3)(x2)

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

There is a vertical asymptote at \begin{align*}x = -3\end{align*}x=3 and a zero at \begin{align*}x = 6\end{align*}x=6. The horizontal asymptote is at \begin{align*}y = 1\end{align*}y=1. The graph of \begin{align*}f(x)=\frac{x^2-8x+12}{x^2-x-6}\end{align*}f(x)=x28x+12x2x6 will look like the graph of \begin{align*}f(x)=\frac{x-6}{x+3}\end{align*}f(x)=x6x+3, but with a hole at \begin{align*}x = 2\end{align*}x=2. 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*}f(2)=262+3=46=23 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*}.


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\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*}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\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


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*}


  1. What are the vertical and horizontal asymptotes for \begin{align*}y=\frac{x-2}{x+7}\end{align*}?
  2. What is the domain of this function?
  3. What is the range of this function?
  4. Are there any x-intercepts? If so, what are they?
  5. 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.

  1. \begin{align*}y=\frac{x+3}{x-5}\end{align*}
  2. \begin{align*}y=\frac{5x+2}{x-4}\end{align*}
  3. \begin{align*}y=\frac{3-x}{2x+10}\end{align*}
  4. \begin{align*}y=\frac{x^2+5x+6}{x^2-8x+12}\end{align*}
  5. \begin{align*}y=\frac{x^2+4}{2x^2+x-3}\end{align*}
  6. \begin{align*}y=\frac{2x^2-x-10}{3x^2+10x+8}\end{align*}
  7. \begin{align*}y=\frac{x^2-4}{x^2+3x-10}\end{align*}
  8. \begin{align*}y=\frac{6x^2-7x-3}{4x^2-1}\end{align*}
  9. \begin{align*}y=\frac{x^3-8}{x^3+x^2-4x-4}\end{align*}
  10. 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. 

Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes
Please to create your own Highlights / Notes
Show More



The degree of a polynomial is the largest exponent of the polynomial.


A hole exists on the graph of a rational function at any input value that causes both the numerator and denominator of the function to be equal to zero.

Interval Notation

Interval notation is the notation [a, b), where a function is defined between a and b. Use ( or ) to indicate that the end value is not included and [ or ] to indicate that the end value is included. Never use [ or ] with infinity or negative infinity.

Image Attributions

Explore More

Sign in to explore more, including practice questions and solutions for Graphs of Rational Functions when the Degrees are Equal.
Please wait...
Please wait...