Quick Answer
For f(x) = (x + 1)/(x^2 - 4), the vertical asymptotes are x = 2 and x = -2 (roots of x^2 - 4), and the horizontal asymptote is y = 0 (since the numerator's degree is less than the denominator's).
Numerator P(x)
Denominator Q(x)
Common Examples
| Input | Result |
|---|---|
| f(x) = 1/(x - 3) | Vertical: x = 3, Horizontal: y = 0 |
| f(x) = (2x + 1)/(x - 1) | Vertical: x = 1, Horizontal: y = 2 |
| f(x) = (x^2 + 1)/(x - 2) | Vertical: x = 2, Oblique: y = x + 2 |
| f(x) = x/(x^2 - 9) | Vertical: x = 3 and x = -3, Horizontal: y = 0 |
How It Works
For a rational function f(x) = P(x) / Q(x), where P(x) and Q(x) are polynomials, there are three types of asymptotes:
Vertical Asymptotes
Vertical asymptotes occur at x-values where the denominator equals zero and the numerator does not equal zero. If both numerator and denominator share a common root, that root creates a hole (removable discontinuity) instead of an asymptote. To find vertical asymptotes, solve Q(x) = 0 and exclude any roots that are also roots of P(x).
Horizontal Asymptotes
The horizontal asymptote depends on the degrees of P(x) and Q(x):
- If deg(P) < deg(Q), the horizontal asymptote is y = 0
- If deg(P) = deg(Q), the horizontal asymptote is y = (leading coefficient of P) / (leading coefficient of Q)
- If deg(P) > deg(Q), there is no horizontal asymptote
Oblique (Slant) Asymptotes
An oblique asymptote exists when the degree of the numerator is exactly one greater than the degree of the denominator. To find it, perform polynomial long division of P(x) by Q(x). The quotient (ignoring the remainder) gives the equation y = mx + b.
Worked Example
For f(x) = (x^2 + 1) / (x - 2): The denominator x - 2 = 0 gives a vertical asymptote at x = 2. The numerator has degree 2 and the denominator has degree 1, so deg(P) = deg(Q) + 1, meaning there is an oblique asymptote. Dividing x^2 + 1 by x - 2: x^2 / x = x, then x(x - 2) = x^2 - 2x. Subtracting gives 2x + 1. Then 2x / x = 2, and 2(x - 2) = 2x - 4. Subtracting gives remainder 5. The oblique asymptote is y = x + 2.
CalculateY