$$\displaystyle\int{ \frac{ 1+ { x }^{ 2 } }{ (x-2) { \left(x+1 \right) }^{ 3 } } }d x$$
$$(x^2*d*(1+x^2/3))/((x-2)*(x+1)^3)$$