Solution
Let
(1−x)(1+x2)2=1−xA+1+x2Bx+C
Multiplying by (1−x)(1+x2),
2=A(1+x2)+(Bx+C)(1−x)
Expanding,
2=(A−B)x2+(B−C)x+(A+C)
Comparing coefficients,
A−B=0
B−C=0
A+C=2
Therefore,
A=1,B=1,C=1
Hence,
(1−x)(1+x2)2=1−x1+1+x2x+1
Integrating,
∫(1−x)(1+x2)2dx=∫1−x1dx+∫1+x2xdx+∫1+x21dx
Therefore,
∫(1−x)(1+x2)2dx=−log∣1−x∣+21log(1+x2)+tan−1x+C