\documentstyle[12pt]{article} \begin{document} $$ {R_g}^2 = \frac{1}{M} \sum_i m_i (r_i - r_{cm})^2 $$ \end{document}