at the moment i am trying to recreate this equation in latex. i am having a bit of a trouble creating the vertical lines. With an array i can create the vertical lines but it seems that latex doesn't accept multiple arrays in equations. Is there a way to create vertical lines in a pmatrix? OR another way to recreate this equation?
Code: Select all
\begin{equation}
\label{3.54}
\left[
\begin{array}{ccc|cc}
s & 0 & 0 & {RT \over AL} & -{RT \over AL}\\
-p_{12}^* & p_1^* & 0 & {\alpha^* L \Phi ^* \over 2 A^2} & 0 \\
p_{12}^* &0& -p_2^* & 0 &{\alpha^* L \Phi ^* \over 2 A^2} \\ \hline
0& -1&0&0&0\\
0&0&-1&0&0
\end{array}
\right]
\left[
\begin{array}{c}
\Delta p_{12} (s)\\
\Delta p_{1} (s)\\
\Delta p_{2} (s)\\ \hline
-\Delta \phi_1 (s)\\
-\Delta \phi_2 (s)
\end{array}
\right]
=
\left[
\begin{array}
\\
0\\
\\ \hline
\Ddelta p_{1}(s)\\
\Delta p_{2}(s)
\end{array}
\right]
\end{equation}