This is LaTeX code:

[latex]
\frac{1}{2}\cos\frac{x}{2}
[/latex]