Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Polynomial Calculators
  4. /Partial Fraction Decomposition Calculator

Partial Fraction Decomposition Calculator

Last updated: March 28, 2026

Calculator

Results

A (over x − r₁)

1.25

B (over x − r₂)

-1.25

Denominator linear coeff

2

Denominator constant

-3

Verification: A+B

0

Verification: −A·r₂ − B·r₁

5

Results

A (over x − r₁)

1.25

B (over x − r₂)

-1.25

Denominator linear coeff

2

Denominator constant

-3

Verification: A+B

0

Verification: −A·r₂ − B·r₁

5

The Partial Fraction Decomposition Calculator breaks down a rational expression of the form $$\frac{N}{(x - r_1)(x - r_2)}$$ into its partial fraction components $$\frac{A}{x - r_1} + \frac{B}{x - r_2}$$. Partial fraction decomposition is a fundamental technique in algebra and calculus that rewrites a complicated rational expression as a sum of simpler fractions, making integration, inverse Laplace transforms, and algebraic simplification vastly more manageable.

The method is most commonly encountered in integral calculus, where integrating $$\frac{N}{(x - r_1)(x - r_2)}$$ directly is difficult, but integrating $$\frac{A}{x - r_1} + \frac{B}{x - r_2}$$ is straightforward — each term integrates to a natural logarithm. This technique is also essential in differential equations (particularly when using Laplace transforms), control theory (transfer function analysis), signal processing, and discrete mathematics (solving linear recurrence relations via generating functions).

The core idea is that any proper rational function whose denominator factors into distinct linear factors can be decomposed into a sum of fractions, each with one linear factor in its denominator and a constant in its numerator. For the case of two distinct linear factors, we write: $$\frac{N}{(x - r_1)(x - r_2)} = \frac{A}{x - r_1} + \frac{B}{x - r_2}$$

To find $$A$$ and $$B$$, multiply both sides by $$(x - r_1)(x - r_2)$$ to get $$N = A(x - r_2) + B(x - r_1)$$. Setting $$x = r_1$$ eliminates the $$B$$ term: $$N = A(r_1 - r_2)$$, so $$A = \frac{N}{r_1 - r_2}$$. Setting $$x = r_2$$ eliminates the $$A$$ term: $$N = B(r_2 - r_1)$$, so $$B = \frac{N}{r_2 - r_1} = \frac{-N}{r_1 - r_2}$$. Note that $$A + B = 0$$ when the numerator is a constant, which serves as a built-in verification check.

This calculator handles the case of a constant numerator over a product of two distinct linear factors — the most common scenario in introductory calculus courses. You enter the numerator constant $$N$$ and the two roots $$r_1$$ and $$r_2$$ of the denominator, and the calculator computes the coefficients $$A$$ and $$B$$, the expanded denominator form, and verification sums to confirm correctness. The roots must be distinct ($$r_1 \neq r_2$$); if they are equal, the decomposition requires a different form involving $$(x - r)^2$$.

Understanding partial fractions opens the door to powerful integration techniques and is a prerequisite for advanced topics in engineering mathematics. Whether you are a calculus student working through integration exercises, an engineering student computing inverse transforms, or a professional needing quick decomposition results, this calculator delivers accurate answers with complete transparency into the solution process.

Visual Analysis

How It Works

Enter the numerator constant $$N$$ and the two roots $$r_1$$ and $$r_2$$. The calculator decomposes:

$$\frac{N}{(x - r_1)(x - r_2)} = \frac{A}{x - r_1} + \frac{B}{x - r_2}$$

Using the cover-up method:

  • $$A = \frac{N}{r_1 - r_2}$$ (set $$x = r_1$$)
  • $$B = \frac{N}{r_2 - r_1} = \frac{-N}{r_1 - r_2}$$ (set $$x = r_2$$)

The denominator is also expanded: $$(x - r_1)(x - r_2) = x^2 - (r_1 + r_2)x + r_1 r_2$$, and verification checks confirm $$A + B = 0$$ and $$-Ar_2 - Br_1 = N$$.

