calculator.onl
Categories50

Partial fraction decomposition calculator

Decompose a rational function into its polynomial part and exact partial fractions, with repeated linear or quadratic factors.

A worked example

Add the factor (x + 3) to the denominator. A third coefficient is needed for the decomposition. (A, B) = (1, −1) → (A, B, C) = (½, −1, ½).

Partial-fraction result((2/(1+x))+(1/(2+x)))Polynomial part0Real-domain conditions((x+1)*(x+2)) ≠ 0VerificationExact identity verified
Enter a polynomial with rational coefficients in the selected variable, for example 3*x+5. Decimal coefficients are exact rational values.

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.

Choose the single polynomial variable. Other symbolic parameters are not accepted.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Partial-fraction result

((2/(1+x))+(1/(2+x)))

Calculated from your inputs

Polynomial part0
Real-domain conditions((x+1)*(x+2)) ≠ 0
VerificationExact identity verified
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

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

InputWhat it meansExample value
Polynomial numeratorEnter a polynomial with rational coefficients in the selected variable, for example 3*x+5. Decimal coefficients are exact rational values.3*x+5
Polynomial denominatorEnter 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)
VariableChoose the single polynomial variable. Other symbolic parameters are not accepted.x

How the calculation works

  1. Enter the numerator and denominator as separate polynomial expressions.
  2. Inspect the rational factors, their multiplicities and the polynomial quotient.
  3. Read the exact partial fractions and expand the coefficient system to see the reconstruction check.
The formulaP/Q = H + Σ Aᵢⱼ/(qᵢ)ʲ; Q·(P/Q − H) = P − HQ

A 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 enter
Result for this example · Partial-fraction result((2/(1+x))+(1/(2+x)))

This 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.