# Partial Fractions Calculator

Source: https://calcsolve.org/partial-fractions-calculator

Enter a rational function and get its partial fraction decomposition, ready for integration or a Laplace transform.

## How to use it

1. Type the fraction with the whole denominator in brackets.
2. Press Solve. The denominator is factored and the form of the decomposition is chosen.
3. Read the values of A, B and so on, and check by recombining the fractions.

## What partial fraction decomposition does

It splits one complicated rational expression into a sum of simpler fractions. The main uses are integrating rational functions in calculus and taking inverse Laplace transforms in engineering.

## Form of the decomposition

The fraction must be proper, meaning the degree of the numerator is less than the degree of the denominator. If it is not, divide first.

| Denominator contains | Include terms |
| --- | --- |
| Distinct linear factor (x − a) | A/(x − a) |
| Repeated factor (x − a)² | A/(x − a) + B/(x − a)² |
| Irreducible quadratic (x² + bx + c) | (Ax + B)/(x² + bx + c) |

## Example with the cover-up shortcut

### Decompose (3x + 5)/((x + 1)(x + 2))

1. Write (3x + 5)/((x + 1)(x + 2)) = A/(x + 1) + B/(x + 2).
2. Multiply through: 3x + 5 = A(x + 2) + B(x + 1).
3. Set x = −1: 2 = A(1), so A = 2.
4. Set x = −2: −1 = B(−1), so B = 1.
5. Check: 2(x + 2) + (x + 1) = 3x + 5.

**Answer:** 2/(x + 1) + 1/(x + 2)

## A classic

1/(x(x + 1)) = 1/x − 1/(x + 1). This one is behind telescoping sums, where consecutive terms cancel.

## Why integration becomes easy

Each simple fraction integrates to a logarithm. For instance ∫ 1/(x² − 1) dx splits into ½[1/(x − 1) − 1/(x + 1)], which integrates to ½ ln|(x − 1)/(x + 1)| + C.

## Frequently asked questions

### What if the numerator has a higher degree?

Do polynomial long division first. You get a polynomial plus a proper fraction, and only the fraction needs decomposing.
