3 - |x - 1| and x^2 - 4x + 6