I was trying to decompose $\dfrac{x}{x^3-1}$ into Partial Fractions. I tried the following: $$\dfrac{x}{(x-1)(x^2+x+1)}=\dfrac{A}{(x-1)}+\dfrac{B}{(x^2+x+1)}$$ $$\Longrightarrow A(x^2+x+1)+B(x-1)=x$$ Putting $x=1,$ $$A(1+1+1)+B(1-1)=1\Rightarrow A=\dfrac{1}{3}$$ $$\Rightarrow\dfrac{1}{3}(x^2+x+1) +B(x-1)=x$$ $$\Rightarrow (x^2+x+1)+3Bx-3B=x$$ $$x^2+(3B+1)x +(1-3B)=x$$ At this point I gave up thinking I must have done something wrong since there is no $x^2$ on the RHS while it is there in the LHS.
I would be truly grateful if somebody would be so kind to help me understand my mistake. Many, many thanks in advance!
In a partial fraction decomposition, the numerator of a term with a quadratic denominator (or a power of a quadratic in the denominator) should have the form $$Bx+C,$$ and not just a constant. Tracing through your argument, we see we pick up the algebra at the antepenultimate display equation: $$\frac{1}{3}(x^2 + x + 1) = (B x + C)(x - 1).$$ So, we can see that this correction introduces a new quadratic term $Bx^2$ (with an unknown coefficient), which fixes precisely the problem you've observed with the given method.