Rational functions are functions that have a fraction with a polynomial in the denominator and a polynomial in the numerator. To graph these functions, it is necessary to determine what their asymptotes are.

Here, we will look at a summary of rational functions. We will review how to graph rational functions and how to find asymptotes. In addition, we will look at several examples of rational functions with answers to fully understand the process used to find asymptotes and graph these types of functions.

## Summary of rational functions

A rational function is a function that can be written as a fraction of two polynomial functions. Neither the coefficients of the polynomials nor the values taken by the function have to necessarily be rational numbers.

A function of a variable *x* is considered a rational function only if it can be written in the form:

where, *P* and *Q* are polynomial functions and is nonzero.

### Graphing rational functions

To graph rational functions, we follow the following steps:

**Step 1:** Find the intercepts if they exist. The *y*-intercept is the point and we find the *x*-intercepts by setting the numerator as an equation equal to zero and solving for *x*.

** Step 2:** We find the vertical asymptotes by setting the denominator equal to zero and solving.

** Step 3:** If it exists, we find the horizontal asymptote using the details below about the asymptotes.

** Step 4:** The vertical asymptotes will divide the graph into several regions. We have to find several points in each of the regions to determine the general shape that the graph will have.

** Step 5:** We draw the graph that passes through all the points found.

### Finding asymptotes

If we have the rational function , where, *n* means the largest exponent of the numerator and *m* means the largest exponent denominator, We can find asymptotes in the following way:

1. If the denominator is zero at and the denominator is not zero at , the graph will have a vertical asymptote at .

2. If , the *x*-axis is the horizontal asymptote.

3. If , the line is the horizontal asymptote.

4. If , there will be no horizontal asymptotes

## Examples with answers of rational function problems

The following rational functions exercises are solved using the process detailed above. Try to solve the exercises yourself before looking at the answer.

**EXAMPLE 1**

Obtain the graph of the rational function .

##### Solution

**Step 1:** We start by finding the intercepts of the function:

- The
*y*-intercept is the point . - For
*x*-intercepts, we set the numerator equal to zero and solve. However, here the numerator is the constant -3, so it has no zeros. Therefore, the function has no*x*-intercepts.

**Step 2:** To find the vertical asymptotes, we make the denominator equal to zero and solve:

We have a vertical asymptote at .

**Step 3:** The largest exponent of *x* in the denominator is 1, which is larger than the exponent of *x* in the numerator (0). Thus, the *x*-axis is the horizontal asymptote.

**Step 4:** We only have one vertical asymptote, so we have two regions on the graph: and .

We need a point in each region to determine whether it will be located above or below the horizontal asymptote. Therefore, we can use:

⇒

⇒

**Step 5:** The following is the graph of the function:

**EXAMPLE 2**

Graph the rational function .

##### Solution

**Step 1:** We have to find the intercepts of the function:

- The
*y*-intercept is the point . - We find the
*x*-intercepts by setting the numerator equal to zero and solving:

The *x*-intercept is .

**Step 2:** We find the vertical asymptotes by making the denominator equal to zero and solving:

We have a vertical asymptote at .

**Step 3:** The largest exponents of *x* in both the denominator and the numerator are equal. Thus, the horizontal asymptote is equal to the coefficient of *x* in the numerator divided by the coefficient of *x* in the denominator:

**Step 4:** We have a vertical asymptote, so we only have two regions on the graph: and .

We have to find a point in each region to know if it will be located above or below the horizontal asymptote. Therefore, we are going to use:

⇒

⇒

**Step 5:** With the points obtained, we graph the function:

Start now: Explore our additional Mathematics resources

**EXAMPLE 3**

Graph the rational function .

##### Solution

**Step 1:** We have to find the intercepts of the function:

- The
*y*-intercept is the point . - We find the
*x*-intercepts by setting the numerator equal to zero and solving. In this case, the numerator is the constant 4, so we have no zeros and the function has no*x*-intercepts.

**Step 2:** We set the denominator equal to zero and solve to find the vertical asymptotes:

We have the vertical asymptotes and .

**Step 3:** In this function, the largest exponent of *x* in the denominator is greater than the exponent of *x* in the numerator (0). Thus, the *x*-axis is the horizontal asymptote.

**Step 4:** We have two vertical asymptotes, so we have three regions on the graph: , and .

We need a point in each region to determine whether it will be located above or below the horizontal asymptote. The middle region is a bit more complicated, so we will need a couple of points close to the vertical asymptotes. Therefore, we can use:

⇒

⇒

⇒

⇒

**Step 5:** The following is the graph of the function:

**EXAMPLE 4**

Find the graph of the rational function .

##### Solution

**Step 1:** The intercepts of the rational function are:

- If we use , we will obtain division by zero, so the function does not have a
*y*-intercept. However, we have already found a vertical asymptote. - The
*x*-intercepts are:

Therefore, we have two *x*-intercepts.

**Step 2:** We already found a vertical asymptote but there could be more. Therefore, we make the denominator zero and solve:

and

We obtained two vertical asymptotes at and .

**Step 3:** The largest exponent of *x* in the numerator is 2, similar to the numerator. Thus, we will have a horizontal asymptote in:

**Step 4:** We have the regions: , and .

One of the *x*-intercepts is in the left region, so we don’t need a point there. The other *x*-intercept is in the middle region, but we need more points to determine its behavior. Also, we need a point in the right region. Therefore, we have:

⇒

⇒

⇒

**Step 5:** The following is the graph of the function:

**EXAMPLE 5**

Graph the function .

##### Solution

**Step 1:** We start with the intercepts of the function:

- The
*y*-intercept is the point . - The
*x*-intercepts are:

The *x-*intercepts are (-3, 0) and (3, 0).

**Step 2:** To find the vertical asymptotes, we make the denominator equal to zero and solve:

We have two vertical asymptotes in and .

**Step 3:** The largest exponent of *x* in both the denominator and the numerator is 2. Therefore, the horizontal asymptote is:

**Step 4:** We have two vertical asymptotes, so we have the regions: , y .

We need a point in each region, but we need a couple of points in the middle region. Therefore, we can use:

⇒

⇒

⇒

⇒

**Step 5:** The following is the graph of the function:

## See also

Interested in learning more about rational functions? Take a look at these pages:

### Learn mathematics with our additional resources in different topics

**LEARN MORE**