Transpositions, Parity, and the Alternating Group $A_n$
Who can deny that life is not fair, nor easy, just a messy affair where we muddle along with glimpses of significant relationships, search of meaning, and purpose? Who can justify that lies are abundant and spreading, news are mainly fake, and driven by political and economic narratives, history is being twisted, trust is all gone, and we all know that something needs to be done? Who can deny that yesterday is gone, tomorrow is not promised, and we only have today? Who can rebuff that destiny is a bitch, money is king and sometimes even god, and life is but a dream, a worn out ship on troubled waters? Who can deny that I love you, Bew, like crazy, my sweet angel? Desperate verses IV, M. Anawim, #justtothepoint.
Introduction
In group theory, permutations can be broken down into the simplest possible non-trivial rearrangements: swaps of just two elements. Throughout this article, we use right-to-left function composition, meaning that in a product $\sigma \tau$, the permutation $\tau$ is applied first, followed by $\sigma$.
Decomposing Permutations into Transpositions
A transposition (or $2$-cycle) is a cycle of length $2$, written $(ab)$ with $a \neq b$, which swaps $a$ and $b$ while fixing all other elements.
Theorem. Every permutation $\alpha \in S_n$ (for $n > 1$) can be expressed as a product of transpositions.
Proof.
First, consider the identity permutation $e$. Since $n > 1$, the transposition $(12)$ exists in $S_n$, and we can write $e = (12)(12)$ (or, by convention, as the empty product of $0$ transpositions).
Now let $\alpha \in S_n$ be any non-identity permutation. By the Disjoint Cycle Decomposition Theorem, $\alpha$ can be written as a product of disjoint cycles of length at least $2$: $\alpha = (a_1 a_2 \dots a_k)(b_1 b_2 \dots b_t) \dots (c_1 c_2 \dots c_s)$
We claim that any $k$-cycle $(a_1 a_2 \dots a_k)$ can be written as a product of $k - 1$ transpositions: $(a_1 a_2 \dots a_k) = (a_1 a_k)(a_1 a_{k-1}) \dots (a_1 a_3)(a_1 a_2)$
To verify this identity, we trace the image of each element $a_i$ under the right-hand side, working from right to left:For $a_1$:
- The rightmost transposition $(a_1 a_2)$ maps $a_1 \mapsto a_2$. None of the remaining transpositions to the left contain $a_2$, so $a_2$ is fixed by the rest of the product. Thus, $a_1 \mapsto a_2$.
- For $a_i$ with $2 \le i \le k-1$: Reading from right to left, $a_i$ is fixed until it reaches $(a_1 a_i)$, which maps $a_i \mapsto a_1$. Immediately to its left (notice that $i \le k-1$, so such a transposition exists to its left), $(a_1 a_{i+1})$ maps $a_1 \mapsto a_{i+1}$. None of the remaining transpositions to the left contain $a_{i+1}$, so $a_i \mapsto a_{i+1}$.
- For $a_k$: Every transposition to the right of $(a_1 a_k)$ fixes $a_k$. Finally, $(a_1 a_k)$ maps $a_k \mapsto a_1$.
- For any $x \notin \{a_1, \dots, a_k\}$: Every transposition fixes $x$.
This matches the action of $(a_1 a_2 \dots a_k)$ on every element. Applying this decomposition to each disjoint cycle in $\alpha$ yields: $\alpha = (a_1 a_k)(a_1 a_{k-1}) \dots (a_1 a_2)(b_1 b_t)(b_1 b_{t-1}) \dots (b_1 b_2) \dots (c_1 c_s)(c_1 c_{s-1}) \dots (c_1 c_2)$.
Thus, $\alpha$ is a product of transpositions. $\blacksquare$
Examples:
- $(12345) = (15)(14)(13)(12)$.
- $(2745) = (25)(24)(27)$.
- $(16)(253) = (16)(23)(25)$.
Important Observation: Unlike disjoint cycle decomposition, the decomposition of a permutation into transpositions is not unique. For instance: $(123) = (13)(12) = (23)(13) = (12)(13)(12)(12)$
Notice, however, that in all three expressions above, the number of transpositions is even ($2$, $2$, and $4$). As we are about to prove, this is not a coincidence.
Even and Odd Permutations
Definition. A permutation $\alpha \in S_n$ is called an even permutation if it can be expressed as a product of an even number of transpositions. It is called an odd permutation if it can be expressed as a product of an odd number of transpositions. At this point, it is not yet obvious that “even” and “odd” are mutually exclusive.
Could a permutation be written as both a product of $2$ transpositions and a product of $3$ transpositions? To rule this out, we first analyze the identity permutation $e$.
Lemma (Parity of the Identity). If the identity permutation $e \in S_n$ is written as a product of transpositions, $e = \beta_1 \beta_2 \dots \beta_r,$ then $r$ must be even.
Proof.
We proceed by strong induction on $r$, the number of transpositions.
Base Cases:
- If $r = 0$, the empty product is $e$, and $0$ is even.
- Notice that $r = 1$ is impossible, because a single transposition $(ab)$ swaps $a$ and $b$ ($a \neq b$) and therefore cannot equal the identity $e$.
- If $r = 2$, then $r$ is trivially even.
Inductive Step: Suppose $r > 2$, and assume that whenever $e$ is written as a product of $k$ transpositions with $k < r$, $k$ must be even.
Let $e = \beta_1 \beta_2 \dots \beta_r$ and let $a$ be one of the two elements moved by the rightmost transposition $\beta_r$. Look at the rightmost pair of transpositions $\beta_{r-1} \beta_r$. Since $a$ appears in $\beta_r$, we can write $\beta_r = (ab)$ for some $b \neq a$. Letting $a, b, c, d$ denote distinct elements, there are exactly four possibilities for the product $\beta_{r-1} \beta_r$:
- $(ab)(ab) = e$
- $(ac)(ab) = (ab)(bc)$
- $(cb)(ab) = (ac)(cb)$
- $(cd)(ab) = (ab)(cd)$
You can verify Cases 2 and 3 directly by right-to-left composition: in Case 2, both sides equal the $3$-cycle $(abc)$; in Case 3, both sides equal $(acb)$. Case 4 holds because disjoint transpositions commute.
- If Case 1 occurs: Then $\beta_{r-1}\beta_r = e$, so they cancel out, leaving: $e = \beta_1 \beta_2 \dots \beta_{r-2}$.
By the strong induction hypothesis, since $r - 2 < r$, $r - 2$ must be even. Therefore, $r$ is even.
- If Case 2, 3, or 4 occurs: We replace $\beta_{r-1}\beta_r$ with the corresponding right-hand side. In all three cases, the total number of transpositions remains $r$, but the rightmost occurrence of $a$ has moved one position to the left (it is now in the second transposition from the right, and no longer in the rightmost transposition).
We now repeat this exact process on the new pair consisting of the transposition containing this rightmost $a$ and the transposition immediately to its left. At each step, one of two things happens:
- We hit Case 1, two adjacent transpositions cancel, and strong induction immediately proves $r$ is even.
- We never hit Case 1, and the rightmost occurrence of $a$ is pushed all the way to the leftmost transposition of the entire product: $e = (ax)\gamma_2 \gamma_3 \dots \gamma_r$ where $a$ does not appear in any of $\gamma_2, \gamma_3, \dots, \gamma_r$.
However, evaluating this product at $a$ gives: $e(a) = (ax)\bigl(\gamma_2 \gamma_3 \dots \gamma_r(a)\bigr) = (ax)(a) = x \neq a$. This contradicts $e(a) = a$. Therefore, Case 1 must occur at some step, which proves $r$ is even. $\blacksquare$
Theorem (Well-Definedness of Parity). No permutation in $S_n$ can be expressed as both a product of an even number of transpositions and a product of an odd number of transpositions.
Proof.
Suppose a permutation $\alpha \in S_n$ can be written in two ways as a product of transpositions: $\alpha = \beta_1 \beta_2 \dots \beta_r = \zeta_1 \zeta_2 \dots \zeta_s$
Since every transposition is its own inverse ($\beta_i^{-1} = \beta_i$), the inverse of $\alpha$ is: $\alpha^{-1} = (\beta_1 \beta_2 \dots \beta_r)^{-1} = \beta_r^{-1} \dots \beta_2^{-1} \beta_1^{-1} = \beta_r \dots \beta_2 \beta_1$
Multiplying $\alpha$ by $\alpha^{-1}$ gives the identity: $e = \alpha \alpha^{-1} = \zeta_1 \zeta_2 \dots \zeta_s \beta_r \dots \beta_2 \beta_1$
This expresses $e$ as a product of $r + s$ transpositions. By the Parity of the Identity Lemma, $r + s$ must be even. Therefore, $r$ and $s$ must have the same parity (either both are even, or both are odd). $\blacksquare$
The Alternating Group $A_n$
Because parity is well-defined, we can cleanly separate all even permutations into their own algebraic structure.
Theorem. For any $n \ge 1$, the set of all even permutations in $S_n$, denoted $A_n = \{\sigma \in S_n \mid \sigma \text{ is even}\}$, forms a subgroup of $S_n$. It is called the alternating group of degree $n$.
Proof.
We apply the One-Step Subgroup Test:
-
Non-empty ($e \in A_n$): The identity permutation $e$ is indeed an even permutation ($0$ transpositions), so $e \in A_n$.
-
Closed under $\alpha\beta^{-1}$: Let $\alpha, \beta \in A_n$. Then $\alpha$ is a product of $2k$ transpositions and $\beta$ is a product of $2m$ transpositions for some integers $k, m \ge 0$: $\alpha = \tau_1 \tau_2 \dots \tau_{2k}, \qquad \beta = \sigma_1 \sigma_2 \dots \sigma_{2m}$
Taking the inverse of $\beta$ reverses the order of the transpositions (since each transposition is its own inverse): $\beta^{-1} = \sigma_{2m} \dots \sigma_2 \sigma_1$
Therefore, $\alpha\beta^{-1} = \tau_1 \tau_2 \dots \tau_{2k} \sigma_{2m} \dots \sigma_2 \sigma_1$ which is a product of $2k + 2m = 2(k+m)$ transpositions. Thus $\alpha\beta^{-1}$ is even, so $\alpha\beta^{-1} \in A_n$. Hence, $A_n \le S_n$. $\blacksquare$
Theorem (Order of $A_n$). For $n > 1$, the order of the alternating group is: $\vert{}A_n\vert{} = \frac{n!}{2}$
Note: The condition $n > 1$ is essential. When $n = 1$, $S_1 = A_1 = \{e\}$, so $\vert{}A_1\vert{} = 1 \neq 1!/2$. For $n > 1$, we are guaranteed that the transposition $(12)$ exists in $S_n$.
Proof.
Let $A_n$ be the set of even permutations in $S_n$, and let $B_n$ be the set of odd permutations in $S_n$. By Theorem 1 and Theorem 2, every permutation is either even or odd, and never both. Thus, $A_n$ and $B_n$ form a partition of $S_n$: $S_n = A_n \cup B_n \quad \text{and} \quad A_n \cap B_n = \emptyset$
Define a map $\Phi: A_n \to B_n$ by: $\Phi(\alpha) = (12)\alpha$
-
Well-defined: If $\alpha \in A_n$, then $\alpha$ is a product of $2k$ transpositions, so $(12)\alpha$ is a product of $2k + 1$ transpositions (odd). Thus $\Phi(\alpha) \in B_n$.
-
Injective (One-to-One): Suppose $\Phi(\alpha) = \Phi(\beta)$. Then $(12)\alpha = (12)\beta$. By left cancellation in the group $S_n$, $\alpha = \beta$.
-
Surjective (Onto): Let $\gamma \in B_n$. Since $\gamma$ is a product of $2m + 1$ transpositions, $(12)\gamma$ is a product of $2m + 2$ transpositions (even), so $(12)\gamma \in A_n$. Moreover: $\Phi\bigl((12)\gamma\bigr) = (12)(12)\gamma = e\gamma = \gamma$
Since $\Phi$ is a bijection between $A_n$ and $B_n$, we have $\vert{}A_n\vert{} = \vert{}B_n\vert{}$. Because $A_n$ and $B_n$ partition $S_n$: $\vert{}S_n\vert{} = \vert{}A_n\vert{} + \vert{}B_n\vert{} = 2\vert{}A_n\vert{} \implies \vert{}A_n\vert{} = \frac{\vert{}S_n\vert{}}{2} = \frac{n!}{2}$. This completes the proof. $\blacksquare$
Why Parity Matters Beyond Abstract Algebra
The key idea is that parity is a conserved piece of information. Once you classify permutations into two types, even and odd, many seemingly unrelated problems suddenly become questions about whether a process can change parity.
- Linear Algebra (Determinants): The Leibniz formula for the determinant of an $n \times n$ matrix $A$ assigns $+1$ to even permutations and $-1$ to odd permutations: $\boxed{\det(A) = \sum_{\sigma \in S_n} \operatorname{sgn}(\sigma) \prod_{i=1}^n a_{i, \sigma(i)}}$. Swapping two rows multiplies the permutation by a transposition, flipping its parity and negating the determinant.
Every term corresponds to a permutation $\sigma$.
- If $\sigma$ is even, $\operatorname{sgn}(\sigma)=+1.$
- If $\sigma$ is odd, $\operatorname{sgn}(\sigma)=-1$
At first sight this looks arbitrary. Why do we attach $+1$ and $−1$?
The reason is that the determinant is designed to detect orientation.
A $2\times2$ example. For $A= \begin{pmatrix} a & b\\ c & d \end{pmatrix},$ there are only two permutations: (i) identity e, which is even; transposition $(12)$, odd.
Thus, $\det(A)=ad-bc.$ Notice the minus sign comes precisely from the odd permutation.
Now swap the two rows: $\begin{pmatrix} c & d\\ a & b \end{pmatrix}.$ Its determinant is $cb-da =-(ad-bc).$ The determinant changes sign. Swapping two rows is a transposition.
A transposition changes parity: $\text{even} \leftrightarrow \text{odd}$. Therefore, every term that previously had sign $+1$ now has sign $−1$ and vice versa. So $\det(\text{matrix with swapped rows}) = -\det(A).$
- The 15-Puzzle.
Consider the famous puzzle: $\begin{matrix} 1&2&3&4\\ 5&6&7&8\\ 9&10&11&12\\ 13&14&15&\square \end{matrix}$. Every legal sequence of tile slides that returns the empty space to the bottom-right corner induces an even permutation of the $15$ numbered tiles.
Swapping tiles $14$ and $15$ is a single transposition (an odd permutation), which is why that configuration is mathematically impossible to solve. $\begin{matrix} 1&2&3&4\\ 5&6&7&8\\ 9&10&11&12\\ 13&15&14&\square \end{matrix}$
In other words, if the blank starts and ends in the same corner, the overall effect on the 15 numbered tiles must be an even permutation, $\text{reachable states} \subseteq A_{15}.$ The solved puzzle has even parity. Every legal sequence preserves the appropriate parity invariant. Therefore, an odd configuration can never be reached.
- Galois Theory: For $n \ge 5$, the alternating group $A_n$ is a simple group (it has no non-trivial normal subgroups). This structural property is the core reason why general polynomial equations of degree $5$ or higher cannot be solved using radicals.
Worked Exercises
- Exercise 1: Find all elements of the alternating group $A_4$.
Solution.
$\vert{}A_4\vert{} = \frac{4!}{2} = \frac{24}{2} = 12$.
We classify the even permutations in $S_4$ by their disjoint cycle structures:
- Identity ($0$ transpositions) — $1$ element: $e$
- Products of two disjoint transpositions ($2$ transpositions) — $3$ elements: $(12)(34), \quad (13)(24), \quad (14)(23)$
- $3$-cycles (each equals $2$ transpositions, since $(abc) = (ac)(ab)$) — $8$ elements:
Fixing $4$: $(123), (132)$
Fixing $3$: $(124), (142)$
Fixing $2$: $(134), (143)$
Fixing $1$: $(234), (243)$
Note: Single transpositions and $4$-cycles are excluded because they are odd: a $4$-cycle requires $3$ transpositions. Summing these up gives $1 + 3 + 8 = 12$ elements: $A_4 = \{e, (12)(34), (13)(24), (14)(23), (123), (132), (124), (142), (134), (143), (234), (243)\}$
- Exercise 2: Computing Inverses of Permutations
Recall the Socks-and-Shoes Property for group inverses: $(\sigma_1 \sigma_2 \dots \sigma_l)^{-1} = \sigma_l^{-1} \dots \sigma_2^{-1} \sigma_1^{-1}$. For a single cycle $\sigma = (a_1 a_2 \dots a_k)$, since $\sigma$ maps $a_1 \to a_2 \to \dots \to a_k \to a_1$, its inverse simply reverses the arrows: $\sigma^{-1} = (a_k a_{k-1} \dots a_2 a_1)$
-
Find $\tau^{-1}$ for $\tau = (1243)(67)$. \ Applying the Socks-and-Shoes Property and reversing each cycle: $\tau^{-1} = (67)^{-1}(1243)^{-1} = (76)(3421)$.
Because $(76)$ and $(3421)$ are disjoint, they commute. Writing each cycle starting with its smallest element gives: $\tau^{-1} = (1342)(67)$. -
Given $\sigma = (254)$ and $\tau = (123)(45)$, compute $\sigma^{-1} \circ \tau^{-1}$.
First, compute each inverse individually: $\sigma^{-1} = (452) = (245)$ and $\tau^{-1} = (45)^{-1}(123)^{-1} = (54)(321) = (132)(45)$.
Now compose $\sigma^{-1} \circ \tau^{-1} = (245)(132)(45)$ from right to left:
- $1 \mapsto 1 \mapsto 3 \mapsto 3$.
- $3 \mapsto 3 \mapsto 2 \mapsto 4$.
- $4 \mapsto 5 \mapsto 5 \mapsto 2$.
- $2 \mapsto 2 \mapsto 1 \mapsto 1$.
- $5 \mapsto 4 \mapsto 4 \mapsto 5$ (fixed).
Therefore, $\sigma^{-1} \circ \tau^{-1} = (1342)$.
Bibliography
- NPTEL-NOC IITM, Introduction to Galois Theory.
- Algebra, Second Edition, by Michael Artin.
- LibreTexts, Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
- Field and Galois Theory, by Patrick Morandi. Springer.
- Michael Penn (Abstract Algebra), and MathMajor.
- Contemporary Abstract Algebra, Joseph, A. Gallian.
- Andrew Misseldine: College Algebra and Abstract Algebra.