Solution
Let
(x+1)(x+2)x=x+1A+x+2B
Multiplying by (x+1)(x+2), we get
x=A(x+2)+B(x+1)
Expanding,
x=(A+B)x+(2A+B)
Comparing coefficients,
A+B=1
and
2A+B=0
Solving,
A=−1,B=2
Therefore,
(x+1)(x+2)x=−x+11+x+22
Hence,
∫(x+1)(x+2)xdx=−∫x+11dx+2∫x+21dx=−log∣x+1∣+2log∣x+2∣+C
Therefore,
∫(x+1)(x+2)xdx=logx+1(x+2)2+C