permutation

A permutation of a set 𝑆 is a bijective(invertible) map from 𝑆 to itself.

If we take any vector space 𝑉 just as an infinite set, any invertible linear map is a permutation that preserves addition and scalar multiplication.

There is a permutation matrix 𝑃 associated to any permutation 𝑝. For example, if there are three indices, the matrix 𝑃 associated to the cyclic permutation 𝑝 =(𝟏,𝟐,𝟑) and its operation on a column vector are as follows:

𝑃𝑋=⎛⎜ ⎜ ⎜⎝001100010⎞⎟ ⎟ ⎟⎠⎛⎜ ⎜ ⎜⎝𝑥1𝑥2𝑥3⎞⎟ ⎟ ⎟⎠=⎛⎜ ⎜ ⎜⎝𝑥3𝑥1𝑥2⎞⎟ ⎟ ⎟⎠

Permutation matrix

It is essential to write the matrix of an arbitrary permutation down carefully, and to check that the matrix associated to a product 𝑝𝑞 of permutations is the product matrix 𝑃𝑄. To write a permutation matrix explicitly, it is best to use the 𝑛 ×𝑛 matrix units 𝑒𝑖𝑗:

𝑃=∑𝑖𝑒𝑝𝑖,𝑖

It maps position 𝑖 to 𝑝(𝑖):

𝑃𝑋=(∑𝑖𝑒𝑝𝑖,𝑖)(∑𝑗𝑒𝑗𝑥𝑗)=∑𝑖,𝑗𝑒𝑝𝑖,𝑖𝑒𝑗𝑥𝑗=∑𝑖𝑒𝑝𝑖,𝑖𝑒𝑖𝑥𝑖=∑𝑖𝑒𝑝𝑖𝑥𝑖