This is LaTeX code:
[latex]
cos^2 x = \frac{1 + cos2x}{2}
[/latex]