Tutorials › Linear Algebra › Testing Universal Claims with Small Matrices

Proof Strategies in Linear Algebra · Tutorial 997 of 1000

Testing Universal Claims with Small Matrices

Learn to match simple matrices to a claim’s hypotheses and use one fully checked counterexample to disprove it.

Intermediate 10 min read

What You'll Learn

  • Distinguish a universal claim from a claim about one particular matrix.
  • Identify the exact conditions a counterexample must satisfy.
  • Use nilpotent and diagonal matrices to test common matrix claims.
  • Verify matrix products and powers entry by entry.
  • Avoid confusing a failed test with a proof of a universal statement.

What a Single Counterexample Can Establish

Matrix statements often make claims about every matrix of a specified size: for example, that all pairs of square matrices commute, or that a matrix with square zero must itself be zero. A proof of such a statement must cover every matrix in its stated domain. A disproof has a lighter burden: one matrix, or one pair of matrices, satisfying the claim’s hypotheses but violating its conclusion is enough. The practical challenge is to find a small witness and verify it without making a computational error.

Throughout this tutorial, matrices have real entries. For a positive integer \(n\), write \(\mathbb{R}^{n\times n}\) for the set of \(n\times n\) matrices, \(\mathbf{O}\) for the zero matrix of the required size, and \(\mathbf{I}_n\) for the \(n\times n\) identity matrix. Matrix equality means equality of corresponding entries. For two \(2\times2\) matrices, the product is computed by taking row-by-column products; for instance, the entry in row \(i\), column \(j\) of \(\mathbf{A}\mathbf{B}\) is \(a_{i1}b_{1j}+a_{i2}b_{2j}\).

Definition: A universal matrix claim asserts that a property holds for every matrix, or every specified collection of matrices, in a stated domain. A counterexample is a choice from that domain for which the hypotheses of the claim hold but its conclusion fails. For a claim with no separate hypotheses, a counterexample is simply an object in the domain for which the asserted property is false.

The domain and the quantifiers matter. A \(2\times2\) example refutes a claim about all square matrices, since \(2\times2\) matrices are among the square matrices. It does not by itself refute a claim specifically about \(3\times3\) matrices. Likewise, to refute a statement about every pair \((\mathbf{A},\mathbf{B})\), provide one pair; to refute a statement about every individual \(\mathbf{A}\), provide one matrix. First match the witness to the domain, then check the property.

Theorem (Witness criterion): Let \(S\) be a set of matrices and let \(P(\mathbf{A})\) be a property of a matrix \(\mathbf{A}\in S\). The universal claim “\(P(\mathbf{A})\) holds for every \(\mathbf{A}\in S\)” is false if and only if there exists \(\mathbf{A}_0\in S\) for which \(P(\mathbf{A}_0)\) is false.

Proof. Suppose the universal claim is false. Then it is not true that every member of \(S\) has property \(P\). Therefore at least one member \(\mathbf{A}_0\in S\) does not have property \(P\), which is the required witness. Conversely, suppose there is a matrix \(\mathbf{A}_0\in S\) for which \(P(\mathbf{A}_0)\) is false. A statement that \(P\) holds for every member of \(S\) would in particular require it to hold for \(\mathbf{A}_0\). Since it does not, the universal claim is false. \(\square\)

For a conditional claim, the witness must satisfy its hypothesis. A matrix that fails the conclusion but also fails the hypothesis does not refute the implication.

Theorem (Counterexample to a universal implication): Let \(P(\mathbf{A})\) and \(Q(\mathbf{A})\) be properties on a set \(S\). The claim “for every \(\mathbf{A}\in S\), if \(P(\mathbf{A})\), then \(Q(\mathbf{A})\)” is false if and only if there is some \(\mathbf{A}_0\in S\) for which \(P(\mathbf{A}_0)\) is true and \(Q(\mathbf{A}_0)\) is false.

Proof. By the definition of an implication, the statement “if \(P(\mathbf{A})\), then \(Q(\mathbf{A})\)” is false exactly when its hypothesis \(P(\mathbf{A})\) is true and its conclusion \(Q(\mathbf{A})\) is false. Thus, if the universal implication fails, it fails for at least one matrix \(\mathbf{A}_0\in S\), and that matrix has precisely those two properties. Conversely, if such a matrix \(\mathbf{A}_0\) exists, the implication fails for \(\mathbf{A}_0\), so it cannot hold for every matrix in \(S\). \(\square\)

Choose Matrices That Expose the Claim

Before trying random entries, look for matrices whose structure makes the relevant calculation short. The zero matrix can test claims involving products or sums equaling zero. The identity matrix often simplifies products, because multiplying by \(\mathbf{I}_n\) leaves a matrix unchanged. A diagonal matrix has zero entries outside its main diagonal, so many products and powers are easy to calculate. A nilpotent matrix is a square matrix \(\mathbf{N}\) for which \(\mathbf{N}^k=\mathbf{O}\) for some positive integer \(k\); its powers can reveal why a claim about a zero power is too strong.

