Asymptote Calculator
Find all vertical, horizontal, and slant (oblique) asymptotes of rational functions with step-by-step working — denominator zeros for vertical asymptotes, degree comparison for horizontal asymptotes, polynomial long division for slant asymptotes, and open circles for holes (removable discontinuities).
Enter a rational function f(x) = P(x)/Q(x). Use parentheses around numerator and denominator: (x^2+x)/(x-1)
Polynomial Long Division (Slant Asymptote)
Summary
Enter the full rational function or just the denominator Q(x).
Vertical Asymptotes
Enter a rational function to find its horizontal or slant (oblique) asymptote using degree comparison and polynomial long division.
Horizontal vs Slant Asymptote Decision:
Polynomial Long Division
Result
Table A: Asymptote Type Identification
| Type | Condition | Equation | How to Find |
|---|---|---|---|
| Vertical | Q(c)=0, P(c)≠0 | x = c | Solve Q(x)=0 |
| Horizontal (y=0) | deg(P)<deg(Q) | y = 0 | Degree comparison |
| Horizontal (y=a/b) | deg(P)=deg(Q) | y = a_n/b_n | Lead coefficients |
| Slant/Oblique | deg(P)=deg(Q)+1 | y = mx+b | Polynomial long division |
| Hole | P(c)=Q(c)=0 | Point (c,L) | Cancel common factor |
Table B: Horizontal Asymptote Quick Rules
| Example | Degrees | HA |
|---|---|---|
| 1/(x+1) | 0 < 1 | y = 0 |
| (2x+1)/(3x−1) | 1 = 1 | y = 2/3 |
| (5x²)/(2x²+1) | 2 = 2 | y = 5/2 |
| x²/(x+1) | 2 > 1 | None (slant exists) |
| x³/(x+1) | 3 > 1 | None (neither) |
Table C: Can a Function Cross Its Asymptote?
| Asymptote Type | Can Function Cross It? |
|---|---|
| Vertical | Never — undefined at x=c |
| Horizontal | YES — can cross, but approaches it as x→±∞ |
| Slant | YES — can cross, but approaches it as x→±∞ |
Asymptote Calculator — Find Vertical, Horizontal & Slant Asymptotes
This asymptote calculator and asymptote finder identifies all vertical, horizontal, and slant (oblique) asymptotes of rational functions — showing the denominator zeros for vertical asymptotes, degree comparison for horizontal asymptotes, and polynomial long division for slant asymptotes — plus identifies removable discontinuities (holes) where both numerator and denominator share a common factor.
What Are Asymptotes? — Three Types Defined
An asymptote is a line that a function approaches but (in the case of vertical asymptotes) never reaches, or approaches as x→±∞ (for horizontal and slant asymptotes). There are three main types, each found by a different method.
A vertical asymptote is a vertical line x=c where the function is undefined and the function values approach +∞ or −∞ as x approaches c from either side. This asymptote finder detects vertical asymptotes by finding where the denominator equals zero but the numerator does not.
A horizontal asymptote is a horizontal line y=L that the function approaches as x→+∞ or x→−∞. Unlike vertical asymptotes, a function CAN cross its horizontal asymptote at finite x values — the horizontal asymptote only describes end behavior. This asymptote solver uses degree comparison to determine the horizontal asymptote.
A slant asymptote (also called an oblique asymptote) is a diagonal line y=mx+b that the function approaches as x→±∞. It exists only when the numerator degree is exactly one more than the denominator degree. Polynomial long division reveals the slant asymptote equation.
A hole (removable discontinuity) occurs when both the numerator and denominator equal zero at the same point — meaning they share a common factor (x−c). After cancellation, the function has a finite limit at x=c, plotted as an open circle on the graph.
Vertical Asymptotes — Finding Where the Function Blows Up
To find vertical asymptotes of f(x)=P(x)/Q(x): set Q(x)=0 and solve for x. For each solution x=c, verify that P(c)≠0. If P(c)≠0, then x=c is a vertical asymptote. If P(c)=0 also, then (x−c) is a common factor and x=c is a hole, not a vertical asymptote.
Near a vertical asymptote, analyze the sign of the function just left and just right of x=c to determine whether the function goes to +∞ or −∞ from each side.
Example: f(x) = x/(x²−4)
Denominator: x²−4 = (x+2)(x−2) = 0 → x=−2 or x=2. Numerator at x=−2: −2≠0 ✓. Numerator at x=2: 2≠0 ✓. Both are vertical asymptotes.
Example: f(x) = (x²−1)/(x−1) — Hole, Not a Vertical Asymptote
Denominator: x−1=0 → x=1. Numerator at x=1: 1−1=0. Both zero → hole at x=1. Factor: (x²−1)/(x−1)=(x+1)(x−1)/(x−1)=x+1. Hole at (1, 2).
Example: f(x) = 3x/(x²−9)
x²−9=(x+3)(x−3)=0 → x=−3, x=3. Numerator: 3(−3)=−9≠0 and 3(3)=9≠0. Vertical asymptotes: x=−3 and x=3.
Horizontal Asymptotes — The Three Degree Rules
The horizontal asymptote of f(x)=P(x)/Q(x) is determined entirely by comparing the degrees of the numerator and denominator. Intuitively: as x→∞, the highest-degree terms dominate and all lower-degree terms become negligible.
deg(P) = deg(Q) → HA: y = (leading coeff P)/(leading coeff Q)
deg(P) > deg(Q) → No horizontal asymptote
A critical fact: a function CAN cross its horizontal asymptote. The horizontal asymptote only describes what happens as x→±∞. For example, sin(x)/x oscillates across y=0 infinitely many times while still approaching it as x→∞.
Important: a horizontal asymptote and a slant asymptote cannot both exist. If deg(P)=deg(Q)+1, there is a slant asymptote instead of a horizontal asymptote.
Slant Asymptotes — Polynomial Long Division
A slant asymptote (oblique asymptote) exists when the degree of the numerator equals the degree of the denominator plus exactly one: deg(P)=deg(Q)+1. Use polynomial long division: P(x)÷Q(x) = quotient + remainder/Q(x). As x→±∞, the remainder/Q(x)→0, so the function approaches y=quotient — the slant asymptote. The slant asymptote is always a linear function y=mx+b.
Example: (x²+x)/(x−1)
deg(P)=2, deg(Q)=1, difference=1 → slant asymptote exists.
Long division: x²+x ÷ (x−1):
Step 1: x²÷x = x. Multiply: x(x−1)=x²−x. Subtract: (x²+x)−(x²−x)=2x.
Step 2: 2x÷x = 2. Multiply: 2(x−1)=2x−2. Subtract: 2x−(2x−2)=2 (remainder).
Result: quotient = x+2, remainder = 2. Slant asymptote: y = x+2.
Holes vs Vertical Asymptotes — The Common Factor Distinction
A hole (removable discontinuity) occurs when the same factor (x−c) appears in both the numerator and denominator. The factor cancels algebraically, leaving a simplified function that IS defined at x=c. The hole's y-coordinate is found by substituting x=c into the simplified function. On a graph, holes appear as open circles — not vertical lines — distinguishing them visually from true vertical asymptotes.
(x²−1)/(x−1) = (x+1)(x−1)/(x−1) → cancel → x+1. At x=1: y=1+1=2. Hole at (1,2). No vertical asymptote at x=1.
Rule: if both P(c)=0 AND Q(c)=0, find the GCD of P(x) and Q(x). The zeros of the GCD are holes. The remaining zeros of Q(x) after cancellation are vertical asymptotes.
Worked Examples — 8 Complete Problems
1. f(x)=1/(x−3) → Vertical asymptote: x=3; Horizontal asymptote: y=0 (deg 0 < deg 1)
2. f(x)=(2x+1)/(x−4) → Vertical asymptote: x=4; Horizontal asymptote: y=2/1=2 (equal degrees, leading coeffs 2 and 1)
3. f(x)=(x²−4)/(x²−1) → Vertical asymptotes: x=±1; Horizontal asymptote: y=1 (equal degrees, both leading coeff=1)
4. f(x)=(x²+2x)/(x−1) → Vertical asymptote: x=1; Slant asymptote: y=x+3 (long division: x²+2x÷(x−1)=x+3 rem 3)
5. f(x)=(x²−1)/(x−1) → Hole at (1,2), no vertical asymptote (factor x−1 cancels)
6. f(x)=x/(x²+1) → No vertical asymptote (x²+1>0 always); Horizontal asymptote: y=0 (deg 1 < deg 2)
7. f(x)=(3x²−1)/(x²+x−2) → Factor denom: (x+2)(x−1); Vertical asymptotes: x=1, x=−2; Horizontal asymptote: y=3 (equal degrees, 3/1=3)
8. f(x)=(x³−x)/(x²−4) → Vertical asymptotes: x=±2; Slant asymptote: y=x (long division of degree-3 by degree-2)
Common Mistakes Finding Asymptotes
- Declaring a hole as a vertical asymptote: always check whether the numerator is also zero before labeling a denominator zero as a vertical asymptote. If both are zero, it is a hole, not a vertical asymptote.
- Thinking horizontal asymptotes can never be crossed: horizontal asymptotes only describe end behavior — the function can cross the horizontal asymptote at finite x values.
- Forgetting slant asymptotes: when the numerator degree exceeds the denominator degree, many students only check for horizontal asymptotes. Always check: if deg(P)=deg(Q)+1, a slant asymptote exists instead.
- Reporting the remainder as the slant asymptote: the slant asymptote is the QUOTIENT from polynomial long division, not the remainder. The remainder/denominator approaches zero and is discarded.
- Wrong degree count: expand all polynomials before comparing degrees. The number of terms does not equal the degree. Always find the actual highest power of x in each polynomial.