Solution
Factorising the denominator,
x3−x2−x+1=(x−1)2(x+1)
Let
(x−1)2(x+1)3x+5=x−1A+(x−1)2B+x+1C
Multiplying by (x−1)2(x+1),
3x+5=A(x−1)(x+1)+B(x+1)+C(x−1)2
Putting x=1,
8=2B
Therefore,
B=4
Putting x=−1,
2=4C
Therefore,
C=21
Since A+C=0,
A=−21
Hence,
(x−1)2(x+1)3x+5=−2(x−1)1+(x−1)24+2(x+1)1
Integrating,
∫(x−1)2(x+1)3x+5dx=−21log∣x−1∣−x−14+21log∣x+1∣+C
Therefore,
∫x3−x2−x+13x+5dx=21logx−1x+1−x−14+C