Skip to content

Permutation Matrix

Definition

A permutation matrix is a square matrix with exactly one entry equal to 11 in each row and each column, and all other entries equal to 00.


Interpretation

A permutation matrix reorders: multiplying by it permutes the entries of a vector, or the rows or columns of a matrix, without changing any value. It is the identity matrix with its rows put in a different order.

A 4 by 4 permutation matrix with one 1 in each row and column, multiplying the vector (x1, x2, x3, x4) to give its entries reordered as (x2, x4, x1, x3).

Row 11 of the figure's P\boldsymbol{P} has its 11 in column 22, so the first entry of Px\boldsymbol{P}\boldsymbol{x} is x2x_2; rows 22, 33 and 44 pick x4x_4, x1x_1 and x3x_3. Row ii says which entry of x\boldsymbol{x} is copied into position ii, and column jj says where xjx_j goes: column 11 has its 11 in row 33, so x1x_1 moves to position 33.

The matrix product PA\boldsymbol{P}\boldsymbol{A} applies the same reordering to the rows of A\boldsymbol{A}, and AP\boldsymbol{A}\boldsymbol{P} reorders its columns. A reordering is undone by the transpose: P⊤P=I\boldsymbol{P}^{\top}\boldsymbol{P}=\boldsymbol{I}, so the inverse is P−1=P⊤\boldsymbol{P}^{-1}=\boldsymbol{P}^{\top}. The determinant is 11 when the reordering can be made with an even number of swaps and −1-1 otherwise; the figure's P\boldsymbol{P} is three swaps, so its determinant is −1-1.

The n×nn\times n permutation matrices correspond to the n!n! elements of the symmetric group SnS_n. Swapping two rows, an elementary row operation, is multiplication on the left by a permutation matrix; the LU decomposition PA=LU\boldsymbol{P}\boldsymbol{A}=\boldsymbol{L}\boldsymbol{U} records its row swaps this way.

A common slip is to take P−1=P\boldsymbol{P}^{-1}=\boldsymbol{P}. This holds for a single swap such as (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}, but applying the figure's P\boldsymbol{P} twice gives (x4,x3,x2,x1)(x_4,x_3,x_2,x_1), not x\boldsymbol{x}.


Key Results

  • The identity matrix is a permutation matrix.
  • The product of two permutation matrices is a permutation matrix.

Examples

  • (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix} swaps two rows when multiplied on the left.
  • I3\boldsymbol{I}_3 represents the permutation that changes nothing.

Prerequisites

Sources

Last updated: 20 October 2026 03:02