solve D=2(x^3-2x^2-x+2) for x