2.5: Properties of Rational Functions
Learning Objectives
- Find the Domain of a Rational Function.
- Find the Vertical Asymptotes of a Rational Function.
- Find a Horizontal Asymptotes of a Rational Function.
Rational Function
A rational function is a function of the form.
[latex]R\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)}[/latex]
Where [latex]p[/latex] and [latex]q[/latex] are polynomial functions and [latex]q[/latex] is not the zero polynomial. The domain of [latex]R[/latex] is the set of all real numbers, except those for which the denominator [latex]q[/latex] is [latex]0[/latex].
Note: The domain of a rational function must be found before writing the function in its lowest terms.
Find the Domain of a Rational Function
Steps to Find the Domain
- Set the [latex]denominator ≠ 0[/latex]
Because division by [latex]0[/latex] is not allowed. - Solve for [latex]x[/latex]
Find the values that make the denominator equal to [latex]0[/latex]. - Exclude those x-values from the domain
These are the restrictions. - Write the domain
Use interval notation to show all allowed x-values.
Example 2.5-1-1: Find the domain of the rational function.
[latex]f\left(x\right)=\frac{x+2}{x^2+3x+2}[/latex]
Key
Example 2.5-1-1: Find the domain of the rational function.
[latex]f\left(x\right)=\frac{x+2}{x^2+3x+2}[/latex]
- Set the [latex]denominator ≠ 0[/latex]
[latex]x^2+3x+2\neq0[/latex]
- Solve for [latex]x[/latex]
Find the values that make the denominator equal to [latex]0[/latex].
[latex]x^2+3x+2=0[/latex]
[latex]\left(x+2\right)\left(x+1\right)=0[/latex]
[latex]x=-2,\;x=-1[/latex]
- Exclude those x-values from the domain
These are the restrictions.
[latex]x\neq-2,\;x\neq-1[/latex]
- Write the domain
Use interval notation to show all allowed x-values.
[latex] \left(-\infty,\;-2\right)\cup\left(-2,\;-1\right)\cup\left(-1,\;\infty\right)[/latex]
Your Turn
Practice 2.5-1-1
Find the Vertical Asymptotes of a Rational Function
The vertical asymptotes of a rational function may be found by examining the factors of the denominator that are not common to the factors in the numerator. Vertical asymptotes occur at the zeros of such factors.
How To
Given a rational function, identify any vertical asymptotes of its graph.
- Factor the numerator and denominator.
- Note any restrictions in the domain of the function.
- Reduce the expression by canceling common factors in the numerator and the denominator.
- Note any values that cause the denominator to be zero in this simplified version. These are where the vertical asymptotes occur.
- Note any restrictions in the domain where asymptotes do not occur. These are removable discontinuities, or “holes.”
Example 2.5-2-1: Find the vertical asymptotes of the function.
[latex]f\left(x\right)=\frac{5+2x^2}{2-x-x^2}[/latex]
Key
Example 2.5-2-1: Find the vertical asymptotes of the function.
[latex]f\left(x\right)=\frac{5+2x^2}{2-x-x^2}[/latex]
First, factor the numerator and denominator.
[latex]k\left(x\right)=\frac{5+2x^2}{2-x-x^2}[/latex]
To find the vertical asymptotes, we determine where this function will be undefined by setting the denominator equal to zero:
[latex]\left(2+x\right)\left(1-x\right)=0[/latex]
[latex]x=-2,\;1[/latex]
Neither [latex]x=–2[/latex] nor [latex]x=1[/latex] are zeros of the numerator, so the two values indicate two vertical asymptotes. The graph in Figure 9 confirms the location of the two vertical asymptotes.

Example 2.5-2-2: Find the vertical asymptotes of the function.
[latex]f\left(x\right)=\frac{x^2-1}{x^2-2x-3}[/latex]
Key
Example 2.5-2-2: Find the vertical asymptotes of the function.
[latex]f\left(x\right)=\frac{x^2-1}{x^2-2x-3}[/latex]
The function [latex]f\left(x\right)=\frac{x^2-1}{x^2-2x-3}[/latex] may be re-written by factoring the numerator and the denominator.
[latex]f\left(x\right)=\frac{\left(x+1\right)\left(x-1\right)}{\left(x+1\right)\left(x-3\right)}[/latex]
Notice that [latex]x+1[/latex] is a common factor to the numerator and the denominator. The zero of this factor, [latex]x=−1[/latex], is the location of the removable discontinuity. Notice also that [latex]x–3[/latex] is not a factor in both the numerator and denominator. The zero of this factor, [latex]x=3[/latex], is the vertical asymptote. See Figure 10. [Note that removable discontinuities may not be visible when we use a graphing calculator, depending upon the window selected.]

Your Turn
Practice 2.5-2-1
Horizontal Asymptotes of a Rational Function
Horizontal asymptotes help describe the behavior of a graph as the input gets very large or very small. Recall that a polynomial’s end behavior will mirror that of the leading term. Likewise, a rational function’s end behavior will mirror that of the ratio of the function that is the ratio of the leading terms.
There are three distinct outcomes when checking for horizontal asymptotes:
Case 1: If the [latex]degree\;of\;the\;denominator\;>\;degree\;of\;the\;numerator[/latex], there is a horizontal asymptote at [latex]y=0[/latex].
Example:
[latex]f\left(x\right)=\frac{4x+2}{x^2+4x-5}[/latex]
In this case, the end behavior is [latex]f\left(x\right)\approx\frac{4x}{x^2}=\frac4x[/latex]. This tells us that, as the inputs increase or decrease without bound, this function will behave similarly to the function [latex]g\left(x\right)=\frac4x[/latex], and the outputs will approach zero, resulting in a horizontal asymptote at [latex]y=0[/latex]. See Figure 12. Note that this graph crosses the horizontal asymptote.

