TeX source:
g(x) = -x^{2} + x + 1