plot (1 + x + x^2)/(x + 1)