This is LaTeX code:
[latex]
\sin^2 x = \frac{1}{2}(1 - \cos 2 x)
[/latex]