# 2.3: Rational Functions

**At Grade**Created by: CK-12

## Learning objectives

- Find the
x− andy− intercepts of a rational function - Find the horizontal, vertical, and oblique asymptotes
- Graph a rational function using
x− andy− intercepts and asymptotes

## Standard Form of Rational Functions and the Domain of Rational Functions

Any function that has the form

where *rational function*. The *domain* of any rational function includes all real numbers

**Example 1**

What is the domain of

Solution

Notice that the only input that can make the denominator equal to zero is *horizontal* and *vertical asymptotes*, respectively.

## Graph Simple Rational Functions

**Example 2**

Graph the function

Solution: We know that the domain of

**Example 3**

What is the domain of

Solution

The domain is all real numbers except at the points that cause the denominator to equal zero, namely, at

## Vertical and Horizontal Asymptotes

An *asymptote* is a line or curve to which a function's graph draws closer without touching it. Functions cannot cross a vertical asymptote, and they usually approach horizontal asymptotes in their end behavior (i.e. as

There are three types of asymptotes: *horizontal, vertical* and *oblique*. We will analyze each one below.

Looking at the graph of *vertical asymptotes* (the vertical dotted lines), one is at

We can find vertical asymptotes by simply equating the denominator to zero and then solving for

Then setting

So if

setting

gives the vertical asymptotes at

The horizontal asymptote a line parallel to the

**How to Find the Horizontal Asymptote**

- Put the rational function in a standard form. That is, expand the numerator and denominator if they are written in a factored form.
- Remove all terms except the terms that contain the largest exponents of \begin{align*}x\end{align*} in the numerator and the denominator.
- There are three possibilities:
- If the degree of the numerator is smaller than the degree of the denominator, then the horizontal asymptote crosses the \begin{align*}y-\end{align*}axis at \begin{align*}y=0\end{align*}. That is, it is the \begin{align*}x-\end{align*}axis itself.
- If the degree of the denominator and the numerator are the
*same*, then the horizontal asymptote equals to the ratio of the leading coefficients. - If the degree of the numerator is larger than the degree of the denominator, then there is
*no horizontal*asymptote.

**Example 4**

Find the vertical and horizontal asymptotes of

\begin{align*}f(x)=\frac{2x^{3}-2x^{2}+5}{3x^{3}-81}\end{align*}

To find the vertical asymptote(s), set the denominator to zero and then solve for \begin{align*}x\end{align*}.

\begin{align*}3x^{3}-81 & = 0\\ 3x^3 & = 81\\ x^3 & = 27\\ x & = \sqrt[3]{27}\\ x & = 3\end{align*}

Thus the graph has a vertical asymptote at \begin{align*}x=3\end{align*}.

To find the horizontal asymptote, we follow the procedure above. Both the numerator and denominator are already written in standard form. Next, remove all terms except the largest exponents of \begin{align*}x\end{align*} that are found in the numerator and the denominator):

\begin{align*}\frac{2x^{3}}{3x^{3}}\end{align*}

Notice that the degree of the numerator and the denominator are the same and therefore the horizontal asymptote is the ratio of the coefficients,

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

So the horizontal asymptote is at \begin{align*}y=\frac{2}{3}\end{align*}.

**Example 5**

Find the asymptotes of

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

Remove all terms except the leading terms,

\begin{align*}\frac{3x}{2x^{4}}\end{align*}

Notice that the degree of the numerator is less than the degree of the denominator. Therefore, the horizontal asymptote is at \begin{align*}y=0\end{align*}, i.e., the \begin{align*}x-\end{align*}axis plays the role of the horizontal asymptote. To find the vertical asymptote, set the denominator equal to zero and solve:

\begin{align*}2x^{4}-9 & = 0\\ x^4 & = \frac{9}{4}\\ x & = \pm \frac{\sqrt{6}}{2}\end{align*}

**Example 6**

Another example, consider the rational function

\begin{align*}g(x)=\frac{2x^{4}-9}{3x-2}\end{align*}

Removing all terms except the leading terms of the numerator and denominator,

