Applied Mathematics · Ch 2 — Algebra
Multiplication of Matrices
Multiplication of Matrices
Multiplying two matrices is less straightforward than adding or subtracting them, because it isn't simply a matter of multiplying corresponding elements. Two matrices and can be multiplied, in that order, only when the number of columns in equals the number of rows in — if is of order and is of order , the product exists and has order . Each element of the product is found by pairing a row of with a column of and combining them:
In words: to get the entry in row , column of , multiply each element of row of with the corresponding element of column of , and add up the results.
Matrix multiplication is generally not commutative — and can be different matrices, or one might not even be defined while the other is. Always check compatibility of order before multiplying, and never assume unless you've proved it for the specific matrices at hand. …