Solution
Factorising the denominator,
x2+3x+2=(x+1)(x+2)
Let
(x+1)(x+2)2x=x+1A+x+2B
Multiplying by (x+1)(x+2),
2x=A(x+2)+B(x+1)
Putting x=−1,
−2=A
Putting x=−2,
−4=−B
Therefore,
A=−2,B=4
Hence,
(x+1)(x+2)2x=−x+12+x+24
Integrating,
∫x2+3x+22xdx=−2log∣x+1∣+4log∣x+2∣+C