Partial Fraction Calculator Step by Step

Partial Fraction Decomposition Calculator

Enter the numerator and denominator polynomials. For the denominator, please enter it in factored form (e.g., (x-1)(x+2)^2 or (x^2+1)). Irreducible quadratic factors are supported.

Results and step-by-step solution will appear here.

Understanding Partial Fraction Decomposition: A Step-by-Step Guide

Partial fraction decomposition is a crucial technique in algebra and calculus, especially for integrating rational functions. It allows us to break down complex fractions into simpler ones that are easier to work with. This guide will walk you through the process, and our calculator will help you perform it step by step.

What is a Rational Function?

A rational function is a ratio of two polynomials, N(x) / D(x), where N(x) is the numerator polynomial and D(x) is the denominator polynomial. For example, (3x+5) / (x^2+3x+2) is a rational function.

Why is Partial Fraction Decomposition Important?

  • Calculus: It's primarily used to simplify integrands in integral calculus, making it possible to integrate functions that would otherwise be difficult.
  • Differential Equations: It aids in solving certain types of differential equations.
  • Signal Processing & Control Systems: Used in Laplace transforms and Z-transforms to analyze system responses.

Prerequisites

Before diving into partial fractions, you should be familiar with:

  • Polynomial Division: For improper fractions (where the degree of the numerator is greater than or equal to the degree of the denominator).
  • Factoring Polynomials: The denominator must be factored into its linear and irreducible quadratic factors. Our calculator assumes the denominator is already factored.

The General Strategy for Partial Fraction Decomposition

Here's a general outline of the steps involved:

  1. Check the Degree:
    • If degree(N(x)) ≥ degree(D(x)), perform polynomial long division first. You'll get a quotient polynomial Q(x) and a remainder R(x), such that N(x)/D(x) = Q(x) + R(x)/D(x). Then, decompose the proper fraction R(x)/D(x).
    • If degree(N(x)) < degree(D(x)), it's a proper fraction, and you can proceed directly to decomposition.
  2. Factor the Denominator:

    Express the denominator D(x) as a product of linear factors (ax+b) and irreducible quadratic factors (ax^2+bx+c). Our calculator requires the denominator to be entered in this factored form.

  3. Set Up the Partial Fraction Form:

    Based on the factored denominator, write out the partial fraction expansion. There are four main cases:

    • Case 1: Distinct Linear Factors
      For each factor (ax+b), include a term A/(ax+b).
      Example: N(x)/((x-1)(x+2)) = A/(x-1) + B/(x+2)
    • Case 2: Repeated Linear Factors
      For each factor (ax+b)^n, include terms A_1/(ax+b) + A_2/(ax+b)^2 + ... + A_n/(ax+b)^n.
      Example: N(x)/((x-1)^2(x+2)) = A/(x-1) + B/(x-1)^2 + C/(x+2)
    • Case 3: Distinct Irreducible Quadratic Factors
      For each factor (ax^2+bx+c) (where b^2-4ac < 0), include a term (Ax+B)/(ax^2+bx+c).
      Example: N(x)/((x^2+1)(x-3)) = (Ax+B)/(x^2+1) + C/(x-3)
    • Case 4: Repeated Irreducible Quadratic Factors
      For each factor (ax^2+bx+c)^n, include terms (A_1x+B_1)/(ax^2+bx+c) + ... + (A_nx+B_n)/(ax^2+bx+c)^n.
      Example: N(x)/((x^2+1)^2(x-3)) = (Ax+B)/(x^2+1) + (Cx+D)/(x^2+1)^2 + E/(x-3)
  4. Solve for the Unknown Coefficients:

    Multiply both sides of the partial fraction equation by the original denominator D(x). This will clear all denominators. Then, you can use one or a combination of these methods:

    • Substitution: For distinct linear factors (x-r), substitute x=r into the equation. This often directly solves for a coefficient (Heaviside Cover-Up Method).
    • Equating Coefficients: Expand the right side of the equation and group terms by powers of x. Equate the coefficients of corresponding powers of x on both sides of the equation. This will yield a system of linear equations that can be solved for the unknown coefficients.
  5. Write the Final Decomposition:

    Substitute the found values of the coefficients back into the partial fraction form.

Example: Decompose (3x+5) / (x^2+3x+2)

Let's use the calculator to decompose this expression. First, we factor the denominator: x^2+3x+2 = (x+1)(x+2).

So, we need to decompose (3x+5) / ((x+1)(x+2)).

  1. Degree Check: Degree of numerator (1) is less than degree of denominator (2). It's a proper fraction.
  2. Factored Denominator: (x+1)(x+2). These are distinct linear factors.
  3. Set Up Form: (3x+5) / ((x+1)(x+2)) = A/(x+1) + B/(x+2)
  4. Solve for Coefficients:

    Multiply by (x+1)(x+2):

    3x+5 = A(x+2) + B(x+1)

    • Substitute x=-1 (root of x+1):
      3(-1)+5 = A(-1+2) + B(-1+1)
      2 = A(1) + B(0)
      A = 2
    • Substitute x=-2 (root of x+2):
      3(-2)+5 = A(-2+2) + B(-2+1)
      -1 = A(0) + B(-1)
      -1 = -B
      B = 1
  5. Final Decomposition:
    (3x+5) / (x^2+3x+2) = 2/(x+1) + 1/(x+2)

Our calculator will perform these steps automatically and display them for you.

Conclusion

Partial fraction decomposition is a fundamental algebraic tool that simplifies complex rational expressions. While the process can sometimes be lengthy, especially with repeated or quadratic factors, understanding the underlying principles is key. Our step-by-step calculator is designed to assist you in mastering this technique, providing clear explanations for each stage of the decomposition.