Please read Graphing Rational Functions by Hand - Overview first.

The rational functions we will be graphing will have a polynomial in the numerator and denominator and frequently the numerator and denominator will be factorable (if the degree is two or higher), or already factored for you.

**To graph a rational function consider:**

*x*-intercepts,*y*-intercepts,- vertical asymptotes ("bad"
*x*-values), - near vertical asymptotes (
*x*-values real close and on either side of the "bad"*x*-values), - horizontal asymptotes (end behavior),
- (other points as needed - often not needed).

Click here to jump down to the examples.

Online students, see the example graph description.

A Few Graphics Calculator Tips

To find the *x*-intercept(s), put 0 in for *y* and solve for *x*.
In this particular case, you want to make the fraction zero. That means you
want to make the numerator zero. Therefore, you set the numerator equal to 0
and solve. Often this can be done visually, without writing anything down. You
* may get more than one x-intercept. Hint:* It is often beneficial
to write the

To find the *y*-intercept, put 0 in for *x* and evaluate (find *y*).
In this particular case, all the terms involving *x* drop out, so you get
the constant term in the numerator over the constant term in the denominator.
Often this can be done visually, without writing anything down. You will only
have one *y*-intercept, because if you had two, it wouldn't be a function.
*Hint:* It is often beneficial to write the *y*-intercept **as an
ordered pair**, such as (0, 2/3). **Graph** the *y*-intercept. (back
to the top)

Look at the denominator. Find the *x*-values that make the denominator
zero. Vertical asymptotes are of the form *x=a* (where *a* is a number).
The denominator should be factored if possible. Recall, that if the denominator
has two factors, then there will be two values that make it zero (therefore,
two vertical asymptotes). For example, for f(x) = (5x)/(x^2-9) = (5x)/[(x-3)(x+3)]
we have vertical asymptotes at x = 3 and x = -3. **Graph** the vertical intercepts
as dashed vertical lines. These are not part of the graph of the function, but
indicate where the graph is going to have a break. (back
to the top)

Once you have the vertical (dashed) lines drawn in, consider what happens near by. For example, for f(x) = (5x)/[(x-3)(x+3)], as above, let's look near x = 3. Just to the left of 3, say 2.999, two important things happen.

- The factor (x-3) is going to be a small number, -.001, in fact. This means
we will be
*dividing by a tiny number*, which will give a large quotient. - When you put in 2.999, we get a positive divided by a negative times a positive. That means the quotient is negative.

Therefore, to the left of x = 3, then graph will go down. That is, the *y*-values
are getting big negative ("approaching negative infinity," if you
wish).

Now we need to consider what happens just to the right of x = 3, and also what happens on either side of x = -3. This example is worked out completely in the examples below.

Indicate you your graph if the curve will be going up or down on either side of each asymptote. (back to the top)

Here we want to consider what happens when x gets very large. Note that for
a polynomial, the term with the *highest degree *will *dominate* the
polynomial. By this we mean it will be the primary contributor to the polynomial's
value. Put differently, the other terms are "small potatoes" compared
to the dominant term. For example, put x=100 into f(x) = 4x^3 + 5x^2 - 7x +
8. You get 4,049,308, which isn't much different from 4,000,000, which is what
you get by just using the dominant term. Even if the polynomial was g(x) = 4x^3
-5x^2 - 7x -8, when you plug in x=100, the result is quite close to 4,000,000
(3,949,292). For a rational function, there is a dominant term on the top and
dominant term on the bottom. If one has a higher degree than the other, then
the rational function has one term which dominates. That means the numerator
or the denominator will grow much larger, by comparison than the other side
of the fraction. If the two "dominant" terms have the same degree,
then neither the numerator or the denominator "takes over," but they
both grow similarly. Keep reading.

What we want to do is figure out what happens on the right and left ends of the graph. There are three cases.

