Decompose any rational function into a sum of simpler fractions — essential for integration, Laplace transforms, and differential equations.
Partial fraction decomposition (PFD) expresses a rational function R(x) = P(x)/Q(x) as a sum of simpler fractions, where the denominator factors are linear or irreducible quadratics. This technique is fundamental in calculus (integration of rational functions), inverse Laplace transforms, and solving differential equations.
General form: For each factor (x - r)k, decomposition includes A₁/(x-r) + A₂/(x-r)² + ... + Ak/(x-r)k. For irreducible quadratic (x²+px+q)m, terms are (B₁x+C₁)/(x²+px+q) + ... + (Bmx+Cm)/(x²+px+q)m.
Our tool follows a robust algebraic approach: it first performs polynomial long division if deg(P) ≥ deg(Q). Then, for the proper rational remainder, it constructs a linear system using the method of undetermined coefficients based on the denominator factors you define. The system is solved via least squares (normal equations) to ensure stability even when more equations than unknowns exist. This yields accurate floating-point coefficients. The tool verifies denominators are non‑zero and warns about possible common factors.
| Rational Function | Expected Decomposition | Tool Output (approx) |
|---|---|---|
| (x²+1)/(x³+2x²+x) | 1/x - 1/(x+1) + 2/(x+1)² | 1/x - 1/(x+1) + 2/(x+1)² |
| 1/(x²-1) | 0.5/(x-1) - 0.5/(x+1) | 0.5/(x-1) - 0.5/(x+1) |
| (x+1)/(x²+4) | (x+1)/(x²+4) | (x+1)/(x²+4) |
Consider ∫ (x²+1)/(x³+2x²+x) dx. Manual decomposition yields A/x + B/(x+1) + C/(x+1)². Our calculator quickly finds coefficients: A=1, B= -1, C=2, resulting in ∫ [1/x - 1/(x+1) + 2/(x+1)²] dx = ln|x| - ln|x+1| - 2/(x+1) + C. This illustrates the power of PFD in calculus.