2 Sets and functions

2.12 Inverses and composition

2.12.1 Inverse of a permutation

Permutations are bijections, so by Theorem 2.10.1 they have inverse functions. The inverse function to a permutation σ undoes what σ did, in the sense that if σ(x)=y then σ1(y)=x. In two row notation you write σ(x) beneath x, so you can get the two row notation for σ1 by swapping the rows (and reordering).

Example 2.12.1.
σ =(12342341)
σ1 =(23411234)=(12344123)

2.12.2 Composition of permutations

We know by Theorem 2.10.2 that the composition of two bijections is a bijection, so the composition of two permutations of a set X is again a permutation of X.

Example 2.12.2.

Let

σ =(123213)
τ =(123132)

Then στ is the function {1,2,3}{1,2,3} whose rule is “do τ, then do σ.” Thus

(στ)(1) =σ(τ(1))=σ(1)=2
(στ)(2) =σ(τ(2))=σ(3)=3
(στ)(3) =σ(τ(3))=σ(2)=1

In two row notation,

στ=(123231).

There are several similarities between composing permutations and multiplying nonzero numbers. For example, if a, b, and c are nonzero real number then a(bc)=(ab)c. Furthermore the identity permutation behaves for composition just like the number 1 behaves for multiplication. For each nonzero real number a we have a×1=1×a=a, and for each permutation s we have sid=ids=s. Equally, for each nonzero real number a there is another nonzero real number a1 such that a×a1=1=a1×a, and for each permutation s there is an inverse permutation s1 such that ss1=id=s1s. Because of these similarities we often talk about multiplying two permutations when we mean composing them, and given two permutations s and t we usually write st for their composition instead of st.

2.12.3 Composition isn’t commutative

Composition has one big difference with real number multiplication: the order matters.

Example 2.12.3.

With σ and τ as before,

στ =(123231)
τσ =(123312)

Comparing this to the example in the previous section, στ and τσ are different. Composition of permutations is not commutative in general.

Definition 2.12.1.

Two permutations s and t are said to commute if st=ts.