Apply a permutation matrix to reorder rows
Build the permutation matrix for a stated row order, one 1 per row and column. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
A permutation matrix is the identity with its rows put in a different order. That is the whole definition. Nothing is added, nothing is scaled, no entry changes value — the rows simply arrive in a new sequence.
So for the row order is
Read the 1's across the rows: column 2, then column 3, then column 1. That list is the order. Row 1 of has its 1 in column 2, so row 1 of is row 2 of. Row 2 picks row 3, row 3 picks row 1.
There are of them for size: three choices for the first row's 1, two for the second, one for the third.
Row of has its single 1 in some column. Transposing puts row of into column of, so column of still has that same 1 in position.
Now dot row of with column of. Both are the vector with a single 1, and they share a position only when. So the product is on the diagonal and everywhere else —.
Two consequences worth holding on to. First, undoing a reordering is another reordering, so you never need elimination to invert a permutation. Second,, because and.
Take for the order and a matrix:
Row 1 of has its 1 in column 3, so row 1 of is row 3 of, which is. Row 2 picks row 1:. Row 3 picks row 2:.
Check by counting: three rows in, three rows out, every original row present exactly once. That is the property the column condition buys you.
- Build the permutation matrix for a stated row order, one 1 per row and column
- Read the row order of PA off the columns holding the 1's of P
- Tell a permutation matrix from a 0/1 matrix that loses or duplicates an entry
Which of these is a permutation matrix?
Then say what each one does to when it multiplies from the left.
Answers
Only.
passes all three tests — entries are 0 and 1, every row sums to 1, every column sums to 1 — and it swaps the entries, sending to.
fails the column test: column 1 holds two 1's and column 2 holds none. It sends to, losing the 7.
fails the entry test: a 2 is not allowed. If you accepted it you would get again, which looks right — a reminder that a plausible output does not prove a valid input. The definition is about the entries, not about the result.