Solve for x -x^2+2x=1