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.
Related tools
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.