Get in touch

Contact Form Demo

Partial Fraction Calculator

Decompose Rational Functions into Partial Fractions with Steps

$$ \frac{P(x)}{Q(x)} $$
Num
Den
Example 1
x
^
(
)
CLR
1
2
3
+
/
4
5
6
7
8
9
.
0
*
Decomposed Form
Function Visualization
Decomposition Steps
👨‍🏫
By Prof. David Anderson
Professor of Applied Mathematics | 20+ Years Teaching Experience
“In Calculus II, Partial Fraction Decomposition is the bridge that turns impossible integrals into simple logarithmic functions. It’s an algebraic technique that reverses the process of adding fractions. My students often struggle with the algebra more than the calculus! I designed this Partial Fraction Calculator to automate the tedious ‘cover-up method’ and solving systems of equations, so you can focus on the integration logic.”

The Professor’s Guide to Partial Fraction Decomposition: Integration Made Simple

A Deep Dive into Rational Functions, Distinct Linear Factors, and Irreducible Quadratics
Key Takeaways for Students
  • Goal: Rewrite a complex rational function $\frac{P(x)}{Q(x)}$ as a sum of simpler partial fractions.
  • Condition: The degree of the numerator must be less than the denominator. Use Polynomial Long Division for improper fractions.
  • Method: Factor the denominator, set up the decomposition form ($A, B, C$), and solve for coefficients.
  • Application: Essential for Integration by Partial Fractions and computing Inverse Laplace Transforms.

Welcome to the ultimate resource on Partial Fraction Decomposition. Whether you are facing a nasty integral in Calculus 2, analyzing signal processing in Engineering, or solving Differential Equations, finding the Partial Fraction Expansion is a critical skill.

The core idea is simple: You know how to add fractions ($ \frac{1}{2} + \frac{1}{3} = \frac{5}{6} $). Partial Fraction Decomposition is simply doing this in reverse ($ \frac{5}{6} \to \frac{1}{2} + \frac{1}{3} $), but with algebraic polynomials. Our Partial Fraction Calculator above handles the heavy algebraic lifting for you, including the Heaviside Cover-up Method.

1. The 4 Cases of Decomposition (Decision Matrix)

The structure of your answer depends entirely on how the denominator $Q(x)$ factors. Here is the roadmap every Calculus student needs to master:

Case Type Denominator Factor Decomposition Setup Form
Distinct Linear Factors $(x – a)$ $$ \frac{A}{x – a} $$
Repeated Linear Factors $(x – a)^k$ $$ \frac{A_1}{x – a} + \frac{A_2}{(x – a)^2} + \dots + \frac{A_k}{(x – a)^k} $$
Irreducible Quadratic Factors $(ax^2 + bx + c)$ $$ \frac{Ax + B}{ax^2 + bx + c} $$
Repeated Quadratic Factors $(ax^2 + bx + c)^k$ $$ \frac{A_1 x + B_1}{ax^2 + bx + c} + \dots + \frac{A_k x + B_k}{(ax^2 + bx + c)^k} $$

2. How to Solve for Constants (The Methods)

Once you have set up the equation (e.g., $\frac{5x-1}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1}$), how do you find $A$ and $B$? There are two primary techniques used by our Rational Function Decomposer.

Method A: The Heaviside Cover-up Method (Fastest)

This trick works best for distinct linear factors. It is a shortcut to avoid solving simultaneous equations.

The Heaviside Trick

To find the constant $A$ above the factor $(x-1)$: Cover up $(x-1)$ in the original expression and plug in the root $x=1$.

$$ A = \left. \frac{5x-1}{\text{Cover}(x-1)(x+1)} \right|_{x=1} = \frac{5(1)-1}{1+1} = \frac{4}{2} = 2 $$

Method B: Equating Coefficients (Universal)

Multiply both sides by the LCD to clear fractions, expand the polynomials, and match the coefficients of $x^2, x^1, x^0$ on both sides. This creates a System of Linear Equations which our calculator solves instantly.

3. Step-by-Step Example: Distinct Linear Factors

Let’s use the Partial Fraction Solver logic to decompose $\frac{1}{x^2 – 1}$.

Example Problem

Step 1: Factor Denominator
$x^2 – 1 = (x-1)(x+1)$

Step 2: Setup Form
$$ \frac{1}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1} $$

Step 3: Clear Denominator
$1 = A(x+1) + B(x-1)$

Step 4: Solve Constants
Let $x=1 \implies 1 = A(2) \implies A = 1/2$
Let $x=-1 \implies 1 = B(-2) \implies B = -1/2$

Final Answer:
$$ \frac{1}{2(x-1)} – \frac{1}{2(x+1)} $$

4. Why We Do This: Calculus Applications

The main reason you are learning this is usually for Integration or Laplace Transforms.

Consider the integral $\int \frac{1}{x^2-1} dx$. Direct integration is hard. But using our decomposed form:

$$ \int \left( \frac{1/2}{x-1} – \frac{1/2}{x+1} \right) dx $$ $$ = \frac{1}{2}\ln|x-1| – \frac{1}{2}\ln|x+1| + C $$

Suddenly, a difficult problem becomes two simple natural log integrals. This technique is also standard for computing the Inverse Laplace Transform in engineering contexts.

5. Frequently Asked Questions (FAQ)

What if the numerator degree is higher?
You must use Polynomial Long Division first. Partial Fraction Decomposition works only on “proper” rational functions (Degree of Top < Degree of Bottom). Our calculator assumes you have simplified the fraction first or will handle the remainder part separately.
Can this handle complex roots?
Yes, technically. However, in Calculus I/II, we usually keep quadratics as “irreducible” (like $x^2+1$) rather than factoring them into complex numbers $(x-i)(x+i)$, unless specified. Our calculator follows the standard real-variable calculus convention.
Why do we use Ax + B for quadratic factors?
The numerator must always be one degree less than the factor in the denominator. If the denominator is quadratic ($degree 2$), the numerator must be linear ($degree 1$, generic form $Ax+B$).

References & Further Reading

  • Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning. (Section 7.4: Integration of Rational Functions).
  • Paul’s Online Notes. “Partial Fractions.” Read Tutorial
  • Khan Academy. “Partial fraction expansion.” Watch Video

Simplifying Calculus, One Fraction at a Time

Don’t let algebraic fractions ruin your calculus grade. Use our free Partial Fraction Decomposition Calculator to instantly break down rational functions and verify your integration steps.

Decompose Now