y = x^2 -4x + 7 and y = x+1