### Graphs of Rational Functions

Graphs of rational functions are very distinctive, because they get closer and closer to certain values but never reach those values. This behavior is called asymptotic behavior, and we will see that rational functions can have **horizontal asymptotes, vertical asymptotes** or **oblique (or slant) asymptotes.**

Now we’ll extend the domain and range of rational equations to include negative values of

As we graph rational functions, we need to always pay attention to values of

#### Graphing Functions

1. Graph the function

Before we make a table of values, we should notice that the function is not defined for

Let’s make two tables: one for

0.1 | |||

-4 | 0.2 | ||

-3 | 0.3 | ||

-2 | 0.4 | ||

-1 | 0.5 | ||

-0.5 | 1 | ||

-0.4 | 2 | ||

-0.3 | 3 | ||

-0.2 | 4 | ||

-0.1 | 5 |

We can see that as we pick positive values of

Notice on the graph that for values of **vertical asymptote** of the function

We also notice that as the absolute values of **horizontal asymptote** of the function

Asymptotes are usually denoted as dashed lines on a graph. They are not part of the function; instead, they show values that the function approaches, but never gets to. A horizontal asymptote shows the value of \begin{align*}y\end{align*} that the function approaches (but never reaches) as the absolute value of \begin{align*}x\end{align*} gets larger and larger. A vertical asymptote shows that the absolute value of \begin{align*}y\end{align*} gets larger and larger as \begin{align*}x\end{align*} gets closer to a certain value which it can never actually reach.

Now we’ll show the graph of a rational function that has a vertical asymptote at a non-zero value of \begin{align*}x\end{align*}.

2. Graph the function \begin{align*}y = \frac{1}{(x - 2)^2}\end{align*}.

We can see that the function is not defined for \begin{align*}x = 2\end{align*}, because that would make the denominator of the fraction equal zero. This tells us that there should be a vertical asymptote at \begin{align*}x = 2\end{align*}, so we can start graphing the function by drawing the vertical asymptote.

Now let’s make a table of values.

\begin{align*}x\end{align*} | \begin{align*}y = \frac {1}{(x-2)^2}\end{align*} |
---|---|

0 | \begin{align*}y= \frac {1}{(0-2)^2} = \frac {1}{4}\end{align*} |

1 | \begin{align*}y= \frac {1}{(1-2)^2} = 1\end{align*} |

1.5 | \begin{align*}y= \frac {1}{(1.5-2)^2} = 4\end{align*} |

2 | \begin{align*}\text{undefined}\end{align*} |

2.5 | \begin{align*}y = \frac {1}{(2.5-2)^2} = 4\end{align*} |

3 | \begin{align*}y= \frac {1}{(3-2)^2} = 1\end{align*} |

4 | \begin{align*}y= \frac {1}{(4-2)^2} = \frac {1}{4}\end{align*} |

Here’s the resulting graph:

Notice that we didn’t pick as many values for our table this time, because by now we have a pretty good idea what happens near the vertical asymptote.

We also know that for large values of \begin{align*}|x|\end{align*}, the value of \begin{align*}y\end{align*} could approach a constant value. In this case that value is \begin{align*}y = 0\end{align*}: this is the horizontal asymptote.

A rational function doesn’t have to have a vertical or horizontal asymptote. The next example shows a rational function with no vertical asymptotes.

3. Graph the function \begin{align*}y= \frac{x^2}{x^2 + 1}\end{align*}.

We can see that this function will have no vertical asymptotes because the denominator of the fraction will never be zero. Let’s make a table of values to see if the value of \begin{align*}y\end{align*} approaches a particular value for large values of \begin{align*}x\end{align*}, both positive and negative.

\begin{align*}x\end{align*} | \begin{align*}y= \frac {x^2}{x^2+1}\end{align*} |
---|---|

\begin{align*}-3\end{align*} | \begin{align*}y= \frac {(-3)^2}{(-3)^2+1} = \frac {9}{10} = 0.9\end{align*} |

-2 | \begin{align*}y= \frac {(-2)^2}{(-2)^2+1} = \frac {4}{5} = 0.8\end{align*} |

-1 | \begin{align*}y= \frac {(-1)^2}{(-1)^2+1} = \frac {1}{2} = 0.5\end{align*} |

0 | \begin{align*}y= \frac {(0)^2}{(0)^2+1} = \frac {0}{1} = 0\end{align*} |

1 | \begin{align*}y= \frac {(1)^2}{(1)^2+1} = \frac {1}{2} = 0.5\end{align*} |

2 | \begin{align*}y= \frac {(2)^2}{(2)^2+1} = \frac {4}{5} = 0.8\end{align*} |

3 | \begin{align*}y= \frac {(3)^2}{(3)^2+1} = \frac {9}{10} = 0.9\end{align*} |

Below is the graph of this function.

The function has no vertical asymptote. However, we can see that as the values of \begin{align*}|x|\end{align*} get larger, the value of \begin{align*}y\end{align*} gets closer and closer to 1, so the function has a horizontal asymptote at \begin{align*}y = 1\end{align*}.

### Example

#### Example 1

Graph the function \begin{align*}y=\frac{3}{x-1}\end{align*}.

Start by making a table of values:

\begin{align*}x\end{align*} | \begin{align*}y= \frac {3}{x-1}\end{align*} |
---|---|

\begin{align*}-2\end{align*} | \begin{align*}y= \frac {3}{-2-1} = \frac {3}{-3} = -1\end{align*} |

-1 | \begin{align*}y= \frac {3}{-1-1} = \frac {3}{-2} = -1.5\end{align*} |

0 | \begin{align*}y= \frac {3}{0-1} = \frac {3}{-1} = -3\end{align*} |

1 | undefined |

2 | \begin{align*}y= \frac {3}{2-1} = \frac {3}{1} = 3\end{align*} |

3 | \begin{align*}y= \frac {3}{3-1}= \frac {3}{2} = 1.5\end{align*} |

4 | \begin{align*}y= \frac {3}{4-1}= \frac {3}{3} = 1\end{align*} |

Next, graph the points. Recall that the function \begin{align*}y=\frac{1}{x}\end{align*} has two curves, that are on either side of the vertical asymptote, which is where the function is undefined. The same is true for this function.

### Review

Graph the following rational functions. Draw dashed vertical and horizontal lines on the graph to denote asymptotes.

- \begin{align*}y=\frac {2}{x-3}\end{align*}
- \begin{align*}y=\frac {3}{x^2}\end{align*}
- \begin{align*}y=\frac {x}{x-1}\end{align*}
- \begin{align*}y=\frac {2x}{x+1}\end{align*}
- \begin{align*}y=\frac {-1}{x^2+2}\end{align*}
- \begin{align*}y=\frac {x}{x^2+9}\end{align*}
- \begin{align*}y=\frac {x^2}{x^2+1}\end{align*}
- \begin{align*}y=\frac {1}{x^2-1}\end{align*}
- \begin{align*}y=\frac {2x}{x^2-9}\end{align*}
- \begin{align*}y=\frac {x^2}{x^2-16}\end{align*}
- \begin{align*}y=\frac {3}{x^2-4x+4}\end{align*}
- \begin{align*}y=\frac {x}{x^2-x-6}\end{align*}

### Review (Answers)

To view the Review answers, open this PDF file and look for section 12.2.