Partial Fraction Decomposition Calculator

Partial Fraction Decomposition Calculator

Enter your numerator and denominator polynomials below. Use standard polynomial notation (e.g., x^2 + 3x + 2). This calculator is currently limited to cases where the denominator is a quadratic polynomial that factors into two *distinct* real linear factors, and the numerator's degree is strictly less than the denominator's degree.

Result will appear here. Try the example: Numerator 3x+5, Denominator x^2+3x+2.

What is Partial Fraction Decomposition?

Partial Fraction Decomposition (PFD) is a fundamental algebraic technique used to break down a complex rational expression (a fraction where the numerator and denominator are polynomials) into a sum of simpler fractions. Each of these simpler fractions has a denominator that is a factor of the original denominator. This process is invaluable in various fields of mathematics and engineering, most notably in integral calculus for simplifying expressions before integration, and in control systems for analyzing system responses.

Why Do We Use It?

The primary motivation for PFD comes from its utility in calculus. Integrating a complex rational function directly can be challenging or impossible with basic techniques. By decomposing it into partial fractions, we transform the original function into a sum of simpler terms, each of which can typically be integrated using standard rules (like the natural logarithm rule for linear denominators or arctangent for irreducible quadratic denominators).

Consider the integral of ∫ (3x+5)/(x^2+3x+2) dx. This looks complicated. But if we can express (3x+5)/(x^2+3x+2) as A/(x+1) + B/(x+2), then the integral becomes ∫ A/(x+1) dx + ∫ B/(x+2) dx, which are straightforward logarithmic integrals.

Proper vs. Improper Rational Expressions

Before diving into the decomposition process, it's crucial to distinguish between proper and improper rational expressions:

  • Proper Rational Expression: The degree of the numerator polynomial is strictly less than the degree of the denominator polynomial. For example, (x+1)/(x^2+3). Partial fraction decomposition applies directly to proper fractions.
  • Improper Rational Expression: The degree of the numerator polynomial is greater than or equal to the degree of the denominator polynomial. For example, (x^3+x)/(x^2+1). In this case, you must first perform polynomial long division to express the improper fraction as a sum of a polynomial and a proper rational fraction. Only then can the partial fraction decomposition be applied to the proper fraction part.

This calculator currently only handles proper rational expressions where the denominator is a quadratic with distinct real roots.

The Cases of Partial Fraction Decomposition

The form of the partial fraction decomposition depends entirely on the factorization of the denominator polynomial, Q(x). There are four main cases:

Case 1: Distinct Linear Factors

If the denominator Q(x) can be factored into distinct linear factors like (ax+b)(cx+d)..., then for each factor (ax+b), there will be a partial fraction of the form A/(ax+b).

Example: For P(x) / ((x-r1)(x-r2)), the decomposition is A/(x-r1) + B/(x-r2). This is the case handled by the calculator above.

To find the coefficients (A, B, etc.), you can use methods like:

  • Heaviside Cover-Up Method: Especially efficient for distinct linear factors. For A/(x-r1), multiply the original fraction by (x-r1) and then substitute x=r1.
  • Equating Coefficients: Multiply both sides of the decomposed equation by the common denominator, then expand and equate coefficients of like powers of x. This generates a system of linear equations to solve.

Case 2: Repeated Linear Factors

If a linear factor (ax+b) appears n times in the denominator (i.e., (ax+b)^n), then there will be n partial fractions associated with this factor:

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

Example: For P(x) / ((x-r)^3), the decomposition would be A/(x-r) + B/(x-r)^2 + C/(x-r)^3.

Case 3: Distinct Irreducible Quadratic Factors

If the denominator Q(x) contains an irreducible quadratic factor (ax^2+bx+c) (meaning it cannot be factored into real linear factors, i.e., its discriminant b^2-4ac < 0), then the corresponding partial fraction will have a linear numerator:

(Ax+B)/(ax^2+bx+c)

Example: For P(x) / ((x^2+1)(x-2)), the decomposition is (Ax+B)/(x^2+1) + C/(x-2).

Case 4: Repeated Irreducible Quadratic Factors

If an irreducible quadratic factor (ax^2+bx+c) appears n times in the denominator (i.e., (ax^2+bx+c)^n), then there will be n partial fractions associated with this factor, each with a linear numerator:

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

Example: For P(x) / ((x^2+x+1)^2), the decomposition would be (Ax+B)/(x^2+x+1) + (Cx+D)/(x^2+x+1)^2.

A Step-by-Step Example (with the Calculator's Case)

Let's decompose the rational expression: (3x+5) / (x^2+3x+2)

  1. Check if it's a proper fraction: The degree of the numerator (1) is less than the degree of the denominator (2). It's a proper fraction.
  2. Factor the denominator: x^2+3x+2 = (x+1)(x+2). These are distinct linear factors.
  3. Set up the partial fraction form:

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

  4. Solve for A and B (using Heaviside Cover-Up Method):
    • To find A, cover up (x+1) in the original expression and substitute x=-1:

      A = (3(-1)+5) / ((-1)+2) = (-3+5) / (1) = 2 / 1 = 2

    • To find B, cover up (x+2) in the original expression and substitute x=-2:

      B = (3(-2)+5) / ((-2)+1) = (-6+5) / (-1) = -1 / -1 = 1

  5. Write the decomposition:

    (3x+5) / (x^2+3x+2) = 2/(x+1) + 1/(x+2)

This is exactly what the calculator above would compute!

Conclusion

Partial fraction decomposition is a powerful algebraic tool that simplifies complex rational expressions, making them amenable to further mathematical operations, especially integration. While the process can become intricate with repeated or irreducible factors, understanding the fundamental cases and methods empowers you to tackle a wide range of problems. Use the calculator above to quickly check your work for distinct linear factor cases!