I'm working on evaluating this integral using partial fractions:

the indefinite integral of (-2x+4)/((x^2+1)(x-1)^2) and I've gotten it down to Ax+B/x^+1+C/x-1+D/(x-1)^2. Now how to I find what coefficients correspond with each term? I know what they are using a partial fraction tool online, but obviously I want to be able to do it and show I can do it on my own!