Next: Rules for Matrix Arithmetic
Up: Matrix Multiplication, Part II
Previous: Matrix Multiplication, Part II
The product of two matrices
and
is
defined whenever
is an
matrix and
is an
matrix. That is, the number of columns
of
has to be the same as the number of rows of
. This means that rows of
and columns of
have the same number of entries, so the following definition
makes sense:
is an
matrix. Column
of
is the product of
and column
of
. In other words, to find
, we multiply
times all the columns of
, and
those are the columns of the product. Putting this still another way, the entry in row
, column
of
is the product of row
of
with column
of
.
Here are some examples:
Example:
This is the product of a
matrix with a
matrix, so the
result is a
matrix. The entry in row 1, column 3 is the product of
the first row of the left-hand factor and the third column of the right-hand factor,
. The third column of the
product is the left-hand factor times the third column of the right-hand factor:
The product
is not defined. This is the product of a
matrix with a
matrix; the number of columns of the first factor (3) is not the same as the number
of rows of the second factor (2), so we cannot carry out the multiplication. You can see that if
you try to take the product of a row of the left-hand matrix with a column of the right-hand
matrix, the numbers of entries don't match.
Example:
Example:
Next: Rules for Matrix Arithmetic
Up: Matrix Multiplication, Part II
Previous: Matrix Multiplication, Part II
Peter Kostelec
2000-05-08