Partial Fraction Decomposition Calculator


Partial Fraction Decomposition Calculator

Easily solve partial fraction problems for rational expressions with distinct linear factors.

This calculator finds the partial fraction expansion for a rational function of the form (cx + d) / ((x – a)(x – b)).



The coefficient of ‘x’ in the numerator.


The constant term in the numerator.


The first root of the denominator, from the factor (x – a).


The second root of the denominator, from the factor (x – b).

Intermediate Values


Visualizing the Decomposition

A visual representation of the original function and its decomposed parts.

What is a Partial Fraction Calculator?

A partial fraction calculator is a tool used to perform partial fraction decomposition. This mathematical process takes a complex rational expression (a fraction of two polynomials) and breaks it down into a sum of simpler fractions. This technique is crucial in fields like calculus for integrating complex rational functions, and in engineering for finding inverse Laplace transforms. Anyone looking to solve partial fraction using calculator will find this tool invaluable for handling expressions with distinct linear factors in the denominator.

The core idea is to reverse the process of adding fractions. Instead of finding a common denominator to combine fractions, we start with the combined fraction and find the individual parts that made it up. This calculator focuses on the common case where the denominator can be factored into two distinct linear terms.

The Partial Fraction Formula Explained

For a proper rational expression where the degree of the numerator is less than the degree of the denominator, and the denominator has distinct linear factors, the decomposition takes a specific form.

Given a function:

f(x) = (cx + d) / ((x – a)(x – b))

It can be decomposed into the form:

f(x) = A / (x – a) + B / (x – b)

The goal is to find the constants A and B. A quick way to do this is the Heaviside “cover-up” method.

To find A, cover up the (x – a) term in the original fraction and substitute x = a:

A = (ca + d) / (a – b)

To find B, cover up the (x – b) term and substitute x = b:

B = (cb + d) / (b – a)

Variables Used in the Calculation
Variable Meaning Unit Typical Range
c, d Coefficients of the numerator polynomial Unitless Any real number
a, b Roots of the denominator polynomial Unitless Any real number, a ≠ b
A, B Constants of the resulting partial fractions Unitless Any real number

Practical Examples

Example 1: Standard Decomposition

Let’s decompose the fraction: (5x – 1) / (x² – x – 2)

  • Inputs: The denominator factors to (x – 2)(x + 1). So, a=2, b=-1. The numerator is 5x – 1, so c=5, d=-1.
  • Calculation:

    A = (5*2 – 1) / (2 – (-1)) = 9 / 3 = 3

    B = (5*(-1) – 1) / (-1 – 2) = -6 / -3 = 2
  • Result: 3 / (x – 2) + 2 / (x + 1)

Example 2: Negative Coefficients

Let’s decompose the fraction: (-2x + 4) / (x² + x – 6)

  • Inputs: The denominator factors to (x + 3)(x – 2). So, a=-3, b=2. The numerator is -2x + 4, so c=-2, d=4. For more complex problems, you might use a polynomial root finder.
  • Calculation:

    A = (-2*(-3) + 4) / (-3 – 2) = 10 / -5 = -2

    B = (-2*2 + 4) / (2 – (-3)) = 0 / 5 = 0
  • Result: -2 / (x + 3) + 0 / (x – 2) = -2 / (x + 3)

How to Use This Partial Fraction Calculator

Using this calculator is a simple process designed for accuracy and speed.

  1. Identify Coefficients: Look at your rational expression. Identify the coefficients for the numerator (c and d) and the roots of the denominator (a and b).
  2. Enter Values: Input these four values into the designated fields. The calculator assumes the form (cx + d) / ((x-a)(x-b)).
  3. Review Results: The calculator instantly provides the primary result (the complete decomposition) and the intermediate values for the constants A and B.
  4. Check for Errors: The calculator requires the denominator roots ‘a’ and ‘b’ to be distinct. If a = b, it will display an error, as that is a “repeated roots” case requiring a different method. For such cases, a system of equations solver may be necessary.

Key Factors That Affect Partial Fraction Decomposition

The process to solve partial fraction using calculator or by hand depends heavily on the nature of the denominator’s factors.

  • Degree of Polynomials: The method shown here only works for proper fractions, where the numerator’s degree is less than the denominator’s. If it’s an improper fraction, you must first perform long division of polynomials.
  • Distinct Linear Factors: This is the simplest case, as covered by this calculator. Each unique factor (x – a) gets a simple fraction A / (x – a).
  • Repeated Linear Factors: If a factor is repeated, like (x – a)², you must create terms for each power: A / (x – a) + B / (x – a)².
  • Irreducible Quadratic Factors: If the denominator has a quadratic factor that cannot be factored into linear terms (e.g., x² + 4), the corresponding partial fraction will have a linear numerator: (Ax + B) / (x² + 4).
  • Repeated Quadratic Factors: Similar to repeated linear factors, a term like (x² + 4)² would require two partial fractions: (Ax + B) / (x² + 4) + (Cx + D) / (x² + 4)².
  • Complexity of Roots: Finding the roots of the denominator is the first and most critical step. For higher-degree polynomials, this can be challenging without a dedicated tool like a quadratic formula calculator for second-degree polynomials.

Frequently Asked Questions (FAQ)

1. What is the main purpose of partial fraction decomposition?

Its primary use is in calculus, to simplify complex rational functions into a sum of simpler fractions that are much easier to integrate. It is also used in other areas of engineering and science, for instance, with the laplace transform calculator.

2. Can I use this calculator if the degree of the numerator is higher than the denominator?

No. This is an “improper” rational expression. You must first perform polynomial long division to get a polynomial plus a proper rational expression. You can then use the calculator on the proper remainder part.

3. What happens if the denominator roots ‘a’ and ‘b’ are the same?

This calculator will show an error. This is a case of “repeated linear factors,” which requires a different setup for the decomposition (i.e., A/(x-a) + B/(x-a)²).

4. Are the input values unitless?

Yes. In this mathematical context, the coefficients and roots are considered unitless real numbers.

5. Does this calculator handle complex roots?

No, this tool is designed for real-number roots (a and b). Complex roots typically arise from irreducible quadratic factors, which require a different decomposition form.

6. What is the Heaviside “cover-up” method?

It’s a shortcut for finding the coefficients (A, B, etc.) in a partial fraction decomposition with distinct linear factors. It involves “covering” a factor in the denominator and substituting its root into the rest of the expression, as shown in the formula section.

7. Can I solve a system of three or more fractions with this calculator?

No, this calculator is specifically built for the case of two distinct linear factors in the denominator. Decomposing a cubic or higher-order denominator would result in three or more partial fractions and requires a more advanced method.

8. Is it possible for A or B to be zero?

Yes, as shown in Example 2. If a numerator constant works out to be zero, it simply means that partial fraction term is not part of the final decomposition.

© 2026 Your Company. All rights reserved. This tool is for educational purposes.



Leave a Reply

Your email address will not be published. Required fields are marked *