Solve for x x^2-3x-2=|x-1|