Euler Hall — free maths guides

Change the sign of a determinant when two rows are exchanged

Predict the determinant after one row exchange. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

One exchange, one minus sign

If you exchange two rows of a matrix, the determinant is multiplied by−1-1.

Same four numbers, different rows, opposite sign.

Which gives you the counting rule immediately:

  • - 1 exchange: multiplied by−1-1.
  • - 2 exchanges: multiplied by(−1)2=+1(-1)^2=+1, i.e. back to the original.
  • - 3 exchanges: multiplied by−1-1 again.

In general(−1)#exchanges(-1)^{\#\text{exchanges}}.

And one consequence worth remembering in its own right: a matrix with two equal rows has determinant zero. Exchange them and the matrix does not change, so its determinant would have to equal its own negative — and the only such number is00.

Why every term flips

The definition is a sum over orderings of the columns. Take one term: it multipliesa1σ(1)a2σ(2)⋯anσ(n)a_{1\sigma(1)}a_{2\sigma(2)}\cdots a_{n\sigma(n)} and carries the sign ofσ\sigma.

Now exchange rowsii andjj. The same set of products is still available, but the entry that was in rowii is now in rowjj and vice versa. So the ordering that was used for the product has hadii andjj swapped — a single transposition.

A transposition changes the parity of an ordering. That is the one fact this rule rests on, and it is easy to see: swapping two items changes the count of inversions by an odd amount, always. So every even ordering became odd and every odd ordering became even.

Every term therefore flips its sign. And a sum of terms that have all flipped is the negative of the original sum.

Two exchanges compose two transpositions, restoring every parity, and the determinant comes back. That is why the rule is(−1)count(-1)^{\text{count}} rather than a fresh rule per exchange.

Complete worked example, in the paper's shape

Problem.A=[120311021]A=\begin{bmatrix}1&2&0\\ 3&1&1\\ 0&2&1\end{bmatrix} hasdet⁡A=−7\det A=-7. LetBB beAA with rows 1 and 3 exchanged. Computedet⁡B\det B without expandingBB.

Solution. One exchange, sodet⁡B=−det⁡A=7\det B=-\det A=7.

Check by expandingBB.B=[021311120]B=\begin{bmatrix}0&2&1\\ 3&1&1\\ 1&2&0\end{bmatrix}. Row 1 has a zero, so expand along it, signs+,−,++,-,+:

det⁡B=0⋅(⋯ )−2det⁡[3110]+1det⁡[3112]=0−2(0−1)+(6−1)=2+5=7.✓\det B=0\cdot(\cdots)-2\det\begin{bmatrix}3&1\\ 1&0\end{bmatrix}+1\det\begin{bmatrix}3&1\\ 1&2\end{bmatrix}=0-2(0-1)+(6-1)=2+5=7. \checkmark

By the end you can
  • Predict the determinant after one row exchange
  • Track the sign through several row operations at once
  • Explain the sign change from the parity of the column ordering
Check yourself
  1. 1.det⁡A=5\det A=5. Exchange rows 1 and 2, then rows 2 and 3. What is the determinant now?
  2. 2.det⁡A=−3\det A=-3. Multiply row 1 by44. What is the determinant?
  3. 3. Why must a matrix with two equal rows have determinant zero?
  4. 4. A reduction uses 3 exchanges and 4 row additions. The triangular form has pivots2,1,52,1,5. What isdet⁡A\det A?
Answers
  1. 1. Two exchanges, so(−1)2⋅5=5(-1)^2\cdot5=5. Unchanged.
  2. 2.−12-12. One scaling by44, no exchanges.
  3. 3. Exchanging the two equal rows leaves the matrix unchanged, so its determinantdd satisfiesd=−dd=-d, henced=0d=0.
  4. 4.(−1)3⋅(2⋅1⋅5)=−10(-1)^3\cdot(2\cdot1\cdot5)=-10. Additions contribute nothing.
Work out where to start — free, no accountAnswer six real questions — free, no account