Let be multilinear and alternating. In Intuition (What the proof did, and where it leads) we wrote column of as and expanded in all columns. A term of the expansion chooses one index in each column, so it is indexed by a function , and it equals
Alternation kills the term whenever takes some value twice, so only the bijections survive. This section studies these bijections, the permutations of . To evaluate a surviving value we interchange two columns at a time until they are in order, and each interchange contributes a factor . The main result, Theorem 5.2.18, says that the parity of the number of interchanges does not depend on how we sort. This gives every permutation a sign , and Theorem 5.2.31 shows that .
Definition 5.2.1(Permutation). A permutation of is a bijection . The set of all permutations of is denoted .
Since is finite, a function is injective if and only if it is surjective, and hence if and only if it is bijective (Section A.1). So is a permutation exactly when the list has no repeated entries, and then this list contains each element of exactly once. In this sense a permutation is a rearrangement of . We record a permutation in two-line notation, writing each above its image:
The bottom row is the rearrangement.
Example 5.2.2(,, and ). contains only the identity map of , and contains the identity and the permutation , which interchanges and . The six elements of are
In the expansion of a determinant these are the six orderings of whose terms survive alternation. For instance, the fourth gives the term .
Non-example 5.2.3(A function that is not a permutation). Define by ,, and . Then is not injective, so . In the expansion of for , the term indexed by is , which is because appears in two columns. Every function that is not injective is killed in the same way.
Hint 1. A permutation is determined by the list . Given the first entries, how many choices are there for the next?
Hint 2. Show by induction on that there are lists of distinct elements of .
Sketch. The permutations correspond to the lists of distinct elements of . There are choices for the first entry, then for the second, and so on, which gives lists; induction on the length makes this precise.
A permutation is determined by the list , and by the remark above, the lists that arise are exactly the lists of distinct elements of . We show by induction on , for , that there are lists of distinct elements of , with the empty product for (the empty list). This is clear for . If , a list of distinct elements consists of a list of distinct elements followed by one of the elements not in it, and different choices give different lists. So there are such lists. Taking gives .□
The factorial grows quickly: already has elements. So an expansion over is a tool for proving things about determinants, not for computing them; Section 5.4 computes determinants by elimination.
Permutations are functions , so we can compose them. We write for the composite , so that for : first , then . We write for the identity permutation, for the composite of copies of , and .
Hint 1. A function is a bijection exactly when it has a two-sided inverse. Find one for .
Hint 2. Try , and regroup using associativity of composition.
Sketch. The identity and are bijections. Regrouping gives and , so is a bijection with inverse . Part (b) is associativity of composition and the definition of an inverse function.
(a) The identity map is a bijection, and the inverse of a bijection is a bijection, with inverse . Since composition of functions is associative,
So has a two-sided inverse, and it is a bijection.
(b) These are the associativity of composition and the defining properties of the identity map and of the inverse function.
(c) By the computation in (a), is a two-sided inverse of . A bijection has only one inverse function (if and are both inverses of , then ), so .□
Remark 5.2.6. Parts (a) and (b) say that with composition is a group: a set with an associative operation that has an identity element and inverses. It is called the symmetric group of degree . We will not need any group theory, but Section 14.1 develops this point of view.
So : composition of permutations is not commutative. To invert , read the two-line notation from the bottom up. Since sends to , its inverse sends to ; sorting the columns,
Sums over appear throughout this chapter. The following fact lets us substitute ,, or for the summation variable .
Proposition 5.2.8(Reindexing sums over ). Fix . Each of the maps given by , by , and by is a bijection. Consequently, for every function ,
Hint 1. To show that is a bijection, write down its inverse.
Hint 2. For the sums: if is a bijection, how do the terms of compare with those of ?
Sketch. The inverses are ,, and itself. If is a bijection of , then has the same terms as in a different order.
By Proposition 5.2.5, and for every , so is a two-sided inverse of . In the same way is a two-sided inverse of , and is its own inverse because . So all three maps are bijections.
Now let be a bijection. As runs through , the element runs through and takes each value exactly once. So the sum has exactly the terms of , in another order, and since addition in is commutative and associative, the two sums are equal. Applying this to the three bijections gives the displayed equalities. □
Exercise 5.2.9.routine Let . Compute ,, and , and find the least with .
Hint 1.. Apply to each entry of the bottom row of .
Hint 2. Compare with : what is ?
Sketch.,, and . Since ,, are not the identity, .
Applying to each entry of the bottom row of gives , so . Applying to gives , so , and applying it once more gives , so . Reading from the bottom up, sends to , so , as it must be since . None of ,, is the identity, so the least is .
In Intuition (What the proof did, and where it leads) we sorted the columns of by interchanging two columns at a time. The permutations that interchange two elements are the building blocks of this section.
Definition 5.2.10(Transposition). Let with . The transposition is the permutation that interchanges and and fixes everything else:
It is an adjacent transposition if .
Transpositions are also called swaps. Note that , and that interchanging twice changes nothing: , so .
Remark 5.2.11(Composing with a transposition). Let and . Then ,, and for all other . So the bottom row of is the bottom row of with the entries in positions and interchanged. On the other hand, applies to every entry of the bottom row of , so its bottom row is that of with the values and interchanged. For example, with ,
Either way, the bottom row changes by interchanging two of its entries.
Every rearrangement of can be sorted by interchanging two entries at a time, so we expect every permutation to be a product of transpositions. To turn this into a proof we need a measure of progress. Say that moves if , and let be the number of points that moves. If with , then sends to , so composing with one transposition fixes at least one more point. It may fix two, if also , so the measure drops by an amount we do not control. This calls for strong induction.
Technique 5.2.12(Strong induction and well-ordering). To prove a statement for every integer , it suffices to prove for each under the assumption that holds for every . When there is nothing to assume, so the argument must handle that case outright, but no separate base case is needed. Reach for strong induction when a reduction step replaces an object by a smaller one but you cannot say by how much it shrinks, so that induction from to does not apply. Often the main decision is the measure of size, such as the number of points a permutation moves or the degree of a polynomial.
An equivalent form is the well-ordering principle: every nonempty set of nonnegative integers has a least element. It justifies arguments that begin “let be the least positive integer such that ”, and proofs by minimal counterexample. The canonical example is Proposition 5.2.13, by induction on the number of moved points. Section A.2 compares the forms of induction, and Section 7.1 uses strong induction on the degree to divide polynomials.
Proposition 5.2.13(Products of transpositions). Every permutation is a product of transpositions: there are transpositions , with , such that . (For we take , the empty product.)
Hint 1. Measure progress by the number of points that moves. Can you compose with one transposition so that the result fixes more points?
Hint 2. If , look at . Which points does fix?
Hint 3. fixes and every point that fixes, so , but possibly . Use strong induction, and recover from using .
Sketch. Strong induction on . If , take the empty product. Otherwise pick with . Then fixes and every point fixed by (a fixed point of cannot be , by injectivity), so . Write as a product of transpositions, and .
We prove by strong induction on that every with is a product of transpositions. Let with , and assume the statement for all permutations that move fewer than points.
If , then , the empty product. Otherwise choose with , let , and let and . Then . Now let be a point fixed by . Then , since moves . Also : otherwise with , contradicting injectivity of . So fixes , and . Thus fixes every point that fixes, and it also fixes , which moves. Hence .
By the induction hypothesis, for some transpositions . Since , we get , a product of transpositions. □
Example 5.2.14(Sorting by transpositions). Run the proof on , always choosing the least moved point . By Remark 5.2.11, composing with a transposition on the left interchanges two values in the bottom row. Since , the first step interchanges the values and , then the values and , then and :
Multiplying on the left by , the inverse of , gives .
Following where a permutation sends one element at a time gives a more economical notation. For we have and : the elements of travel around two loops.
Definition 5.2.15(Cycle). Let , and let be distinct. The cycle is the permutation that sends
and fixes every element of outside . Its length is , and we also call it a -cycle. Two cycles and are disjoint if .
A -cycle is a transposition. A -cycle has names, one for each starting point: . Its inverse runs the loop backwards, . Disjoint cycles and commute. Indeed, if moves , then fixes both and , so ; the case where moves is symmetric, and if neither moves , both sides are . Cycles that are not disjoint need not commute: , while .
Proposition 5.2.16(Cycle decomposition). Let . For , the orbit of under is .
(a)There is a least positive integer with . For this , the elements are distinct, and they are all the elements of .
(b)Any two orbits are equal or disjoint.
(c) is the product of the cycles , one for each orbit with elements, and these cycles are pairwise disjoint.
Hint 1. Follow . These lie in the finite set , so two of them coincide. Why does that force some positive power of to fix ?
Hint 2. If with , apply times. Then take the least with ; a repetition among would produce a smaller one.
Hint 3. For (b), if , show that is also of the form . For (c), check the product at each : only the cycle of the orbit of moves .
Sketch. Finiteness gives with , and cancelling gives . Taking least makes distinct, and division with remainder shows that every is among them. If , then , so each of is in the orbit of the other and the orbits agree. On each orbit acts as the corresponding cycle, and cycles of different orbits move disjoint sets of points, so their product agrees with everywhere.
(a) The elements all lie in the finite set , so for some . Applying to both sides times gives , with . So the set of positive integers with is nonempty, and by the well-ordering principle it has a least element . If with , the same argument gives with , contradicting the choice of . So are distinct. Finally, let , and write with and . Since , applying times to gives , so . Hence .
(b) Let . By (a), with , where is as in (a). For every ,, so . Also , so , and the same argument with the roles of and exchanged gives . So whenever . If two orbits and have a common element , then .
(c) Let be the distinct orbits with at least two elements. For each choose , let , and let . By (a), the entries of are distinct, so is a cycle, and the set of its entries is . By (b), are pairwise disjoint. We show that by evaluating both sides at each .
If lies in none of , then its orbit has one element, so ; and every fixes , so the product does too. Otherwise for exactly one , say with . Then ; for this reads . Every other fixes the elements of , in particular and . So when we apply to , the factors to the right of fix , then sends to , and the factors to the left of fix . Hence .□
Writing as a product of disjoint cycles, with the fixed points omitted, is cycle notation. To find it, start at the least element, follow it around its loop until it returns, and then start again at the least element not yet used. For example,
We write for the number of orbits of , counting each fixed point as an orbit with one element. So , and in , while in , the orbits being ,, and .
Lemma 5.2.17(Cycles as products of transpositions). Let and let be distinct. Then
In particular, a -cycle is a product of transpositions.
Hint 1. Evaluate the right side at each point. The rightmost factor acts first.
Hint 2. Follow for : which factors move it, and in what order? Then follow .
Sketch. For , the factors to the right of do not involve , that factor sends to , and the factors to its left do not involve . The point is sent to , then , and so on down to . Points outside are fixed.
Let . To compute we apply the factors from right to left, starting with .
If , every factor fixes , so . Let . The factors applied before are the with , which do not involve ; then sends to ; and the factors applied after it are the with , which do not involve . So . Finally, sends to , then sends it to , and so on, until sends to . So . Thus agrees with at every point. □
With Proposition 5.2.16, the lemma gives a second proof of Proposition 5.2.13, and this one counts. If the orbits of with at least two elements have sizes , then is a product of transpositions. The orbits partition and of them are fixed points, so , and the number of transpositions is
A permutation has many factorizations into transpositions. Since , the identity is both the empty product and a product of two transpositions. A direct check shows that
so is a product of one transposition and also of three. Substituting this into writes that as a product of five transpositions as well as of three. In each example the lengths have the same parity, and Theorem 5.2.18 below says that this always happens. Determinants depend on it: if some were a product of an even number of transpositions and also of an odd number, then sorting the columns of in two ways would give both and . So whenever , and no determinant function would exist.
Theorem 5.2.18(Parity is well defined). Let , and suppose that and , where all and are transpositions. Then and are both even or both odd. In particular, the identity is not a product of an odd number of transpositions.
Intuition(Looking for an invariant). Comparing two factorizations directly is hopeless, since nothing relates the transpositions in one of them to those in the other. Instead, look for a quantity that is computed from alone, without reference to any factorization, and that changes sign whenever we multiply by one more transposition:
If , applying this times gives . So if takes values in (or in any field in which ) and , then is determined by , and all factorizations of have lengths of the same parity.
An obvious candidate is for a determinant function . It does change sign, by Proposition 5.1.10 and Remark 5.2.11. But we do not know yet that a determinant function exists for , and the proof of existence in Section 5.3 uses this theorem. So we need a that we can write down explicitly. Approach 1 below uses a product of differences, and Approach 2 counts the pairs that puts out of order.
Technique 5.2.19(Parity via an invariant). To show that the number of steps in a process has a determined parity, attach to each state a quantity that every step changes in a controlled way: it is multiplied by , or it changes by an odd integer. After steps the quantity has been multiplied by , or has changed by an amount of the same parity as , so the parity of is determined by the initial and final states, whichever steps were taken. The same idea shows that a state cannot be reached: find a quantity that every allowed move preserves and that differs between the two states.
Reach for it when a statement is about parity, or about which configurations can be reached by repeating moves of one kind: swaps, slides, rotations. The canonical example is Lemma 5.2.20, where a product of differences changes sign under every transposition of the variables. Exercise 5.2.47 applies it to a classic puzzle, and Section 8.4 uses the sign of the determinant to separate rotations from reflections.
For instance, . By Proposition 1.1.17, exactly when the entries of are distinct. (This product reappears as the Vandermonde determinant in Theorem 5.5.21.) For , write
for the vector whose -th entry is , that is, the entries of rearranged by .
Take and . Then , and
The factor changed sign, and the two factors involving traded places. The same happens for every transposition.
Lemma 5.2.20(A transposition negates ). Let , let be a transposition, and let . Then .
Hint 1. Write with and , so ,, and otherwise. Sort the factors of according to how many of lie in .
Hint 2. Factors that avoid and are unchanged, and the factor for the pair changes sign. Every other factor involves exactly one of , together with a third index .
Hint 3. For each , multiply the two factors that involve . Show that their product is unchanged, separately in the cases ,, and .
Sketch. With ,, and , the factors of not involving or are those of , and . For each the two factors involving trade places, with two sign changes when , so their product is unchanged. So exactly one sign changes overall.
Write with , and let . Then ,, and for . Each factor (where ) of belongs to exactly one of the following groups, and we compare each group with the corresponding factors of .
Factors with . Here .
The factor with . Here .
The two factors involving a fixed . These are the factors for the pairs and . Let be the product of the corresponding two factors of , each of the form with .
If , then .
If , then . Pulling a factor out of each difference (Proposition 1.1.16), this equals .
If , then .
Multiplying over all groups and reordering factors by commutativity, , as desired. □
The second approach measures how far the bottom row of is from being sorted.
Definition 5.2.21(Inversion). An inversion of is a pair with and . We write for the number of inversions of .
In the bottom row of the two-line notation, an inversion is a pair of positions whose entries are out of order, the larger entry coming first. For the inversions are
coming from ,,,,,, and . So . The identity has no inversions, the adjacent transposition has exactly one, namely , and the reversal has all pairs as inversions.
There is a picture. Join each on a top row to on a bottom row by a straight segment. Two segments starting at cross exactly when they end in the opposite order, that is, when . So is the number of crossings, counted pair by pair. Figure 5.2.1 shows this for a permutation with inversions, together with the effect of multiplying it by a transposition on the right.
Figure 5.2.1. Left: , drawn by joining on the top row to on the bottom row. Each crossing (dot) is an inversion. Right: , in which the strands from and (blue) have exchanged their endpoints. The two blue strands no longer cross. Of the strands that start between and , the one from still crosses one blue strand, and the one from has lost both of its crossings with blue strands. The strands from and cross as many blue strands as before. The total dropped by , an odd number.
Lemma 5.2.22(A transposition changes by an odd number). Let and let be a transposition. Then is odd. If is an adjacent transposition, then .
Hint 1. Write with . By Remark 5.2.11, the bottom row of is that of with the entries in positions and interchanged. Which pairs of positions can change status?
Hint 2. The pair always changes status. For a third position , look at the two pairs that forms with and with , and consider ,, and separately.
Hint 3. When , let and be the numbers of inverted pairs among the two pairs, before and after. Show that .
Sketch. Let ,. The bottom rows of and differ by interchanging the entries and at positions and . Pairs avoiding and keep their status, and flips. If or , the two pairs formed by with and make the same two comparisons, of with and with , before and after. If , the number of inverted pairs among them becomes . So the total changes by plus an even number. For adjacent there is no in between.
Write with , and let and . By Remark 5.2.11, ,, and for . For positions , say the pair is inverted in if , and inverted in if ; so and count the pairs inverted in and in . We compare them group by group.
Pairs with . These have the same entries in and , so the same status.
The pair . It is inverted in if and only if , that is, if and only if it is not inverted in . So this pair contributes or to .
The two pairs that a fixed forms with and with . If , then in the pair is inverted if and only if , and if and only if ; in , the pair is inverted if and only if , and if and only if . These are the same two conditions, so the number of inverted pairs among the two is the same in and in . The case is the same with the inequalities reversed. If , the pairs are and . In they are inverted if and only if and , respectively, and in if and only if and . Let and be the numbers of these pairs that are inverted in and in . Since the entries are distinct, exactly one of and holds, and exactly one of and holds. Hence , and is even.
Adding up, is plus a sum of even numbers, so it is odd. If , there is no with , so the pair is the only group that contributes to , and .□
Hint 1.Lemma 5.2.20 says what one transposition does to . What does a product of transpositions do?
Hint 2. You will need that rearranging by and then by is rearranging by : check that .
Hint 3. Show by induction on , then evaluate at a vector with over a field in which .
Sketch. Since ,Lemma 5.2.20 and induction on give whenever is a product of transpositions. Take , so . Then two factorizations of lengths and give , so .
Let be any field and . First, for , the -th entry of is the -th entry of , which is . So
We show by induction on that if is a product of transpositions, then . For , and . For there is a transposition in , so . Let , so that and, by the induction hypothesis, . Applying Lemma 5.2.20 to the vector ,
Now take and . Then is a product of positive integers (the empty product if ), so . If , then
and dividing by gives . Since in , the integers and have the same parity. □
Hint 1. Start from the identity, which has no inversions, and multiply by the transpositions one at a time on the right.
Hint 2. Show by induction on that if , then is even.
Sketch., and by Lemma 5.2.22 each additional factor on the right changes by an odd number. So modulo , and any two factorizations of have lengths with the parity of .
We show by induction on that if with transpositions , then is even. For , and . For , let , so that . Then
The first term is odd by Lemma 5.2.22 and the second is even by the induction hypothesis, so the sum is even.
Hence if , both and have the same parity as .□
Intuition(Comparing the two proofs). Both proofs follow Technique 5.2.19, and the invariants are closer than they look. With , the factor of is negative exactly when is an inversion, and the absolute values are the numbers in another order (as runs over all two-element sets, so does ). So . The arguments are still different. Approach 1 never asks which factors are negative. Its lemma is an algebraic identity, valid for every vector over every field, and the sign falls out of regrouping. That is the pattern of Theorem 5.2.31 below, where an alternating function plays the role of . Approach 2 is combinatorial and gives a formula you can read off from the two-line notation. Its sharper statement for adjacent transpositions also shows that is the number of interchanges of neighbors that sorting requires (Exercise 5.2.43).
A third proof counts orbits instead. By Lemma 5.2.17, is a product of transpositions, and one can show that multiplying by a transposition changes by exactly .Exercise 5.2.50 works this out.
Definition 5.2.23(Sign of a permutation). A permutation is even if it is a product of an even number of transpositions, and odd if it is a product of an odd number of transpositions. The sign of is if is even and if is odd.
Hint 1. Both proofs of Theorem 5.2.18 established more than the theorem. What did each show about a product of transpositions?
Hint 2. For the product formula, take and in (b).
Sketch. Write . The second proof showed , and the first showed for every over every field. Both say the claimed formulas, since . With , (b) becomes the product formula after dividing by .
(a) The second proof of Theorem 5.2.18 showed that is even, so .
(b) The first proof showed that for every field and every , which is the first claim. Taking and , we have and , and dividing gives the product formula. □
For we found and . Both give , as they must. Table 5.2.1 lists the signs of the six permutations of .
Cycles
Table 5.2.1. The six permutations of . The three even ones are the identity and the two -cycles; the three odd ones are the transpositions.
Hint 1. Use the definition: factor and into transpositions. What is a factorization of ?
Hint 2. For (c), apply (b) to .
Sketch. Concatenating factorizations of (with factors) and (with factors) gives one of with factors, so . Then .
(a) The identity is the product of zero transpositions, and a transposition is a product of one.
(b) Write and with transpositions . Then is a product of transpositions, so by Definition 5.2.23 (which is legitimate by Theorem 5.2.18),
(c) By (b) and (a), . Multiplying both sides by and using gives .□
With the definition through transpositions, (b) takes one line. Proving it directly from the inversion count is harder (Exercise 5.2.49). This is the reason to define through transpositions and to treat as a way of computing it. In the language of Section 14.1, (b) says that is a homomorphism from to the group under multiplication. For example, if is odd, then is odd by (c), while is even since .
Proposition 5.2.26(Sign of a cycle). A -cycle has sign . More generally, for every , where is the number of orbits of .
Sketch. A -cycle is a product of transpositions. Decomposing into the cycles of its orbits and each cycle into transpositions writes as a product of transpositions.
Hint 1. Find a bijection from the even permutations to the odd ones.
Hint 2. Multiply by a fixed transposition, say , on the right.
Sketch. is a bijection of that reverses signs, and , so it restricts to a bijection from the even permutations to the odd ones. With the two sets have elements each.
Let , which exists since , and let be , a bijection by Proposition 5.2.8. By Proposition 5.2.25, , so maps the set of even permutations into the set of odd permutations, and into . Since , we have , so the restrictions and of are inverse to each other. Hence . As every permutation is even or odd but not both, by Proposition 5.2.4, so each set has elements, and .□
Pairing each with , which has the opposite sign, is the standard way to make the terms of a sum over cancel in pairs.
Definition 5.2.29(Permutation matrix). For , the permutation matrix is the matrix with columns . That is, its entry is if , and otherwise.
Each column of is a standard basis vector, and since is a bijection, each standard basis vector is exactly one of the columns. So has exactly one entry in each row and in each column, and zeros elsewhere. We have , and for a transposition , is with columns and interchanged, which is the elementary matrix that interchanges rows and (Definition 3.2.2). For example, in ,
The first has columns , because sends to .
Proposition 5.2.30(Algebra of permutation matrices). Let , and let have columns .
Hint 1. Column of a product is times column of , and is column of .
Hint 2. For (b), apply (a) with . For (c), use (b) with , and compare entries for the transpose.
Sketch. Column of is . With , column of is column of , which is . Then , and the entry of is exactly when , that is, .
(a) By Definition 2.4.1, column of is times column of , which is .
(b) Apply (a) with , whose columns are : column of is column of , which is . So .
(c) By (b), and , so is a two-sided inverse of . For the transpose, the entry of is the entry of , which is if and otherwise. Since if and only if , this is the entry of .□
Part (a) says that multiplying by on the right rearranges the columns, putting column in position . Multiplication of a vector on the left goes the other way: , so the entry moves to position , and in the notation of Approach 1: a product of differences. Keep the two descriptions apart.
Intuition. Write with transpositions . By Proposition 5.2.30, , so the columns of are obtained from those of by interchanges of two columns, and each interchange negates . So . The right side involves a factorization of , and Theorem 5.2.18 is exactly what makes it independent of the factorization.
Theorem 5.2.31(Alternating functions and permutations). Let be multilinear and alternating, and let . For all ,
That is, for every . In particular , and if is a determinant function, then .
Hint 1. Factor into transpositions and induct on the number of factors.
Hint 2. If with , put . How is the list related to ?
Hint 3. It is the same list with the entries in positions and interchanged. Use Proposition 5.1.10.
Sketch. By induction on , if is a product of transpositions then : writing with and , the list is with positions and interchanged, which negates . Since , done. The matrix forms follow from Proposition 5.2.30.
We show by induction on : if is a product of transpositions, then for all ,
For , and there is nothing to prove. For , write , where is a product of transpositions and . Put for . Then . Since interchanges and and fixes everything else, the list is the list with the entries in positions and interchanged. By Proposition 5.1.10 and then the induction hypothesis,
By Proposition 5.2.13, every is a product of some number of transpositions, and by Definition 5.2.23. This proves the displayed identity. By Proposition 5.2.30, the columns of are , so . Taking gives , and a determinant function has .□
This answers the first question raised in Intuition (What the proof did, and where it leads): each surviving value is determined, , however we sort. Substituting into the expansion expresses as times a sum, over , of signed products of entries of .Section 5.3 carries out this substitution (Theorem 5.3.3) and answers the second question by checking that the resulting formula satisfies the axioms.
Remark 5.2.32(Two comments on the theorem). (1) If in , then in for every , and the theorem says that : rearranging the columns does not change at all. This matches Example 5.1.12, where interchanging two columns changed nothing over .
(2) The induction in the proof does not use Theorem 5.2.18. So if we had, over , a multilinear alternating with , constructed without permutations, then two factorizations of of lengths and would give , a third proof of Theorem 5.2.18. In this sense the parity theorem is exactly what the existence of determinants requires. The construction in Section 5.3 uses , so it cannot be used this way (Exercise 5.2.38).
Following , we get , a -cycle. The permutation interchanges and , so .
. Applying to the bottom row of gives . So .
. Applying to the bottom row of gives . So .
. Running the cycle of backwards, , which in two-line notation is .
Signs. By Proposition 5.2.26, a -cycle has sign , so . Also , (a transposition times a -cycle), and in the same way. These agree with Proposition 5.2.25: .
Hint 1. In (a), the bottom row of is . Only pairs involving position or position can be inverted.
Hint 2. In (b), the bottom row is . In (c), every pair is inverted, and is a product of the disjoint transpositions for .
Sketch. (a) Position (entry ) is inverted with each of the later positions up to , and position (entry ) with each of the positions strictly between. (b) The inversions are for , so and the sign is . (c) , while is a product of disjoint transpositions. So is even exactly when or modulo .
(a) The bottom row of has in position , in position , and in position otherwise. A pair of positions avoiding and has entries in order. Let . If , its entry is smaller than both and , so neither pair nor is inverted. If , its entry is larger than both, so again neither is inverted. If , then is inverted since , and is inverted since . Finally, is inverted since . So the inversions are and for the values of strictly between and , together with : in total .
(b) The bottom row of is . The entries are in increasing order, and each is larger than the final entry . So the inversions are for , and . By Corollary 5.2.24 the sign is , which is the sign of an -cycle in Proposition 5.2.26.
(c) The bottom row of is , so every pair is an inversion and . Hence by Corollary 5.2.24. On the other hand, interchanges and , so it is the product of the disjoint transpositions for ; there are of them (the middle point is fixed when is odd). So by Proposition 5.2.25, and the two expressions agree. Now is even exactly when or modulo , so is even exactly for these . For example is odd in and , even in and , and odd in and .
Exercise 5.2.35.routine Find the error in the following argument.
Claim. If and is a transposition, then .
Proof. By Remark 5.2.11, the bottom row of is that of with two entries interchanged. Interchanging two entries changes their relative order and nothing else. So exactly one pair of positions changes from inverted to not inverted, or the other way.
Hint 2. Look at an entry that sits between the two interchanged positions. Is it still on the same side of each interchanged entry?
Sketch. The claim fails for ,:. The error is “nothing else”: every entry between the two interchanged positions also changes its order relative to both interchanged entries. The correct statement is Lemma 5.2.22: the change is odd, and it is for adjacent transpositions.
The claim is false: , while the bottom row of is , which has inversions. The error is the sentence “changes their relative order and nothing else”. Think of an inversion as a pair of entries that appear in the wrong order, and interchange the entries and in positions . An entry with or stays on the same side of both and , so its pairs with them keep their status. But an entry with used to stand to the right of and to the left of , and afterwards stands to the left of and to the right of . So the relative order of with both interchanged entries changes, and the pairs and both change status. In the example, the entry in the middle forms an inversion with and with afterwards, and with neither before. Each such changes the count by ,, or , which is why the total change is always odd (Lemma 5.2.22). When there is no entry in between, and then the claim is true.
(c)The adjacency matrix of a graph with vertices is the matrix with entry if and are joined by an edge, and otherwise. Explain what (b) says about adjacency matrices when the vertices of a graph are renamed by .
Hint 1. Compute the entry of from the definition of the product: . Which gives a nonzero term?
Hint 2. For (b), , so by Proposition 5.2.30 the columns of are the columns of rearranged. Combine this with (a).
Sketch. exactly when , so . Dually, column of is column of . Together, : renaming vertex as replaces the adjacency matrix by .
(a) For every , the entry of is . By Definition 5.2.29, if , that is, if , and otherwise. So the sum is , and row of is row of .
(b) Let (Proposition 5.2.30). By part (a) of that proposition, column of is column of ; with , column of is column of , so . By (a) applied to , row of is row of . Hence the entry of is .
(c) Rename each vertex as . In the renamed graph, and are joined exactly when and were joined in the original, so its adjacency matrix satisfies for all . Since is a bijection, every entry of is of this form, so by (b), . Renaming the vertices replaces the adjacency matrix by a similar matrix, conjugated by a permutation matrix.
Exercise 5.2.37.standard Prove or disprove each statement, for all and all .
Sketch. (a) False: is even. (b) False for :. (c) True: is a bijection from the inversions of to those of . (d) False: . (e) True, by multiplicativity.
(a) False. is odd, but is even. In fact the product of two odd permutations is always even, by Proposition 5.2.25.
(b) False when . For , the two disjoint transpositions commute, so , but moves four points, so it is neither the identity nor a transposition. (For the statement is true, as Table 5.2.1 shows for .)
(c) True. Let be an inversion of , so and . Put and . Then and , so is an inversion of . The same argument applied to , whose inverse is , sends an inversion of to the inversion of , and the two maps are inverse to each other. So they are bijections, and .
Proof. Let be the determinant function on (Theorem 5.3.4). If is a product of transpositions, then by Proposition 5.2.30 the columns of are obtained from those of by interchanges of two columns, and each interchange multiplies by (Proposition 5.1.10). So . Since depends only on , so does , and the parity of is determined by .
Uses.Theorem 5.3.4 (Existence and uniqueness of the determinant), Remark 5.2.32 (Two comments on the theorem), Theorem 5.2.31 (Alternating functions and permutations)
Hint 1. How is the existence of a determinant function on proved in Section 5.3, and what does that proof use?
Hint 2. Suppose . What does tell you about ?
Sketch. The argument is circular: the existence half of Theorem 5.3.4 is proved with a formula involving , which is defined using Theorem 5.2.18. It also takes arbitrary, but if then for every and nothing about follows. Over , with a determinant function constructed without permutations, the argument would be valid.
There are two errors.
Circularity. The proof assumes that a determinant function exists on . For the existence of a determinant function is the existence half of Theorem 5.3.4, which Section 5.3 proves by checking that a formula built from satisfies the axioms. That formula only makes sense once is well defined, that is, once Theorem 5.2.18 is known. So the argument assumes what it is trying to prove.
The field. Even granting a determinant function, the conclusion “ is determined, so the parity of is determined” needs in . Over , for every , so the equation says nothing about .
The core of the argument is sound, as Remark 5.2.32 explains: if one had a multilinear alternating on with , constructed without permutations, then the induction in the proof of Theorem 5.2.31 gives for two factorizations, and modulo follows.
Hint 1. Evaluate the left side at , and at a point not of this form.
Hint 2. For (b), find with and , and apply (a).
Hint 3. For (c), write the conjugate of a product as a product of conjugates: .
Sketch. Let . At , gives (indices mod ), and at any other , is not an , so is fixed. For (b), take with ,. For (c), rename each entry by :.
(a) Let , and read indices modulo , so and . For each ,
If is not one of , then is not one of , so fixes it and . Since are distinct (as is injective), this is exactly the cycle .
(b) The sets and both have elements, so there is a bijection between them. Define ,, and for . Then is a bijection of , and by (a), .
(c) Since , we have . Here sends ,,,,, so by (a),
Exercise 5.2.40.standard Let . Show that every even permutation in is a product of -cycles. Conclude that a permutation is even if and only if it is a product of -cycles.
Hint 1. An even permutation is a product of an even number of transpositions. Group them in pairs.
Hint 2. Show that a product of two transpositions is a product of at most two -cycles. Distinguish whether the two transpositions are equal, share one point, or are disjoint.
Hint 3. If they share one point, name them and ; by Lemma 5.2.17 their product is . If they are disjoint, insert .
Sketch. Pair up the transpositions of an even factorization. Equal transpositions multiply to ;; and for disjoint ones, . Conversely, -cycles are even.
Let be even, so for some transpositions , and . It suffices to show that a product of two transpositions is a product of -cycles (with the empty product allowed). There are three cases.
The transpositions are equal. Then , the empty product.
They share exactly one point. Since , we can write them as and with distinct, in the order they occur in . By Lemma 5.2.17, .
They are disjoint, say and with distinct. Inserting and using the previous case twice,
Conversely, a -cycle is even by Proposition 5.2.26, so a product of -cycles is even by Proposition 5.2.25. Hence a permutation is even if and only if it is a product of -cycles. (We need for -cycles to exist; for the only even permutation is , the empty product.)
Hint 2. Disjoint cycles commute, so , and moves only points of its own cycle. When is the product the identity?
Hint 3. For (b), , and only when .
Sketch. (indices mod ), so iff . Since the commute and move disjoint sets, iff each iff each . In (b), , so the answer is the order of ,.
(a) Let and read indices modulo . By induction on ,, and fixes every point outside . So if and only if for all , that is, if and only if divides . The least such is .
Now let with disjoint cycles of lengths . Disjoint cycles commute, so . Each maps the entries of among themselves and fixes all other points. So for an entry of ,, and fixes the points that no moves. Hence if and only if for every , that is, if and only if every divides . The least such is .
(b) By Proposition 5.2.30, . A permutation matrix equals only if for all , that is, . So if and only if , and by (a) the least such is .
Exercise 5.2.43.standard Show that is the least number of adjacent transpositions whose product is . That is, is a product of adjacent transpositions, and not of fewer.
Hint 1. For the lower bound, start from and multiply on the right by adjacent transpositions one at a time. By how much can change at each step?
Hint 2. For the upper bound, induct on . If , find with , and show that .
Sketch. Each adjacent transposition changes by exactly (Lemma 5.2.22), so a product of of them has . Conversely, if , the bottom row has a descent ; interchanging those two entries removes exactly one inversion. Repeating (bubble sort) reaches after steps, and reversing the steps writes as a product of adjacent transpositions.
Lower bound. Suppose with adjacent transpositions . By Lemma 5.2.22, for each , and , so by induction . In particular .
Upper bound. We show by induction on that is a product of adjacent transpositions. If , the bottom row of has no pair out of order, so it is increasing, and an increasing arrangement of is . So , the empty product. If , the bottom row is not increasing, so for some . Let . By Remark 5.2.11, the bottom row of is that of with the entries in positions and interchanged. The proof of Lemma 5.2.22 shows that, for an adjacent transposition, the pairs other than contribute the same number of inversions before and after, so is the change in the status of alone. Here that pair changes from inverted to not inverted, so , and by the induction hypothesis with adjacent transpositions . Then , a product of adjacent transpositions.
The upper bound is the analysis of bubble sort, which repeatedly interchanges an adjacent pair that is out of order. Each interchange lowers by exactly , so the algorithm stops after exactly interchanges, whichever out-of-order pairs it picks.
Exercise 5.2.44.standard A matrix is monomial if it has exactly one nonzero entry in each row and in each column.
(a)Let be monomial. Show that there are and nonzero such that column of is . Deduce that if is multilinear and alternating, then .
Hint 1. In (a), let be the row of the nonzero entry in column . Why is a permutation?
Hint 2. Pull the scalars out of the columns by multilinearity, and apply Theorem 5.2.31 to what is left.
Hint 3. In (b), read off column by column and find its cycle notation.
Sketch. (a) The rows of the nonzero entries are distinct because each row has one nonzero entry, so . Multilinearity gives . (b) , odd, and , so . (c) , even, so in .
(a) For each column , let be the row of its nonzero entry and that entry, so column is . If with , row would have two nonzero entries; so is injective, hence a permutation. Pulling out of column for each (multilinearity, Definition 5.1.1) and applying Theorem 5.2.31,
(b) The columns of are ,,, and . So , that is, , the -cycle , which is odd by Proposition 5.2.26. The product of the scalars is
So .
(c) The columns of are ,,, so , a -cycle, which is even. Hence , since in .
(a)Let . Show that contains exactly cycles of length .
(b)Sort the elements of by their cycle notation: the identity, transpositions, -cycles, -cycles, and products of two disjoint transpositions. Count each kind, and use the counts to check Proposition 5.2.27 for .
Hint 1. Count lists of distinct elements, then ask how many lists name the same cycle.
Hint 2. Two lists name the same -cycle exactly when one is a rotation of the other. Why?
Hint 3. For (b), a product of two disjoint transpositions is determined by how it splits into two pairs.
Sketch. There are lists of distinct elements, and each -cycle has exactly names (its rotations), giving . In :. The even ones are , the -cycles, and the double transpositions: .
(a) By the argument of Proposition 5.2.4, there are lists of distinct elements of , and each names the -cycle . The rotations name the same cycle. Conversely, if , then is moved by , so for some , and then ,, and so on (indices mod ); so the list is a rotation of the list . The rotations of a list of distinct elements are distinct lists, since their first entries differ. So each -cycle has exactly names, and there are of them.
(b) By Proposition 5.2.16, each is a product of disjoint cycles whose lengths add up to at most , so its cycle notation is one of: ; a transposition; a -cycle; a -cycle; two disjoint transpositions. By (a) there are transpositions, three-cycles, and four-cycles. A product of two disjoint transpositions is determined by the partition of , and there are such partitions (the partner of determines it). The total is , as it must be.
By Proposition 5.2.26, transpositions and -cycles are odd, while , -cycles, and products of two disjoint transpositions are even. So there are even permutations and odd ones, as Proposition 5.2.27 predicts.
Exercise 5.2.46.hard Let , let be a field, and let satisfy and for all . Show that either for all , or for all .
Conclusion. Let , and write with transpositions (Proposition 5.2.13). Then . If , then for all . If , then by Definition 5.2.23. (If in , the two cases coincide.)
Exercise 5.2.47(The 15 puzzle).hard In the 15 puzzle, fifteen square tiles numbered and one empty space sit in a frame. A move slides a tile that shares an edge with the empty space into it. In the solved position the tiles read row by row, from the top left, with the empty space in the bottom right corner. Show that no sequence of moves turns the solved position into the position in which tiles and are interchanged and all other tiles, and the empty space, are where they were.
Hint 1. Number the cells row by row and call the empty space tile . A position is then a permutation , with the tile in cell . What does a move do to ?
Hint 2. A move interchanges the contents of two adjacent cells, so it multiplies by a transposition, flipping . What else flips with every move?
Hint 3. Color the cells like a checkerboard. Every move changes the color of the cell holding the empty space. Consider the product of and for that color.
Sketch. Encode a position as ( = tile in cell , the empty space being ). A move with the empty space in cell and a tile in an adjacent cell replaces by , which flips , and also moves the empty space to a cell of the other checkerboard color. So times the color sign of the empty cell is invariant. It is for the solved position and for the target, which has and the empty space in the same cell.
Number the cells row by row from the top left, and call the empty space tile . A position is then described by the permutation with the tile in cell . The solved position is , and the target position is .
Suppose the empty space is in cell , so , and the tile in an adjacent cell slides into it. Afterwards cell holds , cell holds , and all other cells are unchanged. By Remark 5.2.11 this is the position , so by Proposition 5.2.25 every move multiplies by .
Give the cell in row and column the color , and let be the color of the cell containing the empty space. Two cells that share an edge differ by in exactly one of ,, so they have opposite colors. Hence every move also multiplies by , and the product is unchanged by every move.
In the solved position, . In the target position, the empty space is again in row , column , and , so . Since moves never change , the target cannot be reached from the solved position.
The same argument shows that every position reachable from the solved one with the empty space back in the bottom right corner is an even permutation. Neither nor is invariant on its own; the invariant is their product.
Exercise 5.2.48.hard The numbers (where ) are written in a row in some order. A move chooses three consecutive entries and replaces them by . For which starting orders can the row be sorted into by a sequence of moves?
Hint 1. Regard the row as the bottom row of a permutation . Which permutation satisfies “the row after the move is the bottom row of ”?
Hint 2. is a -cycle, so moves preserve the sign. That rules out odd .
Hint 3. For even : a move at positions carries the entry at position two places to the left. Use this to bring to the front, then to position , and so on. What happens with the last two entries?
Sketch. A move at positions replaces by with , a -cycle, so is invariant and odd orders cannot be sorted. For even orders, move left two places at a time; if it gets stuck in position , two moves at positions bring it to the front. Then sort positions the same way without touching position , and so on, until only positions remain. The result is or , and since the sign is still , it is . Answer: exactly the even orders.
Write the row as the bottom row of , so that the entry in position is . A move at positions produces the row whose entries in these positions are . This is the bottom row of , where ,,, and fixes everything else; that is, . By Proposition 5.2.26 and Proposition 5.2.25, . So moves never change the sign, and since the sorted row is , with sign , an odd starting order can never be sorted.
Now let be even. We sort the row in stages, placing the value in position at stage , for , using only moves within positions at stage . Suppose the values are already in positions , and is in position . While , a move at positions carries the entry from position to position and does not touch positions before . When this stops, or . If , then (as ), and two moves at positions change there into and then into . Either way ends in position , and positions were not touched.
After stage , the values are in place, and positions and hold and in some order. So the current permutation is or . Since moves preserve the sign and is even, it is even, so it is : the row is sorted.
Answer: the row can be sorted exactly when the starting order is an even permutation.
For a two-element set , say that reverses if and have opposite signs. So is the number of two-element subsets that reverses.
(a)Show that reverses if and only if exactly one of the following holds: reverses ; reverses .
(b)Deduce that is even. Figure 5.2.2 shows an example.
Figure 5.2.2. Stacking the diagrams of and gives a diagram of . The blue strands from and cross once in each half, so they end in their original order. There are crossings but only inversion, and is even.
Hint 1. In (a), write as a product of two fractions. Which two?
Hint 2. For (b), the reversal conditions are / quantities ,, and “exactly one” is . Sum over all pairs, and note that is a bijection on two-element sets.
Hint 3. For (c), by (b), , and of a transposition is odd.
Sketch. (a) , and a product of two nonzero rationals is negative exactly when one factor is. (b) Summing over pairs gives , since the pairs run over all pairs. (c) So is multiplicative and is on transpositions; hence for factorizations of lengths and .
(a) Let . Since and are injective, and , so in ,
a product of two nonzero rationals. The left side is negative exactly when reverses , the second factor is negative exactly when reverses , and the first factor is negative exactly when reverses . A product of two nonzero rationals is negative exactly when exactly one factor is negative.
(b) Let be the set of two-element subsets of . For , let if reverses and otherwise, and let if reverses and otherwise. By (a), reverses exactly when , and the integer is in that case and otherwise. So
The first sum is . Since is a bijection, is a bijection of (with inverse ), so as runs over , runs over once, and the second sum is the number of elements of reversed by , which is . Hence is even.
(c) By (b), for all . By Exercise 5.2.34, is odd, so for every transposition . If , then by induction on ,. So two factorizations of of lengths and give , and and have the same parity.
Compared with Approach 2 in the text, this proof establishes multiplicativity first and gets the parity theorem from it, while the text proves the parity theorem first and gets multiplicativity for free from the definition.
Exercise 5.2.50.hardBeyond 21-242 This exercise gives a third proof of Theorem 5.2.18, by counting orbits. Recall that is the number of orbits of , fixed points included.
(a)Let and let . Show that if and lie in the same orbit of , then , and otherwise .
Hint 1. agrees with except at and : and . So only the orbits containing or can change.
Hint 2. If and are in one orbit, list it as in the order visits it, and follow from and from . If they are in different orbits, follow from .
Hint 3. For (c), (a) shows that each transposition changes by , and .
Sketch. (a) Same orbit : under , and , so the orbit splits in two. Different orbits and :, so they merge. (b) Start from ; each factor changes by . (c) factors give , and Lemma 5.2.17 gives factors.
(a) Since fixes every point other than and , for , while and . An orbit of containing neither nor is mapped into itself by , hence by , on which they agree; so it is also an orbit of . It remains to see what happens to the orbits containing or .
Same orbit. By Proposition 5.2.16, the orbit of is until it returns to , and occurs in it. Write it as in this order, with , so sends (where is read as if , and so on). Then sends and . (If , then and is fixed by ; similarly if .) So the orbit splits into the two orbits and of , and .
Different orbits. Write them as and in the order visits them. Then sends , with the same conventions when or is . So the two orbits merge into one orbit of , and .
(b) We show by induction on that is even. For ,. For the step, (a) gives , which changes by , an even number. So if , then and both have the parity of , which proves Theorem 5.2.18, and .
(c) If , then by (a) and induction, for each , so , that is, . On the other hand, Proposition 5.2.16 and Lemma 5.2.17 write as a product of exactly transpositions. So the least number is .
Exercise 5.2.51.challengeBeyond 21-242 Let be an odd prime and let with . Multiplication by permutes the nonzero elements of ; let be the permutation with , the product computed in .
(a)Show that in .
(b)Show that , where the right side is computed in and is therefore or . (This is Zolotarev’s lemma.)
(c)Check (b) for and by finding the cycle notation of and .
Hint 1. For (a), multiply all the nonzero elements together, before and after applying .
Hint 2. For (b), use Corollary 5.2.24 (b) over the field , with . What is ?
Hint 3. Each factor of is , and there are factors. Then use (a) and that is odd.
Sketch. (a) permutes the factors of , so . (b) With ,, so with , and . By Corollary 5.2.24, in . With , by (a), and since is odd. (c) is even and ; is odd and .
Since is prime, is a field (Proposition 1.1.24). If then (multiply by ), and for , so is indeed a permutation of the nonzero elements.
(a) Let , which is nonzero by Proposition 1.1.17. Since is a bijection of the nonzero elements, the products of and of have the same factors in a different order, so they are equal: . Cancelling gives .
(b) Let , so . Its entries are distinct, so . The -th entry of is . So each factor of is , and since there are factors,
By Corollary 5.2.24 (b) over , the left side is . Cancelling , in . Let . By (a), , so by Proposition 1.1.17. Since and is odd, . So in . Because is odd, in , so this equation in determines the integer .
(c) For , sends and , so , which is even by Proposition 5.2.26; and in . Also sends , a -cycle, which is odd; and in .
More practice
The practice bank has 34 exercises on this section’s topics.