Above is a screenshot from an online partial fractions calculator. They give the solution, but it doesn't mesh with what I know. I give my own work below, which I understood immediately to be wrong. I've tried three times, each ending up at the same place. The problem is not with my arithmetic, but with my technique.
The problem I seem to be having is when I get to
A(x^2)(x+1) + B(x)(x+1) + C(x)(x^2)
A(x^3+x^2) + B(x^2+x) + Cx^3
(A + C)x^3 + (A + B)x^2 + Bx
I tried turning that into a matrix with A+C=0 (since X^3=0), but that was obviously not correct. What do I do with these cubes?