Answer explained
Integrate: ∫x dx/[(x-1)²(x+2)].
Partial fractions: x/[(x-1)²(x+2)] = A/(x-1)+B/(x-1)²+C/(x+2). Write x=A(x-1)(x+2)+B(x+2)+C(x-1)². At x=1: 1=3B ⇒ B=1/3. At x=-2: -2=9C ⇒ C=-2/9. Comparing x² coefficients, A+C=0 ⇒ A=2/9. So the integral = (2/9)log|x-1|-(1/3)×1/(x-1)-(2/9)log|x+2|+k = (2/9)log|(x-1)/(x+2)| - 1/[3(x-1)] + k.