[Tex/LaTex] Split matrix over two lines

equationsmatricessplit

I am having troubles in splitting the following equation over two lines – it is too long to fit in one line.

Ideally, I would like to split it between

\end{pmatrix}= 
 %%% split here
 \begin{pmatrix}

I tried both the split and the multiline environment but they do not seems to work with this particular case. Here the code

\begin{equation}
\label{eq:varcov} 
var
\begin{bmatrix}
           y_{11} \\
           y_{12} \\
           y_{13} \\
           y_{2} \\
           y_{31} \\
           y_{32} 
\end{bmatrix}= \\ \begin{pmatrix}
  \Sigma_1 &          &         \\
           & \Sigma_2 &          \\
           &          & \Sigma_3 
 \end{pmatrix}= 
 % split here
 \begin{pmatrix}
  \sigma_B^2 + \sigma_W^2 + V_{11}^2 & \sigma_B^2 & \sigma_B^2        &     &       &           \\
   \sigma_B^2 & \sigma_B^2 + \sigma_W^2 + V_{12}^2  & \sigma_B^2        &       &       &           \\
   \sigma_B^2 & \sigma_B^2 & \sigma_B^2 + \sigma_W^2 + V_{13}^2       &     &       &           \\
              &          &         &    \sigma_B^2 + \sigma_W^2 + V_{2}^2   &       &           \\
    &          &         &      &   \sigma_B^2 + \sigma_W^2 + V_{31}^2  & \sigma_B^2            \\
    &          &         &      &   \sigma_B^2  &   \sigma_B^2 + \sigma_W^2 + V_{32}^2      \\
\end{pmatrix}
\end{equation}

Thanks in advance for the help

Best Answer

There's no way that big matrix would fit on a page. But it's the purpose of symbol that of representing something else.

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\var}{var} % ??

\begin{document}

\begin{equation}
\label{eq:varcov}
\var
\begin{bmatrix}
  y_{11} \\
  y_{12} \\
  y_{13} \\
  y_{2} \\
  y_{31} \\
  y_{32} 
\end{bmatrix}=
\begin{pmatrix}
  \Sigma_1 &          &         \\
           & \Sigma_2 &          \\
           &          & \Sigma_3 
 \end{pmatrix}
\end{equation}
where
\begin{align*}
\Sigma_1&=
\begin{pmatrix}
  \sigma_B^2 + \sigma_W^2 + V_{11}^2 & \sigma_B^2 & \sigma_B^2 \\
  \sigma_B^2 & \sigma_B^2 + \sigma_W^2 + V_{12}^2  & \sigma_B^2 \\
  \sigma_B^2 & \sigma_B^2 & \sigma_B^2 + \sigma_W^2 + V_{13}^2
\end{pmatrix}
\\[2ex]
\Sigma_2&=\sigma_B^2 + \sigma_W^2 + V_{2}^2
\\[2ex]
\Sigma_3&=
\begin{pmatrix}
\sigma_B^2 + \sigma_W^2 + V_{31}^2  & \sigma_B^2 \\
\sigma_B^2  &   \sigma_B^2 + \sigma_W^2 + V_{32}^2
\end{pmatrix}
\end{align*}

\end{document}

enter image description here