\documentclass[12pt]{article}

\begin{document}

$$
  E = A [1 - \cos(\theta)] + B [1 + \cos(3 \theta)] + 
      C [1 + \cos(\theta + \frac{\pi}{4})]
$$

\end{document}