Skip to content

Partial fractions, step by step

5 min read

Short answer

To integrate P(x)Q(x)\dfrac{P(x)}{Q(x)}, make sure the degree of PP is less than the degree of QQ (divide first if not), factor QQ, write the fraction as a sum with one term per factor, solve for the constants, and integrate each simple term (usually logarithms).

Steps1Divide first if deg P ≥ deg Q2Factor the denominator completely3One term per factor: A/(x−a), A/(x−a)²for repeats, (Bx+C)/(quadratic)4Multiply through and solve for A, B, C5Integrate each termPlug in the roots of the denominator to find constants quickly.
The shape of each term depends on the type of factor.

Setting up the decomposition

A distinct linear factor (x−a)(x-a) gives Ax−a\dfrac{A}{x-a}. A repeated factor (x−a)2(x-a)^2 gives Ax−a+B(x−a)2\dfrac A{x-a}+\dfrac B{(x-a)^2}. An irreducible quadratic gives Bx+Cx2+px+q\dfrac{Bx+C}{x^2+px+q}.

Finding the constants

Multiply both sides by the full denominator. Then either substitute the roots of the denominator (the cover-up method) or compare coefficients of powers of xx.

Worked example

Evaluate ∫3x+5(x−1)(x+3) dx\displaystyle\int\frac{3x+5}{(x-1)(x+3)}\,dx.

Write 3x+5(x−1)(x+3)=Ax−1+Bx+3\dfrac{3x+5}{(x-1)(x+3)}=\dfrac A{x-1}+\dfrac B{x+3}, so 3x+5=A(x+3)+B(x−1)3x+5=A(x+3)+B(x-1). At x=1x=1: 8=4A8=4A, A=2A=2. At x=−3x=-3: −4=−4B-4=-4B, B=1B=1. Then ∫(2x−1+1x+3)dx=2ln⁡∣x−1∣+ln⁡∣x+3∣+C\int\left(\dfrac2{x-1}+\dfrac1{x+3}\right)dx=2\ln|x-1|+\ln|x+3|+C.

Try it yourself

Evaluate ∫1x2−1 dx\displaystyle\int\frac{1}{x^2-1}\,dx.

Show the answer

1(x−1)(x+1)=1/2x−1−1/2x+1\dfrac1{(x-1)(x+1)}=\dfrac{1/2}{x-1}-\dfrac{1/2}{x+1}, so the integral is 12ln⁡∣x−1x+1∣+C\tfrac12\ln\left|\dfrac{x-1}{x+1}\right|+C.

Keep going with practice

Vidi's differential equation and Laplace lessons use partial fractions constantly.