when [latex]f\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)},\;q\left(x\right)\neq0[/latex] where [latex]degree\;of\;p>degree\;of\;q[/latex].
Case 2: If the [latex]degree\;of\;the\;denominator\;<\;degree\;of\;the\;numerator\;by\;one[/latex], we get a slant asymptote.
Example:
[latex]f\left(x\right)=\frac{3x^2-2x+1}{x-1}[/latex]
In this case, the end behavior is [latex]f\left(x\right)\approx\frac{3x^2}x=3x[/latex]. This tells us that as the inputs increase or decrease without bound, this function will behave similarly to the function [latex]g\left(x\right)=3x[/latex]. As the inputs grow large, the outputs will grow and not level off, so this graph has no horizontal asymptote. However, the graph of [latex]g\left(x\right)=3x[/latex] looks like a diagonal line, and since [latex]f[/latex] will behave similarly to [latex]g[/latex], it will approach a line close to [latex]y=3x[/latex]. This line is a slant asymptote.
To find the equation of the slant asymptote, divide [latex]\frac{3x^2-2x+1}{x-1}[/latex]. The quotient is [latex]3x+1[/latex], and the remainder is [latex]2[/latex]. The slant asymptote is the graph of the line [latex]g\left(x\right)=3x+1[/latex]. See Figure 13.

Case 3: If the [latex]degree\;of\;the\;denominator\;=\;degree\;of\;the\;numerator[/latex], there is a horizontal asymptote at [latex]y=\frac{a_n}{b_n}[/latex], where [latex]a_n[/latex] and [latex]b_n[/latex] are the leading coefficients of [latex]p\left(x\right)[/latex] and [latex]q\left(x\right)[/latex] for [latex]f\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)},\;q\left(x\right)\neq0[/latex].
Example:
[latex]f\left(x\right)=\frac{3x^2+2}{x^2+4x-5}[/latex]
In this case, the end behavior is [latex]f\left(x\right)\approx\frac{3x^2}{x^2}=3[/latex]. This tells us that as the inputs grow large, this function will behave like the function [latex]g\left(x\right)=3[/latex], which is a horizontal line. As [latex]x\rightarrow\pm\infty,\;f\left(x\right)\rightarrow3,[/latex] resulting in a horizontal asymptote at [latex]y=3[/latex]. See Figure 14. Note that this graph crosses the horizontal asymptote.

Notice that, while the graph of a rational function will never cross a vertical asymptote, the graph may or may not cross a horizontal or slant asymptote. Also, although the graph of a rational function may have many vertical asymptotes, the graph will have at most one horizontal (or slant) asymptote.It should be noted that, if the degree of the numerator is larger than the degree of the denominator by more than one, the end behavior of the graph will mimic the behavior of the reduced end behavior fraction. For instance, if we had the function
[latex]f\left(x\right)=\frac{3x^5-x^2}{x+3}[/latex]
with end behavior
[latex]f\left(x\right)\approx\frac{3x^5}x=3x^4,[/latex]
the end behavior of the graph would look similar to that of an even polynomial with a positive leading coefficient.
[latex]x\rightarrow\pm\infty,\;f\left(x\right)\rightarrow\infty[/latex]
Steps for Finding Horizontal Asymptotes of a Rational Function
The horizontal asymptote of a rational function can be determined by looking at the degrees of the numerator and denominator.
- Degree of numerator is less than degree of denominator: horizontal asymptote at [latex]y=0[/latex].
- Degree of numerator is greater than degree of denominator by one: no horizontal asymptote; slant asymptote.
- Degree of numerator is equal to degree of denominator: horizontal asymptote at ratio of leading coefficients.
Example 2.5-3-1: Find the horizontal asymptotes of the function.
[latex]f\left(x\right)=\frac{x^2-1}{5x^3-7x-6}[/latex]
Key
Example 2.5-3-1: Find the horizontal asymptotes of the function.
Based on the rule: S
[latex]If\;p>p-1,\;and\;q>q-1,\;a\neq0\;and\;b\neq0[/latex]
[latex]f\left(x\right)=\frac{ax^p+cx^{p-1}\dots}{bx^q+dx^{q-1}\dots}[/latex]
If the numerator power [latex]p[/latex] is less than the denominator power [latex]q[/latex], the horizontal asymptote is [latex]y = 0[/latex] [latex]p < q[/latex], horizontal asymptote is [latex]y = 0[/latex].
If the numerator power [latex]p[/latex] is greater than the denominator power [latex]q[/latex], the horizontal asymptote is [latex]y = 0[/latex] [latex]p > q[/latex], horizontal asymptote does not exist.
If the numerator power [latex]p[/latex] is the same as the denominator power [latex]q[/latex], the horizontal asymptote is [latex]y=\frac ab[/latex] [latex]p = q[/latex], horizontal asymptote [latex]y=\frac ab[/latex].
Since [latex]p < q[/latex], horizontal asymptote is [latex]y = 0[/latex].