A little context. A clearer answer.
When this calculator is useful
Distinguish a cancelled denominator zero from a remaining vertical asymptote, and inspect the original domain and one-sided limits. For a related calculation, try Partial fraction decomposition calculator.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Numerator polynomial P(x), degree at most 4 | Enter P(x) as an expanded or factored polynomial, for example x^2−1 or (x−1)*(x+1). Use decimal dots and constant rational coefficients such as 1/3. Its degree may not exceed 4. | x^2-1 |
| Denominator polynomial Q(x), degree at most 2 | Enter Q(x), with degree at most 2, for example x^2−x. Its original real zeros stay excluded even after common factors cancel. A nonzero constant denominator is allowed. | x^2-x |
How the calculation works
- Compute the exact polynomial greatest common divisor and cancel it, while keeping the original denominator’s real zeros.
- Remaining real denominator zeros are vertical asymptotes. Original zeros with finite reduced values are holes; use the remaining multiplicity to determine one-sided infinite limits.
- Divide the reduced numerator by the reduced denominator. The quotient gives the horizontal, oblique or polynomial end behavior because the proper remainder term tends to zero.
P/Q = p/q; p = Hq + R; f(x) − H(x) → 0 as x → ±∞A worked example
For (x^2−1)/(x^2−x), cancel x−1 to obtain (x+1)/x but retain x ≠ 0,1. There is a pole at x = 0, with left limit −∞ and right limit +∞; a hole is at (1,2), and the horizontal asymptote is y = 1. For (x^2+1)/(x−1), division gives the oblique asymptote y = x+1.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
This is a bounded rational-polynomial tool: numerator degree at most 4 and denominator degree at most 2. Expanded or factored polynomials with exact decimal or rational coefficients are accepted; final coefficient magnitudes are at most 10¹². No transcendental functions, other variables, variable denominators inside P or Q, or negative powers. The denominator cannot be the zero polynomial. Exact polynomial cancellation precedes analytic linear/quadratic real-root analysis. Irrational roots and plot coordinates have numerical approximations; exact radical root labels are retained. Graphs are cropped to a finite window and may omit remote features.
Frequently asked questions
Is every cancelled factor a hole?
No. A hole occurs only when the reduced denominator is nonzero at that original excluded point. If the denominator had more copies of the factor than the numerator, a pole remains.
What if the function becomes a polynomial after cancellation?
The original excluded points remain holes. The quotient is reported as the end behavior polynomial; it can coincide with the reduced function everywhere in its original domain, since their difference is zero.
Why are no real vertical asymptotes shown for x^2+1 in the denominator?
That quadratic has no real zeros. Its complex roots do not exclude points on the real graph. This calculator reports real-domain features only.