A partial fraction expansion calculator takes a rational function (a fraction of two polynomials) and breaks it into a sum of simpler fractions. You enter the numerator and denominator polynomials, and the calculator returns the decomposed form, which is essential for integration, Laplace transforms, and solving differential equations.
Formula
For a proper rational function N(x)/D(x) where the degree of N(x) is less than the degree of D(x), the partial fraction expansion depends on the factorization of D(x):
- Distinct linear factors: For each factor (x − a), include a term A/(x − a).
- Repeated linear factors: For each factor (x − a)n, include A₁/(x − a) + A₂/(x − a)² + … + Aₙ/(x − a)ⁿ.
- Irreducible quadratic factors: For each factor (ax² + bx + c), include (Ax + B)/(ax² + bx + c).
- Repeated quadratic factors: For each (ax² + bx + c)n, include (A₁x + B₁)/(ax² + bx + c) + … + (Aₙx + Bₙ)/(ax² + bx + c)ⁿ.
The coefficients A, B, etc. are found by multiplying both sides by D(x) and solving the resulting system of linear equations, or by substituting convenient values of x (the cover-up method).
Worked Example
Using the default inputs: numerator coefficients [1, 3, 2] represent x² + 3x + 2, and denominator coefficients [1, 3, 2] represent x² + 3x + 2. Since numerator equals denominator, the fraction simplifies to 1, but let’s treat it as a proper fraction example with distinct linear factors:
Take N(x) = 1, D(x) = (x + 1)(x + 2) = x² + 3x + 2. The expansion is:
1/((x+1)(x+2)) = A/(x+1) + B/(x+2)
Multiply through by (x+1)(x+2): 1 = A(x+2) + B(x+1)
Substitute x = −1: 1 = A(1) + B(0) → A = 1
Substitute x = −2: 1 = A(0) + B(−1) → B = −1
So the expansion is 1/(x+1) − 1/(x+2). This matches the calculator’s result for the same denominator when the numerator is 1.
Assumptions
- The denominator polynomial is nonzero (the function is defined).
- The fraction is proper; if not, polynomial long division is done first.
- Coefficients are real numbers; complex roots are handled as quadratic factors.
- The calculator assumes the denominator is factored over the real numbers.
When to Use Partial Fraction Expansion
Partial fraction expansion is a core algebraic technique in calculus and engineering. You use it when:
- Integrating rational functions – it turns a complex fraction into simple terms with known integrals.
- Finding inverse Laplace transforms – many transfer functions in control theory are rational, and partial fractions give time-domain responses.
- Solving differential equations – the Laplace transform method often leaves a rational function to invert.
- Simplifying complex fractions for series expansion or limit evaluation.
Without this decomposition, these tasks become significantly harder or impossible with elementary methods.
How to Choose the Right Form
The key is to factor the denominator completely over the real numbers. Here is a step-by-step approach:
- Ensure the fraction is proper: if deg(N) ≥ deg(D), divide first to get a polynomial plus a proper fraction.
- Factor the denominator into linear and irreducible quadratic factors.
- For each distinct linear factor (x − a), write A/(x − a).
- For each repeated linear factor (x − a)n, write A₁/(x − a) + A₂/(x − a)² + … + Aₙ/(x − a)ⁿ.
- For each irreducible quadratic factor (ax² + bx + c), write (Ax + B)/(ax² + bx + c).
- For repeated quadratic factors, include terms with increasing powers, each with a linear numerator.
Then solve for the constants by clearing denominators and either comparing coefficients or substituting roots.
Common Mistakes and Misconceptions
One frequent error is forgetting to do long division when the numerator’s degree is not lower than the denominator’s. For example, (x³ + 1)/(x² − 1) must first be divided to get x + (x+1)/(x² − 1). Another mistake is using the wrong form for repeated factors – omitting the lower-power terms leads to incorrect results. Also, when a quadratic factor has no real roots, do not split it into linear factors over the real numbers; keep it as a quadratic.
A common misconception is that partial fractions only work for distinct linear factors. In fact, the method generalizes to repeated and quadratic factors, though the algebra becomes more involved. Also, the cover-up method only works for distinct linear factors; for others, you must solve a system of equations.
How to Use the Calculator Effectively
Enter the coefficients of the numerator and denominator polynomials, starting with the highest-degree term. For example, for (2x + 3)/(x² + 5x + 6), enter numerator coefficients as 2, 3 and denominator as 1, 5, 6. The calculator will output the partial fraction decomposition. If the numerator degree is equal to or higher than the denominator, the calculator first performs polynomial division and then decomposes the remainder. This saves time and reduces errors, especially for complex denominators.
Limitations of the Calculator
This calculator handles polynomials with real coefficients and will factor the denominator automatically. However, it does not show intermediate steps or the system of equations used. For educational purposes, you may want to solve manually to understand the process. Also, the calculator assumes the denominator is not zero for any x in the domain; if the denominator has repeated factors, the output includes all necessary terms. For very high-degree polynomials, numerical precision may be limited, but for typical homework problems, it is exact.
Frequently Asked Questions
What is partial fraction expansion used for?
It is primarily used to simplify rational functions for integration and for inverse Laplace transforms. By breaking a complex fraction into simpler parts, you can apply linearity to integrate term by term or find the time-domain signal from a transfer function. It also helps in solving differential equations and in analyzing control systems.
Can I use partial fractions for any rational function?
Yes, as long as the denominator can be factored into linear and quadratic factors over the real numbers. Every polynomial with real coefficients factors this way. The fraction must be proper; if not, perform polynomial long division first. The method always yields a valid decomposition, though the algebra may be tedious for high-degree denominators.
How do I handle repeated roots?
For a repeated root like (x − a)n, you must include n terms: A₁/(x − a), A₂/(x − a)², …, Aₙ/(x − a)ⁿ. Each term has a constant numerator. For repeated quadratic factors, each term has a linear numerator (Ax + B). This ensures that the sum of the fractions has the correct denominator.
What is the cover-up method?
The cover-up method is a shortcut for finding coefficients when all factors are distinct linear. For a term A/(x − a), multiply both sides by (x − a) and then substitute x = a to isolate A. This works because the other terms vanish. It does not work directly for repeated or quadratic factors, but you can use it for the highest-power term in repeated cases.
Why does my calculator give a different result than my textbook?
Check whether the fraction is proper. If not, the calculator may include a polynomial part. Also, ensure the denominator is factored over the real numbers; some textbooks use complex factors, which give a different but equivalent form. Finally, verify the order of coefficients – highest power first. A single misplaced coefficient can change the result entirely.
Can partial fractions be used for complex roots?
Yes, but over the real numbers you keep the quadratic factor as is. For example, x² + 1 is irreducible over the reals, so you use (Ax + B)/(x² + 1). If you allow complex numbers, you could split it into linear factors with complex coefficients, but that is rarely needed in standard applications.
Related
Formula used
in num | Numerator coefficients (highest power first) | - | 1, 3, 2 | 0 in den | Denominator coefficients (highest power first) | - | 1, 3, 2 | 0 out pf | Partial fraction result | - | partial_frac(num, den) | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- ug to ppb Calculator: Convert Micrograms per Liter1.00 ppb
- Grams to Moles Chemistry: How to Convert0.2000 mol/L
- Convert ug/l to ppb Calculator
- CPP Calculator Ontario: How CPP Is Calculated162.12 $/month
- Grams to Moles to Molecules: How to Convert0.2000 mol/L
- Organic Chemistry Reaction Calculator: How It Works