Consider the three permutation matrices \(P_1,P_2,P_3\) and the matrix \(B\):
$$ P_1=\begin{bmatrix}0&1&0\\1&0&0\\0&0&1\end{bmatrix},\qquad P_2=\begin{bmatrix}1&0&0\\0&0&1\\0&1&0\end{bmatrix}, $$
$$ P_3=\begin{bmatrix}0&0&1\\1&0&0\\0&1&0\end{bmatrix},\qquad B=\begin{bmatrix}2&-1&4\\0&3&5\\-2&6&1\end{bmatrix}. $$
Find each product by observing how the entries are reordered, without explicitly carrying out matrix multiplication. Write each answer as a \(3\times3\) matrix.
$$ \text{(i) }P_1P_2\qquad \text{(ii) }P_2B\qquad \text{(iii) }P_3B\qquad \text{(iv) }P_1P_2B\qquad \text{(v) }BP_1 $$
Solution
Left multiplication by a permutation matrix reorders rows; right multiplication reorders columns. For a sequence of row reorderings, the rightmost permutation matrix acts first.
(i) \(P_1\) swaps the first two rows of \(P_2\), so
$$ \boxed{P_1P_2=\begin{bmatrix}0&0&1\\1&0&0\\0&1&0\end{bmatrix}=P_3.} $$
(ii) \(P_2\) swaps the last two rows of \(B\):
$$ \boxed{P_2B=\begin{bmatrix}2&-1&4\\-2&6&1\\0&3&5\end{bmatrix}.} $$
(iii) \(P_3\) puts the rows of \(B\) in order \((3,1,2)\):
$$ \boxed{P_3B=\begin{bmatrix}-2&6&1\\2&-1&4\\0&3&5\end{bmatrix}.} $$
(iv) First \(P_2\) swaps rows 2 and 3, then \(P_1\) swaps the current rows 1 and 2. The resulting order is \((3,1,2)\):
$$ \boxed{P_1P_2B=\begin{bmatrix}-2&6&1\\2&-1&4\\0&3&5\end{bmatrix}.} $$
This agrees with part (i), since \(P_1P_2=P_3\).
(v) Multiplying \(B\) on the right by \(P_1\) swaps its first two columns, not its rows, so
$$ \boxed{BP_1=\begin{bmatrix}-1&2&4\\3&0&5\\6&-2&1\end{bmatrix}.} $$