Integration of rational functions.

Integration of an arbitrary rational function Pm(x)Qn(x)=bmxm+...+b1x+b0anxn+...+a1x+a0 with real coefficients is performed as follows in the general case.

If mn, then it is necessary to preliminarily extract the integer part from this fraction, that is, represent it in the form Pm(x)Qn(x)=Mmn+Rr(x)Qn(x), where Mmn(x) and Rr(x) are polynomials of degrees mn0 and r respectively, and $r

The extraction of the integer part in the fraction Pm(x)Qn(x) is performed by dividing the numerator by the denominator using long division.

To integrate a proper rational function Pm(x)Qn(x), $m

Let the denominator Qn(x)=anxn+...+a1x1+a0 have the decomposition Qn(x)=an(xα1)s1...(xαl)sl(x2+p1x+q1)t1(x2+pkx+qk)tk. Then the decomposition of the fraction Pm(x)Qn(x) into a sum of simple fractions is as follows:

Pm(x)Qn(x)=A11xα1+...+As11(xα1)s1+...+A1lxαl+...+Asll(xαl)sl+ +B11x+C11x2+p1x+q1+...+Bt11+Ct11(x2+p1x+q1)t1+... +B1kx+C1kx2+pkx+qk+...+Btkk+Ctkk(x2+pkx+qk)tk.(1)

The coefficients Aij,,Bij, and Cij in this decomposition are determined by equating the coefficients of the same powers of x in the polynomial Pm(x) and the polynomial obtained in the numerator of the right-hand side of equation (1) after bringing it to a common denominator (the method of undetermined coefficients).

Formula (1) shows that integrating an arbitrary rational function reduces to integrating simple fractions of the following four types:

1) Axα. Axαdx=Aln|xα|+C.

2) A(xα)k,(k=2,3,...).

A(xα)k=Ak11(xα)k1+C.

3) Ax+Bx2+px+q,p24q<0

4) Ax+B(x2+px+q)k,p24q<0,k=2,3,...

2x1x2+4x+8,dx.

Solution:

In this example, the discriminant of the quadratic trinomial in the denominator is negative: p24q=1632=16<0, which means we have a fraction of the third type. Since (x2+4x+8)=2x+4, we can rewrite the numerator of the fraction as follows: 2x1=2x+45=(x2+4x+8)5 (this transformation is called extracting the derivative of the quadratic trinomial in the denominator in the numerator). Therefore, 2x1x2+4x+8dx=(x2+4x+8)x2+4x+8dx5dxx2+4x+8.

(x2+4x+8)x2+4x+8dx=[x2+4x+8=tdt=(x2+4x+8)dx]=dtt=ln|t|+C= =ln(x2+4x+8)+C.

We find the integral dxx2+4x+8 by completing the square in the denominator:

dxx2+4x+8=dxx2+4x+4+4=dx(x+2)2+4= =[x+2=tdx=dt]=dtt2+22=12arctgt2+C=12arctgx+22+C.

Thus,

2x1x2+4x+8dx=ln(x2+4x+8)52arctgx+22+C.

Answer: ln(x2+4x+8)52arctgx+22+C.

2. 3x1(x2+4x+5)2.

Solution.

Here, p24q=1620=4<0, which means we have a simple fraction of the fourth type. First, we extract the derivative of the quadratic trinomial in the numerator:

(x2+4x+5)=2x+43x1=32(2x+4)7= =1,5(x2+4x+5)7.

3x1(x2+4x+5)2dx=1,5(x2+4x+5)7(x2+4x+5)2dx= =32(x2+4x+5)7dx(x2+4x+5)2.

To compute the remaining integral, we complete the square in the quadratic trinomial: dx(x2+4x+5)2=dx((x+2)2+1)2=[x+2=tdx=dt]= =dt(t2+1)2=1+t2t2(1+t2)2dt=dt1+t2t2dt(1+t2)2= =arctgtt2dt(1+t2)2. Then we use integration by parts: t2dt(t2+1)2=[u=tdv=tdt(t2+1)2v=12d1t2+1=12(t2+1)]= =t2(1+t2)+121t2+1dt=12(t1+t2arctgt).

Thus, dx(x2+4x+5)2=arctg(x+2)+12(x+21+(x+2)2arctg(x+2)).

And finally, we obtain

3x1(x2+4x+5)2dx= =32(x2+4x+5)+72(x+2x2+4x+53arctg(x+2)).

Answer: 32(x2+4x+5)+72(x+2x2+4x+53arctg(x+2)).

Examples.

Find the integrals:

1. dxx2+4x5.

Solution.

In this example, p24q=16+20=36>0, which means we will decompose the rational function into simple fractions.

D=36;

x1=4+62=1,x2=462=5.

Thus, x2+4x5=(x1)(x+5). From this, we have, 1x2+4x5=Ax1+Bx+5=A(x+5)+B(x1)(x1)(x+5)= =x(A+B)+(5AB)x2+4x5.

By equating the coefficients of the same powers of x in the numerators of the left and right sides of the equation, we write the system:

