Starlight Tools

Partial Fraction Decomposition Calculator

Free calculator with detailed steps

Enter a rational function to obtain exact coefficients and see its factorization, coefficient solving, and verification immediatelyโ€”no sign-up required. This partial fractions calculator also handles partial fraction expansion and algebraic fraction decomposition for proper and improper functions.

Enter a rational function

Entry mode

Formatted input preview
5x+3x2โˆ’1

Use one variable (x, s, or t), + โˆ’ * /, parentheses, and nonnegative whole-number powers through 12. Wrap the numerator and denominator when entering a complete expression.

Exact mode uses rational arithmetic. It accepts degree-12-or-lower denominators that factor over the rationals into linear and quadratic factors.

Input rules and supported factors

Finite decimals and constant fractions are exact in split fields. Exact mode supports repeated factors and improper fractions. Approximate mode numerically factors suitable square-free denominators into real linear and irreducible quadratic factors; its rounded coefficients are labeled approximate. Nested rational functions, functions such as sine, and negative or non-integer exponents are not supported.

Try an example

Partial fraction result

Decomposition
4xโˆ’1+1x+1
Original domain: x โ‰  โˆ’1, 1.
Polynomial part0
Denominator factors(x โˆ’ 1)(x + 1)
Partial numeratorsA = 4; B = 1
VerificationExact identity verified: 4(x + 1) + (x โˆ’ 1) = 5x + 3.

Step-by-step decomposition

Switch views without recalculating.

Step view
1. Check and factor

The fraction is proper and x2 โˆ’ 1 = (x โˆ’ 1)(x + 1).

2. Write the complete template
5x+3x2โˆ’1=Axโˆ’1+Bx+1
3. Clear denominators and expand

5x + 3 = A(x + 1) + B(x โˆ’ 1) = Ax + A + Bx โˆ’ B = (A + B)x + (A โˆ’ B).

Every product has been expanded before like powers are collected.

4. Solve the simultaneous equations
x:A + B = 51:A โˆ’ B = 3

Add the equations: 2A = 8, so A = 4. Then B = 5 โˆ’ A = 1.

5. Substitute and recombine

A = 4 and B = 1, so F(x) = 4/(x โˆ’ 1) + 1/(x + 1).

[4(x + 1) + (x โˆ’ 1)]/[(x โˆ’ 1)(x + 1)] = (5x + 3)/(xยฒ โˆ’ 1).

Factor forms and required numerators

Proper versus improper rule: partial-fraction templates apply when degree P < degree Q. If degree P โ‰ฅ degree Q, first divide to write P/Q = S + R/Q, then decompose the proper remainder R/Q.

Factor caseDenominator exampleRequired numeratorComplete template contribution
Distinct linear(x โˆ’ a)(x โˆ’ b)One constant per factorA/(x โˆ’ a) + B/(x โˆ’ b)
Repeated linear(x โˆ’ a)mA constant over every powerA1/(x โˆ’ a) + A2/(x โˆ’ a)2 + โ€ฆ + Am/(x โˆ’ a)m
Irreducible quadraticx2 + bx + cOne degree-lower linear numerator(Ax + B)/(x2 + bx + c)
Repeated quadraticq(x)mA linear numerator over every power(A1x+B1)/q(x) + โ€ฆ + (Amx+Bm)/q(x)m

Fully worked partial fraction examples

Distinct linear factors

Expression and factorization: (5x + 3)/(x2 โˆ’ 1), where x2 โˆ’ 1 = (x โˆ’ 1)(x + 1).

Template: A/(x โˆ’ 1) + B/(x + 1).

Coefficient equations: 5x + 3 = A(x + 1) + B(x โˆ’ 1) = (A+B)x + (Aโˆ’B), so A+B=5 and Aโˆ’B=3.

Constants and result: A=4, B=1; therefore 4/(xโˆ’1) + 1/(x+1).

Verification: 4(x+1)+(xโˆ’1)=5x+3.

Repeated linear factor

Expression and factorization: (2x2+3x+4)/[x(x+1)2].

Template: A/x + B/(x+1) + C/(x+1)2.

Coefficient equations: 2x2+3x+4=A(x+1)2+Bx(x+1)+Cx, giving A+B=2, 2A+B+C=3, A=4.

Constants and result: A=4, B=โˆ’2, C=โˆ’3; therefore 4/x โˆ’ 2/(x+1) โˆ’ 3/(x+1)2.

Verification: recombination expands to 2x2+3x+4.

Irreducible quadratic factor

Expression and factorization: (3x2+5x+7)/[(xโˆ’1)(x2+4)].

