\nonstopmode
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
$$
y=x^{2}+1
$$
\end{document}
