Integration by Partial Fractions The idea When the denominator of a rational function factors into distinct linear pieces, the whole fraction can be rewritten as a sum of simpler fractions, each of which has a known antiderivative involving a logarithm:
∫ 1 x − a d x = ln ∣ x − a ∣ + C \int \dfrac{1}{x-a}\,dx = \ln|x-a| + C ∫ x − a 1 d x = ln ∣ x − a ∣ + C Partial-fraction forms The form to write depends on the factors of the denominator. This only works when the fraction is proper (the numerator's degree is lower than the denominator's). If it isn't, divide first.
Which partial fractions to write for each kind of factor in the denominator Denominator contains Write it as ( x − a ) ( x − b ) (x - a)(x - b) ( x − a ) ( x − b ) , distinct linear factorsA x − a + B x − b \dfrac{A}{x - a} + \dfrac{B}{x - b} x − a A + x − b B ( x − a ) 2 (x - a)^2 ( x − a ) 2 , a repeated linear factorA x − a + B ( x − a ) 2 \dfrac{A}{x - a} + \dfrac{B}{(x - a)^2} x − a A + ( x − a ) 2 B ( x − a ) 2 ( x − b ) (x - a)^2(x - b) ( x − a ) 2 ( x − b ) A x − a + B ( x − a ) 2 + C x − b \dfrac{A}{x - a} + \dfrac{B}{(x - a)^2} + \dfrac{C}{x - b} x − a A + ( x − a ) 2 B + x − b C ( x − a ) ( x 2 + b x + c ) (x - a)(x^2 + bx + c) ( x − a ) ( x 2 + b x + c ) , with an irreducible quadraticA x − a + B x + C x 2 + b x + c \dfrac{A}{x - a} + \dfrac{Bx + C}{x^2 + bx + c} x − a A + x 2 + b x + c B x + C
Worked example Find ∫ x ( x + 1 ) ( x + 2 ) d x \displaystyle\int \dfrac{x}{(x+1)(x+2)}\,dx ∫ ( x + 1 ) ( x + 2 ) x d x .
Solution: Write x ( x + 1 ) ( x + 2 ) = A x + 1 + B x + 2 \dfrac{x}{(x+1)(x+2)} = \dfrac{A}{x+1} + \dfrac{B}{x+2} ( x + 1 ) ( x + 2 ) x = x + 1 A + x + 2 B , so x = A ( x + 2 ) + B ( x + 1 ) x = A(x+2) + B(x+1) x = A ( x + 2 ) + B ( x + 1 ) . Setting x = − 1 x=-1 x = − 1 gives A = − 1 A=-1 A = − 1 ; setting x = − 2 x=-2 x = − 2 gives B = 2 B=2 B = 2 :
∫ ( − 1 x + 1 + 2 x + 2 ) d x = − ln ∣ x + 1 ∣ + 2 ln ∣ x + 2 ∣ + C = ln ( x + 2 ) 2 ∣ x + 1 ∣ + C \int \left(\dfrac{-1}{x+1} + \dfrac{2}{x+2}\right)dx = -\ln|x+1| + 2\ln|x+2| + C = \ln\dfrac{(x+2)^2}{|x+1|} + C ∫ ( x + 1 − 1 + x + 2 2 ) d x = − ln ∣ x + 1∣ + 2 ln ∣ x + 2∣ + C = ln ∣ x + 1∣ ( x + 2 ) 2 + C Worked example Find ∫ 2 x x 2 + 3 x + 2 d x \displaystyle\int \dfrac{2x}{x^2+3x+2}\,dx ∫ x 2 + 3 x + 2 2 x d x .
Solution: The denominator factors as ( x + 1 ) ( x + 2 ) (x+1)(x+2) ( x + 1 ) ( x + 2 ) . Writing 2 x ( x + 1 ) ( x + 2 ) = A x + 1 + B x + 2 \dfrac{2x}{(x+1)(x+2)} = \dfrac{A}{x+1} + \dfrac{B}{x+2} ( x + 1 ) ( x + 2 ) 2 x = x + 1 A + x + 2 B gives 2 x = A ( x + 2 ) + B ( x + 1 ) 2x = A(x+2)+B(x+1) 2 x = A ( x + 2 ) + B ( x + 1 ) . Setting x = − 1 x=-1 x = − 1 : A = − 2 A=-2 A = − 2 . Setting x = − 2 x=-2 x = − 2 : B = 4 B=4 B = 4 :
∫ ( − 2 x + 1 + 4 x + 2 ) d x = 4 ln ∣ x + 2 ∣ − 2 ln ∣ x + 1 ∣ + C \int \left(\dfrac{-2}{x+1} + \dfrac{4}{x+2}\right)dx = 4\ln|x+2| - 2\ln|x+1| + C ∫ ( x + 1 − 2 + x + 2 4 ) d x = 4 ln ∣ x + 2∣ − 2 ln ∣ x + 1∣ + C Worked example: a repeated factor Find ∫ 1 ( x − 1 ) 2 ( x + 2 ) d x \displaystyle\int \dfrac{1}{(x-1)^2(x+2)}\,dx ∫ ( x − 1 ) 2 ( x + 2 ) 1 d x .
Solution: Write 1 ( x − 1 ) 2 ( x + 2 ) = A x − 1 + B ( x − 1 ) 2 + D x + 2 \dfrac{1}{(x-1)^2(x+2)} = \dfrac{A}{x-1} + \dfrac{B}{(x-1)^2} + \dfrac{D}{x+2} ( x − 1 ) 2 ( x + 2 ) 1 = x − 1 A + ( x − 1 ) 2 B + x + 2 D , so 1 = A ( x − 1 ) ( x + 2 ) + B ( x + 2 ) + D ( x − 1 ) 2 1 = A(x-1)(x+2) + B(x+2) + D(x-1)^2 1 = A ( x − 1 ) ( x + 2 ) + B ( x + 2 ) + D ( x − 1 ) 2 . Setting x = 1 x = 1 x = 1 gives B = 1 3 B = \dfrac{1}{3} B = 3 1 , and setting x = − 2 x = -2 x = − 2 gives D = 1 9 D = \dfrac{1}{9} D = 9 1 . Comparing the x 2 x^2 x 2 coefficients, 0 = A + D 0 = A + D 0 = A + D , so A = − 1 9 A = -\dfrac{1}{9} A = − 9 1 :
∫ ( − 1 / 9 x − 1 + 1 / 3 ( x − 1 ) 2 + 1 / 9 x + 2 ) d x = 1 9 ln ∣ x + 2 x − 1 ∣ − 1 3 ( x − 1 ) + C \int \left(\dfrac{-1/9}{x-1} + \dfrac{1/3}{(x-1)^2} + \dfrac{1/9}{x+2}\right)dx = \dfrac{1}{9}\ln\left|\dfrac{x+2}{x-1}\right| - \dfrac{1}{3(x-1)} + C ∫ ( x − 1 − 1/9 + ( x − 1 ) 2 1/3 + x + 2 1/9 ) d x = 9 1 ln x − 1 x + 2 − 3 ( x − 1 ) 1 + C The repeated-factor term integrates as a power, not a logarithm: ∫ ( x − 1 ) − 2 d x = − ( x − 1 ) − 1 \int (x-1)^{-2}\,dx = -(x-1)^{-1} ∫ ( x − 1 ) − 2 d x = − ( x − 1 ) − 1 .
Worked example: a quadratic factor Find ∫ 2 x ( x + 1 ) ( x 2 + 1 ) d x \displaystyle\int \dfrac{2x}{(x+1)(x^2+1)}\,dx ∫ ( x + 1 ) ( x 2 + 1 ) 2 x d x .
Solution: x 2 + 1 x^2 + 1 x 2 + 1 has no real factors, so its numerator is linear: 2 x ( x + 1 ) ( x 2 + 1 ) = A x + 1 + B x + D x 2 + 1 \dfrac{2x}{(x+1)(x^2+1)} = \dfrac{A}{x+1} + \dfrac{Bx + D}{x^2+1} ( x + 1 ) ( x 2 + 1 ) 2 x = x + 1 A + x 2 + 1 B x + D . Then 2 x = A ( x 2 + 1 ) + ( B x + D ) ( x + 1 ) 2x = A(x^2+1) + (Bx + D)(x+1) 2 x = A ( x 2 + 1 ) + ( B x + D ) ( x + 1 ) . Setting x = − 1 x = -1 x = − 1 gives A = − 1 A = -1 A = − 1 . Comparing x 2 x^2 x 2 coefficients, 0 = A + B 0 = A + B 0 = A + B , so B = 1 B = 1 B = 1 . Comparing constants, 0 = A + D 0 = A + D 0 = A + D , so D = 1 D = 1 D = 1 :
∫ ( − 1 x + 1 + x x 2 + 1 + 1 x 2 + 1 ) d x = − ln ∣ x + 1 ∣ + 1 2 ln ( x 2 + 1 ) + tan − 1 x + C \int \left(\dfrac{-1}{x+1} + \dfrac{x}{x^2+1} + \dfrac{1}{x^2+1}\right)dx = -\ln|x+1| + \dfrac{1}{2}\ln(x^2+1) + \tan^{-1}x + C ∫ ( x + 1 − 1 + x 2 + 1 x + x 2 + 1 1 ) d x = − ln ∣ x + 1∣ + 2 1 ln ( x 2 + 1 ) + tan − 1 x + C Common mistakes Skipping the division step. x 2 ( x + 1 ) ( x + 2 ) \dfrac{x^2}{(x+1)(x+2)} ( x + 1 ) ( x + 2 ) x 2 is improper (degree 2 over degree 2), so divide first: it equals 1 − 3 x + 2 ( x + 1 ) ( x + 2 ) 1 - \dfrac{3x + 2}{(x+1)(x+2)} 1 − ( x + 1 ) ( x + 2 ) 3 x + 2 .Writing only one term for a repeated factor. ( x − 1 ) 2 (x-1)^2 ( x − 1 ) 2 needs both A x − 1 \dfrac{A}{x-1} x − 1 A and B ( x − 1 ) 2 \dfrac{B}{(x-1)^2} ( x − 1 ) 2 B .Putting a constant over an irreducible quadratic. Over x 2 + 1 x^2 + 1 x 2 + 1 the numerator must be B x + C Bx + C B x + C , not just B B B .Continue learning Partial fractions are one technique for a rational integrand: some standard rational forms have their own ready-made formulas instead.