\begin{align*}\frac{2x^{4}}{3x}\end{align*}

Here, the degree of the numerator is larger than the degree of the denominator. Thus there is no horizontal asymptote.

Once you have found the asymptotes, it is relatively easy to graph rational functions. We will illustrate how to graph rational functions with two examples.

**Example 7**

Graph

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

Solution

Note that the domain of \begin{align*}T\end{align*} is the set of all real numbers except 1, that is \begin{align*}x\ne 1\end{align*}. This tells us that the line \begin{align*}x=1\end{align*} is a vertical asymptote of \begin{align*}T(x)\end{align*}. To graph \begin{align*}T\end{align*}, there are four important items that you need to find: The \begin{align*}y-\end{align*}intercept, the \begin{align*}x-\end{align*}intercept, the vertical asymptote and the horizontal asymptote.

The \begin{align*}y-\end{align*}intercept can be found by finding \begin{align*}y=T(0)\end{align*}.

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

Thus the \begin{align*}y-\end{align*}intercept is at point (0, -1).

The \begin{align*}x-\end{align*}intercept can be found by setting \begin{align*}y=T(x)=0\end{align*}.

\begin{align*}\frac{2x+1}{x-1}=0\end{align*}

Note that a fraction \begin{align*}\frac{a}{b}=0\end{align*} if and only if \begin{align*}a=0\end{align*}, so we can set the numerator of \begin{align*}T9\end{align*} solve

\begin{align*}2x+1 & = 0\\ x & = \frac{-1}{2}\end{align*}

Notice that we could have just set the numerator to zero and found the \begin{align*}x-\end{align*}intercept. In general, set \begin{align*}P(x)=0\end{align*} to find the \begin{align*}x-\end{align*}intercept for any rational function. BUT, you must make sure that the \begin{align*}x-\end{align*}value you find is still defined for the function. If both \begin{align*}P(x)=0\end{align*} and \begin{align*}Q(x)=0\end{align*} for some value of \begin{align*}x\end{align*} then the graph has a hole in it.

Next, the vertical asymptote. Set \begin{align*}Q(x)=0\end{align*}:

\begin{align*}x-1 & = 0\\ x & = 1\end{align*}

And the horizontal asymptote:

\begin{align*}\frac{2x+1}{x-1}\to\frac{2x}{x}=2\end{align*}

Therefore, the vertical asymptote is at \begin{align*}x=1\end{align*} and the horizontal asymptote is at \begin{align*}y=2\end{align*}. From this information, we can make the graph shown in Figure 15.

**Example 8**

Graph

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

Solution

The domain of \begin{align*}g\end{align*} is the set of all real numbers except 0 and \begin{align*}\frac{3}{2}\end{align*}, that is \begin{align*}\left \{ x|x\ne 0 \ \text{and} \ x\ne\frac{3}{2} \right \}\end{align*}. The \begin{align*}y-\end{align*}intercept is

\begin{align*}y=g(0)=\frac{1}{0}=\text{undefined}\end{align*}

this tells us that there is no \begin{align*}y-\end{align*}intercept. The \begin{align*}x-\end{align*}intercept can be found by setting the numerator to zero,

\begin{align*}2x^{2}+1 & = 0\\ 2x^2 & = -1\\ x^2 & = \frac{-1}{2}\\ x & = \sqrt{\frac{-1}{2}}\end{align*}

Notice that this equation has no real solution and therefore, there is no \begin{align*}x-\end{align*}intercept either.

The vertical asymptote can be found by setting the denominator to zero,

\begin{align*}2x^{2}-3x & = 0\\ x(2x-3) & = 0\end{align*}

The two solutions are \begin{align*}x=0\end{align*} and \begin{align*}x=\frac{3}{2}\end{align*}, and these are the vertical asymptotes.

Finally, the horizontal asymptote is found by analyzing the leading terms:

\begin{align*}\frac{2x{}^{2}+1}{2x^{2}-3x}\to\frac{2x^{2}}{2x^{2}}=1\end{align*}

