Meaning of the matrix product
1Introduction
The product of matrices is not entrywise multiplication. It is defined so that matrices represent composition of
The rule for matrix multiplication can look unnatural at first, but it appears naturally once we require compatibility with the action on column vectors and with composition of maps.
2Terms and definitions
Let be an
The inner sizes must match.
This formula is not merely a rule to memorize. If is the -th
Thus first sends the -th standard-basis direction to , and then acts on that result. Reading the -th component gives
3Strategy
First calculate matrix products as tables of numbers, then interpret them as actions on
4Intuitive explanation
Let the columns of be . For ,
A matrix therefore uses the components of the input as
Applying this device twice produces matrix multiplication. Thus means: apply first, then apply .
5Precise explanation
Regard and . For ,
Therefore the composite map is , and its
6Column interpretation
If the columns of are and , then
So a matrix uses the components of the input as coefficients and forms a
7Composition interpretation
Regard and . Then
so the composite map is represented by . In , acts first and acts second.
8Worked example
Let
Then
Thus and are generally different because the order of composition is different.
9Theorem and proof: matrix product 行列積 ぎょうれつせき represents composition
Let be and be . Write the columns of as . For ,
Applying and using linearity gives
The columns of are exactly , so .
10Common misunderstandings
matrix product is not the product of corresponding entries.行列積 ぎょうれつせき - Size compatibility must be checked before calculating.
- is not expected unless there is a special reason.
11Scope
Matrix multiplication is defined so that it agrees with composition of
12Final forms
13Theorem and proof: matrix product is composition of linear maps
Let be an matrix and an matrix. Then represents the linear map that applies first and then .
To prove this, take . If the columns of are , then
Applying and using
On the other hand, the -th column of is , so has the same expression. Hence
This proof explains why the order of matrix multiplication reflects the order of composition.