LINEAR-ALGEBRA ยท Unit 2 ยท Video 3 ยท Interactive Practice

Permutation Matrices and Inverses

IKey Formulas

Formula Name Description
PAPA swaps rows; APAP swaps columns Left / Right rule Multiplication side determines what moves
Pโˆ’1=PTP^{-1} = P^{T} Permutation inverse Transpose undoes any permutation
Flip the sign of the multiplier Elimination inverse Subtracting โ„“\ell is undone by adding โ„“\ell
P2=IP^2 = I (for single row swaps) Self-inverse Swapping the same pair twice restores original

IIVisualization 1 โ€” Permutation as Row Selector

A permutation matrix rearranges the identity's rows; the product PAPA applies that same reordering to AA.

IIIVisualization 2 โ€” Same P, Rows vs Columns

The side you multiply on decides the axis: PAPA reorders the rows of AA, while APAP reorders its columns.

IVVisualization 3 โ€” Inverse as Undo

E21E_{21} subtracts โ„“\ell times row 1 from row 2; E21โˆ’1E_{21}^{-1} flips that sign to add it back.

๐Ÿ’ก This sign-flip shortcut works only for elementary elimination matrices with a single off-diagonal entry โ€” general matrices need full inversion.

VQuiz Questions

Question 1

Let P=[0110]P = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} and A=[3478]A = \begin{bmatrix} 3 & 4 \\ 7 & 8 \end{bmatrix}.

What is the product PAPA?

โœ… Correct! Left-multiplying by PP swaps the rows of AA.

โŒ Not quite. Remember: left-multiplying swaps rows, not columns. Each row of PP selects a row from AA.

Show solution

Solution:

Left-multiplying by PP swaps the rows of AA:

PA=[0110][3478]=[7834]PA = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 3 & 4 \\ 7 & 8 \end{bmatrix} = \begin{bmatrix} 7 & 8 \\ 3 & 4 \end{bmatrix}

  • Row 1 of PP is [0,โ€…โ€Š1][0,\; 1], which selects row 2 of AA: [7,โ€…โ€Š8][7,\; 8].
  • Row 2 of PP is [1,โ€…โ€Š0][1,\; 0], which selects row 1 of AA: [3,โ€…โ€Š4][3,\; 4].

Question 2

True or False: For any permutation matrix PP, the inverse equals the transpose: Pโˆ’1=PTP^{-1} = P^{T}.

โœ… Correct! The transpose of any permutation matrix is always its inverse.

โŒ Not quite. Permutation matrices have a special property: their transpose is always their inverse.

Show solution

Solution: True.

Permutation matrices are orthogonal โ€” their rows (and columns) are orthonormal vectors. This means PTP=IP^{T} P = I, so PTP^{T} is the inverse of PP.

Special case: For a matrix that swaps exactly two rows, PT=PP^{T} = P itself, so Pโ‹…P=IP \cdot P = I โ€” swap twice and you're back to the original.

Question 3

The elimination matrix E21=[100โˆ’410001]E_{21} = \begin{bmatrix} 1 & 0 & 0 \\ -4 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} subtracts 4 times row 1 from row 2.

What is E21โˆ’1E_{21}^{-1}?

โœ… Correct! Flip the sign of the multiplier โ€” that's all it takes for elimination matrices.

โŒ Not quite.

Show solution

Solution: Change โˆ’4-4 to +4+4 (flip the sign).

E21โˆ’1=[100+410001]E_{21}^{-1} = \begin{bmatrix} 1 & 0 & 0 \\ +4 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

Why? E21E_{21} subtracts 4 times row 1 from row 2. To undo this, E21โˆ’1E_{21}^{-1} adds 4 times row 1 back.

Verification: The (2,1) entry of Eโˆ’1EE^{-1}E is: 4โ‹…1+1โ‹…(โˆ’4)=4โˆ’4=0โ€…โ€Šโœ“4 \cdot 1 + 1 \cdot (-4) = 4 - 4 = 0 \;\checkmark

โš ๏ธ This sign-flip shortcut works only for elementary elimination matrices with a single off-diagonal entry โ€” not for general matrices.

Question 4

How many distinct permutation matrices exist for a 3ร—33 \times 3 system?

โœ… Correct! There are 3!=63! = 6 ways to arrange 3 rows.

โŒ Not quite.

Show solution

Solution: 6 permutation matrices.

The number of nร—nn \times n permutation matrices equals n!n! (n factorial), because each one corresponds to a unique reordering of nn rows.

3!=3ร—2ร—1=63! = 3 \times 2 \times 1 = 6

The six row orderings are: (1,2,3),โ€…โ€Š(1,3,2),โ€…โ€Š(2,1,3),โ€…โ€Š(2,3,1),โ€…โ€Š(3,1,2),โ€…โ€Š(3,2,1)(1,2,3),\; (1,3,2),\; (2,1,3),\; (2,3,1),\; (3,1,2),\; (3,2,1).

Each gives a unique permutation matrix.

Solved: 0 / 4