2.6.5 · D5Matrices & Determinants — Introduction
Question bank — Matrix multiplication — conditions, process, non-commutativity
This page is a workout for your understanding, not your arithmetic. Every item below is a place where students confidently write the wrong thing. Read the question, cover the answer, commit to a reason out loud, then reveal. If your reason doesn't match the reasoning given, that's a trap you just escaped.
Prerequisites you should already own: the parent note (dot-product rule and the dimension-matching condition), plus a feel for Linear transformations as the meaning behind the numbers.
True or false — justify
If is defined, then is also defined.
False. needs columns-of- = rows-of-; needs columns-of- = rows-of- — a completely different condition. E.g. is , is : works, does not.
If both and are defined, they must have the same shape.
False in general. and give of shape but of shape . Same shape is only forced when both are square of the same size.
For square matrices of the same size, always.
False. Both products exist and share a shape, but they are usually different — see the swap-matrix example in the parent where but . Multiplication being defined both ways is not the same as it commuting.
Matrix multiplication is associative: .
True. It mirrors function composition, which is associative — applying then then groups either way to the same overall transformation.
Matrix multiplication is entry-by-entry, like addition.
False. Addition is entry-wise, but multiplication is a row-column dot product. The entry-wise version is a different operation (the Hadamard product ).
If (the zero matrix), then at least one of or must be zero.
False. Non-zero matrices can multiply to zero, e.g. . Matrices have "zero divisors" — numbers do not.
If , then .
False. You cannot "cancel" unless is invertible. If collapses space (has no inverse), different and can land on the same output.
.
False — the order reverses: . See Matrix transpose properties; transposing flips the composition order, just like undoing socks-then-shoes.
.
True, and notably even when . The determinant measures area/volume scaling, and total scaling doesn't care about order.
Multiplying by the Identity matrix can change a matrix.
False. ; the identity is the "do-nothing" transformation, so it leaves every matrix untouched from either side.
Spot the error
" is , is , so is ." Find the mistake.
The inner dimensions must match first: 's columns vs 's rows (), so is undefined — you never reach a shape at all.
"To compute , dot column 2 of with row 1 of ." Find the mistake.
Reversed. uses ==row of with column of ==, so is row 2 of with column 1 of .
" exists and exists, so multiplication is commutative here." Find the mistake.
Existence of both products is a dimension fact; commutativity is a value fact. You must actually compute both and compare — they rarely agree.
"Since times gives , and times gives , both are the identity-sized answer." Find the mistake.
Neither is automatically an identity; they're just valid products of different shapes. Shape ≠ content, and being square doesn't make you .
"I'll factor: ." Find the mistake.
The correct distributive law is ; you factor out the common , you do not add the 's. is a totally different quantity.
"." Find the mistake.
Expanding gives , and since in general you cannot merge them into . The binomial shortcut assumes commutativity.
Why questions
Why is the entry a dot product of a row and a column, not a product of two numbers?
Because column of says where a basis vector goes, and row of says how to read off one coordinate of the result — summing over blends all intermediate dimensions into one output coordinate.
Why must the inner dimensions match?
's rows expect an input with components; 's columns must supply exactly components. If 's columns have a different height, there's nothing consistent to dot against.
Why does order matter — why is generally ?
Because means "do first, then ", and composing transformations in the opposite order lands vectors elsewhere — rotate-then-stretch differs from stretch-then-rotate.
Why is even though ?
The determinant is a scalar recording how much area/volume is scaled. Both orders apply the same two scalings, and because numbers commute — the geometry of "total stretch" is order-free.
Why does reverse the order?
Transposing swaps the roles of rows and columns, which is exactly the "undo in reverse" pattern — the last operation applied becomes the first to be transposed.
Why can't we cancel from in general?
Cancelling secretly multiplies by , but if squashes a dimension it has no inverse. A collapsing map can send different to the same image, so cancellation is illegal.
Edge cases
What is where is the zero matrix of compatible shape?
The zero matrix. Every entry is a dot product with an all-zero column, so every sum is — the transformation sends everything to the origin.
What happens when you multiply a row by an column?
You get a matrix — a single number, the plain dot product of the two vectors. This is the smallest non-trivial matrix product.
What happens when you multiply an column by a row (the reverse order)?
You get an matrix (an "outer product"), not a scalar. Same two vectors, opposite order, wildly different shape — a vivid reminder that order controls even the shape.
Is a matrix times a matrix just ordinary number multiplication?
Yes — the dot-product rule collapses to a single term , so matrix multiplication contains ordinary multiplication as its smallest case.
Can be undefined for a valid matrix ?
Yes, if is non-square: needs columns-of- = rows-of-, which only holds when is square. Powers are a square-matrix privilege.
If is diagonal, does scale 's rows or columns?
scales the rows of (each row times ), while scales the columns — a clean case where you can see why left- and right-multiplication differ.
Recall One-line summary of every trap here
The shape rules (inner match, order changes shape), the value rules (, no cancelling, zero divisors), and the algebra rules (, ) all trace back to one idea: matrices are ordered compositions of transformations, not numbers.