This is LaTeX code:

[latex]
\cos 3t=\cos 2t\cos t-\sin 2t\sin t=(2\cos^2t-1)\cos t-2\sin^2 t\cos t
[/latex]