Solve for x -f(x)=3x^2+2x-2