Sub topic 13
Slant asymptotes and long division
What this chapter assumes
You should be comfortable with polynomial arithmetic, factoring, and the horizontal asymptote rules from the previous chapter. You should also know how to find vertical asymptotes and holes. This chapter covers the case where the numerator's degree is exactly one more than the denominator's degree.
When a slant asymptote exists
A rational function f(x) = p(x)/q(x) has a horizontal asymptote when deg p ≤ deg q. When deg p is greater than deg q, the function grows without bound as x gets large. In one special case, deg p = deg q + 1, the function grows like a straight line that is neither horizontal nor vertical. That line is a slant asymptote, also called an oblique asymptote.
| Relationship of degrees | End behavior |
|---|---|
| deg p < deg q | Horizontal asymptote y = 0 |
| deg p = deg q | Horizontal asymptote y = ratio of leading coefficients |
| deg p = deg q + 1 | Slant asymptote y = mx + b with m ≠ 0 |
| deg p ≥ deg q + 2 | No line; the end behavior follows a polynomial of degree 2 or higher |
A function cannot have both a horizontal and a slant asymptote on the same side, because the two descriptions of end behavior would conflict.
Why long division finds the line
Polynomial division rewrites a rational expression as a quotient plus a remainder term:
p(x)/q(x) = Q(x) + R(x)/q(x), where deg R < deg q.
The fraction R(x)/q(x) has a smaller numerator degree than its denominator, so it approaches 0 as x grows large in either direction. What is left is Q(x). When deg p = deg q + 1, the quotient Q(x) has degree 1, so it is a line. That line is the slant asymptote.
SymPy can do the division for you. The div function returns the quotient and remainder:
from sympy import symbols, div
x = symbols('x')
quotient, remainder = div(x**2 + 1, x - 1, x)
print(quotient, remainder) # x + 1 2This gives x² + 1 = (x − 1)(x + 1) + 2. Dividing both sides by x − 1 gives
(x² + 1)/(x − 1) = x + 1 + 2/(x − 1).
As x → ±∞, the term 2/(x − 1) tends to 0, so the graph approaches y = x + 1.
Doing the division by hand
Long division of polynomials follows the same steps as long division of integers. Take (2x² + 3x − 5)/(x + 2).
- Divide the leading term of the numerator by the leading term of the divisor: 2x² ÷ x = 2x. Write 2x in the quotient.
- Multiply the divisor by 2x: 2x(x + 2) = 2x² + 4x. Subtract it from the numerator: (2x² + 3x) − (2x² + 4x) = −x. Bring down the −5 to get −x − 5.
- Divide the new leading term by x: −x ÷ x = −1. Write −1 in the quotient.
- Multiply: −1(x + 2) = −x − 2. Subtract: (−x − 5) − (−x − 2) = −3.
- The remainder is −3, which has lower degree than x + 2, so you stop.
The result is 2x − 1 with remainder −3, so
(2x² + 3x − 5)/(x + 2) = 2x − 1 − 3/(x + 2).
The slant asymptote is y = 2x − 1. The vertical asymptote is x = −2, because the numerator at x = −2 is 8 − 6 − 5 = −3, which is not zero.
Synthetic division as a shortcut
When the divisor has the form x − c, synthetic division gives the same quotient with less writing. For (x² + 1)/(x − 1), c = 1 and the coefficients are 1, 0, 1. Note the 0 for the missing x term.
- Bring down the first coefficient: 1.
- Multiply by c and add to the next coefficient: 1·1 + 0 = 1.
- Multiply by c and add to the next coefficient: 1·1 + 1 = 2.
The bottom row reads 1, 1, 2. The first two entries are the quotient coefficients (x + 1), and the last entry is the remainder 2. This matches the SymPy output. Synthetic division only works when the divisor is linear with leading coefficient 1. For a divisor like 2x + 1, rewrite it or use long division.
Common errors
- Skipping missing terms. If the numerator is x³ + 2 and you divide by x² − 1, write it as x³ + 0x² + 0x + 2. Leaving gaps misaligns the columns.
- Subtraction sign mistakes. You subtract the whole product, so every term changes sign. This is the most common source of wrong remainders.
- Using the remainder in the asymptote. The asymptote is only the quotient. The remainder term is what disappears.
- Expecting a slant asymptote when the degree gap is 2. A degree-3 numerator over a degree-1 denominator gives a quadratic quotient. The graph follows a parabola, not a line.
- Forgetting to factor first. If the numerator and denominator share a factor, cancel it before counting degrees. Cancelling can change which case applies, and the cancelled factor produces a hole.
An edge case: the remainder is zero
If the remainder is 0, the division is exact and the function is a polynomial with holes. Consider f(x) = (x² − 1)/(x − 1). Division gives quotient x + 1 and remainder 0, so f(x) = x + 1 for x ≠ 1. The graph is a line with a hole at (1, 2). Its end behavior is that line, but there is no true asymptote, because the graph coincides with the line instead of approaching it.
Both directions are the same
A slant asymptote applies as x → +∞ and as x → −∞ with the same equation. The graph can approach the line from above on one side and from below on the other. The sign of the remainder term R(x)/q(x) tells you which. For (x² + 1)/(x − 1) = x + 1 + 2/(x − 1), the remainder term is positive when x > 1, so the curve lies above the line on the right. It is negative when x < 1, so the curve lies below the line on the left.
This is useful when you sketch the graph. Plot the line, then use the sign of the remainder term to place the curve on the correct side far from the origin.
Checking a full example
Find all asymptotes of f(x) = (x² + 1)/(x − 1).
- Vertical: the denominator is zero at x = 1, and the numerator there is 2, so there is a vertical asymptote at x = 1.
- Horizontal: deg p = 2 is greater than deg q = 1, so there is none.
- Slant: the quotient from division is x + 1, so y = x + 1.
- Intercepts: the numerator x² + 1 has no real zeros, so there is no x-intercept. At x = 0, f(0) = 1/(−1) = −1, so the y-intercept is (0, −1).
You can check the slant line numerically. For large x, the gap between f(x) and x + 1 should shrink toward 0:
from sympy import symbols, Rational
x = symbols('x')
f = (x**2 + 1) / (x - 1)
for value in [10, 100, 1000]:
gap = f.subs(x, value) - (value + 1)
print(value, float(gap))
# 10 0.2222222222222222
# 100 0.020202020202020204
# 1000 0.002002002002002002The gap is 2/(x − 1), so it falls roughly in proportion to 1/x.
Connection to later chapters
The quotient and remainder form is the starting point for partial fraction decomposition. There, a proper fraction (deg R < deg q) is split further into simpler fractions. If a fraction is improper, you divide first and decompose the remainder term. The graphing chapter also uses the slant asymptote together with the intercepts, vertical asymptotes, and holes to sketch the final curve.
Exercise
Find the slant asymptote of f(x) = (3x² − x + 4)/(x + 1), and say whether the graph lies above or below the line when x is large and positive.
Show answer
Divide: 3x² ÷ x = 3x. Subtract 3x(x + 1) = 3x² + 3x from the numerator to get −4x + 4. Then −4x ÷ x = −4. Subtract −4(x + 1) = −4x − 4 to get a remainder of 8. So f(x) = 3x − 4 + 8/(x + 1), and the slant asymptote is y = 3x − 4. For large positive x, the term 8/(x + 1) is positive, so the graph lies above the line.
Exercise
Does f(x) = (x³ + 1)/(x² − 1) have a slant asymptote? Factor first, then decide.
Show answer
Factor x³ + 1 = (x + 1)(x² − x + 1) and x² − 1 = (x − 1)(x + 1). Cancel x + 1 to get (x² − x + 1)/(x − 1) with a hole at x = −1. Now deg p = 2 and deg q = 1, so a slant asymptote exists. Division gives x² − x + 1 = (x − 1)·x + 1, so the quotient is x and the remainder is 1. The slant asymptote is y = x. The hole is at x = −1, where the cancelled form gives (1 + 1 + 1)/(−2) = −3/2, so the hole is at (−1, −3/2). The vertical asymptote is x = 1.
Exercise
Why can a rational function with deg p = deg q + 2 not have a slant asymptote?
Show answer
Long division gives a quotient of degree 2, such as ax² + bx + c with a ≠ 0. The remainder term still tends to 0, so the graph approaches that parabola, not a line. A slant asymptote requires the quotient to have degree exactly 1.