Partial Fraction Decomposition Calculator
Easily find the partial fraction decomposition of rational functions where the denominator has distinct linear factors, useful for integration.
Calculator
Coefficients Chart
Bar chart showing the magnitude of the calculated coefficients (A, B, C…). Updates with calculation.
What is Partial Fraction Decomposition?
Partial fraction decomposition is a method used in algebra and calculus to rewrite a complex rational function (a fraction of two polynomials) as a sum of simpler fractions. The main goal, especially in calculus, is to simplify the integrand before performing integration. If you have a rational function P(x)/Q(x) where the degree of P(x) is less than the degree of Q(x), and Q(x) can be factored, you can decompose it.
This technique is particularly useful for integrating rational functions because the simpler fractions are often easier to integrate using basic integration rules. The form of the decomposition depends on the factors of the denominator Q(x) – whether they are linear, repeated linear, irreducible quadratic, or repeated irreducible quadratic factors. Our partial fraction decomposition calculator focuses on the case where the denominator has distinct linear factors.
Anyone studying calculus, particularly integration techniques, will find this method and the partial fraction decomposition calculator useful. Common misconceptions include thinking it applies to any fraction or that it’s always easy to find the factors of the denominator.
Partial Fraction Decomposition Formula and Mathematical Explanation
For a rational function P(x)/Q(x) where the degree of P(x) is less than the degree of Q(x), and Q(x) can be factored into distinct linear factors as Q(x) = (x – r1)(x – r2)…(x – rn), the partial fraction decomposition is given by:
P(x)/Q(x) = A1/(x – r1) + A2/(x – r2) + … + An/(x – rn)
To find the coefficients Ai, we can use the Heaviside cover-up method. For each factor (x – ri), multiply both sides by (x – ri) and then substitute x = ri. This isolates Ai:
Ai = [P(x) / (Q(x)/(x – ri))] x=ri
More explicitly, if Q(x) = (x – r1)(x – r2)…(x – rn), then:
Ai = P(ri) / [(ri – r1)…(ri – ri-1)(ri – ri+1)…(ri – rn)]
This means we evaluate the numerator at the root ri, and divide by the product of the differences between ri and all other roots.
Variables Table
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| P(x) | Numerator polynomial | Expression | Varies |
| Q(x) | Denominator polynomial | Expression | Varies (factored) |
| ri | i-th distinct root of the denominator Q(x) | Real number | Varies |
| Ai | Coefficient of the partial fraction 1/(x – ri) | Real number | Varies |
| Coefficients of P(x) | c0, c1, c2… for P(x) = c0 + c1*x + c2*x^2… | Real numbers | Varies |
Variables involved in partial fraction decomposition with distinct linear factors.
Practical Examples (Real-World Use Cases)
Example 1: Simple Rational Function
Let’s find the partial fraction decomposition of (2x + 3) / ((x – 1)(x + 2)).
Here, P(x) = 2x + 3, and the roots of the denominator are r1 = 1 and r2 = -2.
Numerator coefficients (constant, x): 3, 2
Denominator roots: 1, -2
Using the partial fraction decomposition calculator with these inputs:
A1 (for x=1) = (2(1) + 3) / (1 – (-2)) = 5 / 3
A2 (for x=-2) = (2(-2) + 3) / (-2 – 1) = -1 / -3 = 1 / 3
So, (2x + 3) / ((x – 1)(x + 2)) = (5/3)/(x – 1) + (1/3)/(x + 2)
Our calculator would show something like: 1.6667/(x – 1) + 0.3333/(x + 2)
Example 2: Higher Degree Numerator (but still less)
Decompose (x2 – x + 2) / (x(x – 1)(x + 1)).
Here P(x) = x2 – x + 2 (coeffs: 2, -1, 1), and roots are 0, 1, -1.
A1 (for x=0): (02 – 0 + 2) / ((0 – 1)(0 + 1)) = 2 / (-1) = -2
A2 (for x=1): (12 – 1 + 2) / (1(1 + 1)) = 2 / 2 = 1
A3 (for x=-1): ((-1)2 – (-1) + 2) / (-1(-1 – 1)) = (1 + 1 + 2) / 2 = 4 / 2 = 2
So, (x2 – x + 2) / (x(x – 1)(x + 1)) = -2/x + 1/(x – 1) + 2/(x + 1)
The partial fraction decomposition calculator can verify these results.
How to Use This Partial Fraction Decomposition Calculator
- Enter Numerator Coefficients: In the “Numerator Coefficients (P(x))” field, input the coefficients of your numerator polynomial, starting with the constant term, then the coefficient of x, then x2, and so on, separated by commas. For example, for 2x2 – x + 5, enter “5, -1, 2”.
- Enter Denominator Roots: In the “Denominator Roots” field, enter the distinct real roots of your denominator, separated by commas. If your denominator is (x-2)(x+3)(x), the roots are 2, -3, 0, so enter “2, -3, 0”. The calculator assumes distinct linear factors (x – r).
- Check Degree Condition: Ensure the degree of the numerator (highest power of x, which is one less than the number of coefficients entered) is strictly less than the degree of the denominator (number of roots entered). The calculator will warn you if this is not the case.
- Click Calculate: Press the “Calculate” button.
- Review Results: The calculator will display the decomposed form, the original fraction it interpreted, and the calculated coefficients (A, B, C…).
- Interpret Chart: The bar chart visually represents the magnitudes of the calculated coefficients A, B, C… for each factor.
The partial fraction decomposition calculator provides the form A1/(x – r1) + A2/(x – r2) + …
Key Factors That Affect Partial Fraction Decomposition Results
- Degree of Numerator vs. Denominator: Partial fraction decomposition (as described here) directly applies when the degree of the numerator is less than the degree of the denominator. If it’s greater or equal, polynomial long division must be performed first. Our partial fraction decomposition calculator checks this.
- Nature of Denominator Factors: The method of decomposition changes based on whether the denominator has distinct linear factors (like (x-a)(x-b)), repeated linear factors (like (x-a)2), distinct irreducible quadratic factors (like (x2+1)(x2+x+1)), or repeated irreducible quadratic factors. This calculator handles distinct linear factors.
- Values of the Roots: The specific values of the roots ri directly influence the values of the coefficients Ai.
- Coefficients of the Numerator: The coefficients of P(x) are used to evaluate P(ri), which is crucial for finding Ai.
- Distinctness of Roots: The formula used here assumes the roots are distinct. If roots are repeated, the form of the decomposition changes (e.g., A/(x-r) + B/(x-r)2).
- Real vs. Complex Roots: While linear factors correspond to real roots, irreducible quadratic factors correspond to complex conjugate roots, leading to terms like (Ax+B)/(x2+px+q) in the decomposition. This calculator focuses on real, distinct roots.
Frequently Asked Questions (FAQ)
- What if the degree of the numerator is not less than the denominator?
- You must first perform polynomial long division to get a polynomial plus a proper rational function (where the numerator degree is less than the denominator). Then apply partial fractions to the remainder term.
- What if the denominator has repeated roots?
- If a factor (x-r) is repeated k times, say (x-r)k, the decomposition includes terms A1/(x-r) + A2/(x-r)2 + … + Ak/(x-r)k. This calculator does not handle repeated roots automatically.
- What about irreducible quadratic factors in the denominator?
- If the denominator has an irreducible quadratic factor like (ax2+bx+c), the decomposition includes a term of the form (Ax+B)/(ax2+bx+c). This calculator focuses on distinct linear factors.
- Can I use this calculator for complex roots?
- This partial fraction decomposition calculator is designed for real, distinct roots corresponding to linear factors. Complex roots arise from irreducible quadratic factors, which require a different form.
- How does the Heaviside cover-up method work?
- It’s a shortcut for finding coefficients when the denominator has distinct linear factors. For Ai/(x-ri), you ‘cover up’ (x-ri) in the original denominator and substitute x=ri into the rest of the fraction.
- Why is partial fraction decomposition important for integration?
- It breaks down complex rational functions into simpler ones like 1/(x-a) or 1/(x-a)n or (Ax+B)/(ax2+bx+c), which have standard integration formulas (often involving logarithms or inverse tangents).
- Is the decomposition unique?
- Yes, for a given proper rational function, the partial fraction decomposition is unique.
- Does this calculator handle improper fractions?
- No, it expects a proper rational function (numerator degree < denominator degree). You'd need to do long division first for improper ones.
Related Tools and Internal Resources
- Integration Calculator: Once you have the partial fractions, use an integration tool.
- Polynomial Long Division Calculator: Useful if your rational function is improper.
- Polynomial Root Finder: Helps find the roots of the denominator if it’s not factored.
- Calculus Tutorials: Learn more about integration techniques.
- Algebra Solver: For solving related algebraic equations.
- Graphing Calculator: Visualize the original function and its decomposition.