That is, \begin{align*}y=1\end{align*} is a horizontal asymptote. Again after substituting in some points, we can sketch the graph of \begin{align*}g(x)\end{align*} below.

## Oblique Asymptotes

Thus far, we have restricted our discussion of rational functions to those where the degree of the numerator is less than or equal to the degree of the denominator. As our final analysis of graphing rational functions, we will consider the case when the degree of the numerator is greater than the degree of the denominator by one.

**Example 9**

Graph

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

Solution

First observe that the vertical asymptote is at \begin{align*}x=2\end{align*}. Notice that the degree of the numerator is greater than the degree of the denominator. We can change the form of the rational expression by long division. You may recall from algebra that polynomials can be divided (just like real numbers), and any rational functions can be written as

\begin{align*}\frac{f(x)}{D(x)}=Q(x)+\frac{R(x)}{D(x)}\end{align*}

Doing the long division here,

\begin{align*}& \qquad \qquad x + 2 \\ & x-2 \ \big ) \overline{x^{2} + 0x -1 }\\ & \qquad \quad \underline{x^{2} -2x \ \ \downarrow}\\ & \qquad \qquad \quad 2x -1\\ & \qquad \qquad \quad \underline{2x -4}\\ & \qquad \qquad \qquad \quad \ 3 \end{align*}

So in this case, the function \begin{align*}g(x)\end{align*} can be rewritten as

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

The above equation tells us that as \begin{align*}x\to\pm\infty\end{align*}, the graph of \begin{align*}g(x)=x+2+\frac{3}{x-2}\end{align*} gets closer and closer to the line \begin{align*}y=x+2\end{align*}. Why? Suppose we let \begin{align*}x\end{align*} be a big number, i.e. \begin{align*}x=1,000,000\end{align*}. Then the remainder of this rational function becomes \begin{align*}\frac{3}{999,998}\approx 0\end{align*} and we are left with \begin{align*}x+2\end{align*}. We call this line an *oblique asymptote* and it is indicated by the dashed line in Figure 17.

**Example 10**

Graph

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

Solution

The vertical asymptote here is \begin{align*}x=1\end{align*}. Factoring the numerator and get

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

Notice that the \begin{align*}x-\end{align*}intercepts are at \begin{align*}x=2\end{align*} and \begin{align*}x=-1\end{align*}. By polynomial division, we get

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

which indicates an oblique asymptote at \begin{align*}y=x\end{align*}. Plotting few additional points, we finally obtain the graph shown below.

## Graph Rational Functions Using Transformation

Just like polynomials, rational functions can be graphed using transformations. The main point to remember for graphing rational functions by transformations is that some transformations change the asymptotes while others do not.

- \begin{align*}r(x)+c\end{align*} is a vertical shift which moves each horizontal asymptote up \begin{align*}c\end{align*} units (or down if \begin{align*}c<0\end{align*}).
- \begin{align*}r(x-c)\end{align*} is a horizontal shift which moves each vertical asymptote right \begin{align*}c\end{align*} units (or left if \begin{align*}c<0\end{align*}).
- \begin{align*}a\cdot r(x)\end{align*} is a vertical stretch which moves horizontal asymptotes by a multiple of \begin{align*}a\end{align*} (so this moves the horizontal asymptote closer to the \begin{align*}x-\end{align*}axis if \begin{align*}a<0\end{align*}.
- \begin{align*}r(a\cdot x)\end{align*} is a horizontal compression which moves the vertical asymptotes closer to \begin{align*}y-\end{align*}axis by a factor of \begin{align*}\frac{1}{a}\end{align*}.
- \begin{align*}r(-x)\end{align*} is a reflection about the \begin{align*}y-\end{align*}axis. All vertical asymptotes are also reflected.
- \begin{align*}-r(x)\end{align*} is a reflection about the \begin{align*}x-\end{align*}axis. All horizontal asymptotes are also reflected.

**Example 11**

A rational function \begin{align*}r(x)\end{align*} is shown in the figure below. Use the graph of \begin{align*}r(x)\end{align*} to sketch a graph of: a) \begin{align*}r(x)-3\end{align*}, b) \begin{align*}-r(x)\end{align*}, c) \begin{align*}r(3-x)\end{align*}.

