\documentclass[12pt,a4paper]{beamer}

\usepackage{amsmath}

\begin{document}
\begin{frame}
$y=x^2$
\end{frame}
\end{document}
