4.68 min read
Caveats: Non-Commutativity and Zero Products
Non-commutativity: in general, even for square matrices. A simple example: rotate then scale is different from scale then rotate (if scales are non-uniform). This is the most important difference from scalar arithmetic.
Zero products: For scalars, implies or . For matrices this fails: can be the zero matrix with and . This happens when the columns of all lie in the null space of .
No cancellation: does NOT imply (unless is invertible). Similarly does not imply .
Formal View
Example 4.6 — Zero Product of Nonzero Matrices
, . Then even though and .
Why This Matters
These failures of familiar algebra cause subtle bugs in matrix computations and derivations.
- In programming: matrix product order in shader code critically affects 3D rendering
- In quantum mechanics: operator order (commutators) determines observable properties
- Numerical: accumulation of rounding errors differs between and despite mathematical equality
Quiz
Question 1
If , then either or .
Common Mistakes
- Applying scalar arithmetic rules (, ) to matrices.
- Canceling matrices from both sides of an equation without checking invertibility.