# Multi-line Equations

I am trying to split my equation. I am using the code below. However, each time I am getting the following error

! Extra }, or forgotten \right. } \$\hfill \endtemplate l.215 \end{split} ?

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$$\begin{split} MSE_{II}(\overline{y}_{CST})&= MSE_{I}(\overline{y}_{CST})+\overline{Y}^{2}\left[\left(c_{2}^{2}+2c_{1}c_{3}\right)V_{4,\, 0}+2c_{1}c_{2}V_{3,\, 0}+2\left(2c_{1}c_{2}+c_{3}\right)V_{3,\, 1} +\\ &+2 \left(c_{1}^{2}+c_{2} \right)V_{2,\, 1}+\left( c_{1}^{2}+2c_{2} \right)V_{2,\, 2}+{2c_{1}V_{1,\, 2}}\right] \end{split}$$
\end{document}


But, when I remove, \left[ and \right] codes, it works fine. I do not understand. Please, help me.

-
What's going on if you add a combination of \right. (end of the 1st line) and \left. (beginning of the 2nd line)? –  chl Aug 4 '12 at 21:54
–  Torbjørn T. Aug 4 '12 at 23:02

Besides the balancing issue associated to the use of \left, \right, your expression can be improved introducing some modifications:

1. Using \left( ... \right) for the inner expressions produces delimiters that are too big and introduce some additional horizontal space that it's superfluous in this particular case, so I think that it's better to use just (...).
2. You need to use +{} so that the ending plus sign in the first line is correctly trated as an operator; analogously, you need to use {}+ for the first plus sign in the second line.
3. Instead of using \left[, \right. in the first line and \right., \left] in the second line, I would suggest you to use \bigl[, \bigr] which don't need to be balanced in each line and produce better sized delimiters in most cases.
4. The plus sign in the second line must be (according to some standard typographical rules for displayed math expressions) two-ems to the right of the alignment point.

In the following code I include, for comparison, your code (with the balancing problem solved) and then the code implementing my suggestions:

\documentclass[12pt]{article}
\usepackage[margin=2cm]{geometry}% just for the example
\usepackage{amsmath}

\begin{document}

$$\begin{split} MSE_{II}(\overline{y}_{CST}) &= MSE_{I}(\overline{y}_{CST}) +\overline{Y}^{2}\left[ \left( c_{2}^{2}+2c_{1}c_{3} \right)V_{4,\, 0}+2c_{1}c_{2}V_{3,\,0} +2\left(2c_{1}c_{2}+c_{3}\right)V_{3,\, 1} + \right. \\ & \left. + 2 \left(c_{1}^{2}+c_{2} \right)V_{2,\, 1}+ \left(c_{1}^{2}+2c_{2} \right)V_{2,\, 2} + {2c_{1}V_{1,\, 2}} \right] \end{split}$$

$$\begin{split} MSE_{II} ( \overline{y}_{CST} ) &= MSE_{I} ( \overline{y}_{CST} ) + \overline{Y}^{2} \bigl[ (c_{2}^{2} + 2c_{1}c_{3} ) V_{4,\, 0} + 2c_{1}c_{2} V_{3,\,0} + 2 ( 2c_{1}c_{2} + c_{3} ) V_{3,\, 1} +{} \\ &\qquad {}+ 2 ( c_{1}^{2} + c_{2} )V_{2,\, 1} + ( c_{1}^{2} + 2c_{2} ) V_{2,\, 2} + {2c_{1}V_{1,\, 2}} \bigr] \end{split}$$

\end{document}


-
Much obliged for your help and advices, it works great! your suggestion looks perfect. –  Murat Arat Aug 5 '12 at 7:46
\left and \right must be balanced in the same line. You have to add \right. in the first line and \left. in the second line.
$$\begin{split} MSE_{II}(\overline{y}_{CST})&= MSE_{I}(\overline{y}_{CST})+\overline{Y}^{2} \left[ \left(c_{2}^{2}+2c_{1}c_{3}\right) V_{4,\, 0}+2c_{1}c_{2}V_{3,\, 0}+2 \left(2c_{1}c_{2}+c_{3}\right) V_{3,\, 1} \right.+\\ &+2 \left. \left(c_{1}^{2}+c_{2} \right) V_{2,\, 1}+\left( c_{1}^{2}+2c_{2} \right) V_{2,\, 2}+{2c_{1}V_{1,\, 2}}\right] \end{split}$$

Environments cannot be divided by tabbing &. eg \left with \right. That is why the invisible right and left delimiters were added. This also means you must always have properly nested environments. –  R. Schumacher Aug 4 '12 at 22:04