## 17Calculus Precalculus - Basics of Rational Functions

Rational functions are functions (so they pass the vertical line test) that are ratios of polynomials. In addition to the basics of rational functions, we also discuss holes and zeroes of rational functions on this page. Asymptotes and graphing of rational functions are covered on separate pages.

What Are Rational Functions?

Put another way, rational functions are fractions that have polynomials in the numerator and denominator. They consist of one polynomial divided by another polynomial. You can think of them like this.

$$\displaystyle{ \text{rational function} = \frac{\text{a polynomial}}{\text{another polynomial}}}$$

Domain of Rational Functions

When working with rational functions, you need to be very aware of the domain. Since polynomials include all real numbers in their domain, the only situation you need to think about is where the denominator is zero. Here is a video explaining why we need to be careful with zero in the denominator.

### Numberphile - Problems With Zero [12min-59secs]

This video includes some limits. If you haven't studied limits yet, no worries. You will still be able to follow this video and maybe even get a head start on limits.

video by Numberphile

So your first task when investigating a rational function is determine where the denominator is zero. The page discussing the zeroes of a polynomial will help you with this. The domain then is all the set of all real numbers except for those values where the denominator is zero.

Vertical Asymptotes, Holes and Zeroes

Okay, so you found those values where the denominator is zero and excluded them from the set of real numbers to get the domain. So, what now? Well, the investigation of what is going on where the denominator is zero doesn't stop there. Even though those values are not in the domain, we often want to know what the rational function is doing very near those points. You will look into this in more detail when you get to limits but let's take a look and see what we can find out. We have four cases, three of which involve zero. Here is a table of the values. After the table we discuss each case.
Let the rational function be $$\displaystyle{r(x)=\frac{n(x)}{d(x)}}$$

$$r(x)$$

$$n(x) \neq 0$$

$$n(x) = 0$$

$$d(x) \neq 0$$

Zero

$$d(x) = 0$$

Vertical Asymptote

Hole

Let's start in the upper left corner (empty cell) and work across.
1. Of course, when the numerator is not zero ($$n(x)\neq0$$) and the denominator is not zero ($$d(x)\neq0$$), we just have a number as our answer. For example, $$1/2$$. No surprises here. And, since no zeroes are involved, there is not much to say.
2. Now let's look to the right where numerator is zero ($$n(x)=0$$) and the denominator is not zero ($$d(x)\neq0$$). In this case, since the denominator is not zero, the value of x where this occurs is part of the domain with the result being zero. Again, no surprises here. An example is $$f(x)=(x-1)/x$$. When $$x=1$$, $$f(1)=0/1=0$$. These are called zeroes of the function.
3. The first cell in the last row is a bit more interesting. In this case, we have the numerator being non-zero ($$n(x)\neq0$$) but this is our first case where denominator is zero ($$d(x)=0$$). An example of this is $$g(x)=1/(x-3)$$ and when $$x=3$$ we have $$g(3)=1/0$$. Of course, you know from the video above that this is undefined. But what does the graph look like? Below is the graph of $$g(x)=1/(x-3)$$. You can see that as x gets closer and closer to 3 (look at each side separately) the graph goes off to $$\pm \infty$$ depending on which side of $$x=3$$ you are looking at. We call $$x=3$$ a vertical asymptote.
4. The last case is when both the numerator and denominator are zero. In this case, we have something called a hole. An example is $$h(x)=(x^2+x)/(x+1)$$. Notice that when $$x=-1$$, we get $$h(-1)=0/0$$. The graph of this function is shown below.

$$\displaystyle{f(x)=\frac{1}{x-3}}$$
Vertical Asymptote at $$x=3$$ $$\displaystyle{h(x)=\frac{x(x+1)}{x+1}}$$
Hole at $$(-1,-1)$$ A few more comments are in order.
1. In the case of a vertical asymptote, it doesn't matter if the graph goes off to positive or negative infinity. The x-value where the denominator is zero is called an asymptote in both cases.
2. In the case of a hole, you need to be careful when graphing on your calculator. The hole will probably not show up in the graph and you may assume nothing is going on there. Always check the results of your calculator to see if they make sense.

On the page discussing the domain and range of a function, we go out of our way to explain why the domain is important in calculus. When you are working with rational functions, you need to be extra careful when simplifying. Let's look at the graph above that contains a hole, $$\displaystyle{f(x)=\frac{x^2+x}{x+1}=\frac{x(x+1)}{x+1}}$$. If you remember your algebra, your first instinct would be to cancel the $$x+1$$ terms from the numerator and denominator to get $$g(x)=x$$. That was correct in algebra since you were not really concerned with the domain and functions.

However, doing this cancellation now introduces an error and you need to watch for it. Let's look more closely at what is going on by comparing the two functions $$f(x)$$ and $$g(x)$$.

 $$\displaystyle{f(x)=\frac{x(x+1)}{x+1}}$$ domain: all real numbers except $$x=-1$$ $$g(x)=x$$ domain: all real numbers