Template: A/(xโˆ’1) + (Bx+C)/(x2+4).

Coefficient equations: A+B=3, Cโˆ’B=5, 4Aโˆ’C=7.

Constants and result: A=3, B=0, C=5; therefore 3/(xโˆ’1) + 5/(x2+4).

Verification: 3(x2+4)+5(xโˆ’1)=3x2+5x+7.

Improper fraction

Expression and division: (x3+2x2+3)/(x2โˆ’1) = x+2 + (x+5)/(x2โˆ’1).

Factorization and template: x2โˆ’1=(xโˆ’1)(x+1), so use x+2 + A/(xโˆ’1)+B/(x+1).

Coefficient equations: x+5=A(x+1)+B(xโˆ’1), giving A+B=1, Aโˆ’B=5.

Constants and result: A=3, B=โˆ’2; therefore x+2 + 3/(xโˆ’1) โˆ’ 2/(x+1).

Verification: the quotient times x2โˆ’1 plus x+5 is x3+2x2+3.

When partial fractions are useful

Decomposition turns a complicated rational function into standard pieces used in integration, inverse Laplace transforms, differential equations, control-system calculations, and algebraic simplification.

Short integration example: if F(x)=3/(xโˆ’2)+1/(x+1), then โˆซF(x)dx=3 ln|xโˆ’2|+ln|x+1|+C. In general, A/(xโˆ’a) integrates to A ln|xโˆ’a|. A linear numerator over an irreducible quadratic can split into a derivative part, which produces a logarithm, and a remaining constant part, which can produce an arctangent.

Accuracy, verification, and limits

Exact mode: parsing, decimal-to-fraction conversion, polynomial GCD, long division, coefficient elimination, and verification use reduced BigInt rational numbers. The identity check recombines every returned term over the common denominator and compares every numerator coefficient exactly.

Approximate mode: roots and coefficients are computed numerically and rounded for display. It is intended for suitable square-free denominators with irrational real roots or unresolved cubic and higher factors; repeated numerical roots are rejected because rounding can make their multiplicity unreliable.

The practical degree limit is 12. Exact mode requires the reduced denominator to factor over the rationals into linear and quadratic factors. Approximate mode may still reject ill-conditioned or unresolved roots and tells you to enter a known factorization. Original denominator restrictions remain after cancellation.

Representative testExpected resultEvidence
Distinct linear(5x+3)/(xยฒโˆ’1)4/(xโˆ’1)+1/(x+1), exact identity
Repeated linear(2xยฒ+3x+4)/[x(x+1)ยฒ]4/xโˆ’2/(x+1)โˆ’3/(x+1)ยฒ, exact identity
Quadratic(3xยฒ+5x+7)/[(xโˆ’1)(xยฒ+4)]3/(xโˆ’1)+5/(xยฒ+4), exact identity
Improper(xยณ+2xยฒ+3)/(xยฒโˆ’1)x+2+3/(xโˆ’1)โˆ’2/(x+1), exact identity

References: OpenStax Calculus, ยง3.4 Partial Fractions and Mathematics LibreTexts, Partial Fractions.

Last reviewed: 31 August 2026. Report an incorrect result and include the expression and displayed steps.

Partial fractions FAQs

When can partial fractions be used?

Use partial fractions for a rational function P(x)/Q(x) after Q(x) is factored. If degree P is at least degree Q, divide first so the remaining fraction is proper.

What are the four denominator factor cases?

The four cases are distinct linear factors, repeated linear factors, irreducible quadratic factors, and repeated irreducible quadratic factors. Repeated factors need one term for every power.

How are the coefficients found?

Clear the denominators, expand every product, collect equal powers of the variable, and solve the resulting simultaneous linear equations.

What is the cover-up method?

For distinct linear factors, multiply by one factor and substitute its root to isolate that term's constant. Repeated or quadratic factors generally still require substitution plus coefficient comparison.

Why must an improper fraction be divided first?

Partial-fraction templates apply to a proper remainder. Polynomial division writes an improper rational function as a polynomial quotient plus R(x)/Q(x), where degree R is less than degree Q.

Can decomposition be used before integration or inverse Laplace transforms?

Yes. It turns one complicated rational expression into standard terms that are easier to integrate or invert term by term.

Why was my denominator rejected?

Exact mode needs a degree-12-or-lower denominator that factors over the rationals into linear and quadratic factors. Try Approximate real factors for a suitable unresolved cubic or higher factor, or enter a known factorization.

Does decomposition change the domain?

No. Every zero of the original denominator remains excluded, including a zero belonging to a factor that cancels during simplification.

Explore more tools