Synapse

An interconnected graph of micro-tutorials

Composing Permutations

This is an early draft. Content may change as it gets reviewed.

If you rearrange some objects, and then rearrange the result, the overall effect is itself a rearrangement. This is composition β€” doing one permutation, then another.

How composition works

Suppose $\sigma$ sends $1 \to 2, 2 \to 3, 3 \to 1$, and $\tau$ swaps 1 and 2 (leaving 3 alone).

To compute $\tau \circ \sigma$ (β€œdo $\sigma$ first, then $\tau$”), trace each element through both steps:

The result swaps 2 and 3, leaving 1 in place. In two-line notation:

$$\begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 1 \end{pmatrix} \text{ then } \begin{pmatrix} 1 & 2 & 3 \\ 2 & 1 & 3 \end{pmatrix} = \begin{pmatrix} 1 & 2 & 3 \\ 1 & 3 & 2 \end{pmatrix}$$

The recipe: for each element in the top row, read its image from the bottom row of $\sigma$, then look up that element in $\tau$.

Try It: Compose Two Permutations

Pick two permutations of {1, 2, 3}. Watch each element trace through both steps. The result is always another permutation.

Οƒ = then Ο„ =

Two key observations

The result is always a permutation

No matter which two permutations you compose, you get another permutation. The result still sends every element somewhere, and no two elements collide. This property is called closure β€” the set of permutations is closed under composition.

Order matters

Try composing the same two permutations in the opposite order. Usually, you get a different result!

Swapping 1 and 2 then rotating gives a different outcome from rotating then swapping. Permutation composition is not commutative β€” the order in which you apply the operations matters. (This is why we’re careful about β€œ$\sigma$ first, then $\tau$.”)

Connecting to group theory

These two observations β€” closure and non-commutativity β€” are exactly what makes permutations interesting as algebraic structures. When we study groups, we’ll see that the full set of permutations satisfies all four group axioms, and the non-commutativity tells us these groups are not abelian (except for very small sets).