There are several packages that need to be done, one of the most widely used is the AMS align environment from the amsmath package.
Simplified excerpt from amsldoc.pdf:
\begin{align} x&=y \\ x'&=y' \\ x+x'&=y+y' \end{align}
Equations are aligned around characters following & (in this case, equal signs).
Arthur reutenauer
source share