Matrix Cancellation: Why Nonzero A Is Not Enough
See why AB = AC need not imply B = C for matrices. Check an original counterexample, invertible-factor cancellation and the correct side for the inverse.

| Topic | Exam Prep |
|---|---|
| Focus | Mathematics |
| Read time | 5 min |
| Words | 887 |
| Published | 30 Nov 2026 |
| Best for | Students & parents (exam prep) |
From ab = ac, school algebra lets you cancel a nonzero number a. Matrices need a stronger check. A nonzero matrix can multiply another nonzero matrix to give the zero matrix, so crossing out a common matrix factor can remove information.
The useful question is not just “Is A nonzero?” It is “Can this factor be cancelled on this side?” This guide uses real 2 × 2 matrices and original practice examples. For this square-matrix setting, an invertible common factor permits cancellation; merely containing nonzero entries does not.
Read the position of the common factor
In AB = AC, A is a common left factor. Subtract to get AB − AC = O, then factor by distributivity: A(B − C) = O. Here O denotes the 2 × 2 zero matrix, not the number zero.
The tempting next step is B − C = O. That conclusion needs justification. Matrix multiplication has zero divisors: nonzero matrices can have a zero product. Our matrices practice page reviews row-by-column multiplication and inverses before this cancellation problem.
Check a counterexample entry by entry
Take A with rows [1, 2] and [2, 4]. Let B have rows [3, 1] and [0, 2], and C have rows [1, 5] and [1, 0]. None of these matrices is the zero matrix, and B is not C.
Compute AB. Its first row is [1 × 3 + 2 × 0, 1 × 1 + 2 × 2] = [3, 5]. Its second row is [2 × 3 + 4 × 0, 2 × 1 + 4 × 2] = [6, 10].
Now AC has first row [1 × 1 + 2 × 1, 1 × 5 + 2 × 0] = [3, 5], and second row [2 × 1 + 4 × 1, 2 × 5 + 4 × 0] = [6, 10]. Therefore AB = AC even though B ≠ C.
This is one counterexample, enough to disprove the claim that nonzero A always permits cancellation. It does not prove that every pair B and C gives equal products with this A. The particular difference between the matrices matters.
See exactly what the product loses
Subtract the two right factors. D = B − C has rows [2, −4] and [−1, 2]. Its columns are [2, −1] and [−4, 2]. Both are nonzero, but A sends each column to the zero column.
For example, [1, 2] dotted with [2, −1] gives 2 − 2 = 0; [2, 4] dotted with that column gives 4 − 4 = 0. The other column gives −4 + 4 = 0 and −8 + 8 = 0.
Thus AD = O while A ≠ O and D ≠ O. Multiplication by this A loses the difference between B and C. If you are studying null spaces, both columns of D lie in A's null space; the direct products already establish the result without that terminology.
Use an inverse on the correct side
If A is invertible and AB = AC, multiply both sides on the left by A⁻¹. Associativity gives (A⁻¹A)B = (A⁻¹A)C, so IB = IC and B = C.
Do not multiply on the right and silently slide factors past one another. AB A⁻¹ = AC A⁻¹ is valid, but A and A⁻¹ are not adjacent there. Matrix multiplication is not generally commutative, so that expression does not directly cancel the leftmost A.
For BA = CA with invertible A, multiply on the right instead: B(AA⁻¹) = C(AA⁻¹). The common factor's position determines where the inverse goes. Check dimensions as well as order before writing any product.
Separate parameter cases before cancelling
Let A(t) have rows [1, 2] and [0, t]. Its determinant is t. For t ≠ 0 it is invertible, so A(t)B = A(t)C forces B = C for every compatible pair of these square matrices.
At t = 0, that guarantee fails. Choose D with rows [−2, 0] and [1, 0]. Then A(0)D = O despite D ≠ O. Taking B = D and C = O gives an explicit unequal pair with equal products.
This distinction is important: singular A does not mean B and C must be different whenever AB = AC. They may still be equal. It means the equality alone cannot guarantee cancellation for every pair. Establish invertibility before using that implication.
Frequently asked questions
Does a nonzero determinant allow cancellation here?
Yes. For these square matrices, a nonzero determinant means the common factor is invertible. Use its inverse on the side where it meets that factor.
Can two nonzero matrices really have a zero product?
Yes. The A and D in the worked example are both nonzero but AD = O, as direct row-by-column multiplication confirms.
Is cancellation invalid for every singular-matrix equation?
No. Particular equations may still have B = C. Singularity removes the general guarantee; it does not force the right factors to be unequal.
Does this guide cover rectangular cancellation?
No. Rectangular matrices need the appropriate rank or one-sided inverse conditions. The determinant and inverse argument here concerns square matrices.
Method and photo sources
Rules checked against McMaster University, matrix algebra tutorial. Numerical matrices and checks are original practice.
Photo: Dom J on Pexels, under the Pexels licence, cropped and compressed. Blank stationery provides space for working through the matrix products.
Related articles
- Singular Matrix Parameters: Find Every Real Value of k
- Binomial Constant Terms: Check the Integer Index
- Parametric Second Derivatives: Divide by dx/dt Again
- Conditional Probability: Choose the Right Denominator
- Lexicographic Rank with Repeated Letters: Count Prefix Blocks
Explore related tuition services: maths tuition · home tuition · online tuition