Integral of Rational Fractions

In this page, we show how to integrate any rational function ( a ratio of polynomials ) by expressing it as a sum of partial fractions.

Let f(x) be a rational function such that

f(x)=P(x)Q(x)=anxn+an1xn1++a0bmxm+bm1xm1++b0

where P(x) and Q(x) are polynomials. If an0, the degree of P is n and we denote deg (P)=n.

To integrate any rational function, see the following steps.

(Step 1) Reduce if there are common factors in the denominator and the numerator.
(Step 2) If degP(x)degQ(x), devide Q into P until a remainder R(x)is obtained such that degR(x) < degQ(x). Then the division statement is P(x)Q(x)=S(x)+R(x)Q(x) where S(x) and Q(x) are also polynomials.
(Step 3) Factor the denominator Q(x) as far as possible.
(Step 4) Express the rational function R(x)Q(x) as a sum of partial fractions.

Example: Evaluate 2x54x45x3+9x2x42x33x2 dx

Let f(x)=P(x)Q(x)=2x54x45x3+9x2x42x33x2

(Step 1) Reduce if there are common factors in the denominator and the numerator.

2x54x45x3+9x2x42x33x2 dx=x2(2x34x25x+9)x2(x22x3) dx=2x34x25x+9x22x3 dx

(Step 2) Perform the long division if the degree of the numerator is greater than the degree of denominator.

2x34x25x+9x22x3=2x(x22x3)+(x9)x22x3=2x+x9x22x3

(Step 3) Factor the denominator Q(x) as far as possible.

2x+x9x22x3=2x+x9(x+1)(x3)

(Step 4) Express the rational function R(x)Q(x) as a sum of partial fractions.

2x+x9(x+1)(x3)=2x+2x+1+3x3

Thus

2x54x45x3+9x2x42x33x2 dx=(2x+2x+1+3x3) dx=2x dx21x+1 dx+31x3 dx=x22ln|x+1|+3ln|x3|+C=x2+ln|x3|3(x+1)2+C


Express as a sum of partial fraction

There are theorems in Algebra that grantee, any rational function can be expressed as a sum of partial fractions

Let R(x)Q(x) be a rational function where R and Q are polynomials and deg(R)>deg(Q).
(1)Any polynomials can be factors as a product of linear factors (of the form ax+b) and irreducible factors (of the form Ax2+Bx+C where B24AC < 0 ). That is:
Q(x)=n=1m(anx+bn)rk=1k(Ax2+Bx+C)R (2)Any rational Functions R(x)Q(x) can be decomposed as a sum of partial fractions of the form Aax+b or Dx+EAx2+Bx+C. That is : R(x)Q(x)=n=1mi=1rnAn i(anx+bn)i+=1kj=1RDx+E(Ax2+Bx+C)j.

We see the details for the four cases occur.

Case 1:Q(x)=(a1x+b1)(a2x+b2)(amx+bm)

In the case of that Q(x) is a product of distinct linear factors;

Q(x)=(a1x+b1)(a2x+b2)(amx+bm)

where no factor is repeated and no factor is a constant multiple of another, the fraction can be decomposed as below:

R(x)Q(x)=A1a1x+b1+A2a2x+b2+Amamx+bm.


Example : x+9x22x3

Since the two distinct linear factors, the partial fraction decomposition has the form;

x+9x22x3=x+9(x+1)(x3)=Ax+1+Bx3

To determine the value of A and B, we multiply both sides of the equation by the product of denominators, (x+1)(x3), obtaining

x+9=A(x3)+B(x+1)    ()

Expanding the right hand side of the above equation, we get

x+9=(A+B)x+(B3A)

Equating coefficients, we obtain

A+B=1     B3A=9

Another method for finding the coefficients:
・Put x=-1 in (*): 8=-4A
・Put x=3 in (*): 12=4B

Solving, we get A=2 and B=3.

Case 2:Q(x)=(a1x+b1)r1(a2x+b2)r2(amx+bm)rm

In the case of that Q(x) is a product of linear factors, some of which are repeated;

Q(x)=(a1x+b1)r1(a2x+b2)r2(amx+bm)rm

the fraction can be decomposed as below:

R(x)Q(x)=A11a1x+b1+A12(a1x+b1)2++A1 r1(a1x+b1)r1++Am1amx+bm+Am r2(amx+bm)2++Am rm(amx+bm)rm.


Example 2x+3x2(x+1)2

2x+3x2(x+1)2=Ax+Bx2+Cx+1+D(x+1)2

Multiplying by the least common denominator, x2(x+1)2, we get

2x+3=Ax(x+1)2+B(x+1)2+Cx2(x+1)+Dx2

and equating coefficients, we obtain A=4,B=3,C=4 and D=1.

Case 3:Q(x)=n=1m(anx+bn)rn=1k(Ax2+Bx+C)

In the case of that Q(x) contains irreducible quadric factors, none of which is repeated (i.e; Q(x) has the factor Ax2+Bx+C where B24AC<0);

Q(x)=n=1m(anx+bn)rn=1k(Ax2+Bx+C)=(a1x+b1)r1(amx+bm)rm×(A1x2+B1x+C1)(Akx2+Bkx+Ck)

the fraction can be decomposed as below:

R(x)Q(x)=n=1mi=1rnAn i(anx+bn)i+=1kDx+EAx2+Bx+C.

Example : 2x+3x2(x2+1)

2x+3x2(x2+1)=Ax+Bx2+Cx+Dx2+1

Multiplying by the least common denominator, x2(x2+1), we get

2x+3=Ax(x2+1)+B(x2+1)+(Cx+D)x2

and equating coefficients, we obtain A=2,B=3,C=2 and D=3.

Case 4: Q(x)=n=1m(anx+bn)rn=1k(Ax2+Bx+C)R

In the case of that Q(x) contains irreducible quadric factors, some of which are repeated;

Q(x)=n=1m(anx+bn)rn=1k(Ax2+Bx+C)R=(a1x+b1)r1(amx+bm)rm×(A1x2+B1x+C1)R1(Akx2+Bkx+Ck)Rk

the fraction can be decomposed as below:

R(x)Q(x)=n=1mi=1rnAn i(anx+bn)i+=1kj=1RDx+E(Ax2+Bx+C)j.

Example : 2x+3x2(x2+1)2

2x+3x2(x2+1)2=Ax+Bx2+Cx+Dx2+1+Ex+F(x2+1)2

Multiplying by the least common denominator, x2(x2+1)2, we get

2x+3=Ax(x2+1)2+B(x2+1)2+(Cx+D)x2(x2+1)+(Ex+F)x2

and equating coefficients, we obtain A=2,B=3,C=2,D=3,E=2 and F=3.