Tutorials › Linear Algebra › Repeated Rows Force A Zero Determinant

Properties of Determinants · Tutorial 238 of 1000

Repeated Rows Force A Zero Determinant

Use the permutation formula to prove that exchanging two rows reverses a determinant’s sign, and conclude that identical rows force the determinant to vanish.

Intermediate 9 min read

What You'll Learn

  • Recall the Leibniz formula and permutation signs used in the proof
  • Prove that exchanging two positions reverses a permutation’s sign
  • Reindex the determinant sum to establish the row-swap sign rule
  • Deduce why a matrix with two identical rows has determinant zero
  • Check the result on numerical and symbolic matrices
  • Recognise and correct a common row-swap sign error

From Permutation Signs to Determinants

The determinant’s permutation formula expresses it as a signed sum: each term selects one entry from every row and every column, and the sign depends on the permutation that specifies those choices. This makes it possible to prove a basic fact about rows directly from the definition. Exchanging two rows pairs the terms in the sum with terms of opposite sign, so the determinant changes sign. If the two rows were already identical, the exchange leaves the matrix unchanged; the determinant must then equal its own negative and therefore be zero.

Throughout, let \(\mathbf{A}=(a_{ij})\) be an \(n\times n\) matrix over \(\mathbb{R}\), with \(n\geq 1\). A permutation \(\sigma\) of \(\{1,\ldots,n\}\) is a bijection from that set to itself. Its inversions are pairs \((r,s)\) with \(r<s\) and \(\sigma(r)>\sigma(s)\). The sign of \(\sigma\), written \(\operatorname{sgn}(\sigma)\), is \(1\) if the number of inversions is even and \(-1\) if it is odd. The Leibniz formula is

$$ \det\mathbf{A} = \sum_{\sigma}\operatorname{sgn}(\sigma) \prod_{r=1}^{n}a_{r,\sigma(r)}, $$

where the sum is over all permutations of \(\{1,\ldots,n\}\). In each product there is one entry from each row, and the permutation ensures that the chosen column indices are all distinct. We will track what happens to these terms when two row positions are exchanged.

Why Exchanging Two Positions Reverses a Permutation’s Sign

Fix distinct positions \(i\) and \(j\), and let \(\tau\) be the permutation that exchanges \(i\) and \(j\) and fixes every other position. Composing a permutation with \(\tau\) on the right exchanges the values at positions \(i\) and \(j\) in its ordered list. We first justify that this reverses its sign.

Lemma: For any permutation \(\rho\) and any transposition \(\tau\) that exchanges two distinct positions, \(\operatorname{sgn}(\rho\circ\tau)=-\operatorname{sgn}(\rho)\).

Proof. Assume, after naming the two positions in increasing order, that \(i<j\). In the list of values of \(\rho\), write \(x=\rho(i)\) and \(y=\rho(j)\). Exchanging the positions changes the status of the pair \((i,j)\): it is an inversion before the exchange exactly when it is not an inversion afterward. Thus this pair changes the inversion count by an odd number. For any position \(k\) outside the interval from \(i\) to \(j\), the two pairs involving \(k\) and the positions \(i,j\) have the same total inversion count before and after: the same two values \(x,y\) are being compared with \(\rho(k)\). For a position \(k\) strictly between \(i\) and \(j\), put \(z=\rho(k)\). The total contribution of \((i,k)\) and \((k,j)\) before the exchange is \([x>z]+[z>y]\), and after it is \([y>z]+[z>x]\), where each bracket is \(1\) when its inequality holds and \(0\) otherwise. The sum of these two totals is \(2\), since the values \(x,y,z\) are distinct. Consequently, the before and after totals have the same parity. All inversion contributions other than the pair \((i,j)\) therefore preserve parity, while that pair reverses it. The total inversion count changes parity, so the permutation sign changes from \(1\) to \(-1\) or from \(-1\) to \(1\). Hence \(\operatorname{sgn}(\rho\circ\tau)=-\operatorname{sgn}(\rho)\). \(\square\)

Exchanging Two Rows Reverses the Determinant’s Sign

