Here is my code:
\begin{equation*} \begin{split}
begin{bmatrix} 2&5 & & 1& 0 \\ 3&5 & & 0&1 \end{bmatrix} & \rightarrow
\begin{bmatrix} 1&3 & & \frac{1}{2} & 0 \\ 3&5 & & 0&1 \end{bmatrix} \rightarrow
\begin{bmatrix} 1&3 & & \frac{1}{2} & 0 \\ 0&-4 & & \frac{-3}{2} & 1 \end{bmatrix} \rightarrow
\begin{bmatrix} 1&3 & & \frac{1}{2} & 0 \\ 0&-1 & & \frac{-3}{8} & \frac{1}{4} \end{bmatrix} \\
& \rightarrow \begin{bmatrix} \frac{-5}{8} & \frac{3}{4} \\ \frac{3}{8} & \frac{-1}{4} \end{bmatrix}
\end{split} \end{equation*}
The error tells me that the \begin{split} command ends at the first \end{bmatrix}. How do I align these matrices the way I want to?
beginin the second line. If I add it, the example runs without errors. – egreg Sep 29 '11 at 21:53