TeX source:
g(x) = \dfrac{1}{2}x+1