How to Graph Rational Functions by Hand

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:

  1. x-intercepts,
  2. y-intercepts,
  3. vertical asymptotes ("bad" x-values),
  4. near vertical asymptotes (x-values real close and on either side of the "bad" x-values),
  5. horizontal asymptotes (end behavior),
  6. (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

Extra Base Hits


  1. x-intercepts

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 x-intercept as an ordered pair, such as (3, 0). Graph the x-intercept(s). Hint: always label your axes.   (back to the top)

  1. y-intercepts

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)

  1. Vertical asymptotes ("bad" x-values)

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)

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

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.

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)

  1. Horizontal asymptotes (end behavior)

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.

  1. 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.
  2. 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).
  3. 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 end behavior, that is, what happens for large positive x-values and for large negative x-values. A graph can touch (cross) a horizontal asymptote.

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

  1. Other points as needed - often not needed

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).


Examples

1. Graph

x-intercepts - To make the numerator 0, x must be zero. (0, 0) is the x-intercept.

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) -

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

   (back to the top)

2. Graph

x-intercepts - Use the factored form, h(x) = [(x - 3)(x +3)]/5x. To make the numerator 0, x must be ±3. (3, 0) and (-3, 0) are the x-intercepts.

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) -

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

   (back to the top)

3. Graph

x-intercepts - Use the factored form, m(x) = [(2x - 3)(2x +3)]/(3x^2). To make the numerator 0, x must be ±3/2. (3/2, 0) and (-3/2, 0) are the x-intercepts.

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) -

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

   (back to the top)

4. Graph

x-intercepts - (4, 0) is the x-intercept.

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) -

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

Example Description: Features of this graph are:

  • There is one x-intercept, (4,0) and this point is also a maximum point.
  • The y-intercept is (0,4/3).
  • The vertical asymptotes are x=2 and x=6.
  • The horizontal asymptotes y=1.
  • For x<2: The graph is slightly above the horizontal intercept on the left, goes through (0,4/3), and rises up to very large y-values just to the left of x=2.
  • For x between 2 and 6: The y-values approach negative infinity to the right of x=2. The graph rises up to the maximum point of (4,0) and then falls. To the left of x=6 the y-values approach negative infinity.
  • For x>6: To the right of x=6 the y-values approach positive infinity. The graph falls and levels off as it approaches the horizontal asymptote (y=1) from above.

   (back to the top)


A Few Graphics Calculator Tips

Extra Base Hits

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.

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