Let \(\mathbf{B}\) be the matrix obtained from \(\mathbf{A}\) by exchanging rows \(i\) and \(j\), and let \(\tau\) exchange those row indices. Its entries satisfy \(b_{k\ell}=a_{\tau(k),\ell}\). The next result follows by reindexing the permutation sum; it does not require a determinant expansion along any particular row.

Theorem: If \(\mathbf{B}\) is obtained from an \(n\times n\) real matrix \(\mathbf{A}\) by exchanging two distinct rows, then \(\det\mathbf{B}=-\det\mathbf{A}\).

Proof. By the Leibniz formula and the definition of the entries of \(\mathbf{B}\),

$$ \det\mathbf{B} = \sum_{\sigma}\operatorname{sgn}(\sigma) \prod_{k=1}^{n}a_{\tau(k),\sigma(k)}. $$

In each product, set \(r=\tau(k)\). Because \(\tau\) exchanges two indices and fixes the others, \(\tau^{-1}=\tau\), so \(k=\tau(r)\). Define \(\rho=\sigma\circ\tau\); then \(\sigma=\rho\circ\tau\). As \(\sigma\) ranges over all permutations, so does \(\rho\), because composition with \(\tau\) is a bijection on the set of permutations. The product becomes \(\prod_{r=1}^{n}a_{r,\rho(r)}\), and the lemma gives \(\operatorname{sgn}(\sigma)=\operatorname{sgn}(\rho\circ\tau)=-\operatorname{sgn}(\rho)\). Therefore

$$ \det\mathbf{B} = -\sum_{\rho}\operatorname{sgn}(\rho) \prod_{r=1}^{n}a_{r,\rho(r)} = -\det\mathbf{A}. $$

This proves the claimed sign change. \(\square\)

Worked Example: Checking the Sign Change in a 3×3 Matrix

Exchange the first and third rows of \(\mathbf{A}=\begin{bmatrix}1&2&0\\3&-1&4\\2&1&5\end{bmatrix}\), and verify the determinant sign change directly using the six terms in the 3×3 permutation formula.

The formula for a 3×3 matrix gives

$$ \begin{aligned} \det\mathbf{A} &=1(-1)(5)+2(4)(2)+0(3)(1)\\ &\quad-0(-1)(2)-2(3)(5)-1(4)(1)\\ &=-5+16+0-0-30-4=-23. \end{aligned} $$

After the exchange, \(\mathbf{B}=\begin{bmatrix}2&1&5\\3&-1&4\\1&2&0\end{bmatrix}\). Applying the same formula gives

$$ \begin{aligned} \det\mathbf{B} &=2(-1)(0)+1(4)(1)+5(3)(2)\\ &\quad-5(-1)(1)-1(3)(0)-2(4)(2)\\ &=0+4+30+5-0-16=23. \end{aligned} $$

Check: \(\det\mathbf{B}=23=-(-23)=-\det\mathbf{A}\), as the theorem predicts.

Identical Rows Force a Zero Determinant

Suppose two distinct rows of a square matrix are identical. Exchanging those rows produces exactly the original matrix, entry by entry. At the same time, the row-swap theorem says the determinant of the exchanged matrix is the negative of the original determinant. These two facts give an equation in which a real number equals its negative. The fact that the scalars are real matters: if \(d=-d\), then \(2d=0\), and \(2\ne0\) in \(\mathbb{R}\), so \(d=0\).

Corollary: If an \(n\times n\) real matrix has two identical rows, then its determinant is zero. This condition can occur only when \(n\geq 2\).

Proof. Let rows \(i\) and \(j\) be identical, with \(i\ne j\), and let \(\mathbf{B}\) result from exchanging them. Since the two rows have the same entries, \(\mathbf{B}=\mathbf{A}\), so \(\det\mathbf{B}=\det\mathbf{A}\). The row-swap theorem also gives \(\det\mathbf{B}=-\det\mathbf{A}\). Thus \(\det\mathbf{A}=-\det\mathbf{A}\), which implies \(2\det\mathbf{A}=0\). Since \(2\ne0\) in \(\mathbb{R}\), division by \(2\) gives \(\det\mathbf{A}=0\). When \(n=1\), there are no two distinct rows, so the hypothesis cannot occur. \(\square\)

