> ## Documentation Index
> Fetch the complete documentation index at: https://resources.latex-cloud-studio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Align and Multline Environments in LaTeX

> Format multi-line equations in LaTeX using align, aligned, split, and multline from amsmath.

Use `amsmath` environments for readable multi-line equations.

## align

```latex align.tex theme={null}
\usepackage{amsmath}

\begin{align}
f(x) &= x^2 + 2x + 1 \\
g(x) &= \sin x + \cos x
\end{align}
```

## multline

```latex multline.tex theme={null}
\begin{multline}
A = a_1 + a_2 + a_3 + a_4 + a_5 + a_6 + a_7 \\
    + a_8 + a_9 + a_{10}
\end{multline}
```

## split inside equation

```latex split.tex theme={null}
\begin{equation}
\begin{split}
y &= (x+1)^2 \\
  &= x^2 + 2x + 1
\end{split}
\end{equation}
```

## Related Pages

* [Equations](/learn/latex/mathematics/equations)
* [Brackets and parentheses](/learn/latex/mathematics/brackets-parentheses)
