Matrix multiplication has multiple different motivations. The one presented
here is fairly elementary and allows us to use a more concise representation
of subsequent ideas.
Recall
If we add negative three times the first equation to the third equation we
obtain:
We will be explicit by including the fact that above we added zero times the
third row.
Here are a few more such combinations
Negative three times equation one plus equation three
Negative three times equation two plus equation three
Equation two only
Sum of all three equations
Collecting all resulting equations we obtain
We want to encode such transformation so that there is an easy and convenient
way to work just with the (augmented) matrices of the system of linear
equation. The constants and
are the same when:
- adding negative three times Equation 1 to Equation 2,
- adding negative three times Equation 1 to Equation 3 and
- adding negative three times Equation 2 to Equation 3.
However by being explicit we distinguish between
,
and
allowing us to encode the above transform of row combinations in a matrix
When is applied to
the result is , or
which written as (augmented) matrices is
Above we performed matrix-matrix multiplication or matrix
multiplication for short. In that matrix the th row of
the result is the th combination of equations that
is taken. For example the second equation that was obtained was
the same operation (highlighted) in the matrix multiplication below
reflects that for the result
the right side is
and the left side is
In the matrix multiplication
to obtain the entry in the first row sixth (last) column of the matrix on
the right hand side of the equation we compute:
to obtain the entry in the first row third column we compute:
to obtain the entry in the third row second column we compute:
To summarize: when multiplying matrices
- each row of matrix contributes a row in the
resulting matrix , that is each combination of
equations results in exactly one equation;
- each column of matrix contributes a column in the
resulting matrix , that is the set of variables is
unchanged;
- the number of columns in matrix equals
the number of rows in matrix , that is we are
explicit expressing the combination of equations.
In the above matrix multiplication we multiplied a
matrix by a
to obtain a
.
We are ready to define matrix multiplication
Let
be an matrix
and
be an matrix. The matrix
multiplication of matrix
with matrix
denoted by
is an matrix
where
Here is another example including a corresponding systems of linear
equations:
Let
then
or as matrix multiplication
Matrix multipcation is independent from the underlying system of linear
equations but some of the earlier notation we introduced is motivated by
matrix multiplication.
Verify
Compare the above result with the matrix form
of the system of linear equations
A word of caution: not all pair of matrices can be multiplied!
While the multiplications
and
cannot be performed, one can verify
The above example illustrates that matrix multiplication is
not commutative that is
In fact the existence of
does not imply the existence of
. Here is an example where both
multiplications exist but are not equal to each other.
Verify
and
Bear in mind that the last multiplication results in a one by one matrix
not the number sixteen.
Let us consider the multiplication of three matrices.
Let
Then
And furthermore
Matrix multiplication is not commutative operation but the above
example suggests that it is an associative operation!
Matrix multiplication is associative
Show proof:
Let
be an matrix,
be an matrix
and
be an matrix. Then
is a matrix where
and
is an matrix where
Consider
. It is an
matrix where
Consider
. It is an
matrix where
Matrices and have the same
number of rows and columns and
hence , which concludes the
argument.