These are useful starting points, not automatic counterexamples. A candidate still has to belong to the stated domain, satisfy any hypotheses, and actually violate the conclusion. The following examples show how those checks work.

Worked Example: Not Every Pair of Square Matrices Commutes

Test the claim that \(\mathbf{A}\mathbf{B}=\mathbf{B}\mathbf{A}\) for every pair of real square matrices. Consider the \(2\times2\) matrices

$$ \mathbf{A}=\begin{bmatrix}0&1\\0&0\end{bmatrix}, \qquad \mathbf{B}=\begin{bmatrix}1&0\\0&0\end{bmatrix}. $$

Compute both product orders, keeping the order of the factors fixed. First, each entry of \(\mathbf{A}\mathbf{B}\) is

$$ \mathbf{A}\mathbf{B} = \begin{bmatrix} 0\cdot1+1\cdot0 & 0\cdot0+1\cdot0\\ 0\cdot1+0\cdot0 & 0\cdot0+0\cdot0 \end{bmatrix} = \begin{bmatrix}0&0\\0&0\end{bmatrix}. $$

In the reverse order,

$$ \mathbf{B}\mathbf{A} = \begin{bmatrix} 1\cdot0+0\cdot0 & 1\cdot1+0\cdot0\\ 0\cdot0+0\cdot0 & 0\cdot1+0\cdot0 \end{bmatrix} = \begin{bmatrix}0&1\\0&0\end{bmatrix}. $$

The results differ in their entry in row 1, column 2: it is \(0\) in \(\mathbf{A}\mathbf{B}\) and \(1\) in \(\mathbf{B}\mathbf{A}\). Thus \(\mathbf{A}\mathbf{B}\ne\mathbf{B}\mathbf{A}\). Both matrices are real and square, so this pair refutes the claim about every pair of square matrices.

Worked Example: A Matrix Can Have Square Zero Without Being Zero

Consider the claim that every real square matrix satisfying \(\mathbf{A}^2=\mathbf{O}\) must equal \(\mathbf{O}\). Use

$$ \mathbf{N}=\begin{bmatrix}0&1\\0&0\end{bmatrix}. $$

Multiplying \(\mathbf{N}\) by itself gives

$$ \mathbf{N}^2 = \begin{bmatrix} 0\cdot0+1\cdot0 & 0\cdot1+1\cdot0\\ 0\cdot0+0\cdot0 & 0\cdot1+0\cdot0 \end{bmatrix} = \begin{bmatrix}0&0\\0&0\end{bmatrix} =\mathbf{O}. $$

However, \(\mathbf{N}\ne\mathbf{O}\), since its entry in row 1, column 2 is \(1\). The hypothesis \(\mathbf{N}^2=\mathbf{O}\) is true, but the conclusion \(\mathbf{N}=\mathbf{O}\) is false. This is a counterexample to the conditional claim. It also illustrates the definition of a nilpotent matrix: here the power \(k=2\) gives zero.

Worked Example: A Zero Product Need Not Have a Zero Factor

Test the claim that if \(\mathbf{A}\mathbf{B}=\mathbf{O}\), then \(\mathbf{A}=\mathbf{O}\) or \(\mathbf{B}=\mathbf{O}\). Choose the diagonal matrices

$$ \mathbf{A}=\begin{bmatrix}1&0\\0&0\end{bmatrix}, \qquad \mathbf{B}=\begin{bmatrix}0&0\\0&1\end{bmatrix}. $$

Their product is

$$ \mathbf{A}\mathbf{B} = \begin{bmatrix} 1\cdot0+0\cdot0 & 1\cdot0+0\cdot1\\ 0\cdot0+0\cdot0 & 0\cdot0+0\cdot1 \end{bmatrix} = \begin{bmatrix}0&0\\0&0\end{bmatrix}. $$

Yet \(\mathbf{A}\ne\mathbf{O}\), because its entry in row 1, column 1 is \(1\), and \(\mathbf{B}\ne\mathbf{O}\), because its entry in row 2, column 2 is \(1\). The hypothesis is satisfied and both alternatives in the conclusion are false. Hence the claimed implication is false.

For completeness, reversing the order also gives a zero product:

$$ \mathbf{B}\mathbf{A} = \begin{bmatrix} 0\cdot1+0\cdot0 & 0\cdot0+0\cdot0\\ 0\cdot1+1\cdot0 & 0\cdot0+1\cdot0 \end{bmatrix} = \begin{bmatrix}0&0\\0&0\end{bmatrix}. $$

