Partial Fractions

Partial Fractions breaks a rational function into a sum of simpler fractions, each of which is easier to integrate or analyze.

P(x)(xa)(xb)=Axa+Bxb\frac{P(x)}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}

Solve a problem with Partial Fractions

Type the problem. The solver will use Partial Fractions where Partial Fractions is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Partial Fractions takes
PP
AA
BB
aa
bb
xx
Partial Fractions
SymbolMeaning
PPThe numerator polynomial; confusing it with the full fraction's value obscures the structure of the decomposition.
AAThe constant numerator of the first decomposed fraction; writing it as a polynomial instead breaks the method.
BBThe constant numerator of the second decomposed fraction; treating it as a variable rather than a constant defeats the purpose.
aaThe first root of the denominator (where xa=0x-a = 0); misidentifying it prevents correct substitution when solving for AA and BB.
bbThe second root of the denominator (where xb=0x-b = 0); it must be distinct from aa, and swapping them produces wrong results.
xxThe variable in the rational function; treating it as a constant makes it impossible to solve for AA and BB by substitution.

When to use it

When you need to integrate a rational function or decompose it into simpler components for analysis.

Level

Usually taught in: Calculus II

Worked examples

1. Decompose a fraction with a constant numerator

Problem

Decompose 5(x1)(x2)\frac{5}{(x-1)(x-2)} into partial fractions.
  1. 5(x1)(x2)=Ax1+Bx2\frac{5}{(x-1)(x-2)} = \frac{A}{x-1} + \frac{B}{x-2}

    Set up the partial fraction form by expressing the single fraction as a sum of fractions with unknown constants AA and BB.

  2. 5=A(x2)+B(x1)5 = A(x-2) + B(x-1)

    Multiply both sides by the common denominator (x1)(x2)(x-1)(x-2) to clear all fractions.

  3. x=1:5=A(12)+B(0)=A,A=5x = 1: \quad 5 = A(1-2) + B(0) = -A, \quad A = -5

    Substitute x=1x = 1 to eliminate the BB term and solve for AA: we get 5=A5 = -A, so A=5A = -5.

  4. x=2:5=A(0)+B(21)=B,B=5x = 2: \quad 5 = A(0) + B(2-1) = B, \quad B = 5

    Substitute x=2x = 2 to eliminate the AA term and solve for BB: we get 5=B5 = B, so B=5B = 5.

Answer: 5(x1)(x2)=5x1+5x2\frac{5}{(x-1)(x-2)} = \frac{-5}{x-1} + \frac{5}{x-2}

We set up the form with unknown constants AA and BB, then multiply to clear denominators. Substituting the roots x=1x=1 and x=2x=2 eliminates one term each time, leaving a simple equation for the unknown. This method is quick and reliable for non-repeated linear factors.

2. Decompose a fraction with a linear numerator

Problem

Decompose 3x1(x+1)(x2)\frac{3x-1}{(x+1)(x-2)} into partial fractions.
  1. 3x1(x+1)(x2)=Ax+1+Bx2\frac{3x-1}{(x+1)(x-2)} = \frac{A}{x+1} + \frac{B}{x-2}

    Set up the partial fraction form with unknown constants AA and BB.

  2. 3x1=A(x2)+B(x+1)3x - 1 = A(x-2) + B(x+1)

    Multiply both sides by (x+1)(x2)(x+1)(x-2) to eliminate the denominators.

  3. x=1:3(1)1=A(3)+B(0)=3A,4=3A,A=43x = -1: \quad 3(-1) - 1 = A(-3) + B(0) = -3A, \quad -4 = -3A, \quad A = \frac{4}{3}

    Substitute x=1x = -1 to find AA: we get 4=3A-4 = -3A, so A=43A = \frac{4}{3}.

  4. x=2:3(2)1=A(0)+B(3)=3B,5=3B,B=53x = 2: \quad 3(2) - 1 = A(0) + B(3) = 3B, \quad 5 = 3B, \quad B = \frac{5}{3}

    Substitute x=2x = 2 to find BB: we get 5=3B5 = 3B, so B=53B = \frac{5}{3}.

Answer: 3x1(x+1)(x2)=4/3x+1+5/3x2\frac{3x-1}{(x+1)(x-2)} = \frac{4/3}{x+1} + \frac{5/3}{x-2}

Even when the numerator is not constant, we apply the same substitution method. The numerator 3x13x-1 is a first-degree polynomial, which fits the framework where the numerator degree is strictly less than the denominator degree. The fractional constants A=43A = \frac{4}{3} and B=53B = \frac{5}{3} are normal and expected; they show that partial fractions works beyond just integer solutions.

3. Decompose a rate function in a cyclist's training scenario

Problem

A cyclist rides over a hill. The acceleration at different points on the route (in m/s²) is given by 70(t1)(t5)\frac{70}{(t-1)(t-5)}, where tt is time in minutes from the base of the hill. Decompose this into partial fractions.
  1. 70(t1)(t5)=At1+Bt5\frac{70}{(t-1)(t-5)} = \frac{A}{t-1} + \frac{B}{t-5}

    Set up the partial fraction form with unknown constants AA and BB.

  2. 70=A(t5)+B(t1)70 = A(t-5) + B(t-1)

    Multiply both sides by (t1)(t5)(t-1)(t-5) to clear the denominators.

  3. t=1:70=A(15)+B(0)=4A,A=704=352t = 1: \quad 70 = A(1-5) + B(0) = -4A, \quad A = -\frac{70}{4} = -\frac{35}{2}

    Substitute t=1t = 1 to solve for AA: we get 70=4A70 = -4A, so A=352A = -\frac{35}{2}.

  4. t=5:70=A(0)+B(51)=4B,B=704=352t = 5: \quad 70 = A(0) + B(5-1) = 4B, \quad B = \frac{70}{4} = \frac{35}{2}

    Substitute t=5t = 5 to solve for BB: we get 70=4B70 = 4B, so B=352B = \frac{35}{2}.

