If
f(
x) represents a rational expression, then
y =
f(
x) is a
rational function. To graph a rational function, first find values for which the function is undefined. A function is undefined for any values that would make any denominator become zero. Dashed lines are drawn on the graph for any values for which the rational function is undefined. These lines are called
asymptote lines. The graph of the rational function will get close to these asymptote lines but will never intersect them.
Example 1: Graph
.
First, the function is undefined when
x = −1. So the graph of
x = −1 becomes a vertical asymptote.
Second, find if any horizontal asymptotes exist. To do this, solve the equation for
x and see if there are any values for
y that would make the new equation undefined. It may not always be easy to solve a rational function for
x. For those cases, other methods are used involving the idea of limits, which is discussed in calculus.
Apply the cross products rule.
This equation is undefined when
y = 0. The graph of
y = 0 becomes a horizontal asymptote. The graph of
x = −1 and
y = 0 is shown in Figure
1 .
|
|
|
|
|
Figure 1
|
x = −1 is an asymptote.
|
|
|
Third, plot the following points on each side of each asymptote line and use them to sketch the graph (see Figure
2 ).
|
|
|
|
|
Figure 2
|
Graphs don't hit asymptotes.
|
|
|
Example 2: Graph
.
First, x = −2 is the vertical asymptote.
Second, find any horizontal asymptotes that exist by solving the equation for
x.
Apply the cross products rule.
This equation is undefined when
y = 1, so
y = 1 is a horizontal asymptote as shown in Figure
3 .
|
|
|
|
|
Figure 3
|
y = 1 is a horizontal asymptote.
|
|
|
Third, plot these points on either side of each asymptote line and sketch the graph as shown in Figure
4 .
|
|
|
|
|
Figure 4
|
The expression is plotted.
|
|
|