Tutorials › Linear Algebra › Checkerboard Signs in Cofactors

Determinants by Cofactor Expansion · Tutorial 213 of 1000

Checkerboard Signs in Cofactors

Use row and column indices to assign cofactor signs correctly, then calculate and check signed cofactors in small matrices.

Beginner 8 min read

What You'll Learn

  • Define the minor and cofactor associated with a matrix entry.
  • Construct the alternating cofactor-sign pattern from \((-1)^{i+j}\).
  • Explain how signs change between horizontal, vertical, and diagonal neighbors.
  • Calculate signed cofactors in two-by-two and three-by-three matrices.
  • Identify and correct common cofactor sign and indexing mistakes.

From a Minor to a Signed Cofactor

When an entry of a matrix is paired with its minor, the row and column indices determine whether that minor keeps its sign or has its sign reversed. This adjustment is the cofactor sign. The rule depends only on the position of the entry, not on the values in the matrix, so the same alternating pattern applies to every square matrix of a given size.

Let \(\mathbf{A}\in\mathbb{R}^{n\times n}\), where \(n\geq 2\). Rows and columns are numbered starting at \(1\), so the upper-left entry is in position \((1,1)\). To form the minor associated with \(a_{ij}\), delete row \(i\) and column \(j\); the determinant of the resulting \((n-1)\times(n-1)\) matrix is \(M_{ij}\). Thus \(M_{ij}\) is a number, not the smaller matrix itself.

Definition: The cofactor of the entry \(a_{ij}\) is \(C_{ij}=(-1)^{i+j}M_{ij}\). The factor \((-1)^{i+j}\) is \(+1\) when \(i+j\) is even and \(-1\) when \(i+j\) is odd. Therefore a cofactor equals its minor in an even-sum position and is the negative of its minor in an odd-sum position.

The sign is fixed by the position before the minor is calculated. For example, \(C_{12}=-M_{12}\) because \(1+2=3\) is odd, while \(C_{22}=M_{22}\) because \(2+2=4\) is even. These statements concern the sign factor only: if a minor is already negative, multiplying it by \(-1\) makes the cofactor positive.

Building the Checkerboard

Place \(+1\) in position \((1,1)\). Moving one step to the right or one step down changes the parity of \(i+j\), so the sign changes at every horizontal or vertical move. The resulting sign arrays begin as follows:

$$ \begin{bmatrix} +&-\\ -&+ \end{bmatrix} \qquad \begin{bmatrix} +&-&+\\ -&+&-\\ +&-&+ \end{bmatrix} \qquad \begin{bmatrix} +&-&+&-\\ -&+&-&+\\ +&-&+&-\\ -&+&-&+ \end{bmatrix}. $$

Each displayed \(+\) or \(-\) represents the sign factor multiplying the corresponding minor, not the value of the cofactor itself. For instance, a minus sign in the array tells us to calculate \(C_{ij}=-M_{ij}\); it does not guarantee that \(C_{ij}\) is a negative number.

Theorem (Checkerboard sign rule): For every position \((i,j)\) in a square matrix, the cofactor sign is \(+1\) if \(i+j\) is even and \(-1\) if \(i+j\) is odd. Consequently, the sign changes between horizontal or vertical neighbors and is unchanged between diagonal neighbors that lie within the matrix.

Proof. By definition, the sign at \((i,j)\) is \((-1)^{i+j}\), which is \(+1\) for an even exponent and \(-1\) for an odd exponent. For a horizontal neighbor, the column index changes by \(1\) or \(-1\), while the row index stays fixed, so the sum of the indices changes by an odd number and its parity reverses. For a vertical neighbor, the row index changes by \(1\) or \(-1\), while the column index stays fixed; the sum again changes by an odd number, so the sign reverses. For a diagonal neighbor, both indices change by \(1\) or \(-1\). Their sum therefore changes by \(-2\), \(0\), or \(2\), each of which is even. The parity of the sum is unchanged, so the sign is unchanged. These neighbor statements apply only when the indicated neighboring position is inside the matrix. \(\square\)

This rule explains why the pattern alternates across every row and every column, while positions on the same diagonal direction have matching signs. The formula \((-1)^{i+j}\) is the reliable way to determine a sign; the checkerboard is a visual aid for reading that formula, not a separate calculation rule.

