\documentclass[12pt]{article}

\begin{document}

$$
   E(r) = \frac{A}{r^{12}} - \frac{A}{r^{6}}
$$

\end{document}
