Skip to main content

Interactive Math Workbooks

Practice, learn and master mathematics with interactive exercises and instant feedback.

Partial fraction decomposition calculator

Mathematics - Partial Fraction Decomposition Concept with rational functions

Partial Fraction Decomposition Calculator — Break Rational Functions Instantly

Break rational expressions into simpler fractions using partial fraction decomposition. Free calculator with step-by-step working. For polynomial division, try our polynomial long division calculator.

Decompose a Rational Function into Partial Fractions

Enter a rational function P(x)/Q(x) (numerator degree < denominator degree) and click Decompose. The calculator provides step-by-step partial fraction decomposition.

Decomposition result will appear here.
Note: This calculator handles simple linear factors. For repeated or quadratic factors, follow the examples below.

Partial Fraction Decomposition – Complete Explanation

Partial fraction decomposition expresses a rational function as a sum of simpler fractions, making integration and algebraic manipulation easier. This method is essential in calculus, differential equations, and engineering.

Partial Fraction Principle

For a proper rational function P(x)/Q(x), if Q(x) factors into linear factors, we can write:

P(x)/Q(x) = A/(factor1) + B/(factor2) + ...

Constants A, B, etc., are determined by solving equations.

1. Steps for Decomposition

  1. Check degree: Ensure numerator degree < denominator degree. If not, perform polynomial division first.
  2. Factor the denominator Q(x) completely into linear and/or irreducible quadratic factors.
  3. Set up the form: Write a sum of fractions with unknown constants (A, B, C, ...) based on factor types.
  4. Clear denominators: Multiply both sides by Q(x) to eliminate fractions.
  5. Solve for constants using substitution (plug in roots) or equating coefficients.
  6. Write the final decomposition.

2. Step-by-Step Example

2.1 Example 1: Distinct Linear Factors

Decompose: (2x+3)/(x^2 - x - 2)

Step 1: Factor denominator: x^2 - x - 2 = (x-2)(x+1)

Step 2: Set up: (2x+3)/((x-2)(x+1)) = A/(x-2) + B/(x+1)

Step 3: Multiply both sides by (x-2)(x+1):
2x + 3 = A(x+1) + B(x-2)

Step 4: Solve for constants:
        x = 2 → 2*2 + 3 = 7 = A(3) + B(0) → A = 7/3
        x = -1 → 2*(-1)+3 = 1 = A(0) + B(-3) → B = -1/3

Step 5: Final: (2x+3)/(x^2-x-2) = 7/3 * 1/(x-2) - 1/3 * 1/(x+1)

3. More Examples

Example 1: (x+5)/(x²+3x+2)

Factor: (x+1)(x+2) → Setup: A/(x+1) + B/(x+2)

Multiply: x+5 = A(x+2) + B(x+1)

Solve: x=-1 → 4 = A(1) → A=4; x=-2 → 3 = B(-1) → B=-3

Final: (x+5)/(x²+3x+2) = 4/(x+1) - 3/(x+2)

Example 2: (3x+7)/(x²-4)

Factor: (x-2)(x+2) → Setup: A/(x-2) + B/(x+2)

Multiply: 3x+7 = A(x+2) + B(x-2)

Solve: x=2 → 13 = 4A → A=13/4; x=-2 → 1 = -4B → B=-1/4

Final: (3x+7)/(x²-4) = 13/4·1/(x-2) - 1/4·1/(x+2)

Example 3: (x²+3x+2)/(x³-x)

Factor denominator: x(x-1)(x+1)

Setup: A/x + B/(x-1) + C/(x+1)

Multiply: x²+3x+2 = A(x-1)(x+1) + Bx(x+1) + Cx(x-1)

Solve: x=0 → 2 = A(-1)(1) → A=-2; x=1 → 6 = B(1)(2) → B=3; x=-1 → 0 = C(-1)(-2) → C=0

Final: -2/x + 3/(x-1)

4. Case 2: Repeated Linear Factors

If a factor (x-a) appears k times, include terms: A₁/(x-a) + A₂/(x-a)² + ... + Aโ‚–/(x-a)แต

Example: Repeated Linear Factor

Decompose: (x+1)/(x²(x-2))

Setup: A/x + B/x² + C/(x-2)

Multiply: x+1 = A x(x-2) + B(x-2) + C x²

Solve: x=0 → 1 = -2B → B = -1/2; x=2 → 3 = 4C → C = 3/4; Compare x²: 0 = A + C → A = -3/4

Final: -3/(4x) - 1/(2x²) + 3/(4(x-2))

5. Case 3: Irreducible Quadratic Factors

For an irreducible quadratic factor ax²+bx+c, use term (Ax+B)/(ax²+bx+c).

Example: Quadratic Factor

Decompose: (2x²+3x+1)/((x²+1)(x-1))

Setup: (Ax+B)/(x²+1) + C/(x-1)

Multiply: 2x²+3x+1 = (Ax+B)(x-1) + C(x²+1)

Expand: = Ax² - Ax + Bx - B + Cx² + C = (A+C)x² + (-A+B)x + (-B+C)

Compare coefficients:
x²: A+C = 2
x¹: -A+B = 3
x⁰: -B+C = 1

Solve: From 1st: C=2-A; 3rd: -B+2-A=1 → -A-B=-1 → A+B=1
2nd: -A+B=3. Add to A+B=1 → 2B=4 → B=2, then A=-1, C=3

