Skip to content
Omnikalc

How do you split a rational fraction into partial fractions?

Enter the numerator px + q and the roots a and b of the denominator: get the coefficients A and B, a check at a test point and the definite integral between two limits.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Results

Coefficient A (over x − a)

2.6667

Decomposition found; check the values at the test point match
Coefficient B (over x − b)
0.3333
Original fraction at the test point
1.400000
Decomposed fractions at the test point
1.400000
Definite integral between the limits
2.6001

Integrating a rational fraction such as (3x + 5) ÷ ((x − 1)(x + 2)) looks hard, but it becomes easy once the fraction is split into simple parts. This is partial fraction decomposition. This calculator splits a fraction with a linear numerator and two different linear factors in the denominator, checks the result at a test point and computes the definite integral between two limits.

How the calculation works

  • Write (px + q) ÷ ((x − a)(x − b)) = A ÷ (x − a) + B ÷ (x − b)
  • A = (p × a + q) ÷ (a − b)
  • B = (p × b + q) ÷ (b − a)
  • Integral from l to u = A × ln|(u − a) ÷ (l − a)| + B × ln|(u − b) ÷ (l − b)|
  • The integral requires that neither root lies between the limits

Example

Decompose (3x + 5) ÷ ((x − 1)(x + 2)). Here a = 1, b = −2, p = 3 and q = 5. Then A = (3 × 1 + 5) ÷ 3 = 2.6667 and B = (3 × (−2) + 5) ÷ (−3) = 0.3333. At x = 3, the original fraction is 14 ÷ 10 = 1.4 and the decomposed sum is 2.6667 ÷ 2 + 0.3333 ÷ 5 = 1.4. The integral from 3 to 6 is 2.6667 × ln(5 ÷ 2) + 0.3333 × ln(8 ÷ 5) = 2.6001.

Why it matters

The technique is used in integral calculus, in solving linear differential equations, and in the inverse Laplace transform, which engineers use to find the time response of circuits and control systems. A decomposition is also the quickest way to see the poles of a transfer function and their weights.

Good to know

The method needs a numerator of lower degree than the denominator, which holds here since the numerator is linear and the denominator quadratic. If the numerator degree is greater or equal, divide first. The two roots must be different. A matching value at the test point is a quick proof that the decomposition is right. Any test point other than a root will do.

The synthetic division calculator helps prepare a fraction first, the quadratic calculator finds the roots of a denominator, and the logarithm calculator evaluates the terms of the integral.

Frequently asked questions

What is partial fraction decomposition?

A way to rewrite a rational fraction as a sum of simpler fractions. For (px + q) ÷ ((x − a)(x − b)) with a ≠ b, the result is A ÷ (x − a) + B ÷ (x − b), which is much easier to integrate.

How are A and B found?

With the cover-up method: A = (p × a + q) ÷ (a − b), obtained by hiding the factor (x − a) and substituting x = a in what remains. Likewise B = (p × b + q) ÷ (b − a).

How is the integral computed?

Each simple fraction integrates to a logarithm: ∫ dx ÷ (x − a) = ln|x − a|. The definite integral is A × ln|(u − a) ÷ (l − a)| + B × ln|(u − b) ÷ (l − b)|, where l and u are the limits.

What if the denominator has a repeated or quadratic factor?

These need other forms, such as A ÷ (x − a) + B ÷ (x − a)², or a linear numerator over an irreducible quadratic. This calculator handles two distinct linear factors.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.