Multiplication of Matrices
Key Questions
-
Matrix multiplication is an operation performed upon two (or sometimes more) matrices, with the result being another matrix.
This explanation will assume the student is familiar with the basics of matrices, such as matrix notation and vector dot products.
There are certain rules which must be followed in the multiplication process. First, when multiplying any two matrices
A_(rs) andB_(tu) , wherer andt are the number of rows in matricesA & B respectively ands andu the number of columns in matricesA & B respectively, ifs!=t (that is, the number of rows inA does not equal the number of columns inB ), the matrix multiplication cannot be carried out.When multiplying two matrices such as this, the resultant matrix
AB will possessr rows andu columns; in other words, the same number of rows as theA matrix and the same number of columns as theB matrix.Each entry in the
AB matrix will be calculated via the dot product of a row from theA matrix and a column from theB matrix. Renaming theAB matrix asC for ease of use, the value of any individual elementc_ij can be found by taking the dot product of rowi fromA and columnj fromB .There is currently some difficulty in utilizing Socratic's math code to construct a matrix, so different notation must be used temporarily. Consider the 2x3 matrix
A , such thata_11 = 1, a_12 = 0, a_13 = 3, a_21 = 0, a_22 = 5, a_23 = -1 , as well as the 3x2 matrixB such thatb_11 = 4, b_12 = 5, b_21 = 0, b_22 = -3, b_31 = -4, b_32 = 1 . Then the resultant matrixAB = C is a 2x2 matrix, with
c_11 = (a_11*b_11) + (a_12*b_21) + (a_13*b_31) ,
c_12 = (a_11*b_12)+(a_12*b_22)+(a_13*b_32),
c_21 = (a_21*b_11) + (a_22*b_21)+(a_23*b_31),
c_22 = (a_21*b_12)+(a_22+b_22)+(a_23+b_32) Plugging in the respective values, we get
c_11 = -8, c_12 = 8, c_21 = 4, c_22 = -16 -
There is some information on Multiplication of Matrices here on Socratic.
I think of it as a process that is easier to explain in person, but I'll do my best here.
Let's go through an example:
((1, 2),(3, 4)) ((3, 5),(7, 11)) Find the first row of the product
Take the first row of
((1, 2),(3, 4)) , and make it vertical in front of((3, 5),(7, 11)) . (We'll do the same for the second row in a minute.)It looks like:
{: (1),(2) :}((3, 5),(7, 11)) Now multiply times the first column and add to get the first number in the first row of the answer:
{:(1 xx 3),(2 xx 7) :}={:(3),(14) :} now add to get17 The product starts with:
((17,"-"),("-","-")) Next multiply times the second column and add to get the second number in the first row of the answer:
{:(1 xx 5),(2 xx 11) :}={:(5),(22) :} now add to get27 The first row of the product is:
((17,27)) A this point we know that the product looks like:
((1, 2),(3, 4)) ((3, 5),(7, 11)) = ((17,27),("-","-")) Find the second row of the product
Find the second row of the product by the same process using the second row of((1, 2),(3, 4)) {: (3),(4) :} ((3, 5),(7, 11)) to get:9+28 = 37 and15+44 = 59 The second row of the product is:
((37,59)) Write the answer
((1, 2),(3, 4)) ((3, 5),(7, 11)) = ((17,27),(37,59)) -
Simply the multiplication of a scalar (generally a real number) by a matrix.
The multiplication of a matriz
M of entriesm_(ij) by a scalara is defined as the matrix of entriesa m_(ij) and is denotedaM .Example:
Take the matrix
A=((3,14),(-4,2)) and the scalar
b=4 Then, the product
bA of the scalarb and the matrixA is the matrixbA=((12,56),(-16,8)) This operation has very simple properties that are analogous to that of the real numbers.