Calculating Cofactors in a Two-by-Two Matrix

Worked Example: All Cofactors of a Two-by-Two Matrix

Find the minor and cofactor for every entry of \(\mathbf{A}=\begin{bmatrix}3&-2\\5&1\end{bmatrix}\).

Deleting one row and one column leaves a single entry, whose determinant is that entry. The four minors are therefore \(M_{11}=1\), \(M_{12}=5\), \(M_{21}=-2\), and \(M_{22}=3\). Apply the two-by-two sign pattern:

$$ \begin{bmatrix} C_{11}&C_{12}\\ C_{21}&C_{22} \end{bmatrix} = \begin{bmatrix} (+1)M_{11}&(-1)M_{12}\\ (-1)M_{21}&(+1)M_{22} \end{bmatrix} = \begin{bmatrix} 1&-5\\ 2&3 \end{bmatrix}. $$

Check: The top-left and bottom-right positions have even index sums, so their cofactors remain \(1\) and \(3\). The other two positions have odd index sums, so \(M_{12}=5\) becomes \(-5\), and \(M_{21}=-2\) becomes \(2\). Each entry agrees with its position’s sign factor.

Calculating Cofactors in a Three-by-Three Matrix

For a three-by-three matrix, deleting a row and column leaves a two-by-two matrix. Its determinant can be computed using \(ad-bc\) for \(\begin{bmatrix}a&b\\c&d\end{bmatrix}\). Keep the two operations distinct: first calculate the minor determinant, then multiply by the position’s sign.

Worked Example: Every Cofactor in a Three-by-Three Matrix

Find the nine cofactors of \(\mathbf{A}=\begin{bmatrix}2&1&3\\0&-1&4\\5&2&1\end{bmatrix}\). The sign array is \(+\ -\ +\) in the first row, \(-\ +\ -\) in the second, and \(+\ -\ +\) in the third.

For row 1, the minors and signed cofactors are

$$ \begin{aligned} M_{11}&=(-1)(1)-4(2)=-9,& C_{11}&=(+1)(-9)=-9,\\ M_{12}&=0(1)-4(5)=-20,& C_{12}&=(-1)(-20)=20,\\ M_{13}&=0(2)-(-1)(5)=5,& C_{13}&=(+1)(5)=5. \end{aligned} $$

For row 2, delete row 2 in each minor and use the sign in the corresponding position:

$$ \begin{aligned} M_{21}&=1(1)-3(2)=-5,& C_{21}&=(-1)(-5)=5,\\ M_{22}&=2(1)-3(5)=-13,& C_{22}&=(+1)(-13)=-13,\\ M_{23}&=2(2)-1(5)=-1,& C_{23}&=(-1)(-1)=1. \end{aligned} $$

For row 3, the remaining calculations are

$$ \begin{aligned} M_{31}&=1(4)-3(-1)=7,& C_{31}&=(+1)(7)=7,\\ M_{32}&=2(4)-3(0)=8,& C_{32}&=(-1)(8)=-8,\\ M_{33}&=2(-1)-1(0)=-2,& C_{33}&=(+1)(-2)=-2. \end{aligned} $$

Thus the array of cofactors is \(\begin{bmatrix}-9&20&5\\5&-13&1\\7&-8&-2\end{bmatrix}\). Check: The minors, arranged in their positions, are \(\begin{bmatrix}-9&-20&5\\-5&-13&-1\\7&8&-2\end{bmatrix}\). Multiplying each entry by its corresponding checkerboard sign gives \(\begin{bmatrix}-9&20&5\\5&-13&1\\7&-8&-2\end{bmatrix}\), confirming all nine cofactor signs and values.

Theorem (Alternation of cofactor signs): In any fixed row, consecutive cofactor signs alternate; in any fixed column, consecutive cofactor signs alternate. Every pair of diagonal-neighbor positions within the matrix has the same cofactor sign.

