Free • Accurate • No sign-up required
Step-by-Step Algebra Engine

Partial Fractions Decomposition Calculator

Enter any rational function and get its full partial fraction decomposition — factored denominator, matched coefficients, solved linear system, and the final simplified answer — computed live in your browser.

100%Client-side, no server delay
Polynomial degrees supported
0sSign-up or install required

Decompose Your Rational Function

Type the numerator and denominator as polynomials in x. Example: 3x^2 - 2x + 1

RESULT Final Partial Fraction Decomposition

STEPS Full Worked Solution

    Why This Tool

    Built for Real Algebra, Not Guesswork

    Every decomposition is computed live using polynomial factoring and linear algebra — never simulated or hard-coded.

    Handles Any Denominator

    Distinct linear factors, repeated roots, and irreducible quadratics are all detected and decomposed automatically.

    Improper Fractions Supported

    When the numerator's degree is equal to or greater than the denominator's, long division runs first automatically.

    Full Step-by-Step Solution

    Factoring, coefficient set-up, the linear system, and the solved values — every step shown clearly, not just the answer.

    Instant, Client-Side Compute

    Runs entirely in your browser with no server round-trip, so results appear the moment you click Decompose.

    Optional Integral Form

    Switch to "Decompose + Integrate" mode to also see the antiderivative of the decomposed rational function.

    Copy & Download Results

    Grab the final answer instantly or download the full worked solution as a plain-text file for your notes.

    Process

    How the Calculator Works

    01

    Enter the Fraction

    Type your numerator and denominator polynomials in standard form using ^ for powers.

    02

    Factor the Denominator

    The engine finds rational and numerical roots to split the denominator into linear and quadratic factors.

    03

    Solve the System

    Unknown coefficients are matched and solved using Gaussian elimination on the resulting linear system.

    04

    Get Your Answer

    The page scrolls to your fully simplified, decomposed expression with every intermediate step shown.

    Partial Fractions Decomposition: A Complete, Practical Guide

    Partial fractions decomposition is one of those algebra techniques that seems fiddly the first time you meet it and then becomes almost automatic once you've worked through a handful of examples. At its core, decomposition of fractions means taking a single, often messy, rational expression — a polynomial divided by another polynomial — and rewriting it as a sum of simpler pieces, each with its own small denominator. Instead of staring at one intimidating fraction, you end up with two, three, or more manageable terms that are far easier to integrate, differentiate, or just reason about.

    What Is Partial Fractions Decomposition?

    Formally, decomposition of partial fractions starts with a proper rational function N(x)/D(x), where the degree of the numerator N(x) is strictly less than the degree of the denominator D(x). The denominator is factored completely into linear factors, repeated linear factors, and irreducible quadratic factors. Each type of factor contributes its own term to the decomposition: a distinct linear factor (x − a) gives a term A/(x − a); a repeated factor (x − a)^n gives a chain of terms up to A_n/(x − a)^n; and an irreducible quadratic (x² + bx + c) contributes a term shaped like (Bx + C)/(x² + bx + c). If the original fraction is improper — meaning the numerator's degree is equal to or larger than the denominator's — polynomial long division is applied first, separating out a whole polynomial part before the remaining proper fraction is decomposed.

    Why Decomposition Matters: Integrals by Partial Fractions

    The most common reason students encounter this topic is integral calculus. Many rational functions that look impossible to integrate directly become trivial once decomposed. Integrals by partial fractions convert a single complicated integral into a handful of standard forms: ∫A/(x − a) dx becomes a natural logarithm, ∫(Bx + C)/(x² + bx + c) dx typically splits into a logarithmic piece and an arctangent piece, and repeated factors lead to simple power-rule integrals. This is precisely why a solid partial fractions decomposition calculator is such a useful companion for calculus coursework — it doesn't just hand you an answer, it shows the factoring and coefficient-matching that make the following integration step make sense.

    The General Formula

    For a denominator that factors as (x − a)(x − b)(x² + cx + d), the general partial fraction formula looks like this:

    N(x) / [(x−a)(x−b)(x²+cx+d)] = A/(x−a) + B/(x−b) + (Cx+D)/(x²+cx+d)

    To find A, B, C, and D, both sides are multiplied by the full denominator, the resulting polynomial identity is expanded, and coefficients of matching powers of x are set equal to each other. This produces a system of linear equations that can be solved with substitution, elimination, or matrix methods — exactly what happens automatically inside the calculator above.

    Worked Example

    Take (3x + 5)/(x² − 1). The denominator factors as (x − 1)(x + 1), both distinct linear factors, so the decomposition takes the form A/(x−1) + B/(x+1). Clearing denominators gives 3x + 5 = A(x+1) + B(x−1). Substituting x = 1 gives 8 = 2A, so A = 4. Substituting x = −1 gives 2 = −2B, so B = −1. The final decomposed form is 4/(x−1) − 1/(x+1), which is exactly what the calculator returns when you try the first example chip above.

    Common Problems and Edge Cases

    A few situations trip students up repeatedly: repeated linear factors need one unknown per power, not just one for the whole factor; irreducible quadratics need a linear numerator (Bx + C), not just a constant; and improper fractions must be reduced with long division before decomposition even starts. This calculator checks for all of these automatically and validates your input in real time, flagging issues like unbalanced parentheses or a zero denominator before you even hit submit.

    Reference Table of Standard Forms

    Denominator FactorPartial Fraction Term(s)
    (x − a), distinctA / (x − a)
    (x − a)², repeatedA/(x − a) + B/(x − a)²
    (x − a)ⁿ, repeatedA₁/(x−a) + A₂/(x−a)² + ... + Aₙ/(x−a)ⁿ
    x² + bx + c, irreducible(Bx + C) / (x² + bx + c)

    How to Use This Partial Fractions Decomposition Calculator

    Type your numerator and denominator in standard algebraic notation, using ^ for exponents and * for multiplication where needed (multiplication signs between a coefficient and a variable, like 3x, do not require a symbol). Choose whether you also want the antiderivative, then click Decompose Now. The page will scroll to a results panel showing the fully factored denominator, the coefficient-matching equations, the solved linear system, and the final simplified answer, which you can copy or download for later reference.

    FAQ

    Frequently Asked Questions

    How many partial fractions decomposition calculators exist compared to derivative calculators online?

    There are far fewer dedicated partial fraction calculators than derivative calculators, because decomposition requires polynomial root-finding, not just differentiation rules. Most calculator directories list only a handful of tools that show genuine algebraic steps rather than a bare numeric answer — this page aims to be one of the thorough ones.

    How many partial fractions decomposition calculator steps are shown for a repeated linear factor?

    For a repeated linear factor such as (x − 2)³, this calculator assigns one unknown coefficient per power: A/(x−2), B/(x−2)², and C/(x−2)³. In total that usually means three to five worked steps, covering factoring, clearing denominators, matching coefficients, and solving the linear system.

    How many terms appear in a partial fractions decomposition calculator result for a degree-4 denominator?

    A degree-4 denominator generally produces between two and four partial fraction terms, depending on how it factors. Two irreducible quadratic factors give two terms, while four distinct real roots give four separate linear-factor terms — the calculator determines and labels this automatically for your specific input.

    What's the difference between a proper and an improper rational function?

    A rational function is proper when the numerator's degree is strictly less than the denominator's degree, and improper otherwise. Improper fractions must go through polynomial long division first; this calculator detects that automatically and shows the quotient plus the remaining proper fraction before decomposing it.

    Can this calculator handle irreducible quadratic factors and complex roots?

    Yes. When a factor of the denominator has no real roots, it's kept as an irreducible quadratic and given a linear numerator (Bx + C) instead of a single constant, matching the standard partial fraction rules taught in calculus courses.

    Explore More Free Calculators

    From transforms to trigonometry, browse the full suite of maths and physics tools built for students and engineers.