Solution

a) The horizontal asymptote moves down by three units

b) The function is reflected about the \begin{align*}x-\end{align*}axis so the horizontal asymptote is also reflected:

c) \begin{align*}r(3-x)=r(-(x-3))\end{align*}. First graph \begin{align*}r(-x)\end{align*}, and then shift that graph three units to the right to get \begin{align*}r(-(x-3))\end{align*}. The new vertical asymptote is \begin{align*}x=1\end{align*}.

## Exercises

For each of the rational functions below, determine the domain, the asymptotes, the \begin{align*}x-\end{align*} and \begin{align*}y-\end{align*}intercepts and then sketch the graph.

- \begin{align*}f(x)=\frac{2x+5}{x-1}\end{align*}
- \begin{align*}f(x)=\frac{x+2}{x^{2}+1}\end{align*}
- \begin{align*}f(x)=\frac{9x^{2}-4}{3x-2}\end{align*}
- \begin{align*}f(x)=\frac{7}{3x^{2}}\end{align*}
- \begin{align*}f(x)=\frac{x^{3}}{x^{3}+1}\end{align*}
- \begin{align*}f(x)=\frac{14}{x^{2}-16}\end{align*}
- \begin{align*}f(x)=\frac{5(x-2)}{x^{2}-3x+2}\end{align*}
- \begin{align*}f(x)=\frac{x^{2}+1}{x-1}\end{align*}
- \begin{align*}f(x)=\frac{x^{3}-3x^{2}-4x}{x^{2}+3x}\end{align*}
- In physics, Boyle's law states that the product of the pressure \begin{align*}P\end{align*} and the volume \begin{align*}V\end{align*} of a container is always a constant. That is, \begin{align*}PV=\text{constant}\end{align*} Suppose the constant is equal to \begin{align*}4000 \ Pa.m^{2}\end{align*} (Pascals. square meters). So \begin{align*}P=\frac{4000}{V}\end{align*} where the pressure is measured in Pascals and the volume is in meters-squared. Sketch the graph of the equation for \begin{align*}v>0\end{align*}.

## Answers

- Domain: \begin{align*}x\ne 1\end{align*}; Vertical asymptote \begin{align*}x=1\end{align*}; Horizontal asymptote \begin{align*}y=2\end{align*}
- Domain: All real numbers; Vertical asymptote: none; Horizontal asymptote: \begin{align*}y=0\end{align*}
- Domain: \begin{align*}x\ne\frac{2}{3}\end{align*}; No asymptotes
- Domain: \begin{align*}x\ne 0\end{align*}; Vertical asymptote \begin{align*}x=0\end{align*}; Horizontal asymptote \begin{align*}y=0\end{align*}
- Domain: \begin{align*}x\ne -1\end{align*}; Vertical asymptote \begin{align*}x=-1\end{align*}; Horizontal asymptote \begin{align*}y=1\end{align*}
- Domain: \begin{align*}x\ne\pm 4\end{align*}; Vertical asymptote \begin{align*}x=\pm 4\end{align*}; Horizontal asymptote \begin{align*}y=0\end{align*}
- Domain: \begin{align*}x\ne2, x\ne1\end{align*}; Vertical asymptote \begin{align*}x=1\end{align*}, Horizontal asymptote \begin{align*}y=0\end{align*}
- Domain: \begin{align*}x\ne 1\end{align*}; Oblique asymptote \begin{align*}y=x+1\end{align*}; Vertical asymptote \begin{align*}x=1\end{align*}, Horizontal asymptote \begin{align*}y=0\end{align*}
- Domain: \begin{align*}x\ne0, x\ne -3\end{align*}; Oblique asymptote \begin{align*}y=x-6\end{align*}; Vertical asymptote \begin{align*}x=-3\end{align*}, No horizontal asymptote

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Please Sign In to create your own Highlights / Notes | |||

Show More |