Answer: 70(t1)(t5)=35/2t1+35/2t5\frac{70}{(t-1)(t-5)} = \frac{-35/2}{t-1} + \frac{35/2}{t-5}

In applied contexts, partial fractions decompose a complex rate into interpretable components. Here, the negative and positive terms represent different physical effects contributing to the cyclist's acceleration profile up and down the hill. Once decomposed, each term integrates easily using ctadt=clnta+C\int \frac{c}{t-a} dt = c \ln|t-a| + C, making it straightforward to calculate total displacement over any time interval.

Common mistakes

Where Partial Fractions usually goes wrong
Answer came out wrong
5(x1)(x2)=Axx1+Bxx2\frac{5}{(x-1)(x-2)} = \frac{Ax}{x-1} + \frac{Bx}{x-2}
Use Ax1+Bx2\frac{A}{x-1} + \frac{B}{x-2} with AA and BB as constants only.
Starting with 5(x1)(x2)=Ax1+Bx2\frac{5}{(x-1)(x-2)} = \frac{A}{x-1} + \frac{B}{x-2} and immediately substituting x=1x=1 to get 50=A0+B1\frac{5}{0} = \frac{A}{0} + \frac{B}{-1}
Multiply both sides by (x1)(x2)(x-1)(x-2) first to get 5=A(x2)+B(x1)5 = A(x-2) + B(x-1), then substitute.
7(x1)2=Ax1+Bx1\frac{7}{(x-1)^2} = \frac{A}{x-1} + \frac{B}{x-1}
For (x1)2(x-1)^2, write Ax1+B(x1)2\frac{A}{x-1} + \frac{B}{(x-1)^2}, not two fractions with the same denominator.
The mistakeWhy it is wrongThe fix
5(x1)(x2)=Axx1+Bxx2\frac{5}{(x-1)(x-2)} = \frac{Ax}{x-1} + \frac{Bx}{x-2}The numerators must be constants, not polynomials or multiples of xx, when decomposing into simple linear factors.Use Ax1+Bx2\frac{A}{x-1} + \frac{B}{x-2} with AA and BB as constants only.
Starting with 5(x1)(x2)=Ax1+Bx2\frac{5}{(x-1)(x-2)} = \frac{A}{x-1} + \frac{B}{x-2} and immediately substituting x=1x=1 to get 50=A0+B1\frac{5}{0} = \frac{A}{0} + \frac{B}{-1}Substituting into the original unsimplified equation produces undefined expressions; you must clear denominators first.Multiply both sides by (x1)(x2)(x-1)(x-2) first to get 5=A(x2)+B(x1)5 = A(x-2) + B(x-1), then substitute.
7(x1)2=Ax1+Bx1\frac{7}{(x-1)^2} = \frac{A}{x-1} + \frac{B}{x-1}Repeated factors require different numerator forms with increasing powers; writing two identical terms does not give enough flexibility to solve for the constants.For (x1)2(x-1)^2, write Ax1+B(x1)2\frac{A}{x-1} + \frac{B}{(x-1)^2}, not two fractions with the same denominator.

Tips and when to use something else

  • Verify your answer by combining the decomposed fractions back together: add them using a common denominator and check that you recover the original fraction.
  • If the numerator's degree is greater than or equal to the denominator's degree, first perform polynomial long division; the remainder becomes the numerator for partial fractions.
  • The power of partial fractions is that each term Axa\frac{A}{x-a} integrates to Alnxa+CA \ln|x-a| + C, transforming a difficult rational integral into a sum of logarithms.
  • If the denominator contains an irreducible quadratic factor like x2+1x^2+1 or x2+x+1x^2+x+1, use Trigonometric Substitution instead of partial fractions.

Frequently asked questions

Why use partial fractions if I can just integrate the original fraction?
Most rational functions cannot be integrated directly. Partial fractions transforms a complicated fraction into simple terms like Axa\frac{A}{x-a}, each of which integrates easily using Axadx=Alnxa+C\int \frac{A}{x-a} dx = A \ln|x-a| + C. Without decomposing, you have no straightforward integration path.
What do I do if the roots of the denominator are repeated, like (x1)2(x-1)^2 instead of (x1)(x2)(x-1)(x-2)?
Repeated factors require a different decomposition form: Ax1+B(x1)2\frac{A}{x-1} + \frac{B}{(x-1)^2}. You must include all powers of the repeated factor, from the first power up to the highest power appearing in the denominator.
Can I use partial fractions if the numerator's degree is larger than the denominator's degree?
Not directly. Use polynomial long division to split the fraction into a polynomial part and a proper rational part (where numerator degree is less than denominator degree). Then apply partial fractions only to the remainder and integrate or analyze both pieces separately.
What is the difference between partial fractions and other integration techniques like Integration by Parts or Trigonometric Substitution?
Partial fractions is specific to rational functions (ratios of polynomials) with factorable denominators. For irreducible quadratic terms in the denominator, use Trigonometric Substitution. For products of different function types, use Integration by Parts. Each technique targets a different function form.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18