[ 3x-1 ] / [ (x+2)(1-x+x^2) ]
into fractions. In other words, you want to find A and B such that: A/(x+2) + B/(1-x+x^2) = [ 3x-1 ] / [ (x+2)(1-x+x^2) ]
Apart from getting the brackets wrong, you said (correctly) that the left hand side is equal to this: [ A(1-x+x^2) + B(x+2) ] / [ (x+2)(1-x+x^2) ]
So now you need to solve:[ A(1-x+x^2)+B(x+2) ] / [ (x+2)(1-x+x^2) ] = (3x-1) / [ (x+2)(1-x+x^2) ]
The denominators are equal, so you just need to make the numerators equal.
So tell me - what equation do you have to solve?