\documentstyle{article}
\begin{document}


${a \over b}$ and $\frac{a}{b}$.

$${a \over b}$$
and
$$\frac{a}{b}$$.

\end{document}
