I have an equation split to multiple lines. But the last line of the multiline equation contains 2x1 vector with long equations that go out of margin. How do I further split the equations in the vector so that they do go over margin and look visually pleasing?
\begin{equation} \label{eq:7}
\begin{split}
\mathbf{y}(1)&=tanh(\mathbf{W}^{ro}\cdot\mathbf{h}(1)+\mathbf{W}^{io}\cdot\mathbf{x}(1)) \\
&=\begin{bmatrix} tanh\Big(w^{ro}_{1,1}\cdot\alpha\cdot tanh\big(w^{ir}_{1,1}\cdot x_{1}(1)+w^{ir}_{2,1}\cdot x_{2}(1)\big) + w^{ro}_{2,1}\cdot \alpha \cdot tanh\big(w^{ir}_{1,2}\cdot x_{1}(1)+w^{ir}_{2,2} \cdot x_{2}(1)\big) + w^{io}_{1,1} \cdot x_{1}(1)+w^{io}_{2,1} \cdot x_{2}(1)\Big) \\ tanh\Big(w^{ro}_{1,2}\cdot \alpha \cdot tanh\big(w^{ir}_{1,1}\cdot x_{1}(1)+w^{ir}_{2,1}\cdot x_{2}(1)\big) + w^{ro}_{2,2}\cdot \alpha \cdot tanh\big(w^{ir}_{1,2}\cdot x_{1}(1)+w^{ir}_{2,2} \cdot x_{2}(1)\big) + w^{io}_{1,2}\cdot x_{1}(1)+w^{io}_{2,2}\cdot x_{2}(1)\Big) \end{bmatrix}.
\end{split}
\end{equation}
Current output looks like below where good portion of equations go over margin:
Any help will be greatly appreciated