Proof. In a fixed row \(i\), the sign at column \(j\) is \((-1)^{i+j}\), and the sign at column \(j+1\) is \((-1)^{i+j+1}=-(-1)^{i+j}\). Thus consecutive signs in a row are opposite. In a fixed column \(j\), the sign at row \(i\) is \((-1)^{i+j}\), and the sign at row \(i+1\) is \((-1)^{i+j+1}=-(-1)^{i+j}\), so consecutive signs in a column are also opposite. For a diagonal-neighbor position, both indices change by \(1\) or \(-1\), so their sum changes by \(-2\), \(0\), or \(2\). Each change is even, leaving the parity of the sum, and hence the sign, unchanged. \(\square\)

Separating the Sign from the Minor

A cofactor can be positive, negative, or zero regardless of whether its sign factor is \(+1\) or \(-1\). The factor tells us only whether to preserve or reverse the minor’s value. In particular, if a minor is zero, multiplying by either sign leaves the cofactor zero. If the minor is negative and its sign factor is \(-1\), the cofactor is positive.

Worked Example: Signed Cofactors with a Parameter

For \(\mathbf{B}=\begin{bmatrix}a&2&0\\3&1&-1\\0&4&2\end{bmatrix}\), calculate \(C_{12}\), \(C_{23}\), \(C_{31}\), and \(C_{32}\).

Position \((1,2)\) has a negative sign. Deleting row 1 and column 2 leaves \(\begin{bmatrix}3&-1\\0&2\end{bmatrix}\), so

$$ M_{12}=3(2)-(-1)(0)=6,\qquad C_{12}=(-1)(6)=-6. $$

Position \((2,3)\) also has a negative sign. Its remaining matrix is \(\begin{bmatrix}a&2\\0&4\end{bmatrix}\), giving

$$ M_{23}=a(4)-2(0)=4a,\qquad C_{23}=(-1)(4a)=-4a. $$

Position \((3,1)\) has a positive sign. The remaining matrix is \(\begin{bmatrix}2&0\\1&-1\end{bmatrix}\), so

$$ M_{31}=2(-1)-0(1)=-2,\qquad C_{31}=(+1)(-2)=-2. $$

Position \((3,2)\) has a negative sign. Its remaining matrix is \(\begin{bmatrix}a&0\\3&-1\end{bmatrix}\), hence

$$ M_{32}=a(-1)-0(3)=-a,\qquad C_{32}=(-1)(-a)=a. $$

Check: The sign sequence at the four positions is \(-,-,+,-\). Applying it to the calculated minors \(6,4a,-2,-a\) gives \(-6,-4a,-2,a\), exactly the stated cofactors. When \(a=0\), both \(M_{23}\) and \(M_{32}\) are zero, and their cofactors are also zero.

Common Sign and Indexing Errors

Mistake: assigning a negative sign to every minor in an off-diagonal position. In the first three-by-three example, position \((1,2)\) is off the main diagonal and its minor is \(-20\). A wrong calculation might write \(C_{12}=-20\), treating the negative sign factor as if it were the value of the cofactor. The correction is to multiply the sign factor by the minor: \(C_{12}=(-1)(-20)=20\). The sign factor reverses the minor’s sign; it does not replace the minor.

Mistake: starting the indices at zero. The position in the upper-left corner is \((1,1)\), not \((0,0)\). Its index sum is \(2\), so its sign is positive. Using zero-based indices can shift the parity and assign the wrong signs throughout the matrix. Begin counting rows and columns at \(1\), then use \((-1)^{i+j}\) for each entry.

Mistake: assuming a diagonal move always means down and right. A diagonal neighbor can be up-right, down-left, or up-left as well as down-right, provided it lies in the matrix. In every case both indices change by \(1\) or \(-1\), so the sum changes by an even number and the sign is preserved. The conclusion does not depend on a particular direction along the diagonal.

In the next step of determinant calculations, cofactors will be used together with the entries in their positions. For now, the essential procedure is specific: identify the row and column indices, read the sign from their parity, compute the minor, and multiply. Keeping those steps separate makes it easier to find and correct an error.

Check Your Understanding

For each question, identify the sign factor separately from the minor before giving a cofactor value.

  1. What is the sign factor for the cofactor in position \((3,4)\)?
  2. If \(M_{21}=7\), what is \(C_{21}\)?
  3. If \(M_{13}=-6\), what is \(C_{13}\)?
  4. In a four-by-four sign array, what sign appears in position \((4,4)\), and why?
  5. Why does a diagonal move preserve the cofactor sign whether it goes down-right or up-left?

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