Solution
First, expand the numerator and denominator:
(x2+1)(x2+2)=x4+3x2+2
and
(x2+3)(x2+4)=x4+7x2+12
Therefore,
(x2+3)(x2+4)(x2+1)(x2+2)=1−(x2+3)(x2+4)4x2+10
Now, let
(x2+3)(x2+4)4x2+10=x2+3Ax+B+x2+4Cx+D
Multiplying both sides by (x2+3)(x2+4), we get
4x2+10=(Ax+B)(x2+4)+(Cx+D)(x2+3)
Expanding,
4x2+10=(A+C)x3+(B+D)x2+(4A+3C)x+(4B+3D)
Comparing coefficients,
A+CB+D4A+3C4B+3D=0,=4,=0,=10
Solving,
A=0,B=−2,C=0,D=6
Hence,
(x2+3)(x2+4)4x2+10=−x2+32+x2+46
Therefore,
(x2+3)(x2+4)(x2+1)(x2+2)=1+x2+32−x2+46
Integrating,
∫(x2+3)(x2+4)(x2+1)(x2+2)dx=∫(1+x2+32−x2+46)dx=x+2∫x2+(3)21dx−6∫x2+221dx
Using
∫x2+a2dx=a1tan−1(ax)+C,
we get
∫(x2+3)(x2+4)(x2+1)(x2+2)dx=x+32tan−1(3x)−3tan−1(2x)+C