Matrix multiplication is:
- NOT commutative -
- associative -
- distributive -
To multiply a matrix by another matrix the number of columns in the first matrix must be equal to the number of rows in the second matrix. Thatβs because, when we multiply one matrix by another, we multiply the rows in the first matrix by the columns of the second matrix.
The easy way to tell whether or not you can multiply matrices is to line up their dimensions.
If the middle numbers match like they do here (theyβre both
To get the dimensions of the product, take the rows of the first matrix and the columns of the second matrix:
Dot product
For instance, we said before that when we take the product
the first entry weβll need to find is the dot product of the first row in
To take the dot product of these ordered pairs, we take the product of the first values, and then add that result to the product of the second values. In other words, the dot product of
The product of two
Therefore, to find the product of matrices
Zero matrix
Multiplying a matrix by the Zero matrix, results in a zero matrix, but might have different dimensions.