A little context. A clearer answer.
When this calculator is useful
Enter P(x) and Q(x) separately. The calculator performs polynomial division, factors the denominator over the rationals, matches coefficients and checks the reconstructed numerator exactly. For a related calculation, try Polynomial Long Division Calculator with Remainder.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Polynomial numerator | Enter a polynomial with rational coefficients in the selected variable, for example 3*x+5. Decimal coefficients are exact rational values. | 3*x+5 |
| Polynomial denominator | Enter a nonconstant, nonzero polynomial of degree at most 12. A factored form such as (x+1)*(x+2) or (x^2+1)^2 can avoid an unsupported expanded factorization. | (x+1)*(x+2) |
| Variable | Choose the single polynomial variable. Other symbolic parameters are not accepted. | x |
How the calculation works
- Enter the numerator and denominator as separate polynomial expressions.
- Inspect the rational factors, their multiplicities and the polynomial quotient.
- Read the exact partial fractions and expand the coefficient system to see the reconstruction check.
P/Q = H + Σ Aᵢⱼ/(qᵢ)ʲ; Q·(P/Q − H) = P − HQA worked example
For numerator 3*x+5 and denominator (x+1)*(x+2), the result is 2/(x+1) + 1/(x+2), with x ≠ −1 and x ≠ −2.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Use +, -, *, /, ^ and parentheses; write decimal points. Functions: sin, cos, tan, exp, log/ln, sqrt, asin, acos, atan, sinh, cosh and abs. Trigonometric arguments use radians. Variables are x, y, z and t; constants pi and e. Use explicit multiplication between variables. At most 600 characters. Calculations run locally and can be cancelled; the tool does not save the input or put it in a share link. Rational polynomial coefficients only; denominator degree at most 12. Known products of linear or quadratic factors and their powers are supported. Expanded factorization uses bounded rational-root search and a bounded monic quartic search; unresolved higher factors are rejected. Factorization is over Q, so x^2−2 may remain a quadratic factor. An already-simple fraction is labelled as such. No irrational or complex linear-factor promise.
Frequently asked questions
How are improper fractions handled?
Polynomial division comes first. The polynomial quotient is shown separately; only the proper remainder is decomposed into partial fractions.
What happens with a repeated factor?
All required powers are included in the coefficient system. For a linear factor squared, terms with both its first and second powers are considered; coefficients that are exactly zero are omitted from the final sum.
Why does x^2−2 stay quadratic?
This tool factors over the rational numbers, not over all real or complex numbers. An irreducible rational quadratic can stay intact. If the full denominator factorization is unsupported, the calculator refuses a partial or misleading success.