<s>[INST] Find the partial fraction: $\frac{x^2}{(x-1)^2(x-2)^2(x-3)}$ I'm trying to find the partial fraction for the following $\frac{x^2}{(x-1)^2(x-2)^2(x-3)}$ by the process of long-division, here's what I have tried:
Leaving $(x-3)$ as it is in the denominator and aiming for $(x-1)$ and $(x-2)$.
First step:
$\frac{1^2}{(x-1)^2(1-2)^2(1-3)} = \frac{1}{-2(x-1)^2}, \frac{2^2}{(2-1)^2(x-2)^2(2-3)} = \frac{4}{-(x-2)^2}$
We should then substract this from the first equation to get:
$\frac{x^2}{(x-1)^2(x-2)^2(x-3)} - \frac{1}{-2(x-1)^2} - \frac{4}{-(x-2)^2} = \frac{9x^3-36-45x^2+72x}{2\left(x-1\right)^2\left(x-2\right)^2\left(x-3\right)}$
Taking synthetic division on the numerator I find that 2 and 3 is not a root as there exists remainders. Have I approached this step in the wrong way?
 [/INST] Hint: $f(x) = \dfrac{A}{x-1}+\dfrac{B}{(x-1)^2}+\dfrac{C}{x-2}+\dfrac{D}{(x-2)^2}+\dfrac{E}{x-3}$. And you have to find these constants $A,B,C,D,E$.
</s>