Source TeX:
y=4\cos{\left({\frac{1}{2}(x-\pi)}\right)}-2