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