Solve by Substitution y=|x^2-3x+1| , y=x-1