Why the Multiplication Rule Looks Like That
Last timeReading a Matrix Off Its Columns
Matrix multiplication is doing one map and then another, which forces the strange entry rule, explains why order matters, and makes the cost of a chain a real decision.
Of everything in elementary linear algebra, the rule for multiplying two matrices
is the part that looks most invented. Walk along a row, down a column, multiply
and add, repeat. Nothing about the grid suggests it, and nobody who learns it that
way can say why.
From the map view it is not a rule at all. It is a consequence.
Why the rule is what it is
Start from the column reading. The composite map is applied by running the first
map and then the second, so the composite sends the first axis to wherever the
second map sends the first map's first column.
Now unpack that. The first map's first column is a vector of coordinates. The
second map, handed those coordinates, mixes its own columns using them as
amounts. Writing out that mixture produces a sum over an index, with one factor
from each matrix, and that sum is exactly the famous rule.
- apply the right hand map first, which is why products are read right to left
- apply the left hand map to whatever came out
- the single matrix that does both in that order, which is what the product means
- the ith component of where the composite sends the kth axis
- the sum over the intermediate space, which is where the shared index comes from
- the ith component of where the second map sends the jth axis
- the jth amount in the kth destination of the first map
It is worth pausing on why a composite of two linear maps is linear at all,
since the whole construction depends on it. Hand the composite a sum. The first
map splits it, by additivity. The second map splits the two pieces again, for the
same reason. Scaling passes through both maps in the same way. So the composite
obeys both rules, which means it has a matrix of its own, which is the object the
product names. Without that short argument there would be nothing for the product
to be.
The lesson stops here
3 more paragraphs to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents