Sub topic 12
Horizontal asymptotes and end behavior
This chapter assumes you can factor polynomials, find the degree and leading coefficient of a polynomial, and read the domain and vertical asymptotes of a rational function from its factored form. You should also be comfortable with the idea of a limit as a "value the output approaches." You don't need formal limit rules.
What end behavior means
End behavior describes what a function's output does as x gets very large in the positive direction (x → ∞) or the negative direction (x → −∞). For a rational function, there are only three outcomes:
- The output approaches a fixed number, so the graph flattens toward a horizontal line.
- The output approaches 0, which is the same case with the line y = 0.
- The output grows without bound, so there is no horizontal asymptote.
A horizontal asymptote is a horizontal line y = L that the graph approaches as x → ∞, as x → −∞, or both. It describes the far left and far right of the graph, not the middle.
The degree rule
Let f(x) = p(x)/q(x). Let n be the degree of p and m the degree of q. Let a be the leading coefficient of p and b the leading coefficient of q.
| Comparison | Horizontal asymptote | Example |
|---|---|---|
| n < m | y = 0 | (x + 1)/(x² + 1) |
| n = m | y = a/b | (2x² + 1)/(x² − 4) gives y = 2 |
| n > m | none | x³/(x² + 1) |
When n = m + 1, the graph follows a slanted line instead. That case is the next chapter.
Why the rule works
For very large |x|, the highest power in each polynomial dominates. Divide the numerator and denominator by xᵐ, the highest power in the denominator. Take f(x) = (3x² + x)/(x² − 4):
- Divide the top and bottom by x²: f(x) = (3 + 1/x) / (1 − 4/x²).
- As |x| grows, 1/x and 4/x² shrink toward 0.
- The expression approaches 3/1 = 3.
Each lower-degree term becomes a fraction with a growing denominator, so it vanishes. Only the leading terms are left.
You can see this numerically. Long division shows (2x² + 1)/(x² − 4) = 2 + 9/(x² − 4). The tail 9/(x² − 4) shrinks as x grows, so the output settles at 2.
from sympy import symbols, lambdify
x = symbols('x')
f = (2*x**2 + 1) / (x**2 - 4)
fn = lambdify(x, f)
for value in [10, 100, 1000, -1000]:
print(value, round(fn(value), 6))
# 10 2.09375
# 100 2.0009
# 1000 2.000009
# -1000 2.000009The values at 1000 and −1000 match. For a rational function with n ≤ m, both ends approach the same line.
Checking with SymPy
Use limit to confirm a result, and Poly to automate the degree rule.
from sympy import symbols, Poly, limit, oo
x = symbols('x')
def horizontal_asymptote(num, den):
n = Poly(num, x)
d = Poly(den, x)
if n.degree() < d.degree():
return "y = 0"
if n.degree() == d.degree():
return f"y = {n.LC() / d.LC()}"
return "no horizontal asymptote"
print(horizontal_asymptote(2*x**2 + 1, x**2 - 4)) # y = 2
print(horizontal_asymptote(x + 1, x**2 + 1)) # y = 0
print(horizontal_asymptote(x**3, x**2 + 1)) # no horizontal asymptote
print(limit((2*x**2 + 1) / (x**2 - 4), x, oo)) # 2
print(limit(x**3 / (x**2 + 1), x, oo)) # oo
print(limit(x**3 / (x**2 + 1), x, -oo)) # -ooThe last two lines show what "no horizontal asymptote" looks like. The output heads to ∞ on the right and −∞ on the left, because x³ is odd. For n > m, always check both directions, since the signs can differ.
Decision flow
Edge cases and gotchas
A graph can cross its horizontal asymptote
Many students learn that a graph never touches an asymptote. That is true for vertical asymptotes. A horizontal asymptote only describes the far ends, so the graph can cross it in the middle, even several times.
To test for a crossing, set f(x) = y₀ and solve. Take f(x) = (2x² − x)/(x² + 1), which has the asymptote y = 2:
from sympy import symbols, Eq, solve
x = symbols('x')
f = (2*x**2 - x) / (x**2 + 1)
print(solve(Eq(f, 2), x)) # [-2]The graph crosses y = 2 at x = −2. For large |x|, it then approaches 2 from below on the right.
Cancelled factors do not matter
A hole comes from a cancelled factor. It changes the graph at a single point and has no effect on end behavior. Cancel first if you like, then apply the degree rule. Either route gives the same asymptote. For (x² − 1)/(x − 1), cancelling gives x + 1, which has degree 1 over degree 0. That is a slant situation, not a horizontal one.
Count degrees after expanding
Compare the degrees of the expanded polynomials, not the number of factors. In (x − 1)(x + 2)/(x² + 3), the numerator has degree 2, so n = m and the asymptote is y = 1/1 = 1. In the factored form (3x − 1)²/(x + 4)², both degrees are 2 and the ratio is 9/1, so y = 9.
Leading coefficients, not leading terms
When n = m, the asymptote is the ratio of the coefficients a/b, and it is a number. Writing "y = 2x²/x²" is not an answer. Include the sign: (−3x² + 1)/(x² + 5) gives y = −3.
Horizontal and vertical asymptotes are independent
The numerator and denominator play different roles. Zeros of the denominator (after cancelling) give vertical asymptotes. Degrees give the horizontal one. A function can have two vertical asymptotes and one horizontal asymptote, as in (2x² + 1)/(x² − 4), which has x = −2, x = 2 and y = 2.
At most one horizontal asymptote
A rational function has at most one horizontal asymptote, because both ends approach the same value when n ≤ m. Functions with different left and right asymptotes, such as those involving eˣ or absolute values, are not rational.
Common errors
- Comparing only the highest powers and forgetting the coefficients when n = m.
- Declaring y = 0 when n > m because "the denominator is bigger." The denominator has the lower degree in that case, so the output grows.
- Claiming that the graph never crosses a horizontal asymptote.
- Reading the asymptote off the original unsimplified form when a hole is present, then miscounting the degree.
Practice
Exercise
Find the horizontal asymptote of f(x) = (6x³ − x)/(2x³ + 5x² + 1). Then find where, if anywhere, the graph crosses that asymptote.
Show answer
Both degrees are 3, so the asymptote is y = 6/2 = 3. To find a crossing, solve (6x³ − x)/(2x³ + 5x² + 1) = 3. Clear the denominator: 6x³ − x = 6x³ + 15x² + 3, so 15x² + x + 3 = 0. The discriminant is 1 − 180 < 0, so there are no real solutions. The graph never crosses y = 3.
Exercise
For g(x) = (x² − 4)/(x³ + x), state the horizontal asymptote and explain which direction the output approaches it from for very large positive x.
Show answer
The numerator has degree 2 and the denominator degree 3, so n < m and the asymptote is y = 0. For large positive x, x² − 4 is positive and x³ + x is positive, so g(x) is positive. The graph approaches y = 0 from above.