# split

Splitting a single displayed equation across aligned lines, often inside a larger equation-like display.

https://texform.dev/latex/environments/split

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Alignment](https://texform.dev/latex/topics/alignment) |
| Packages | ams |
| Allowed mode | math |
| Tags | math-alignment, nestable |
| Commonality | medium |
| Body mode | math |

## Syntax

### ams

Argument specification: ``

Splitting a single displayed equation across aligned lines, often inside a larger equation-like display.

## Common tasks

### How to split one numbered equation on equals

split must live inside equation or a similar outer display.

```latex
\begin{equation} \begin{split} a &= b+c \\ &= d \end{split} \end{equation}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bequation%7D+%5Cbegin%7Bsplit%7D+a+%26%3D+b%2Bc+%5C%5C+%26%3D+d+%5Cend%7Bsplit%7D+%5Cend%7Bequation%7D)

### How to continue a long right-hand side

```latex
\begin{equation} \begin{split} f(x) &= (x+1)(x+2) \\ &\quad\times(x+3) \end{split} \end{equation}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bequation%7D+%5Cbegin%7Bsplit%7D+f%28x%29+%26%3D+%28x%2B1%29%28x%2B2%29+%5C%5C+%26%5Cquad%5Ctimes%28x%2B3%29+%5Cend%7Bsplit%7D+%5Cend%7Bequation%7D)

## Examples

```latex
\begin{split} a &= b \end{split}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Bsplit%7D+a+%26%3D+b+%5Cend%7Bsplit%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| ams | full | none | none |

## Usage frequency

2.31% of formulas in the measured corpus contain this entry, rank 7 of 31 entries with frequency data.

## In TeXForm

TeXForm reads the environment body in math mode.

## See also

- [align](https://texform.dev/latex/environments/align)
- [align*](https://texform.dev/latex/environments/align-star)
- [eqnarray](https://texform.dev/latex/environments/eqnarray)
- [eqnarray*](https://texform.dev/latex/environments/eqnarray-star)
- [gather](https://texform.dev/latex/environments/gather)
- [gather*](https://texform.dev/latex/environments/gather-star)

## Test cases

### ams

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{equation} \begin{split} a &= b \\ &= c \end{split} \end{equation} | Positive: ctx:in-equation | Pass | Fail | Fail |