- The denominator [bottom] dominates the fraction. This happens when the
degree on the bottom is higher than the degree on the top. In this case, you
are dividing by a larger and larger number, which causes the quotient to get
smaller and smaller. The
*y*-values are approaching 0. The horizontal asymptote is*y*= 0. For example: the function f(x) = (5x)/(x^2-9) will have a horizontal asymptote of*y*= 0. - The numerator [top] dominates the fraction. As you already guessed, this
happens when the degree on the top is higher than the degree on the bottom.
In this case, as
*x*keeps getting bigger and bigger,*y*also keeps getting bigger and bigger. Then you have to figure out if*y*is getting bigger and bigger*positive or negative.*As*x*grows, the graph will either go up (angle up and to the right) or go down (angle down and to the right). Also, consider what happens for "large negative" numbers (like x = -1000 or -100,000). (I prefer to call these "large negative" numbers, rather than "small numbers.") The graph will go up and to the left or down and to the left. For example, the graph of the function h(x) = (x^2-9)/(5x) goes up and to the right (because a positive divided by a positive is positive) and down and to the left (because a positive divided by a negative is negative). - If the numerator and denominator have the same degree then the
*y*-values will approach a specific number (*neither*the numerator or the denominator dominates the fraction). Consider the function m(x) = (4x^2-9)/(3x^2). If you think about putting 1000 in for*x*, then you'll get nearly 4 million on the top and 3 million on the bottom. The fraction is about 4/3. This has a horizontal asymptote of y = 4/3. One only need to look at the coefficients of the highest degree terms. The specific number that*y*is approaching is the ratio of these coefficients.

At this point **graph** the horizontal asymptote as a dashed line. * Note:
*Horizontal asymptotes are somewhat different from their vertical counterparts.
A graph can never touch (cross) a vertical asymptote. However, horizontal asymptote
only help us with

At this point you can probably finish the sketch of the graph. (back to the top)

If you are not sure what happens for all *x*-values, you may want to plug
in some other *x*-values. One (1) is an easy number to plug in because
you just have to add up the coefficients. Also, I'll often plug in a number
1 or 2 greater (or less) than an asymptote value (easy to plug into the factored
form).

1. Graph

** x-intercepts - **To make the numerator 0,

**y****-intercepts** - (0, 0) is also the *y*-intercept.

**vertical asymptotes ("bad" x-values) **- Factor the bottom
into (*x* - 3)(*x* +3). Setting this equal to zero we get two vertical
asymptotes: *x *= 3 and *x *= -3. So far, our graph has a point at
(0, 0) and two vertical dashed lines.

**near the vertical asymptotes** (x-values real close and on
either side of the "bad" x-values) -

- First consider near to
*x*= 3.*Hint:*Use the factored form,*f(x)*= 5*x*/[(*x*- 3)(*x*+3)]. If you put in a number slightly less than 3 (such as 2.99), we get a positive divided by a negative (2.99-3 is negative) times a positive (2.99+3 is positive). Therefore, the fraction is negative. Furthermore, since we a dividing a number by a tiny number (because (2.99-3) is small making the denominator small), the number is large negative.*f*(2.99) = -249.583. If you put in a number even closer to 3, say 2.9999, the fraction is even bigger negative.*f*(2.9999) = -24999.583. - Using similar logic on the other side of x=3.
*f*(3.001) = (+)/[(+)(+)], which is positive. Dividing by a tiny makes the fraction large.*f*(3.001) = 2500.4. - Now look to the left of
*x*= -3. If we put in -3.001 we get (-)/[(-)(-)], which is negative. Therefore, to the left of x = -3, the graph goes down ("to negative infinity"). - Just to the right of
*x*= -3 we get (-)/[(-)(+)], which is positive. Therefore, to the right of x = -3, the graph goes up ("to positive infinity").

**horizontal asymptotes **(end behavior) - The denominator
has the highest degree term. Therefore, the denominator dominates (grows bigger
faster than the top). Therefore, the *y*-values approach zero as *x*
grows. Therefore *y* = 0 is the horizontal asymptote.

**Other points as needed** - none needed here. Now finish the
graph.

By Hand | From Technology |

2. Graph

** x-intercepts - **Use the factored form,

**y****-intercepts** - There is no *y*-intercept,
because y = 0 is a bad value.

**Vertical asymptotes ("bad" x-values) **- The line y = 0 is
the vertical asymptote. So far, our graph has two points and dashed line right
on top of the *y*-axis.

**Near the vertical asymptotes** (x-values real close and on
either side of the "bad" x-values) -

- When
*x*is small positive, we get a negative over a positive, which is negative. Therefore, for small positive*x-*values, the graph goes down (to negative infinity). - When
*x*is small negative (just to the left of the vertical asymptote), we get a negative over a negative, which is positive. Therefore, for small positive*x-*values, the graph goes up (to positive infinity).