The claim is already refuted by \(\mathbf{A}\mathbf{B}=\mathbf{O}\), but this additional computation confirms that the chosen diagonal factors produce zero in either order.

Worked Example: A Matrix Can Square to Itself Without Being Zero or Identity

A matrix \(\mathbf{P}\) is called idempotent if \(\mathbf{P}^2=\mathbf{P}\). Consider the claim that every \(2\times2\) real idempotent matrix is either \(\mathbf{O}\) or \(\mathbf{I}_2\). Take

$$ \mathbf{P}=\begin{bmatrix}1&0\\0&0\end{bmatrix}. $$

Direct multiplication gives

$$ \mathbf{P}^2 = \begin{bmatrix} 1\cdot1+0\cdot0 & 1\cdot0+0\cdot0\\ 0\cdot1+0\cdot0 & 0\cdot0+0\cdot0 \end{bmatrix} = \begin{bmatrix}1&0\\0&0\end{bmatrix} =\mathbf{P}. $$

But \(\mathbf{P}\ne\mathbf{O}\), since the top-left entry is \(1\), and \(\mathbf{P}\ne\mathbf{I}_2\), since the bottom-right entry is \(0\), whereas the corresponding entry of \(\mathbf{I}_2\) is \(1\). This one verified idempotent matrix disproves the claim.

How to Make a Counterexample Check Complete

A reliable counterexample has three parts: the candidate, the computation establishing the hypothesis, and the comparison showing the conclusion fails. For a matrix equality, the last part can be a single differing entry, but the products or powers that lead to that entry must be computed correctly. For a conditional claim, state explicitly which hypothesis holds and which conclusion does not. This makes the logical role of the calculation visible instead of leaving the reader to infer it.

1
Write the quantifier and domain.
Determine whether the statement concerns one matrix, every matrix of a fixed size, every square matrix, or every pair of matrices.
2
Separate the hypothesis from the conclusion.
For an implication, the witness must satisfy the hypothesis and violate the conclusion. For an unconditional equality claim, it must make the two sides unequal.
3
Try a structured candidate.
Check whether \(\mathbf{O}\), \(\mathbf{I}_n\), a diagonal matrix, or a nilpotent matrix targets the feature in the claim.
4
Calculate and verify.
Show the relevant entries of each product or power, then point to the exact entry or condition that fails.

Testing a few simple matrices is not a substitute for a proof of a universal claim. If every matrix you try satisfies the statement, that only tells you that those particular tests did not refute it. Conversely, once a valid counterexample is found, further examples are unnecessary to establish that the universal claim is false.

Common Pitfall: Reversing the Product

Matrix multiplication depends on the order of the factors, so a row-by-column error can give the wrong intermediate answer. With the matrices in the first example, a tempting but incorrect calculation is to say that \(\mathbf{A}\mathbf{B}=\mathbf{A}\) and \(\mathbf{B}\mathbf{A}=\mathbf{O}\). That has the products reversed. The correction is to keep the written order: computing rows of the left factor against columns of the right factor gives \(\mathbf{A}\mathbf{B}=\mathbf{O}\) and \(\mathbf{B}\mathbf{A}=\mathbf{A}\). The pair still disproves commutativity, but an accidentally reversed calculation is not a sound verification. Write the factors above the computation and check each entry using the product definition.

A related logical error is to choose a matrix that violates the conclusion but not the hypothesis. Such a matrix cannot refute an implication. For instance, to challenge “if \(\mathbf{A}^2=\mathbf{O}\), then \(\mathbf{A}=\mathbf{O}\),” it is not enough to choose any nonzero matrix: its square must also be checked. The nilpotent matrix above works because the calculation verifies both required facts.

Zero, identity, diagonal, and nilpotent matrices are useful because their entries make the verification transparent. Their value is not that they settle every question in advance, but that they make good first candidates: each can expose a specific overgeneralization while keeping the arithmetic small enough to audit.

Check Your Understanding

For each question, identify the claim’s domain and verify the proposed witness by calculation.

  1. Does \(\mathbf{A}^2=\mathbf{A}\) force \(\mathbf{A}=\mathbf{O}\) or \(\mathbf{A}=\mathbf{I}_2\) for every real \(2\times2\) matrix? Test \(\begin{bmatrix}0&0\\0&1\end{bmatrix}\).
  2. Find a pair of nonzero diagonal \(2\times2\) matrices whose product is \(\mathbf{O}\), or explain why the pair in this tutorial already provides one.
  3. What must be true of a proposed witness to refute “if \(P(\mathbf{A})\), then \(Q(\mathbf{A})\)”?
  4. Why does testing several matrices that satisfy a universal claim not prove that the claim holds for every matrix?
  5. In the noncommuting example, calculate the entry in row 1, column 2 of each product directly from the row-by-column definition.

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