# 2.3.2: Graphs of Rational Functions when the Degrees are Equal

- Page ID
- 14197

## Graphing when the Degrees of the Numerator and Denominator are the Same

Darnell says that the function \(\ y=\frac{2 x^{4}+5}{x^{4}-16}\) 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=\frac{1}{x-h}+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)=\frac{2 x-1}{x+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=\frac{2 \cdot 0-1}{0+4}=-\frac{1}{4}\)

x-intercept (when y=0):

\(\ \begin{array}{l}

0=\frac{2 x-1}{x+4} \\

0=2 x-1 \\

1=2 x \\

\frac{1}{2}=x

\end{array}\)

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)=\frac{2 x-1}{x+4}\), extract the leading coefficients and leave them numerator over denominator, \(\ \frac{2}{1}\). 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; x≠−4 and the range is all real numbers; y≠2.

Now, let's graph \(\ y=\frac{3 x^{2}+10}{x^{2}-1}\) 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 x^{2}−1 factors to (x−1)(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 3x^{2}+10=0.

Solving for the y-intercept, we have \(\ y=\frac{10}{-1}=-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 Y= like this: \(\ \frac{\left(3 x^{\wedge} 2+10\right)}{\left(x^{\wedge} 2-1\right)}\) 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; x≠−1,x≠1.

The range is a bit harder to find. Notice the gap in the range from the horizontal asymptote and the y-intercept. Therefore, the range is (−∞,−10]∪(3,∞).

The notation above is one way to write a range of numbers called ** interval notation** and was already introduced

*The ∪ symbol means “union.” Notice that −∞ and ∞ 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 \(\ f(x)=\frac{x^{2}-8 x+12}{x^{2}-x-6}\) and find the intercepts, asymptotes, domain and range.

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

\(\ f(x)=\frac{x^{2}-8 x+12}{x^{2}+x-6}=\frac{(x-6)(x-2)}{(x+3)(x-2)}\)

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

There is a vertical asymptote at x=−3 and a zero at x=6. The horizontal asymptote is at y=1. The graph of \(\ f(x)=\frac{x^{2}-8 x+12}{x^{2}-x-6}\) will look like the graph of \(\ f(x)=\frac{x-6}{x+3}\), but with a hole at 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, \(\ f(2)=\frac{2-6}{2+3}=\frac{-4}{6}=-\frac{2}{3}\) 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 x∈ℝ; x≠2, −3 and the range is y∈ℝ; y≠1, \(\ -\frac{2}{3}\).

## Examples

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

**Solution**

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

\(\ \begin{array}{r}

x^{4}-16=0 \\

x^{4}=16

\end{array}\)

\(\ x=2 \text{ or } x=−2\)

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

\(\ y=\frac{4 x-5}{2 x+7}\)

**Solution**

y-intercept: \(\ y=\frac{-5}{7}=-\frac{5}{7}\), x-intercept: \(\ 0=4 x-5 \rightarrow x=\frac{5}{4}\), horizontal asymptote: \(\ y=\frac{4}{2}=2\), vertical asymptote: \(\ 2 x+7=0 \rightarrow x=-\frac{7}{2}\), domain: \(\ \mathbb{R} ; x \neq-\frac{7}{2}\), range: \mathbb{R}: y \neq 2

\(\ f(x)=\frac{x^{2}-9}{x^{2}+1}\)

**Solution**

y-intercept: \(\ y=\frac{-9}{1}=-9\), x-intercepts: 0=x2−9→x=±3, horizontal asymptote: y=1, vertical asymptote: none, domain: ℝ, range: ℝ; y≠1

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

\(\ y=\frac{2 x^{2}+7 x+3}{x^{2}+3 x+2}\)

**Solution**

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

domain: ℝ; x≠−1, −2

range: y∈(−∞, 2.1] ∪ [12, ∞)

\(\ y=\frac{x^{2}-4}{2 x^{2}-5 x+2}\)

**Solution**

horizontal asymptote: \(\ y=\frac{1}{2}\), y-intercept: (0,−2)

vertical asymptotes: \(\ x=\frac{1}{2}\), x-intercept: (−2,0)

hole: \(\ x=2, f(2)=\frac{4}{3}\)

domain: \(\ \mathbb{R} ; x \neq \frac{1}{2}, 2\)

range: \(\ \mathbb{R} ; y \neq \frac{1}{2}, \frac{4}{3}\)

## Review

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

Graph the following rational functions. Write down the equations of the asymptotes, the domain and range, x and y intercepts and identify any holes.

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

## Vocabulary

Term | Definition |
---|---|

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

Hole |
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

- [Figure 1]

Desmos**Credit:**

https://www.flickr.com/photos/88158121@N00/5264675378/in/photolist-92dQz9-Eu1H8y-dNnzd-Lgg8Pu-4joH9Q-5EvPtm-4RvqPH-6WffXz-77cJAq-6Cskyq-KGKy88-f4g1D8-bHRJ2k-qABFH-72QBBS-9adYtH-5qsLfp-6i74v3-7fbqBV-7DeAxE-fv6wKA-eB2RuH-6nnhEr-5b8kAz-4Rvqix-5TuvAc-4RzBbA-dPKHH9-7w2emB-5tihMm-5aXaUG-7HE7Vn-5WMHB3-6bACZC-5jXasy-9r9DTQ-5NHzWn-9EvNVu-4RMXjF-5Tuwq4-pnbPHX-6QgwvY-nKCW6m-cgvCnm-cVoUYY-a1zW65-eL4KwY-5kDwF2-t6jh6G-dZ9anM**Source:** - [Figure 2]

Desmos**Credit:**

https://www.flickr.com/photos/88158121@N00/5264675378/in/photolist-92dQz9-Eu1H8y-dNnzd-Lgg8Pu-4joH9Q-5EvPtm-4RvqPH-6WffXz-77cJAq-6Cskyq-KGKy88-f4g1D8-bHRJ2k-qABFH-72QBBS-9adYtH-5qsLfp-6i74v3-7fbqBV-7DeAxE-fv6wKA-eB2RuH-6nnhEr-5b8kAz-4Rvqix-5TuvAc-4RzBbA-dPKHH9-7w2emB-5tihMm-5aXaUG-7HE7Vn-5WMHB3-6bACZC-5jXasy-9r9DTQ-5NHzWn-9EvNVu-4RMXjF-5Tuwq4-pnbPHX-6QgwvY-nKCW6m-cgvCnm-cVoUYY-a1zW65-eL4KwY-5kDwF2-t6jh6G-dZ9anM**Source:** - [Figure 3]

Desmos**Credit:**

https://www.flickr.com/photos/88158121@N00/5264675378/in/photolist-92dQz9-Eu1H8y-dNnzd-Lgg8Pu-4joH9Q-5EvPtm-4RvqPH-6WffXz-77cJAq-6Cskyq-KGKy88-f4g1D8-bHRJ2k-qABFH-72QBBS-9adYtH-5qsLfp-6i74v3-7fbqBV-7DeAxE-fv6wKA-eB2RuH-6nnhEr-5b8kAz-4Rvqix-5TuvAc-4RzBbA-dPKHH9-7w2emB-5tihMm-5aXaUG-7HE7Vn-5WMHB3-6bACZC-5jXasy-9r9DTQ-5NHzWn-9EvNVu-4RMXjF-5Tuwq4-pnbPHX-6QgwvY-nKCW6m-cgvCnm-cVoUYY-a1zW65-eL4KwY-5kDwF2-t6jh6G-dZ9anM**Source:**