What is Partial Fraction Decomposition?
Partial fraction decomposition is an essential algebraic technique that reverses the process of finding a common denominator. When adding fractions like \(\frac{2}{x - 2} + \frac{3}{x + 1}\), you multiply denominators to produce the combined rational function \(\frac{5x - 4}{(x - 2)(x + 1)}\). Partial fraction decomposition takes that single complex fraction and systematically splits it back into its constituent building blocks.
In advanced algebra, calculus, and engineering, decomposing rational expressions is not just an academic exercise: it is a mandatory prerequisite for evaluating difficult integrals, determining inverse Laplace transforms in circuit theory, and solving linear differential equations with constant coefficients.
How to Use the Partial Fraction Decomposition Calculator
Decompose any proper or improper rational expression into simpler fractions in three simple steps:
Enter Numerator \(P(x)\)
Input the numerator polynomial (such as 5x - 4 or 2x^3 - x + 1). If degree \(P(x) \ge Q(x)\), the calculator automatically executes polynomial long division first.
Enter Denominator \(Q(x)\)
Enter the denominator in expanded or factored format (e.g. x^2 - x - 2, (x - 2)(x + 1)). Quick presets are provided for distinct roots, repeated factors, and improper fractions.
View Decomposition & Integral
Instant calculation generates the decomposed partial fractions, undetermined coefficient values (\(A, B, C\)), complete step-by-step derivation, and the exact calculus antiderivative.
Problems This Partial Fraction Calculator Solves
Eliminating Systems of Equations Mistakes
Setting up undetermined coefficients for 3 or 4 unknowns creates tedious linear systems where a single arithmetic error invalidates all constants. Our solver solves the system instantly and shows Heaviside shortcut evaluations.
Auto-Handling Improper Fractions
Students frequently forget that partial fraction templates only work on proper fractions (\(\deg P < \deg Q\)). When \(\deg P \ge \deg Q\), our tool performs polynomial long division first to extract polynomial quotients cleanly.
Instant Calculus Integration Support
Evaluating \(\int \frac{P(x)}{Q(x)} dx\) in Calculus II requires decomposed fractions. The calculator outputs the exact symbolic antiderivative with logarithmic \(\ln|x - c|\) terms.
Control Systems & Laplace Transforms
Electrical engineers decomposing s-domain transfer functions \(H(s)\) can verify inverse Laplace transform poles and residues in seconds.
Key Features & Capabilities
Generates the calculus integral \(\int \frac{P(x)}{Q(x)}dx\) with logarithmic terms.
Demonstrates Heaviside root-plugging evaluation alongside coefficient equating.
Automatically factors out polynomial quotients for improper rational expressions.
Recalculates on every keystroke with zero calculate button delay.
The Intuitive Mental Model: The Reverse Ingredient Centrifuge
In middle school algebra, you learned how to combine simple fractions using a common denominator:
Adding fractions is easy, like blending strawberries and bananas into a single smoothie. Partial Fraction Decomposition is the reverse process: an algebraic centrifuge that takes the complex blended smoothie and un-mixes it back into pure, isolated fruit components.
Why Decompose?
Integrating a massive rational function \(\int \frac{5x - 4}{x^2 - x - 2} \, dx\) directly is very difficult. But decomposed into \(\int \frac{2}{x-2}dx + \int \frac{3}{x+1}dx\), each part integrates effortlessly into elementary natural logarithms: \(2\ln|x - 2| + 3\ln|x + 1| + C\).
The Degree Rule of Thumb
The numerator of each partial fraction must always have a polynomial degree strictly less than its irreducible denominator base: linear factors (degree 1) get constant numerators \(A\) (degree 0); quadratic factors (degree 2) get linear numerators \(Ax + B\) (degree 1).
Mastering Partial Fractions Across Every Skill Level
The Heaviside Cover-Up Trick
For non-repeated linear factors \(\frac{P(x)}{(x - r_1)(x - r_2)}\):
- Cover up \((x - r_1)\) with your finger in the original fraction.
- Plug root \(x = r_1\) into the remaining expression to solve for \(A\) directly.
- Repeat for \((x - r_2)\) to solve for \(B\) in seconds without systems of equations!
Repeated & Quadratic Factors
Handling advanced denominator topologies:
- Repeated Linears: \((x - r)^k\) requires \(k\) partial fractions ascending from power \(1\) to \(k\).
- Irreducible Quadratics: \((x^2 + a^2)\) requires linear numerator \(Ax + B\).
- Multiply by the LCD and equate matching powers of \(x\) to solve the linear system.
Laplace Transforms & Residues
In engineering and complex analysis:
- Control Theory: Inverse Laplace transform \(\mathcal{L}^{-1}\{F(s)\}\) decomposes transfer functions to find transient and steady-state circuit responses.
- Residue Calculus: Decomposition coefficients are the complex residues: \(A_k = \operatorname{Res}(f, r_k) = \lim_{z \to r_k} (z - r_k) f(z)\).
Common Traps & Exam Pitfalls to Avoid
If the degree of the numerator is greater than or equal to the denominator (\(\deg P \ge \deg Q\)), you must perform polynomial long division first. Decomposing directly yields 100% incorrect coefficients.
For \((x - 2)^3\), writing only \(\frac{A}{(x-2)^3}\) is fatal. You must include all ascending powers: \(\frac{A}{x-2} + \frac{B}{(x-2)^2} + \frac{C}{(x-2)^3}\).
Writing \(\frac{A}{x^2 + 4}\) instead of \(\frac{Ax + B}{x^2 + 4}\). An irreducible quadratic denominator requires two unknown coefficients: a linear term and a constant term.
The Four Canonical Denominator Cases
1. Distinct Linear Factors
When \(Q(x)\) factors into unique terms \((x - r_1)(x - r_2)\dots\), each factor receives an individual constant numerator:
\(\frac{A}{x - r_1} + \frac{B}{x - r_2}\)
2. Repeated Linear Factors
For a factor \((x - r)^k\) of multiplicity \(k\), assign \(k\) terms with ascending denominator powers:
\(\frac{A_1}{x - r} + \frac{A_2}{(x - r)^2} + \dots + \frac{A_k}{(x - r)^k}\)
3. Irreducible Quadratic Factors
A quadratic \((ax^2 + bx + c)\) with negative discriminant (\(b^2 - 4ac < 0\)) cannot be factored over real numbers. It requires a linear numerator:
\(\frac{Ax + B}{ax^2 + bx + c}\)
4. Repeated Irreducible Quadratics
For repeated quadratics \((ax^2 + bx + c)^k\), each power up to \(k\) receives an independent linear numerator:
\(\frac{A_1 x + B_1}{ax^2 + bx + c} + \frac{A_2 x + B_2}{(ax^2 + bx + c)^2}\)
Proper vs. Improper Rational Functions
Before applying any decomposition template, compare the highest powers of the numerator and denominator:
- Proper Rational Function (\(\deg P < \deg Q\)): The degree of the numerator is strictly smaller than the denominator. You can set up the partial fraction template immediately.
- Improper Rational Function (\(\deg P \ge \deg Q\)): You must first perform polynomial long division. This converts the fraction into a polynomial quotient \(S(x)\) plus a strictly proper remainder fraction \(\frac{R(x)}{Q(x)}\).
Worked Step-by-Step Example
Problem: Decompose \(\frac{5x - 4}{(x - 2)(x + 1)}\)
Step 1: Denominator has two distinct linear factors: \((x - 2)\) and \((x + 1)\). Set up template:
\[\frac{5x - 4}{(x - 2)(x + 1)} = \frac{A}{x - 2} + \frac{B}{x + 1}\]
Step 2 (Heaviside Cover-Up for A): Multiply by \((x - 2)\) and evaluate at root \(x = 2\):
\[A = \left.\frac{5x - 4}{x + 1}\right|_{x=2} = \frac{5(2) - 4}{2 + 1} = \frac{6}{3} = 2\]
Step 3 (Heaviside Cover-Up for B): Multiply by \((x + 1)\) and evaluate at root \(x = -1\):
\[B = \left.\frac{5x - 4}{x - 2}\right|_{x=-1} = \frac{5(-1) - 4}{-1 - 2} = \frac{-9}{-3} = 3\]
Step 4: Final decomposition:
\[\frac{5x - 4}{(x - 2)(x + 1)} = \frac{2}{x - 2} + \frac{3}{x + 1}\]
