How do we determine the integral $$\int\frac{1}{(x-1)^3(x-2)^2}dx$$ My ideas are the followings:
We just split them into partial fractions like $$\frac{1}{(x-1)^3(x-2)^2}=\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{(x-1)^3}+\frac{D}{(x-2)}+\frac{E}{(x-2)^2}$$ But finding $A,B,C,D,E$ seems to be a really daunting task and the calculations will be huge.
I thought of substituting $x-1=u$ but that also doesn't help much since we again get the same form $\frac{1}{u^3(u-1)^2}$.
Is there any clever substitution to solve this? Trigonometric substitutions if possible are really helpful sometimes.
Clear the denominator to get $$1=A(x-1)^2(x-2)^2+B(x-1)(x-2)^2+C(x-2)^2+D(x-1)^3(x-2)+E(x-1)^3. \tag1$$ Substituting $x=1$ yields $1=C(1-2)^2$, so $C=1$. Substituting $x=2$ yields $1=E(2-1)^3$, so $E=1$. Substituting $x=0$ yields $$1=4A-4B+4C+2D-E=4A-4B+4+2D-1,$$ so $$4A-4B+2D=-2. \tag2$$ Substituting $x=3$ yields $$1 = 4A + 2B + C + 8D + 8E = 4A + 2B + 1 + 8D + 8,$$ so $$4A + 2B + 8D = -8. \tag3$$ Comparing coefficients of $x^4$ in $(1)$ yields $$0=A+D. \tag4$$ Now solve $(2)$ through $(4)$ to get $(A,B,D)=(3,2,-3)$.