Final: (-x+2)/(x²+1) + 3/(x-1)

6. Case 4: Repeated Quadratic Factors

For (ax²+bx+c)แต, include: (A₁x+B₁)/(ax²+bx+c) + (A₂x+B₂)/(ax²+bx+c)² + ...

7. Common Mistakes to Avoid

  • Not factoring denominator completely (always factor over reals first)
  • Forgetting proper setup for repeated or quadratic factors
  • Arithmetic errors when solving for constants
  • Not checking degree – improper fractions need long division first
  • Sign errors in substitution method
  • Missing terms when equating coefficients

8. Connection to the Remainder Theorem

The Remainder Theorem helps check factors quickly. If P(a)=0, then (x-a) is a factor of the denominator, which is essential for decomposition.

The Factor Theorem in Partial Fractions

Finding roots of Q(x) using P(a)=0 confirms linear factors and helps set up the decomposition form correctly.

For remainder calculations, see our polynomial remainder calculator.

9. Real-World Applications

  • Calculus Integration: Integrating rational functions becomes straightforward after decomposition
  • Differential Equations: Solving inverse Laplace transforms in engineering
  • Signal Processing: Breaking transfer functions into simpler components
  • Control Systems: Analyzing system response using partial fractions
  • Physics: Solving differential equations in circuit analysis and mechanics
  • Numerical Analysis: Rational function approximation

10. Practice Problems with Solutions

Problem 1: Decompose (7x-4)/(x²-x-6)

Solution: Factor: (x-3)(x+2). Setup: A/(x-3) + B/(x+2). Solve: A=17/5, B=18/5 → 17/5·1/(x-3) + 18/5·1/(x+2)

Problem 2: Decompose (x²+1)/(x(x-1)²)

Solution: Setup: A/x + B/(x-1) + C/(x-1)². Solve: A=1, B=0, C=2 → 1/x + 2/(x-1)²

Problem 3: Decompose (3x²+2x+1)/((x²+1)(x+2))

Solution: Setup: (Ax+B)/(x²+1) + C/(x+2). Solve: A=1, B=1, C=2 → (x+1)/(x²+1) + 2/(x+2)

Problem 4: Decompose (5x+3)/(x³-2x²+x-2)

Solution: Factor by grouping: (x-2)(x²+1). Setup: A/(x-2) + (Bx+C)/(x²+1). Solve: A=13/5, B=-13/5, C=1/5

11. Tips for Mastering Partial Fractions

  • Always factor denominator completely before setting up
  • Practice each case separately (linear, repeated, quadratic)
  • Use both substitution and coefficient comparison to verify answers
  • Check your work by combining the partial fractions back
  • Remember: improper fractions require long division first
  • When using substitution, choose values that make terms zero

12. Connection to Calculus: Integration

Once decomposed, integration becomes simple:

∫ A/(x-a) dx = A·ln|x-a| + C
∫ (Ax+B)/(x²+px+q) dx = use substitution or arctan forms
∫ A/(x-a)โฟ dx = A·(x-a)⁻โฟ⁺¹/(-n+1) + C

Calculus Example: ∫ (2x+3)/(x²-x-2) dx

After decomposition: ∫ [7/3·1/(x-2) - 1/3·1/(x+1)] dx

= 7/3·ln|x-2| - 1/3·ln|x+1| + C

13. Final Thoughts

Partial fraction decomposition is a fundamental algebraic technique that transforms complex rational functions into manageable pieces. It bridges algebra and calculus, enabling solutions that would otherwise be extremely difficult.

Use this calculator to verify your work, but practice manual decomposition to build confidence. With consistent practice, you'll recognize the correct form instantly and solve for constants efficiently.

14. Frequently Asked Questions

Use partial fraction decomposition when you have a rational function P(x)/Q(x) where the denominator can be factored, and you want to break it into simpler fractions. This is most common in calculus for integration, in differential equations for inverse Laplace transforms, and in signal processing. The numerator degree must be less than the denominator degree (proper fraction).

Perform polynomial long division first to get a polynomial plus a proper rational function. For example, (x³ + x)/(x² - 1) would first be divided to get x + (2x)/(x² - 1). Only the proper fraction part is decomposed using partial fractions. The polynomial part is integrated or manipulated separately.

For a factor (x-a) repeated k times, include one term for each power: A₁/(x-a) + A₂/(x-a)² + ... + Aโ‚–/(x-a)แต. For example, if the denominator has x², set up A/x + B/x². Each power gets its own constant, and you solve for all of them simultaneously.

For an irreducible quadratic factor (ax² + bx + c) that cannot be factored over real numbers, use the form (Ax + B)/(ax² + bx + c). The numerator is linear (Ax + B), not just a constant. Solve for A and B using coefficient comparison or substitution. If the quadratic is repeated, include one term for each power.

Combine the partial fractions back over a common denominator and verify you get the original rational function. For example, check that A/(x-2) + B/(x+1) = (A(x+1) + B(x-2))/((x-2)(x+1)) matches your original numerator. You can also substitute test values of x into both forms and verify they give the same result.

Conclusion

Partial fraction decomposition is a fundamental algebraic technique that transforms complex rational functions into manageable pieces. Use this calculator to verify your work, but practice manual decomposition to build confidence and understanding.

Readers who wish to continue practicing and reinforce what they've learned can explore the companion learning resource for guided exercises.