How to Calculate Outputs for Rational Functions
Rational functions are functions where the variable appears in the denominator of a fraction. The mathematical definition of a rational function is a function that can be expressed as the quotient of two polynomials, such that
where the degree of q (x) is greater than zero.
The variable in the denominator of a rational function could create a situation where the denominator is zero for certain numbers in the domain. Of course, division by zero is an undefined value in mathematics. Typically in a rational function, you’ll find at least one value of x for which the rational function is undefined, at which point the graph will have an asymptote — the graph gets closer and closer to that value but never crosses it (in the case of vertical asymptotes). Knowing in advance that these values of x are undefined helps you to graph.
Below are the steps involved in finding the outputs of (and ultimately graphing) rational functions.
Step 1: Search for vertical asymptotes
Having the variable on the bottom of a fraction is a problem, because the denominator of a fraction can never be zero. Usually, some domain value(s) of x makes the denominator zero. The function will jump over this value in the graph, creating what’s called a vertical asymptote. Graphing the vertical asymptote first shows you the number in the domain where your graph won’t pass through. The graph will approach this point but never reach it. With that in mind, what value(s) for x can you not plug into the rational function?
The following are all rational equations:
Now try to find the value for x in which the function is undefined. Use the following steps to find the vertical asymptote for f (x) first:
Set the denominator of the rational function equal to zero.
Solve this equation for x.
Because this equation is a quadratic, try to factor it. This quadratic factors to (x + 7)(x – 3) = 0. Set each factor equal to zero to solve. If x + 7 = 0, x = –7. If x – 3 = 0, x = 3. Your two vertical asymptotes, therefore, are x = –7 and x = 3.
Now you can find the vertical asymptote for g (x). Follow the same set of steps:
4 – 3x = 0. That was easy!
x = 4/3
Now you have your vertical asymptote for g (x). Time to do it all again for h (x):
x + 2 = 0. Easy as pie.
x = –2
Keep these equations for the vertical asymptotes close by because you’ll need them when you graph later.
Step 2: Look for horizontal asymptotes
To find a horizontal asymptote of a rational function, you need to look at the degree of the polynomials in the numerator and the denominator. The degree is the highest power of the variable in the polynomial expression. Here’s how you proceed:
If the denominator has the bigger degree (like in the f (x) example in the previous step), the horizontal asymptote automatically is the x-axis, or y = 0.
If the numerator and denominator have an equal degree, you must divide the leading coefficients (the coefficients of the terms with the highest degrees) to find the horizontal asymptote.
Be careful! Sometimes the terms with the highest degrees aren’t written first in the polynomial. You can always rewrite both polynomials so that the highest degrees come first, if you prefer. For instance, you can rewrite the denominator of g (x) as –3x + 4 so that it appears in descending order.
The function g (x) has equal degrees on top and bottom. To find the horizontal asymptote, divide the leading coefficients on the highest-degree terms: y = 6 ÷ –3, or y = –2. You now have your horizontal asymptote for g (x). Hold onto that equation for graphing!
If the numerator has the bigger degree of exactly one more than the denominator, the graph will have an oblique asymptote; see Step 3 for more information on how to proceed.
Step 3: Seek out oblique asymptotes
Oblique asymptotes are neither horizontal nor vertical. In fact, an oblique asymptote doesn’t even have to be a straight line at all; it can be a slight curve or a really complicated curve.
To find an oblique asymptote, you have to use long division of polynomials to find the quotient. You take the denominator of the rational function and divide it into the numerator. The quotient (neglecting the remainder) gives you the equation of the line of your oblique asymptote.
You must understand long division of polynomials in order to complete the graph of a rational function with an oblique asymptote.
The h (x) example from Step 1 has an oblique asymptote because the numerator has the higher degree in the polynomial. By using long division, you get a quotient of x – 2. This means the oblique asymptote follows the equation y = x – 2 (the quotient). Because this is a first-degree equation, you graph it by using slope-intercept form. Hold onto this oblique asymptote because graphing is coming right up!
Step 4: Locate the x- and y-intercepts
The final piece of the puzzle is to find the intercepts (where the line or curve crosses the x- and y-axes) of the rational function, if any exist:
To find the y-intercept of an equation, set x = 0. (Plug in 0 wherever you see x.) The y-intercept of f (x) from Step 1, for instance, is 1⁄21.
To find the x-intercept of an equation, set y = 0.
For any rational function, the shortcut is to set the numerator equal to zero and then solve. Sometimes when you do this, however, the equation you get is unsolvable, which means that the rational function doesn’t have an x-intercept.
The x-intercept of f (x) is 1⁄3.
Now find the intercepts for g(x) and h(x) from Step 1. Doing so, you’ll find
g (x) has a y-intercept at 3 and an x-intercept at –2.
h (x) has a y-intercept at –9⁄2 and x-intercepts at ±3.









