In General: To multiply an m×n matrix by an n×p matrix, the n s must be the same, and the result is an m×p matrix.
When we do multiplication: The number of columns of the 1st matrix must equal the number of rows of the 2nd matrix . And the result will have the same number of rows as the 1st matrix , and the same number of columns as the 2nd matrix .
Order of Multiplication In arithmetic we are used to: 3 × 5 = 5 × 3 (The Commutative Law of Multiplication) But this is not generally true for matrices (matrix multiplication is not commutative ):
Example: See how changing the order affects this multiplication. AB ≠ BA When you change the order of multiplication, the answer is (usually) different .
You can multiply two matrices if, and only if, the number of columns in the first matrix equals the number of rows in the second matrix. Otherwise, the product of two matrices is undefined.
In order to multiply matrices, Step 1 : Make sure that the number of columns in the 1 st one equals the number of rows in the 2 nd one. (The pre-requisite to be able to multiply) Step 2 : Multiply the elements of each row of the first matrix by the elements of each column in the second matrix. Step 3 : Add the products.