Definition
A permutation matrix is a square binary matrix (consisting of 0s and 1s) where each row and each column contains exactly one entry equal to 1, and all other entries are 0. It represents a reordering (or permutation) of rows or columns of a matrix.

Formally, a permutation matrix of size is associated with a permutation of the set , where the -th row has a 1 in the -th column.

Intuition
Permutation matrices act as a “shuffling operator” for rows or columns of other matrices or vectors. Multiplying a matrix by a permutation matrix permutes its rows or columns depending on the order of multiplication.

Key Properties

  1. Orthogonality:

  2. Determinant:

    where the sign depends on whether the associated permutation is even or odd.

  3. Action on Vectors:

    • Left-multiplication: permutes the rows of .
    • Right-multiplication: permutes the columns of .
  4. Composition of Permutations:

    • The product of two permutation matrices corresponds to the composition of the two associated permutations.

Construction
To construct a permutation matrix for a permutation :

  1. Start with the identity matrix .
  2. Rearrange the rows of according to the permutation .

Applications

  1. Lower–Upper Factorization (LU) with Pivoting:

    • Permutation matrices represent row swaps in partial pivoting, ensuring numerical stability.
  2. Reordering Problems:

    • Used to reorder rows or columns in numerical algorithms or combinatorial problems.
  3. Graph Theory:

    • Represent adjacency matrix transformations under vertex relabeling.
  4. Cryptography:

    • Permutation matrices are used in encryption schemes as part of mixing operations.

Examples

  1. Permutation (maps row 1 → row 2, row 2 → row 3, row 3 → row 1):

  2. Reordering rows of using :