**horizontal asymptotes **(end behavior) - The numerator has
the highest degree term. Therefore, the numerator dominates (grows bigger faster
than the bottom). Therefore, as *x* grows the fraction (*y*-values)
keep growing without bound. Therefore, there is no horizontal asymptote. The
graph goes up and to the right (in the first quadrant). The graph goes down
and to the left (in the third quadrant).

**Other points as needed** - none needed here. Now finish
the graph.

By Hand | From Technology |

3. Graph

** x-intercepts - **Use the factored form,

**y****-intercepts** - There is no *y*-intercept,
because *y* = 0 is a bad value.

**Vertical asymptotes ("bad" x-values) **- The line y = 0 is
the vertical asymptote. So far, our graph has two points and dashed line right
on top of the *y*-axis.

**Near the vertical asymptotes** (x-values real close and on
either side of the "bad" x-values) -

- When
*x*is small positive, we get [(-)(+)]/(+), which is negative. Therefore, for small positive*x-*values, the graph goes down (to negative infinity). - When
*x*is small negative (just to the left of the vertical asymptote), we get [(-)(+)]/(+), which is negative,. Therefore, for small positive*again**x-*values, the graph goes down (to negative infinity). The graph does the same thing on both sides of the asymptote - interesting!

**horizontal asymptotes **(end behavior) - Neither the numerator
or denominator dominate, because they have the same degree. Both top and bottom
grow at the same rate. You can look at a table of values on a graphics calculator.
Load the function in Y=. Use TBLSET and Start with 80 (or so) and set the change
in the *x*-values to 10 (deltaTbl = 10). Then press TABLE. Scroll down.
Notice the *y*-values are approaching 4/3. Therefore, the horizontal asymptote
is y = 4/3. After a while you won't need the calculator, you just look at the
coefficients. The graph will approach this line from the under side, for large
positive *x* and for large negative *x*.

**Other points as needed** - none needed here. Now finish the
graph.

By Hand | From Technology |

4. Graph

** x-intercepts - **(4, 0) is the

**y****-intercepts** - Putting in 0 for y we get
(-4)^2/[(-2)(-6)] = 16/12 = 4/3. The *y*-intercept (0, 4/3).

**vertical asymptotes ("bad" x-values) **- The lines *y*
= 2 and *y* = 6 are the vertical asymptotes.

**Near the vertical asymptotes** (x-values real close and on
either side of the "bad" x-values) -

- To the left of
*x*= 2 the graph goes up (to positive infinity). - To the right of
*x*= 2 the graph goes down (to negative infinity). - To the left of
*x*= 6 the graph goes down (to negative infinity).that between*Note**x*=2 and*x*=6*y*is always non-positive. It turns out that the*x*-intercept of (4, 0) is also a maximum point! - To the right of
*x*= 6 the graph goes up (to positive infinity).

**horizontal asymptotes **(end behavior) - Neither the numerator
or denominator dominate, because they have the same degree. Therefore, the horizontal
asymptote is y = 1 (from 1/1).

**Other points as needed** - none needed here. Now finish the
graph.

By Hand | From Technology |

- To load functions into a graphics calculator, the the Y= button.
- Use WINDOW to set the graph window, then press GRAPH.
- Use TBLSET to set up a table, then press TABLE.
- Graphics calculators do not show the vertical asymptotes.
- For rational functions, it is best to press MODE and select Dot (instead of Connected). If "Connected" is used the calculator attempts to connect points on either side of the asymptote, creating a solid vertical line, which is misleading.

Here are a few extra neat things to know that can help make the graph. These are "not required," because you can get along without them, but I find them useful at times.

- When a factor in the
*numerator is to an even power*(like in example 4), then the*x-*intercept is also a*maximum or minimum point*(take calculus and you'll see why). - When a factor in the
*denominator is to an even power*(like in example 3), then the graph will go same direction on both sides of the asymptote (down on both sides or up on both sides). - Symmetry. If all the terms are of even degree, then the function is said
to be an even function and it has
*y*-axis symmetry (like in example 3). If all the terms are of odd degree, then the function is said to be an odd function and it has point symmetry about the origin (this is more rare). (back to the top)

*Disclaimer: This does not claim to state everything there is
to know about graphing rational functions, but these easy concepts, one can
get pretty accurate graphs for many rational functions.*

© James Olsen, Western Illinois University Mathematics Department

*Updated:
April 8, 2004
*