Alex Rivera | Logout

How can I have linebreaks in my long LaTeX equations?

Asked 2010-05-18T18:54:37.447
200

My equation is very long. How do I get it to continue on the next line rather than go off the page?

Edit
Report

1 Answer

189

If your equation does not fit on a single line, then the multline (note that that's multline without an "i", not "multiline") environment probably is what you need:

\begin{multline}
    first part of the equation \\
    = second part of the equation
\end{multline}

If you also need some alignment respect to the first part, you can use split:

\begin{equation}
    \begin{split}
        first part &= second part #1 \\
        &= second part #2
    \end{split}
\end{equation}

Both environments require the amsmath package.

See also aligned as pointed out in an answer below.

answered 2010-05-18T21:42:37.227

Your Answer