Partial Fraction Decomposition Calculator with Steps

Partial Fraction Decomposition Calculator

Enter the numerator and denominator of your rational function. This calculator currently supports proper fractions where the denominator is a quadratic with two distinct real roots.

Understanding Partial Fraction Decomposition

Partial fraction decomposition (PFD) is a fundamental technique in algebra and calculus used to break down a complex rational expression (a fraction where the numerator and denominator are polynomials) into a sum of simpler fractions. This process is incredibly useful, especially in integral calculus, where integrating a complex rational function can be simplified by first decomposing it into partial fractions.

What is a Rational Function?

A rational function is any function that can be written as the ratio of two polynomials, P(x) / Q(x), where P(x) is the numerator and Q(x) is the denominator. For PFD to be applicable in its standard form, the degree of the numerator polynomial P(x) must be less than the degree of the denominator polynomial Q(x). If this condition is not met (i.e., the fraction is "improper"), polynomial long division must be performed first to obtain a polynomial and a proper rational function.

Why is Partial Fraction Decomposition Important?

  • Integration: The most common application is in integral calculus. Integrating a complicated rational function like (x+5)/(x^2+3x+2) is difficult directly. However, if decomposed into 3/(x+1) - 2/(x+2), each term can be easily integrated using basic rules (e.g., ∫ 1/u du = ln|u|).
  • Inverse Laplace Transforms: In engineering and physics, PFD is crucial for finding inverse Laplace transforms, which are used to solve differential equations.
  • Series Expansions: It can also be used to simplify expressions before finding series expansions.

Types of Denominator Factors and Their Decomposition Forms

The form of the partial fractions depends entirely on the factorization of the denominator Q(x). Here are the main cases:

1. Distinct Linear Factors

If the denominator Q(x) can be factored into distinct linear terms, e.g., Q(x) = (ax + b)(cx + d), then the decomposition takes the form:

P(x) / [(ax + b)(cx + d)] = A / (ax + b) + B / (cx + d)

where A and B are constants to be determined. This is the simplest and most frequently encountered case, and the one our calculator primarily supports.

2. Repeated Linear Factors

If the denominator Q(x) has a repeated linear factor, e.g., Q(x) = (ax + b)^n, then for each such factor, we include n terms in the decomposition:

P(x) / (ax + b)^n = A1 / (ax + b) + A2 / (ax + b)^2 + ... + An / (ax + b)^n

3. Irreducible Quadratic Factors

An irreducible quadratic factor is a quadratic expression (ax^2 + bx + c) that cannot be factored into linear factors with real coefficients (i.e., its discriminant b^2 - 4ac is negative). For each such factor, the corresponding partial fraction has a linear numerator:

P(x) / (ax^2 + bx + c) = (Ax + B) / (ax^2 + bx + c)

4. Repeated Irreducible Quadratic Factors

Similar to repeated linear factors, if there's a repeated irreducible quadratic factor (ax^2 + bx + c)^n, you'll have n terms, each with a linear numerator:

P(x) / (ax^2 + bx + c)^n = (A1x + B1) / (ax^2 + bx + c) + (A2x + B2) / (ax^2 + bx + c)^2 + ... + (Anx + Bn) / (ax^2 + bx + c)^n

How to Use This Partial Fraction Decomposition Calculator

  1. Enter Numerator: In the "Numerator P(x)" field, type your polynomial. Use standard mathematical notation (e.g., x^2 + 3x + 2, 2x - 1, 5).
  2. Enter Denominator: In the "Denominator Q(x)" field, type your polynomial. Again, use standard notation.
  3. Calculate: Click the "Calculate Decomposition" button.
  4. View Results: The calculator will display the final partial fraction decomposition and a step-by-step breakdown of how it arrived at the solution.

Note: This calculator is designed to handle proper rational functions where the denominator is a quadratic polynomial with two distinct real roots. For more complex cases (improper fractions, repeated factors, irreducible quadratic factors, or higher-degree denominators), manual calculation or a more advanced tool might be required.

Example Walkthrough (using the calculator's capabilities)

Let's decompose (x + 5) / (x^2 + 3x + 2).

  1. Input: Numerator: x + 5, Denominator: x^2 + 3x + 2.
  2. Factor Denominator: The denominator x^2 + 3x + 2 factors into (x + 1)(x + 2).
  3. Set up PFD Form: We write (x + 5) / [(x + 1)(x + 2)] = A / (x + 1) + B / (x + 2).
  4. Solve for A and B:
    • Multiply both sides by (x + 1)(x + 2): x + 5 = A(x + 2) + B(x + 1).
    • To find A, set x = -1: -1 + 5 = A(-1 + 2) + B(-1 + 1)4 = A(1) + B(0)A = 4.
    • To find B, set x = -2: -2 + 5 = A(-2 + 2) + B(-2 + 1)3 = A(0) + B(-1)B = -3.
  5. Final Decomposition: Substitute A and B back into the form: 4 / (x + 1) - 3 / (x + 2).

This calculator provides a quick way to verify your manual calculations for these specific types of problems, helping you build confidence in your understanding of partial fraction decomposition.