\documentclass{article}


\usepackage{amsmath}

\begin{document}

\begin{gather}
  x+y, \\
  x^2+xy+y^2. 
\end{gather}

\end{document}