{A+B=05AB=1{A=B5BB=1{A=16B=16

Then the decomposition of the fraction 1x2+4x5 into a sum of simple fractions is as follows: 1x2+4x5=161x1161x+5.

Now, let's compute the given integral as the integral of the sum of simple fractions:

dxx2+4x5=(161x1161x+5)dx= =16ln|x1|16ln|x+5|+C=16ln|x1x+5|+C.

Answer: 16ln|x1x+5|+C.

2.dxx26x.

Solution.

p24q=36>0, so we will decompose the rational function into simple fractions.

x26x=x(x6). From this, we have, 1x26x=Ax+Bx6=A(x6)+Bxx(x6)= =x(A+B)6Ax26x.

By equating the coefficients of the same powers of x in the numerators of the left and right sides of the equation, we write the system:

{A+B=06A=1{A=16B=16

Thus, the decomposition of the fraction 1x26 into a sum of simple fractions is as follows: 1x26x=161x+161x6.

Now, let's compute the given integral as the integral of the sum of simple fractions:

dxx26x=(161x+161x6)dx= =16ln|x|+16ln|x6|+C=16ln|x6x|+C.

Answer: 16ln|x6x|+C.

3.xdxx4+6x2+13.

Solution.

Let's make the variable substitution:

xdxx4+6x2+13=[x2=tdt=2xdx]=12dtt2+6t+13. Here, p24q=3652=16<0, which means we have a fraction of the third type.

Let's complete the square in the denominator:

t2+6t+13=t2+6t+9+4=(t+3)2+4.

dtt2+6t+13=dt(t+3)2+4=[t+3=zdt=dz]=dzz2+22= =12arctgz2+C=12arctgt+32+C.

Thus,

xdxx4+6x2+13dx=14arctgx2+32+C.

Answer: 14arctgx2+32+C.

4. x3+2x34xdx.

Solution.

The integrand has the form Pn(x)Qn(x), where Pn(x) and Qn(x) are polynomials of degree n=3, which means the given fraction is improper. Let's extract the integer part from this fraction. After division in a column of x3+2 by x34, we obtain x3+2x34x=1+4x+2x34x. Next, we decompose the obtained fraction into a sum of simple fractions:

4x+2x34x=4x+2x(x24)=4x+2x(x2)(x+2)=Ax+Bx2+Cx+2= =A(x24)+B(x2+2x)+C(x22x)x34x= =x2(A+B+C)+x(2B2C)4Ax34x.

By equating coefficients of the same degrees of x in the numerators of the left and right sides of the equation, we write the system:

{A+B+C=02B2C=44A=2{B+C=12BC=2A=12{B=12C12CC=2A=12 {B=54C=34A=12

Thus, the decomposition of the fraction 4x+2x34x into a sum of simple fractions is given by 4x+2x34x=121x+541x2341x+2.

Next, let's compute the given integral as the integral of the sum of simple fractions:

x3+2x34xdx=(1+4x+2x34x)dx= =(121x+541x2341x+2)dx= =x12ln|x|+54ln|x2|34ln|x+2|+C.

Answer: x12ln|x|+54ln|x2|34ln|x+2|+C.

5. (x1)dx(x2+1)3.

Solution.

Here, p24q=4<0, which means we have a simple fraction of the fourth type. First, we extract the derivative of the quadratic trinomial from the numerator:

(x2+1)=2xx1=12(2x)1=12(x2+1)1.

x1(x2+1)3dx=0,5(x2+1)1(x2+1)3dx= =0,5(x2+1)3d(x2+1)dx(x2+1)3= =14(x2+1)2dx(x2+1)3.

Let's compute the remaining integral:

dx(x2+1)3=1+x2x2(1+x2)3dx=dx(1+x2)2x2dx(1+x2)3= =1+x2x2(1+x2)2dxx2dx(1+x2)3= =dx1+x2x2dx(1+x2)2x2dx(1+x2)3= =arctgxx2dx(1+x2)2x2dx(1+x2)3.

Next, we will use the method of integration by parts:

x2dx(x2+1)2=[u=xdv=xdx(x2+1)2v=12d1x2+1=12(x2+1)]= =x2(1+x2)+121x2+1dt=12(arctgxx1+x2).

x2dx(x2+1)3= [u=xdv=xdx(x2+1)3v=14d1(x2+1)2=14(x2+1)2]= x4(1+x2)2+141(x2+1)2dx.

1(x2+1)2dx=arctgxx2(1+x2)2dx= =arctgx12(arctgxx1+x2)=12(x1+x2+arctgx).

Thus, x2dx(x2+1)3=x4(1+x2)2+18(x1+x2+arctgx).

And finally, we get

x1(x2+1)3dx= 14(x2+1)2(arctgx12(arctgxx1+x2) (x4(x2+1)2+18(x1+x2+arctgx)))=+C =x+14(x2+1)238arctgx38x1+x2+C.

Answer: x+14(x2+1)238arctgx38x1+x2+C.

Homework.

Find the integrals.

1. dx2x24x+5.

2. xdxx25x+4.

3. 4x3x22x+5dx.

4. 2x21x35x2+6xdx.

59. x4+3x3+3x25x3+3x2+3x+1dx.

6. 3x2+2x1(x1)2(x+2)dx.

7. 5x13(x25x+6)2dx.

Tags: Integration of rational functions, calculus, integral, mathematical analysis