2 Sets and functions

2.15 Transpositions

2.15.1 Definition of a transposition

Definition 2.15.1.

A transposition is a 2-cycle.

For example, the only transpositions in S3 are (1,2), (2,3), and (1,3).

2.15.2 Every permutation is a product of transpositions

In this section we’re going to prove that every permutation can be written as a product of transpositions. Before we do so, here is some motivation for why we should expect this to be true.

One way we’ve already seen of illustrating a permutation s in Sn is to draw the numbers 1,2,,n in a column, and then in another column to its right, and draw a line from each number i in the first column to s(i) in the second. You get what looks like a lot of pieces of string tangled together.

Here is a diagram of the permutation s=(1,2,3,4,5). Think of the lines as pieces of string connecting i on the left with s(i) on the right.

Figure 2.17: A string diagram of the permutation (1,2,3,4,5). Two columns contain the numbers 1, 2, 3, 4, 5. Strings connect the numbers 1, 2, 3, 4, 5 in the left-hand column to 2, 3, 4, 5, 1 respectively in the right-hand column.

Composing two permutations drawn in this way corresponds to placing their diagrams side-by-side:

Figure 2.18: String diagrams for (1,2) and (2,3) are shown side by side, and then the right-hand column of the diagram for (1,2) is joined to the left-hand column for (2,3). The resulting diagram represents (2,3)(1,2)=(1,3,2)

Imagine taking such a diagram and stretching it out. You could divide it up into smaller diagrams, each of which contains only one crossing of strings.

Figure 2.19: String diagram for (1,2,3,4), with dotted vertical lines to divide the strings into sections with only one crossing. From left to right, the first crossing is between strings 3 and 4, then 2 and 3, then 1 and 2

A diagram with a single string crossing is a transposition, since only two numbers change place. The diagram above illustrates the fact that

(1,2,3,4)=(1,2)(2,3)(3,4).

Now we’re ready for a formal proof of the result that every permutation equals a product of transpositions. We first do it for cycles, for which we need a lemma.

Lemma 2.15.1.

Let a1,a2,,am,am+1 be distinct numbers. Then

(a1,a2)(a2,a3,,am+1)=(a1,a2,,am+1).

For example, you should check by calculating the two row notation for both sides that

(1,2)(2,3) =(1,2,3)
(2,3)(3,1,4,5) =(2,3,1,4,5)
(7,2)(2,8,9,6,4) =(7,2,8,9,6,4).
Proof.

Let

r =(a1,a2,,am+1)
t =(a1,a2)
s =(a2,a3,,am+1)

so that we have to show r(s)=t(s(x)) for all integers x. If x is not one of the ai then r(x)=x, s(x)=x, and t(x)=x so r(x)=t(s(x))=x. We only need to do the case when x is equal to ai for some 1im+1.

  • Let i=1. Then r(a1)=a2, and s(a1)=a1 and t(a1)=a2 so t(s(a1))=a2=r(a1).

  • Let i=2, so r(a2)=a3. We have s(a2)=a3 and t(a3)=a3, so t(s(a2))=a3=r(a2).

  • Let 3i<m+1, so, r(ai)=ai+1, s(ai)=ai+1, t(ai+1)=ai+1, so t(s(ai))=t(ai+1)=ai+1=r(ai).

  • Finally r(am+1)=a1, s(am+1)=a2, t(a2)=a1, so t(s(am+1))=a1=r(am+1). ∎

Lemma 2.15.2.

Every cycle equals a product of transpositions.

Proof.

Let a=(a1,,am) be a cycle. Lemma 2.15.1 tells us that

a=(a1,a2)(a2,a3,,am).

Using that lemma again on the cycle (a2,,am) we get

a=(a1,a2)(a2,a3)(a3,a4,,am).

Repeating this gives

a=(a1,a2)(a2,a3)(am1,am)

which shows that a can be written as a product of transpositions. ∎

To illustrate this result you should check by computing both sides that

(1,2,3,4)=(1,2)(2,3)(3,4).
Theorem 2.15.3.

Every permutation in Sn is equal to a product of transpositions.

Proof.

Let p be a permutation. We have seen that every permutation can be written as a product of cycles, so there are cycles c1,,ck such that p=c1ck. The lemma above shows how to write each ci as a product of transpositions, which expresses p as a product of transpositions too. ∎

Example 2.15.1.

Suppose we want to express

s=(123456231564)

as a product of transpositions. A disjoint cycle decomposition for s is

s=(1,2,3)(4,5,6)

and applying the lemma above, we get

(1,2,3) =(1,2)(2,3)
(4,5,6) =(4,5)(5,6)

So

s=(1,2,3)(4,5,6)=(1,2)(2,3)(4,5)(5,6).