Align equations by equal sign in LaTeX

\begin{equation}
\begin{split}
x &= 2 + 3 \\
&= 1 + 4
\end{split}
\end{equation}

\[ \begin{split} x &= 2 + 3 \\ &= 1 + 4 \end{split} \]

LaTeX equation

LaTeX