Integration using partial fractions
When the integrand is a proper rational function (the degree of the numerator is less than the degree of the denominator), it can be decomposed into partial fractions before integration. This simplifies the integration process.
Forms of partial fractions
Here's a table showing some common forms of rational functions and their partial fraction decompositions:
Rational Function Partial Fraction Decomposition p x + q ( x − a ) ( x − b ) \frac{px + q}{(x - a)(x - b)} ( x − a ) ( x − b ) p x + q (where a ≠ b a \ne b a = b )A x − a + B x − b \frac{A}{x - a} + \frac{B}{x - b} x − a A + x − b B 1 x 2 − a 2 \frac{1}{x^2 - a^2} x 2 − a 2 1 A x − a + B x + a \frac{A}{x - a} + \frac{B}{x + a} x − a A + x + a B p x + q ( x − a ) 2 \frac{px + q}{(x - a)^2} ( x − a ) 2 p x + q A x − a + B ( x − a ) 2 \frac{A}{x - a} + \frac{B}{(x - a)^2} x − a A + ( x − a ) 2 B p x 2 + q x + r ( x − a ) ( x − b ) ( x − c ) \frac{px^2 + qx + r}{(x - a)(x - b)(x - c)} ( x − a ) ( x − b ) ( x − c ) p x 2 + q x + r A x − a + B x − b + C x − c \frac{A}{x - a} + \frac{B}{x - b} + \frac{C}{x - c} x − a A + x − b B + x − c C p x 2 + q x + r ( x − a ) 2 ( x − c ) \frac{px^2 + qx + r}{(x - a)^2(x - c)} ( x − a ) 2 ( x − c ) p x 2 + q x + r A x − a + B ( x − a ) 2 + C x − c \frac{A}{x - a} + \frac{B}{(x - a)^2} + \frac{C}{x - c} x − a A + ( x − a ) 2 B + x − c C p x 2 + q x + r ( x − a ) ( x 2 + b x + c ) \frac{px^2 + qx + r}{(x - a)(x^2 + bx + c)} ( x − a ) ( x 2 + b x + c ) p x 2 + q x + r (where x 2 + b x + c x^2+bx+c x 2 + b x + c is irreducible)A x − a + B x + C x 2 + b x + c \frac{A}{x - a} + \frac{Bx + C}{x^2 + bx + c} x − a A + x 2 + b x + c B x + C
Example 1: Find ∫ x 2 x 2 − 4 x + 3 d x \int \frac{x^2}{x^2 - 4x + 3} \, dx ∫ x 2 − 4 x + 3 x 2 d x .
First, we perform polynomial long division because the degree of the numerator is equal to the degree of the denominator:
x 2 x 2 − 4 x + 3 = 1 + 4 x − 3 x 2 − 4 x + 3 = 1 + 4 x − 3 ( x − 1 ) ( x − 3 ) \frac{x^2}{x^2 - 4x + 3} = 1 + \frac{4x - 3}{x^2 - 4x + 3} = 1 + \frac{4x - 3}{(x - 1)(x - 3)} x 2 − 4 x + 3 x 2 = 1 + x 2 − 4 x + 3 4 x − 3 = 1 + ( x − 1 ) ( x − 3 ) 4 x − 3
Now, decompose the fractional part into partial fractions:
4 x − 3 ( x − 1 ) ( x − 3 ) = A x − 1 + B x − 3 \frac{4x - 3}{(x - 1)(x - 3)} = \frac{A}{x - 1} + \frac{B}{x - 3} ( x − 1 ) ( x − 3 ) 4 x − 3 = x − 1 A + x − 3 B
4 x − 3 = A ( x − 3 ) + B ( x − 1 ) 4x - 3 = A(x - 3) + B(x - 1) 4 x − 3 = A ( x − 3 ) + B ( x − 1 )
If x = 1 x = 1 x = 1 , − 1 = − 2 A ⇒ A = 1 2 -1 = -2A \Rightarrow A = \frac{1}{2} − 1 = − 2 A ⇒ A = 2 1 .
If x = 3 x = 3 x = 3 , 9 = 2 B ⇒ B = 9 2 9 = 2B \Rightarrow B = \frac{9}{2} 9 = 2 B ⇒ B = 2 9 .
So, x 2 x 2 − 4 x + 3 = 1 + 1 / 2 x − 1 + 9 / 2 x − 3 \frac{x^2}{x^2 - 4x + 3} = 1 + \frac{1/2}{x - 1} + \frac{9/2}{x - 3} x 2 − 4 x + 3 x 2 = 1 + x − 1 1/2 + x − 3 9/2
∫ x 2 x 2 − 4 x + 3 d x = ∫ ( 1 + 1 / 2 x − 1 + 9 / 2 x − 3 ) d x = x + 1 2 ln ∣ x − 1 ∣ + 9 2 ln ∣ x − 3 ∣ + C \int \frac{x^2}{x^2 - 4x + 3} \, dx = \int \left(1 + \frac{1/2}{x - 1} + \frac{9/2}{x - 3}\right) \, dx = x + \frac{1}{2}\ln|x - 1| + \frac{9}{2}\ln|x - 3| + C ∫ x 2 − 4 x + 3 x 2 d x = ∫ ( 1 + x − 1 1/2 + x − 3 9/2 ) d x = x + 2 1 ln ∣ x − 1∣ + 2 9 ln ∣ x − 3∣ + C
Example 2: Determine ∫ 1 x 2 − 9 d x \int \frac{1}{x^2 - 9} \, dx ∫ x 2 − 9 1 d x .
1 x 2 − 9 = 1 ( x − 3 ) ( x + 3 ) = A x − 3 + B x + 3 \frac{1}{x^2 - 9} = \frac{1}{(x - 3)(x + 3)} = \frac{A}{x - 3} + \frac{B}{x + 3} x 2 − 9 1 = ( x − 3 ) ( x + 3 ) 1 = x − 3 A + x + 3 B
1 = A ( x + 3 ) + B ( x − 3 ) 1 = A(x + 3) + B(x - 3) 1 = A ( x + 3 ) + B ( x − 3 )
If x = 3 x = 3 x = 3 , 1 = 6 A ⇒ A = 1 6 1 = 6A \Rightarrow A = \frac{1}{6} 1 = 6 A ⇒ A = 6 1 .
If x = − 3 x = -3 x = − 3 , 1 = − 6 B ⇒ B = − 1 6 1 = -6B \Rightarrow B = -\frac{1}{6} 1 = − 6 B ⇒ B = − 6 1 .
∫ 1 x 2 − 9 d x = ∫ ( 1 / 6 x − 3 − 1 / 6 x + 3 ) d x = 1 6 ln ∣ x − 3 ∣ − 1 6 ln ∣ x + 3 ∣ + C = 1 6 ln ∣ x − 3 x + 3 ∣ + C \int \frac{1}{x^2 - 9} \, dx = \int \left(\frac{1/6}{x - 3} - \frac{1/6}{x + 3}\right) \, dx = \frac{1}{6}\ln|x - 3| - \frac{1}{6}\ln|x + 3| + C = \frac{1}{6}\ln\left|\frac{x - 3}{x + 3}\right| + C ∫ x 2 − 9 1 d x = ∫ ( x − 3 1/6 − x + 3 1/6 ) d x = 6 1 ln ∣ x − 3∣ − 6 1 ln ∣ x + 3∣ + C = 6 1 ln x + 3 x − 3 + C
Example 3: Find ∫ 5 x − 2 x ( x + 3 ) 2 d x \int \frac{5x - 2}{x(x + 3)^2} \, dx ∫ x ( x + 3 ) 2 5 x − 2 d x .
5 x − 2 x ( x + 3 ) 2 = A x + B x + 3 + C ( x + 3 ) 2 \frac{5x - 2}{x(x + 3)^2} = \frac{A}{x} + \frac{B}{x + 3} + \frac{C}{(x + 3)^2} x ( x + 3 ) 2 5 x − 2 = x A + x + 3 B + ( x + 3 ) 2 C
5 x − 2 = A ( x + 3 ) 2 + B x ( x + 3 ) + C x 5x - 2 = A(x + 3)^2 + Bx(x + 3) + Cx 5 x − 2 = A ( x + 3 ) 2 + B x ( x + 3 ) + C x
If x = 0 x = 0 x = 0 , − 2 = 9 A ⇒ A = − 2 9 -2 = 9A \Rightarrow A = -\frac{2}{9} − 2 = 9 A ⇒ A = − 9 2 .
If x = − 3 x = -3 x = − 3 , − 17 = − 3 C ⇒ C = 17 3 -17 = -3C \Rightarrow C = \frac{17}{3} − 17 = − 3 C ⇒ C = 3 17 .
Comparing coefficients of x 2 x^2 x 2 : 0 = A + B ⇒ B = − A = 2 9 0 = A + B \Rightarrow B = -A = \frac{2}{9} 0 = A + B ⇒ B = − A = 9 2 .
∫ 5 x − 2 x ( x + 3 ) 2 d x = ∫ ( − 2 / 9 x + 2 / 9 x + 3 + 17 / 3 ( x + 3 ) 2 ) d x = − 2 9 ln ∣ x ∣ + 2 9 ln ∣ x + 3 ∣ − 17 3 ( x + 3 ) + C \int \frac{5x - 2}{x(x + 3)^2} \, dx = \int \left(-\frac{2/9}{x} + \frac{2/9}{x + 3} + \frac{17/3}{(x + 3)^2}\right) \, dx = -\frac{2}{9}\ln|x| + \frac{2}{9}\ln|x + 3| - \frac{17}{3(x + 3)} + C ∫ x ( x + 3 ) 2 5 x − 2 d x = ∫ ( − x 2/9 + x + 3 2/9 + ( x + 3 ) 2 17/3 ) d x = − 9 2 ln ∣ x ∣ + 9 2 ln ∣ x + 3∣ − 3 ( x + 3 ) 17 + C
Example 4: Find ∫ x 2 − 2 x + 4 ( x + 1 ) ( x − 1 ) d x \int \frac{x^2 - 2x + 4}{(x + 1)(x - 1)} \, dx ∫ ( x + 1 ) ( x − 1 ) x 2 − 2 x + 4 d x .
First, polynomial long division:
x 2 − 2 x + 4 ( x + 1 ) ( x − 1 ) = x 2 − 2 x + 4 x 2 − 1 = 1 + − 2 x + 5 x 2 − 1 = 1 + − 2 x + 5 ( x − 1 ) ( x + 1 ) \frac{x^2 - 2x + 4}{(x+1)(x-1)} = \frac{x^2-2x+4}{x^2-1} = 1 + \frac{-2x+5}{x^2-1} = 1 + \frac{-2x+5}{(x-1)(x+1)} ( x + 1 ) ( x − 1 ) x 2 − 2 x + 4 = x 2 − 1 x 2 − 2 x + 4 = 1 + x 2 − 1 − 2 x + 5 = 1 + ( x − 1 ) ( x + 1 ) − 2 x + 5
Now partial fractions:
− 2 x + 5 ( x − 1 ) ( x + 1 ) = A x − 1 + B x + 1 \frac{-2x+5}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1} ( x − 1 ) ( x + 1 ) − 2 x + 5 = x − 1 A + x + 1 B
− 2 x + 5 = A ( x + 1 ) + B ( x − 1 ) -2x+5 = A(x+1) + B(x-1) − 2 x + 5 = A ( x + 1 ) + B ( x − 1 )
If x = 1 x=1 x = 1 , 3 = 2 A 3=2A 3 = 2 A , so A = 3 / 2 A=3/2 A = 3/2 .
If x = − 1 x=-1 x = − 1 , 7 = − 2 B 7=-2B 7 = − 2 B , so B = − 7 / 2 B=-7/2 B = − 7/2 .
∫ x 2 − 2 x + 4 ( x + 1 ) ( x − 1 ) d x = ∫ ( 1 + 3 / 2 x − 1 − 7 / 2 x + 1 ) d x \int \frac{x^2 - 2x + 4}{(x + 1)(x - 1)} \, dx = \int \left(1 + \frac{3/2}{x - 1} - \frac{7/2}{x + 1}\right) \, dx ∫ ( x + 1 ) ( x − 1 ) x 2 − 2 x + 4 d x = ∫ ( 1 + x − 1 3/2 − x + 1 7/2 ) d x
= x + 3 2 ln ∣ x − 1 ∣ − 7 2 ln ∣ x + 1 ∣ + C = x + \frac{3}{2}\ln|x - 1| - \frac{7}{2}\ln|x + 1| + C = x + 2 3 ln ∣ x − 1∣ − 2 7 ln ∣ x + 1∣ + C
Example 5: Integrate ∫ x 2 + 3 ( x + 1 ) ( x − 2 ) ( x − 3 ) d x \int \frac{x^2 + 3}{(x+1)(x-2)(x-3)}\,dx ∫ ( x + 1 ) ( x − 2 ) ( x − 3 ) x 2 + 3 d x
We decompose the fraction into partial fractions:
x 2 + 3 ( x + 1 ) ( x − 2 ) ( x − 3 ) = A x + 1 + B x − 2 + C x − 3 \frac{x^2 + 3}{(x+1)(x-2)(x-3)} = \frac{A}{x+1} + \frac{B}{x-2} + \frac{C}{x-3} ( x + 1 ) ( x − 2 ) ( x − 3 ) x 2 + 3 = x + 1 A + x − 2 B + x − 3 C
x 2 + 3 = A ( x − 2 ) ( x − 3 ) + B ( x + 1 ) ( x − 3 ) + C ( x + 1 ) ( x − 2 ) x^2+3 = A(x-2)(x-3) + B(x+1)(x-3) + C(x+1)(x-2) x 2 + 3 = A ( x − 2 ) ( x − 3 ) + B ( x + 1 ) ( x − 3 ) + C ( x + 1 ) ( x − 2 )
If x = − 1 x=-1 x = − 1 : 4 = A ( − 3 ) ( − 4 ) ⟹ 4 = 12 A ⟹ A = 1 3 4 = A(-3)(-4) \implies 4 = 12A \implies A = \frac{1}{3} 4 = A ( − 3 ) ( − 4 ) ⟹ 4 = 12 A ⟹ A = 3 1
If x = 2 x=2 x = 2 : 7 = B ( 3 ) ( − 1 ) ⟹ 7 = − 3 B ⟹ B = − 7 3 7 = B(3)(-1) \implies 7 = -3B \implies B = -\frac{7}{3} 7 = B ( 3 ) ( − 1 ) ⟹ 7 = − 3 B ⟹ B = − 3 7
If x = 3 x=3 x = 3 : 12 = C ( 4 ) ( 1 ) ⟹ 12 = 4 C ⟹ C = 3 12 = C(4)(1) \implies 12 = 4C \implies C = 3 12 = C ( 4 ) ( 1 ) ⟹ 12 = 4 C ⟹ C = 3
So,
∫ x 2 + 3 ( x + 1 ) ( x − 2 ) ( x − 3 ) d x = ∫ ( 1 / 3 x + 1 − 7 / 3 x − 2 + 3 x − 3 ) d x \int \frac{x^2 + 3}{(x+1)(x-2)(x-3)}\,dx = \int \left(\frac{1/3}{x+1} - \frac{7/3}{x-2} + \frac{3}{x-3}\right)dx ∫ ( x + 1 ) ( x − 2 ) ( x − 3 ) x 2 + 3 d x = ∫ ( x + 1 1/3 − x − 2 7/3 + x − 3 3 ) d x
= 1 3 ln ∣ x + 1 ∣ − 7 3 ln ∣ x − 2 ∣ + 3 ln ∣ x − 3 ∣ + C = \frac{1}{3}\ln|x+1| - \frac{7}{3}\ln|x-2| + 3\ln|x-3| + C = 3 1 ln ∣ x + 1∣ − 3 7 ln ∣ x − 2∣ + 3 ln ∣ x − 3∣ + C
Example 6: Integrate ∫ x 3 + 2 x 2 − 1 d x \int \frac{x^3 + 2}{x^2 - 1} \, dx ∫ x 2 − 1 x 3 + 2 d x
This is an improper fraction, so we divide first:
x 3 + 2 x 2 − 1 = x + x + 2 x 2 − 1 = x + x + 2 ( x − 1 ) ( x + 1 ) \frac{x^3+2}{x^2-1} = x + \frac{x+2}{x^2-1} = x + \frac{x+2}{(x-1)(x+1)} x 2 − 1 x 3 + 2 = x + x 2 − 1 x + 2 = x + ( x − 1 ) ( x + 1 ) x + 2
Now partial fractions:
x + 2 ( x − 1 ) ( x + 1 ) = A x − 1 + B x + 1 \frac{x+2}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1} ( x − 1 ) ( x + 1 ) x + 2 = x − 1 A + x + 1 B
x + 2 = A ( x + 1 ) + B ( x − 1 ) x+2 = A(x+1) + B(x-1) x + 2 = A ( x + 1 ) + B ( x − 1 )
If x = 1 x=1 x = 1 , 3 = 2 A 3=2A 3 = 2 A , so A = 3 / 2 A=3/2 A = 3/2 .
If x = − 1 x=-1 x = − 1 , 1 = − 2 B 1=-2B 1 = − 2 B , so B = − 1 / 2 B=-1/2 B = − 1/2 .
So,
∫ x 3 + 2 x 2 − 1 d x = ∫ ( x + 3 / 2 x − 1 − 1 / 2 x + 1 ) d x \int \frac{x^3+2}{x^2-1}\,dx = \int \left(x + \frac{3/2}{x-1} - \frac{1/2}{x+1}\right)dx ∫ x 2 − 1 x 3 + 2 d x = ∫ ( x + x − 1 3/2 − x + 1 1/2 ) d x
= x 2 2 + 3 2 ln ∣ x − 1 ∣ − 1 2 ln ∣ x + 1 ∣ + C = \frac{x^2}{2} + \frac{3}{2}\ln|x-1| - \frac{1}{2}\ln|x+1| + C = 2 x 2 + 2 3 ln ∣ x − 1∣ − 2 1 ln ∣ x + 1∣ + C
Example 7: Integrate ∫ x 2 + 1 x 3 + x d x \int \frac{x^2+1}{x^3+x}\,dx ∫ x 3 + x x 2 + 1 d x
∫ x 2 + 1 x 3 + x d x = ∫ x 2 + 1 x ( x 2 + 1 ) d x = ∫ 1 x d x = ln ∣ x ∣ + C \int \frac{x^2+1}{x^3+x}\,dx = \int \frac{x^2+1}{x(x^2+1)}\,dx = \int \frac{1}{x}\,dx = \ln|x| + C ∫ x 3 + x x 2 + 1 d x = ∫ x ( x 2 + 1 ) x 2 + 1 d x = ∫ x 1 d x = ln ∣ x ∣ + C