Asymptote Calculator
Test cases replayed : 8 of 8 match · Methodology · No outside source listed
Enter the coefficients of the numerator and the denominator of f(x) = (ax² + bx + c) / (dx² + ex + f). Set a coefficient to 0 for a lower degree, for example d = 0 for a linear denominator.
Result
Horizontal or slant asymptote
Number of vertical asymptotes
- Vertical asymptote x =
- Second vertical asymptote x =
- Hole (removable discontinuity) at x =
- Second hole at x =
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Numerator: coefficient a of x²: enter a number.
- Numerator: coefficient b of x: enter a number.
- Numerator: constant c: enter a number.
- Denominator: coefficient d of x²: enter a number.
- Denominator: coefficient e of x: enter a number.
- Denominator: constant f: enter a number.
- Read the result: Horizontal or slant asymptote; the panel also shows Number of vertical asymptotes, Vertical asymptote x =, Second vertical asymptote x =, Hole (removable discontinuity) at x = and Second hole at x =.
How this calculator works
Vertical asymptotes: the real zeros of the denominator, found with the quadratic formula x = (−e ± √(e² − 4df)) / (2d) (or x = −f/e when d = 0). A zero that also cancels the numerator at least as many times as the denominator is a hole, not an asymptote; a double zero of the denominator that the numerator cancels only once is still a vertical asymptote.
End behavior compares the degrees n (numerator) and m (denominator): n < m gives y = 0; n = m gives y = ratio of the leading coefficients; n = m + 1 gives a slant asymptote, the quotient of the polynomial division. For (ax² + bx + c) / (ex + f) the quotient is (a/e)x + (b − af/e)/e.
These are the standard rules taught in precalculus for rational functions. A denominator with no x term (d = e = 0) makes f a polynomial, which has no asymptote. Zeros are tested to a tolerance of about one billionth.
Worked example
| Numerator: coefficient a of x² | 1 |
|---|---|
| Numerator: coefficient b of x | 0 |
| Numerator: constant c | -1 |
| Denominator: coefficient d of x² | 1 |
| Denominator: coefficient e of x | -5 |
| Denominator: constant f | 6 |
| Number of vertical asymptotes | 2 |
|---|---|
| Vertical asymptote x = | 2 |
| Second vertical asymptote x = | 3 |
| Horizontal or slant asymptote | Horizontal asymptote y = 1 |
Frequently asked questions
What are the asymptotes of (x² − 1) / (x² − 5x + 6)?
The denominator is (x − 2)(x − 3) and the numerator is not zero at 2 or 3, so x = 2 and x = 3 are vertical asymptotes. Both degrees are 2, so the horizontal asymptote is y = 1/1 = 1.
How do I tell a hole from a vertical asymptote?
Factor both polynomials. A factor (x − r) that cancels completely leaves a hole at x = r; if a factor stays in the denominator after cancelling, x = r is a vertical asymptote.
Can a graph cross its horizontal asymptote?
Yes. A horizontal or slant asymptote describes the graph as x grows large in either direction; the graph may cross it at finite x. A graph never crosses a vertical asymptote.