Understanding Your Results

The coefficients A and B are the numerators of the partial fractions. The decomposition means: to work with $$\frac{N}{(x-r_1)(x-r_2)}$$, you can instead work with $$\frac{A}{x-r_1} + \frac{B}{x-r_2}$$. For integration, this means $$\int \frac{N}{(x-r_1)(x-r_2)}dx = A\ln|x-r_1| + B\ln|x-r_2| + C$$. The verification fields confirm correctness: A+B should equal 0 for a constant numerator, and the constant verification should equal N.

Worked Examples

Decompose 5 / ((x−1)(x+3))

Inputs

num coeff5
r11
r2-3

Results

coeff a1.25
coeff b-1.25
denom expand b2
denom expand c-3
verify num0
verify const5

A = 5/(1−(−3)) = 5/4 = 1.25 and B = −5/4 = −1.25. So 5/((x−1)(x+3)) = 1.25/(x−1) − 1.25/(x+3). Verify: A+B = 0 and −A(−3) − B(1) = 3.75 + 1.25 = 5.

Decompose 1 / ((x−2)(x−5))

Inputs

num coeff1
r12
r25

Results

coeff a-0.333333
coeff b0.333333
denom expand b-7
denom expand c10
verify num0
verify const1

A = 1/(2−5) = −1/3 and B = 1/(5−2) = 1/3. So 1/((x−2)(x−5)) = (−1/3)/(x−2) + (1/3)/(x−5). Verify: A+B = 0 and −(−1/3)(5) − (1/3)(2) = 5/3 − 2/3 = 1.

Frequently Asked Questions

Partial fraction decomposition is a technique that rewrites a rational expression (a fraction of polynomials) as a sum of simpler fractions. Each simpler fraction has a denominator that is one of the factors of the original denominator, making subsequent operations like integration much easier.

This calculator handles the case of two distinct linear factors. When the roots are equal (repeated root), the decomposition takes a different form: $$\frac{N}{(x-r)^2} = \frac{A}{x-r} + \frac{B}{(x-r)^2}$$, which requires a different computation method.

After decomposing $$\frac{N}{(x-r_1)(x-r_2)}$$ into $$\frac{A}{x-r_1} + \frac{B}{x-r_2}$$, each term integrates directly: $$\int \frac{A}{x-r_1}dx = A\ln|x-r_1| + C$$. Without decomposition, the integral would require a much more complex approach.

The cover-up method (Heaviside's method) finds partial fraction coefficients by strategically substituting the root values. To find $$A$$, "cover up" the factor $$(x-r_1)$$ in the original expression and substitute $$x = r_1$$. This instantly gives $$A = \frac{N}{r_1 - r_2}$$. It is the fastest method for distinct linear factors.

Yes. For a denominator with three or more distinct linear factors, you write one fraction per factor. For irreducible quadratic factors, the numerator is a linear expression $$Ax + B$$ rather than a constant. The general technique extends to any factorable denominator.

When the numerator is a constant (degree 0) and the denominator is degree 2, the decomposition must reconstruct the original: $$A(x-r_2) + B(x-r_1) = (A+B)x + (-Ar_2 - Br_1)$$. Matching the $$x$$ coefficient to zero (since the numerator has no $$x$$ term) forces $$A + B = 0$$. This is a useful correctness check.

Sources & Methodology

Stewart, J. (2015). <em>Calculus: Early Transcendentals</em> (8th ed.). Cengage Learning. | Zill, D. G. (2017). <em>Advanced Engineering Mathematics</em> (6th ed.). Jones & Bartlett Learning. | Thomas, G. B. (2018). <em>Thomas' Calculus</em> (14th ed.). Pearson.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Polynomial Calculator

Polynomial Calculators

Polynomial Division Calculator

Polynomial Calculators

Synthetic Division Calculator

Polynomial Calculators

Factoring Calculator

Polynomial Calculators

Factoring Trinomials Calculator

Polynomial Calculators

Perfect Square Trinomial Calculator

Polynomial Calculators