Worked Example: Identical First and Third Rows

Show that the determinant of \(\mathbf{A}=\begin{bmatrix}2&-1&3\\0&4&5\\2&-1&3\end{bmatrix}\) is zero without evaluating a three-term cofactor expansion.

Rows 1 and 3 are both \((2,-1,3)\). Exchanging them gives

$$ \begin{bmatrix}2&-1&3\\0&4&5\\2&-1&3\end{bmatrix} \longmapsto \begin{bmatrix}2&-1&3\\0&4&5\\2&-1&3\end{bmatrix}. $$

The displayed matrix is unchanged. The row-swap theorem therefore gives \(\det\mathbf{A}=-\det\mathbf{A}\), so \(2\det\mathbf{A}=0\) and \(\det\mathbf{A}=0\).

Check: Directly from the 3×3 formula, the positive terms are \(2(4)(3)=24\), \((-1)(5)(2)=-10\), and \(3(0)(-1)=0\). The terms to subtract are \(3(4)(2)=24\), \((-1)(0)(3)=0\), and \(2(5)(-1)=-10\). Hence \(\det\mathbf{A}=24-10+0-24-0-(-10)=0\), agreeing with the argument.

Worked Example: A Symbolic 2×2 Matrix with Equal Rows

Let \(\mathbf{C}=\begin{bmatrix}a&b\\a&b\end{bmatrix}\), where \(a,b\in\mathbb{R}\). Verify the zero determinant directly and through the repeated-row result.

The 2×2 determinant formula yields

$$ \det\mathbf{C}=ab-ba=0, $$

because real multiplication is commutative, so \(ab=ba\). The repeated-row corollary applies as well: exchanging the two equal rows leaves \(\mathbf{C}\) unchanged, while the sign-change theorem says the determinant changes sign.

Check: Both calculations give \(\det\mathbf{C}=0\) for every real choice of \(a\) and \(b\), including \(a=b=0\).

Common Mistake: Treating a Row Exchange as Sign-Preserving

A common error is to assume that the determinant stays the same because a row exchange preserves the collection of rows. For example, \(\mathbf{D}=\begin{bmatrix}1&2\\3&4\end{bmatrix}\) has determinant \(1(4)-2(3)=-2\). Exchanging its rows gives \(\mathbf{E}=\begin{bmatrix}3&4\\1&2\end{bmatrix}\), whose determinant is \(3(2)-4(1)=2\). The incorrect calculation would assign \(-2\) to \(\det\mathbf{E}\), treating the exchange as sign-preserving. The correction is to track the sign: \(\det\mathbf{E}=-\det\mathbf{D}=2\). The row-swap theorem applies whether or not the rows are equal; only in the equal-row case does the exchanged matrix coincide with the original.

The permutation-sum proof explains why the sign change is systematic rather than a special feature of a small example. Reindexing pairs each determinant term with a term that uses the exchanged row positions, and the associated permutation sign is reversed. Identical rows then give the zero result because the matrix is unchanged by that exchange. This argument uses neither a determinant test for invertibility nor any row-reduction rule for computing determinants.

Check Your Understanding

Use the permutation formula and the two results proved above to answer these questions.

  1. For a permutation \(\rho\), why does exchanging its values at two distinct positions reverse the parity of its inversion count?
  2. Let \(\mathbf{A}\) be a square real matrix and let \(\mathbf{B}\) result from exchanging rows 2 and 4. What is the relation between \(\det\mathbf{A}\) and \(\det\mathbf{B}\)?
  3. Explain why the row-swap theorem implies that a matrix with two equal rows has determinant zero over \(\mathbb{R}\).
  4. Compute the determinant of \(\begin{bmatrix}1&3\\1&3\end{bmatrix}\) directly, then verify the repeated-row conclusion.
  5. Find the sign error in the claim that exchanging the rows of \(\begin{bmatrix}2&1\\5&3\end{bmatrix}\) leaves its determinant unchanged.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon