The sign that decides which of the determinant’s terms are subtracted, and why its parity is well defined.
What you will be able to do
Given a permutation in one-line or cycle notation, the learner can convert between the notations, count inversions, decompose into disjoint cycles and transpositions, determine the sign by either route, compose permutations, and use the sign in the Leibniz formula and in reading a permutation matrix's determinant.
Orientation
The minus sign in the determinant
. The subtraction is not decoration: one of the two products is signed negative, and which one is decided by a rearrangement of the column indices. The determinants unit gave the rule that swapping two rows negates the determinant, and observed that a permutation matrix has determinant or according to whether its permutation is even or odd, without saying what a permutation is, or what makes one even.
This unit supplies both. A permutation is a rearrangement of ; its sign records whether reaching it takes an even or odd number of swaps. That this is well defined at all requires proof. A rearrangement can be undone by swaps in many different ways, and the count varies, but its parity never does.
With the sign in hand, the determinant has a closed definition rather than a recursive recipe: a sum over all rearrangements, each term signed. Every property the determinants unit stated, the row-swap rule, the value of a triangular matrix, the vanishing on dependent columns, reads off that formula.
Definition
Two routes to the same sign
The canonical definition gives inversions and cycles as two descriptions of one quantity. What follows is why each is stated the way it is, and when to reach for which.
Why inversions are counted over pairs, not positions. An inversion is a pair out of order, so the count is over pairs and the maximum is , attained by the full reversal. Counting displaced elements instead would not work: in every element has moved, yet the permutation is even. Displacement measures how far things travelled; inversions measure how many relative orders were reversed, and only the second has the parity property.
Why adjacent swaps settle it. Swapping two neighbours changes exactly one pair's relative order, so it changes by exactly . Since the identity has zero inversions, sorting any by adjacent swaps takes of them, and the parity of any other route must match. That is the whole argument for well-definedness, and it is why deserves to be called the sign rather than one measurement among several.
Why a -cycle is transpositions. Writing uses factors, and no shorter product can do it: each transposition joins at most two orbits, and a -cycle must be assembled from singletons. So the parity of a cycle is the parity of , opposite to the parity of itself.
cycle length
transpositions
permutation is
2
1
odd
3
2
even
4
3
odd
5
4
even
A permutation's sign is the product over its disjoint cycles. Fixed points are 1-cycles contributing zero transpositions, so they never affect the sign, which is why omitting them from the notation is safe.
Why sign is multiplicative. Composing appends one transposition list to another, so the counts add and the parities add modulo 2. Hence , and since is the identity with sign , .
Which route to take. Given one-line notation, count inversions, it is a scan. Given cycle notation, read the lengths, it is arithmetic on small numbers. Converting notation just to use the other route is wasted work, and computing both is the standard way to check a sign under exam conditions.
Representation
All six permutations of three things
is small enough to write out completely, which makes every claim in this unit checkable by inspection.
one-line
cycles
inversions
sign
identity
0
1
1
2
2
3
Three even, three odd. The even half always has exactly members for .
Take . By inversions: the pairs , and are all out of order, so and the sign is . By cycles: is a 2-cycle and 2 is fixed, so one transposition, sign . The routes agree, as they must.
Note the two 3-cycles, and . Each has length 3, hence 2 transpositions, hence sign . An odd length giving an even permutation. The two 2-cycles have even length and are odd. The lengths and parities run opposite throughout the table.
Where the signs go. The Leibniz formula for a matrix has one term per row of this table:
three added and three subtracted, matching the three even and three odd permutations exactly. The familiar rule-of-Sarrus diagonals are these six terms rearranged, which is also why Sarrus has no analogue for : the count of terms is , not .
Figure
The three-cycle (1 2 3) as a closed path
1 → 2 → 3 → 1, a single orbit of length three
The permutation drawn as what it does: , , .
Cycle notation is a description of this journey, which is why it is read as a loop rather than a list of positions. Following the arrows from any starting point returns there after three steps, and that length is the order of the permutation.
It also settles the sign without counting inversions. A cycle of length is a product of transpositions, so this one is two swaps and therefore even, matching the the table records for . The table above remains the complete reference; this shows what one of its rows means as an action.
Example
Six permutations and where their signs come from
Each of these is worked by both routes, so the agreement is visible rather than asserted.
The identity, in . No pair is out of order, so and the sign is . As cycles it is four fixed points, contributing no transpositions. It is the one permutation whose matrix is , with agreeing.
A transposition, . One pair is inverted, the leading against the , so and the sign is . As cycles, with 3 and 4 fixed: a single swap. This is the smallest odd permutation, and its matrix is the elementary row-exchange matrix whose determinant the determinants unit gave as .
A 3-cycle, in . The inverted pairs are and , so and the sign is . As cycles it is , one cycle of length 3, hence transpositions. Odd length, even permutation. The relationship that trips people, seen here in the smallest case.
A 4-cycle, in . The inverted pairs are , and , three, so the sign is . As cycles it is , one cycle of length 4, hence 3 transpositions. Even length, odd permutation, the mirror of the previous case.
Two disjoint swaps, in . Inverted pairs: and , so and the sign is . As cycles, : two transpositions, each contributing , and . Signs multiply across disjoint cycles.
The reversal, in . Every one of the pairs is inverted, so the sign is . As cycles it is , again two transpositions. Reversing four elements is even, although reversing three is odd; the parity depends on through and is not a property of "reversing".
Two of them, the 3-cycle and the double swap, have the same sign by different structures. Two others, the 3-cycle and the 4-cycle, differ in sign by one unit of length. And the count of inversions is never the count of transpositions, has six inversions and two transpositions, only their parity is shared, which is precisely what the sign records.
Worked example
Signs by both routes, a composition, and a determinant
1. in .
Inversion route. Compare every pair and count those with . Taking each entry against those to its right:
entry
larger than, to its right
count
1
—
0
3
2
1
5
2, 4
2
2
—
0
4
—
0
So and .
Cycle route. Trace: , a fixed point. , closing a 4-cycle. So with 1 fixed. One cycle of length 4 is transpositions, giving sign .
Both routes give . The permutation is odd, despite its only nontrivial cycle having even length, which is exactly the relationship, not a coincidence.
2. in , the full reversal.
Inversions. Every one of the pairs is out of order, so and the sign is .
Cycles. and : two transpositions, , sign .
The reversal of four elements is even. Reversals alternate: , which is even for and odd otherwise.
3. Composing in . Let and , and compute , meaning apply first.
, so:
giving .
Signs. is the 4-cycle , so three transpositions, . For : , also a 4-cycle, . Multiplicativity predicts .
Check by inversions on : the pairs out of order are , , and , four of them, so the sign is .
Note , a different permutation, with inversions and , so sign as well. Composition does not commute; its sign does.
4. A determinant by the Leibniz formula. Take
Sum over the six permutations, each term taking one entry per row and column:
sign
term
value
Total: .
Check by cofactor expansion along the first column:.
The two definitions agree, as the determinants unit's theorem promised, and the Leibniz route shows where each minus sign came from.
Principle
Why parity is well defined
The sign is defined by , which is unambiguous because is a count of pairs. The substantive claim is the other one: that every way of writing as a product of transpositions uses a number of factors with the same parity. Without it, "even permutation" would name nothing.
The argument. Let be any transposition, swapping the values at positions . Claim: composing with changes by an odd number.
First take adjacent, . Exactly one pair changes relative order, the pair at those two positions, so changes by exactly , which is odd.
A general transposition of positions and with is a product of adjacent swaps: move the entry at rightwards to in steps, then move the displaced entry leftwards back to in steps. So changes by a sum of odd numbers, and is odd, so the total change is odd.
Now suppose . Starting from the identity with and applying transpositions, each flipping the parity of , the final parity is the parity of . But the final permutation is , whose inversion count is fixed. So every decomposition of has .
What this rules out. It is impossible to write the identity as a product of an odd number of transpositions, or a single transposition as a product of an even number. The obstruction is not that nobody has managed it; it is that the inversion count forbids it.
Consequences used later.
is a homomorphism onto : .
Its kernel, the even permutations, is the alternating group , of size for , exactly half, because multiplying by one fixed transposition is a bijection between the even and odd halves.
, since their product is the identity.
The determinant is well defined by the Leibniz formula, since each term's sign depends only on and not on how was reached.
That last point is the reason this argument belongs in a linear algebra course rather than only an algebra one. Without parity invariance the determinant's terms would have no consistent signs, and would not be a function at all.
Check your understanding
Cycle length against parity
The single most common error in this material is reading a cycle's length as its parity. Settle it now, before the determinant work depends on it.
The relationship. A cycle of length decomposes into transpositions. Parity therefore tracks , not :
cycle
length
transpositions
parity
2
1
odd
3
2
even
4
3
odd
5
4
even
Even length, odd permutation. Odd length, even permutation. The words invert.
Verify one by hand. in one-line notation is , since , , , . Its inversions are the pairs , and , three of them, so the sign is , odd. The cycle route agrees: transpositions.
Several cycles. Multiply the signs. For : two 2-cycles, each odd, product , so the permutation is even. Its inversion count is 2, confirming it.
A quick self-test. Before continuing, decide the sign of each, then check against the answers below.
in
in
The identity in
Answers. (1) length 6, five transpositions, odd. (2) a 2-cycle (odd) times a 3-cycle (even), product odd. (3) no transpositions at all, even, fixed points contribute nothing, which is why they are omitted from the notation without affecting the sign.
Extra support (1)
Contrast
Same length, opposite sign; same sign, different structure
Two permutations of the same size, opposite signs.
cycles
, with 3 fixed
transpositions
2
1
inversions
2
1
sign
moves how many elements
3
2
displaces more elements than and is nonetheless the even one. Amount of disturbance is not what the sign measures, only the parity of the swap count is.
Same sign, different cycle structure. In , both and are even: the first is one 3-cycle, two transpositions; the second is two 2-cycles, also two transpositions. Their one-line forms are with inversions 2, and with inversions 2. Equal signs, and no other structural resemblance, sign is a single bit, and it does not determine the permutation.
The reversal, which alternates. The full reversal of elements has inversions:
sign
2
1
3
3
4
6
5
10
6
15
Reversing four elements is even; reversing three is odd. Nothing about "reversal" fixes a sign. It depends on through a binomial coefficient, and the pattern has period 4.
Where the contrast bites. Given a matrix whose rows have been reversed, whether changes sign depends on the size. For a the reversal is even, so the determinant is unchanged; for a it is odd and the determinant negates. Reasoning from "a reversal is a lot of swapping, so it must flip the sign" gives the wrong answer half the time.
Optional enrichment (1)
Application
Permutation matrices, , and the triple product
Permutation matrices. For , let have a 1 in position and zeros elsewhere. Then permutes coordinates, and
The Leibniz sum has exactly one nonzero term, the one matching , and its value is a product of ones carrying the sign. This is the claim the determinants unit asserted, now derived.
The geometry agrees: a permutation matrix maps the unit cube to itself, so the volume scale factor is 1, and the sign records whether orientation is preserved. An even permutation is a rotation of the cube; an odd one includes a reflection.
Since is orthogonal with , and of an orthogonal matrix is , the two possible determinants correspond exactly to the two cosets of in .
. Elimination with partial pivoting exchanges rows, and the exchanges are recorded in a permutation matrix . Taking determinants of :
With unit lower triangular, , and the product of the pivots. So
where is the permutation of the row exchanges. This is how determinants are actually computed: elimination plus one sign, rather than the terms of the definition. For that is the difference between a few thousand operations and of them.
A practical consequence: counting the row swaps during elimination is enough. An odd number of swaps means the sign is , and forgetting to track them is the standard way to get a determinant right up to sign.
The triple product. The vector geometry unit stated that is unchanged under cyclic permutation of the three vectors and changes sign under a swap. Both follow immediately: the triple product is a determinant whose rows are the three vectors, a cyclic permutation of three elements is a 3-cycle with sign , and a swap is a transposition with sign .
Beyond determinants. The sign homomorphism is why exists as a subgroup of index 2, which underlies the solvability arguments behind the impossibility of a general quintic formula. And in physics the antisymmetry of fermionic wavefunctions under particle exchange is the statement that the wavefunction transforms by . The Slater determinant is a Leibniz sum whose signs are exactly these.
Next step
Practice Permutations
Practice records what support you used, so the evidence reflects how you actually performed.