What are partial fractions?
Partial fractions are a way of breaking a complicated rational function, which is one polynomial divided by another, into a sum of simpler fractions that are easy to integrate. The fraction (2x plus 3) over ((x minus 1)(x plus 2)) becomes 5 over 3 divided by (x minus 1), plus 1 over 3 divided by (x plus 2), and each of those integrates to a logarithm. The decomposition is the standard first step in integrating rational functions, and it is a core technique in calculus.
This calculator decomposes a proper rational function whose denominator is a product of linear factors, and shows each partial fraction term. For the polynomial division that must come first when the fraction is not proper, a fraction calculator covers that step, while this page handles the decomposition itself.
Your figures stay on your own device because the whole calculation happens in the browser. Nothing is uploaded, nothing is stored, and there is no account to create. That makes it safe to try realistic numbers, including the ones you would not want to paste into a random website. It also means the tool works the same way on a phone, a tablet or a computer, with nothing to install.
How partial fraction decomposition works
The method starts by writing the decomposition with unknown constants: one term for each linear factor, of the form A over (x minus a), B over (x minus b), and so on. Multiply both sides by the denominator to clear the fractions, and you get an equation between two polynomials that must hold for every x. Equate the coefficients of matching powers, or substitute convenient values of x, and solve the resulting linear system for the constants. A repeated factor needs extra terms, with powers of the factor in the denominator.
The numerator is entered as its coefficients, highest degree first, and it must have a lower degree than the denominator, which is what makes the fraction proper. The denominator is entered as the roots of its linear factors: a root of 1 means a factor of (x minus 1), and a root of minus 2 means a factor of (x plus 2). A root entered twice means a repeated factor, which gets two terms in the decomposition.
Each term row shows one partial fraction, with its constant over its factor, and the count row says how many terms there are. The sum of the terms equals the original fraction exactly, which is the check that the decomposition is correct. A term with a zero constant still counts as a term, although it contributes nothing to the sum.
The results are rounded for display, usually to two decimal places, while the calculation itself keeps full precision. That means a figure shown as 12.41 percent may be 12.405 percent underneath, and using the displayed figure in a further calculation can introduce a small rounding difference. For most purposes the displayed figure is exact enough, but if you need more precision, work from the unrounded inputs rather than from the rounded outputs.
The denominator factors, explained
The denominator factors are the input that decides the shape of the decomposition, and they must be linear factors with known roots. The calculator takes the roots directly, so a denominator of (x minus 1)(x plus 2) is entered as the roots 1 and minus 2. A quadratic factor that cannot be factored into linear factors needs a different form, with a term (Cx plus D) over the quadratic, which this calculator does not handle.
A repeated factor changes the form: a factor (x minus a) squared needs two terms, A over (x minus a) plus B over (x minus a) squared, because one term alone cannot match the numerator. The calculator supports that by entering the root twice, and it creates one term for each power up to the multiplicity. The number of terms always equals the degree of the denominator, which is the number of constants to solve for.
The degree condition matters: the numerator must have a lower degree than the denominator, or the fraction is improper and must be divided first. Dividing an improper fraction gives a polynomial plus a proper fraction, and only the proper part is decomposed into partial fractions. If you enter an improper fraction here, the calculator returns no terms, and the polynomial division calculator is the tool to use first.
A worked example: (2x + 3) over ((x - 1)(x + 2))
Take the fraction (2x plus 3) divided by ((x minus 1)(x plus 2)), with the numerator entered as 2, 3 and the roots entered as 1, minus 2. The denominator has degree 2 and the numerator has degree 1, so the fraction is proper and the decomposition has two terms.
Write the decomposition as A over (x minus 1) plus B over (x plus 2). Multiply by the denominator to get A times (x plus 2) plus B times (x minus 1) equals 2x plus 3. Equating the coefficients of x gives A plus B equals 2, and equating the constants gives 2A minus B equals 3. Solving gives A equal to 5 over 3 and B equal to 1 over 3, so the terms are 1.67/(x - 1) and 0.33/(x + 2), and the count is 2.
The two terms add back to the original fraction, which can be checked by putting them over the common denominator. Each term integrates to a logarithm: the integral of 5 over 3 divided by (x minus 1) is 5 over 3 times the logarithm of (x minus 1), and similarly for the second term. That is the whole point of the decomposition: it turns one hard integral into two easy ones.
Who uses partial fractions
Calculus students use partial fractions to integrate rational functions, which is one of the standard techniques in a first calculus course. The decomposition is the step that makes the integral possible, and the exam questions are usually built around it, with denominators that factor neatly into linear factors.
Engineers use it in control theory and signal processing, where transfer functions are rational functions and partial fractions separate them into simple modes. Each term corresponds to a mode of the system, such as an exponential decay, and the constants decide how strongly each mode is excited.
Mathematicians use it in the theory of rational functions and in the Laplace transform, where a complicated transform is broken into simple pieces that can be inverted one at a time. A quadratic equation calculator is the tool for the quadratic equations that appear when the denominator does not factor over the real numbers.
The calculator is only as good as the numbers you type into it. A rate from last month, a measurement taken roughly, or a unit entered wrongly will all give a confident-looking answer that is simply wrong. The best habit is to enter the numbers twice, from two sources, and to check that the answer makes sense before you act on it. A result that surprises you is usually a sign to recheck the inputs, not to trust the surprise. For a related calculation, the linear equation calculator covers the next number most people need after this one.
Partial fractions vs polynomial division
Polynomial division and partial fractions are two steps of the same process, and they apply in different cases. Division is used first, when the numerator has a degree equal to or higher than the denominator, and it produces a polynomial plus a proper fraction. Partial fractions are used second, on the proper fraction, and they break it into simple terms.
The two steps are complementary: division reduces the degree, and partial fractions break the remainder into pieces. A rational function that is already proper needs no division, and a rational function that is improper needs both steps. This calculator handles the second step, and the polynomial division calculator handles the first.
Neither tool replaces the other. Pick the one that answers the exact question you have, and if the question changes halfway through, switch tools rather than forcing the first one to fit. The two tools are designed to be used together, each answering the part of the question it was built for.
Common mistakes with partial fractions
The first is trying to decompose an improper fraction without dividing first, which gives a wrong answer because the form assumes a proper fraction. The second is forgetting the extra terms for a repeated factor, which leaves too few constants to match the numerator.
The third is using a linear numerator for a quadratic factor, when an irreducible quadratic needs a term of the form (Cx plus D) over the quadratic. The fourth is making an arithmetic error in solving the linear system, which is the step where most mistakes happen.
Verify the decomposition by adding the terms back together over the common denominator: the result must equal the original fraction exactly. If it does not, one of the constants is wrong, and the linear system should be solved again.
How to use this partial fraction calculator
To use it, paste numerator coefficients (highest degree first, comma separated); paste denominator linear factors as roots (comma separated), then read the results box at the top. The main result is highlighted, and the other rows give the supporting figures. If an answer looks wrong, check the inputs first: a misplaced decimal or a wrong unit is the usual cause, not the formula.
Enter the numerator coefficients highest degree first, with zeros for missing powers, and the denominator roots as a comma-separated list, repeating a root for a repeated factor. Read the terms in order, and check them by adding them back over the common denominator. If the fraction is improper, divide it first with the polynomial division calculator.
No data leaves your device: the maths runs entirely in your browser, with no sign-up and no server round-trip. You can change a number, see the answer move, and change it back, all instantly. It is a private way to check a figure before you talk to a professional about it. The page has no tracking of the numbers you enter, and closing the tab leaves nothing behind.