This Partial Fraction Decomposition Calculator finds the coefficients in the split of a rational function into partial fractions. Enter your numerator and denominator polynomials, and the calculator outputs the decomposed form in a readable, simplified structure.
Partial fractions make integrals easier, help with inverse Laplace transforms, and simplify algebraic expressions. The calculator supports common cases like distinct linear factors and repeated linear factors.
What Partial Fraction Decomposition Means
Partial fraction decomposition rewrites a rational function (a ratio of polynomials) as a sum of simpler fractions. This is useful because integrals and transforms become much easier when the denominator is split into factors.
A typical form looks like:
- Distinct linear factors: \(\frac{P(x)}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}\)
- Repeated linear factors: \(\frac{P(x)}{(x-a)^2} = \frac{A}{x-a} + \frac{B}{(x-a)^2}\)
Core Idea and Variables
Let your rational function be:
\(R(x)=\frac{P(x)}{Q(x)}\), where:
- P(x) is the numerator polynomial you enter
- Q(x) is the denominator polynomial you enter
- Q(x) is assumed to factor into linear terms (the calculator targets these common cases)
The calculator computes unknown coefficients (like \(A, B, C\)) so that the identity holds for all \(x\) in the domain where the function is defined.
How the Calculator Computes Coefficients
For a factored denominator, the calculator builds an ansatz (a structured form) matching the factor pattern. Then it solves for coefficients by equating polynomials.
Step-by-step workflow
- Factor the denominator into linear factors (e.g., \((x-2)(x+1)\)).
- Choose the partial fraction form based on factor multiplicities.
- Multiply through by the common denominator to remove fractions.
- Equate coefficients of like powers of \(x\).
- Simplify and present the final decomposition.
If your denominator does not match the calculator’s supported patterns, you’ll get a clear error message in the calculator output.
Supported Denominator Patterns
The calculator is designed for the most common classroom and practical setups. It handles:
- Distinct linear factors (e.g., \((x-a)(x-b)(x-c)\))
- Repeated linear factors (e.g., \((x-a)^2\), \((x-a)^3\))
- Numerator polynomials with degree less than the denominator (or the calculator will reduce by polynomial long division when needed)
For denominators with irreducible quadratic factors, additional forms are needed. If that’s your case, the calculator may not fully solve it.
Input Guidance (What to Type)
You enter polynomials in a simple format that the calculator can read. Use standard powers like x^2 and x. Coefficients can be integers or decimals.
Examples of valid terms:
- 2x^2
- -3x
- 5 (constant)
- 1.5x^3
Keep the expression as a polynomial. Don’t include division symbols in the numerator or denominator fields—only the polynomial itself.
Output: What You Get Back
After solving, the calculator returns:
- Decomposition form matching the factor structure of \(Q(x)\)
- Coefficients (values of \(A, B, \dots\))
- Optional remainder if polynomial long division was required
The result is formatted to be directly usable in integrals, such as \(\int R(x)\,dx\).
Practical Examples
Example 1: Distinct linear factors
Decompose:
\(\frac{x+3}{(x-1)(x+2)}\)
The partial fraction form is:
\(\frac{x+3}{(x-1)(x+2)}=\frac{A}{x-1}+\frac{B}{x+2}\)
Solving for \(A\) and \(B\) gives coefficients that you can plug directly into an integral. If you’re checking by hand, multiplying both sides by \((x-1)(x+2)\) is the fastest verification.
Example 2: Repeated factor
Decompose:
\(\frac{2x}{(x-1)^2(x+3)}\)
The denominator has a repeated factor \((x-1)^2\), so the form becomes:
\(\frac{2x}{(x-1)^2(x+3)}=\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{x+3}\)
The calculator sets up this structure automatically, then solves for \(A\), \(B\), and \(C\) by coefficient matching.
Using the Result in Integrals
Partial fractions turn many rational integrals into sums of simpler logs and powers. For example:
- \(\frac{1}{x-a}\) integrates to \(\ln|x-a|\)
- \(\frac{1}{(x-a)^k}\) integrates to a power expression when \(k\neq 1\)
Once the calculator provides the decomposition, integrate term-by-term with standard rules.
Common Mistakes to Avoid
- Wrong partial fraction form: the numerator must match the multiplicity pattern of the denominator factors.
- Forgetting polynomial division: if \(\deg(P)\ge\deg(Q)\), you must divide first.
- Algebra errors when matching coefficients: keep signs careful and verify by substituting a few values of \(x\).
- Assuming any denominator works: the calculator targets factorable linear patterns.
Frequently Asked Questions
What is a Partial Fraction Decomposition Calculator used for?
A Partial Fraction Decomposition Calculator splits a rational function \(P(x)/Q(x)\) into simpler fractions with denominators that match the factors of \(Q(x)\). The main goal is to make integration, inverse Laplace transforms, and algebraic simplification faster and less error-prone.
How do I know what partial fraction form to use?
The form depends on how the denominator factors. For each distinct linear factor \((x-a)\), you include a term like \(A/(x-a)\). For a repeated factor \((x-a)^k\), you include \(A/(x-a)+B/(x-a)^2+\dots\) up to power \(k\).
Why does polynomial long division sometimes happen first?
If the numerator degree is greater than or equal to the denominator degree, the rational function is not a proper fraction. Long division produces a polynomial plus a proper fraction. The calculator automatically does this so the partial fractions step applies correctly.
Can I use it for denominators with quadratic factors?
Many partial fraction problems include irreducible quadratic factors like \(x^2+1\). The standard approach uses linear-over-quadratic terms and possibly \( (Ax+B)/(x^2+1)\). This calculator focuses on common linear-factor patterns; for quadratics you may need an expanded solver.
How can I verify the result quickly?
To verify, multiply the decomposed expression by the original denominator \(Q(x)\). The result should simplify to the numerator polynomial \(P(x)\). You can also test by plugging in several safe values of \(x\) that do not zero out \(Q(x)\).
Next Steps
Use the calculator above to generate the decomposition, then integrate or simplify with confidence. If you want to double-check, multiply back by the denominator and compare to your original numerator.
When your problem matches the supported factor patterns, this tool gives correct coefficients in seconds.