Notice in the table above, $$f(x)\neq g(x)$$ because the domains are different, i.e. $$g(-1)=-1$$ but $$f(-1)$$ is undefined. At all other points, the functions are equal. Even though this is only one point, we must write $$f(x) \neq g(x)$$.

However, one way to get around this is to specify a domain that excludes the problem points, in this case $$x=-1$$. So it would be correct to say
$$f(x)=g(x); ~~ x \neq -1$$
We have removed the problem point from the domain and so the functions are now equal for all x except $$x=-1$$.

Okay, use what you learned in this tutorial to work these practice problems involving rational functions, zero and holes. After that, your next logical step is to learn more about asymptotes of rational functions.

Practice

Simplify the rational function $$\displaystyle{ \frac{5x-x^2}{x^2-x-20} }$$ making sure to specify the domain.

Problem Statement

Simplify the rational function $$\displaystyle{ \frac{5x-x^2}{x^2-x-20} }$$ making sure to specify the domain.

Solution

### 2983 video

Find the zeroes of the rational function $$\displaystyle{\frac{x-2}{x+6}}$$.

Problem Statement

Find the zeroes of the rational function $$\displaystyle{\frac{x-2}{x+6}}$$.

Solution

### 2984 video

Find the zeroes and holes of the rational function $$\displaystyle{\frac{x-2}{x^2-4}}$$.

Problem Statement

Find the zeroes and holes of the rational function $$\displaystyle{\frac{x-2}{x^2-4}}$$.

There is no x-intercept but there is one hole at $$x=2$$.

Problem Statement

Find the zeroes and holes of the rational function $$\displaystyle{\frac{x-2}{x^2-4}}$$.

Solution

### 2985 video

There is no x-intercept but there is one hole at $$x=2$$.

Find the zeroes and holes of the rational function $$\displaystyle{\frac{x^2-x-12}{x^2-9}}$$.

Problem Statement

Find the zeroes and holes of the rational function $$\displaystyle{\frac{x^2-x-12}{x^2-9}}$$.

There is a zero at $$x=4$$ and there is a hole at $$x=-3$$. Although not asked for in this problem, there is also a vertical asymptote at $$x=3$$.

Problem Statement

Find the zeroes and holes of the rational function $$\displaystyle{\frac{x^2-x-12}{x^2-9}}$$.

Solution

### 2986 video

There is a zero at $$x=4$$ and there is a hole at $$x=-3$$. Although not asked for in this problem, there is also a vertical asymptote at $$x=3$$.

Find the coordinates of all the holes in the graph of $$\displaystyle{h(x)=\frac{x^3-125}{x^2-25}}$$.

Problem Statement

Find the coordinates of all the holes in the graph of $$\displaystyle{h(x)=\frac{x^3-125}{x^2-25}}$$.

Solution

### 1672 video

video by PatrickJMT

Write an equation for a rational function with vertical asymptotes $$-4, 8$$, x-intercepts at $$-2, 4$$ and y-intercept at $$2$$.

Problem Statement

Write an equation for a rational function with vertical asymptotes $$-4, 8$$, x-intercepts at $$-2, 4$$ and y-intercept at $$2$$.

Solution

### 1660 video

video by MIP4U

Find a rational function with x-intercepts $$0, 1$$, vertical asymptotes $$2, 4$$ and horizontal asymptote $$3/5$$.

Problem Statement

Find a rational function with x-intercepts $$0, 1$$, vertical asymptotes $$2, 4$$ and horizontal asymptote $$3/5$$.

Solution

### 1661 video

video by Dr Phil Clark

Really UNDERSTAND Precalculus

### Calculus Topics Listed Alphabetically

Single Variable Calculus

Multi-Variable Calculus

### Search Practice Problems

Do you have a practice problem number but do not know on which page it is found? If so, enter the number below and click 'page' to go to the page on which it is found or click 'practice' to be taken to the practice problem. The 17Calculus and 17Precalculus iOS and Android apps are no longer available for download. If you are still using a previously downloaded app, your app will be available until the end of 2020, after which the information may no longer be available. However, do not despair. All the information (and more) is now available on 17calculus.com for free.

How to Become a Straight-A Student: The Unconventional Strategies Real College Students Use to Score High While Studying Less Under Armour Clothing - Just Launched at eBags.com! Prime Student 6-month Trial When using the material on this site, check with your instructor to see what they require. Their requirements come first, so make sure your notation and work follow their specifications.

DISCLAIMER - 17Calculus owners and contributors are not responsible for how the material, videos, practice problems, exams, links or anything on this site are used or how they affect the grades or projects of any individual or organization. We have worked, to the best of our ability, to ensure accurate and correct information on each page and solutions to practice problems and exams. However, we do not guarantee 100% accuracy. It is each individual's responsibility to verify correctness and to determine what different instructors and organizations expect. How each person chooses to use the material on this site is up to that person as well as the responsibility for how it impacts grades, projects and understanding of calculus, math or any other subject. In short, use this site wisely by questioning and verifying everything. If you see something that is incorrect, contact us right away so that we can correct it.