LINEAR-ALGEBRA ยท Unit 5 ยท Video 1 ยท Interactive Practice
| Formula | Name | Description |
|---|---|---|
| Universal factorization | Works for every invertible matrix | |
| Permutation inverse | Every permutation matrix is orthogonal | |
| permutation matrices | Counting formula | Number of permutation matrices |
| when | Special case | No row swaps needed during elimination |
A permutation matrix reorders the rows of ; only some orderings place a nonzero entry in the first pivot.
๐ก Challenge: only one of these six orderings gives a valid first pivot โ find it.
A zero pivot stalls elimination; a row swap restarts it, and records the whole run.
๐ก In practice isn't known in advance โ you discover the swap only when elimination stalls on a zero pivot.
Applying a permutation and then its transpose returns every row home, so .
๐ก says the columns of are orthonormal โ every permutation matrix is orthogonal, at any size.
Question 1 ยท Counting Permutation Matrices
How many permutation matrices exist?
โ Correct! There are 4! = 24 permutation matrices of size 4ร4.
โ Not quite. The count is n! (n factorial). For n = 4, compute 4 ร 3 ร 2 ร 1.
Solution:
The number of permutation matrices is (n factorial).
For :
Each permutation matrix corresponds to one possible reordering of the 4 rows. The first row can go to any of 4 positions, the second to any of the remaining 3, and so on.
Question 2 ยท When Is A = LU Sufficient?
True or False: The factorization (without a permutation matrix ) works for every invertible matrix.
โ Correct! A = LU only works when no row swaps are needed. PA = LU is the universal factorization.
โ Not quite. Consider what happens when elimination encounters a zero pivot โ can A = LU still work?
Solution:
False. only works when elimination requires no row swaps โ that is, when every pivot encountered during elimination is nonzero without rearranging.
If a zero (or near-zero) pivot appears, we must swap rows. The permutation matrix records those swaps, giving the universal factorization .
is the special case of where (the identity).
Question 3 ยท Identifying the Permutation Matrix
To fix the zero pivot in , we swap rows 1 and 2.
Which matrix is the correct permutation matrix for this swap?
โ Correct! Swapping rows 1 and 2 of the identity gives this P.
โ Not quite. To build P, apply the needed row swap to the identity matrix. We need to swap rows 1 and 2.
Solution:
To swap rows 1 and 2, perform the same swap on the identity matrix:
Question 4 ยท Computing the Multiplier
After the row swap, we have .
In the first elimination step, , what is the multiplier and what does row 3 become?
โ Correct! The multiplier is 2 and row 3 becomes [0, 3, 7].
โ Not quite. The multiplier = (entry to eliminate) / (pivot) = 2/1 = 2. Subtract 2 times row 1 from row 3.
Solution:
The multiplier is the entry to eliminate divided by the pivot:
Then :
The multiplier is stored in position of .
Solved: 0 / 4