First multiply each side through by all three factors in the denominator on the right to get
[tex]Ax^2(x^2+1) \ + \ (Bx+C)(3x+1)x^2 \ + \ (Dx+E)(x^2+1)(3x+1) = 2x-1[/tex]
now sub [itex]x=0[/itex] to immediately give [itex]E=-1[/itex]. Then sub [itex]x=-1/3[/itex] to give
[tex]A\left(-\frac{1}{3}\right)^2\left(\left(-\frac{1}{3}\right)^2+1\right) = -\frac{5}{3} \Longrightarrow A = -\frac{27}{2}[/tex]
After that, look at the coefficient of [itex]x[/itex] on both sides. On the left it is [itex]D+3E[/itex] and on the right [itex]2[/itex], so
[tex]D+3E = D - 3 = 2 \Longrightarrow D = 5.[/tex]
Now look at the coefficient of [itex]x^2[/itex] on both sides. On the left it is [itex]A + C + 3D + E[/itex] and on the right [itex]0[/itex] so
[tex]A + C + 3D + E = -\frac{27}{2} + C + 15 - 1 = 0 \Longrightarrow C = -\frac{1}{2}.[/tex]
Finally look at the coefficient of [itex]x^3[/itex] on both sides. On the left it is [itex]B+3C+D+3E[/itex] and on the right it is [itex]0[/itex] so we get
[tex]B + 3C + D + 3E = B - \frac{3}{2} + 5 - 3 = 0 \Longrightarrow B = -\frac{1}{2}[/tex]
so overall we have found
[tex]E = -1, \; A = -\frac{27}{2}, \; D = 5, \; C = B = -\frac{1}{2}[/tex]
as I said
