<meta http-equiv="refresh" content="1; url=/nojavascript/">

# Matrix Multiplication

## Multiply rows by columns in different matrices

0%
Progress
Practice Matrix Multiplication
Progress
0%
Multiplying Two Matrices

Mr. Hwan writes the following matrices on the board and asks his students to multiply them.

[3210][41]

When they are done multiplying, Mr. Hwan asks, "What element is in the first row, second column of your answer?"

Wanda says that because the two matrices do not have the same dimensions they can't be multiplied. Therefore, there is no answer.

Xavier says that the product is a 2 x 1 matrix so there is no element in the first row, second column.

Zach says that the element requested is 8.

Who is correct?

### Guidance

To multiply matrices together we will be multiplying each element in each row of the first matrix by each element in each column in the second matrix. Each of these products will be added together to get the result for a particular row and column as shown below.

[acbd][egfh]=[ae+bgce+dgaf+bhcf+dh]

#### Example A

Multiply the matrices:

[2135][6401]

Solution:

By following the rule given above, we get:

[2(6)+3(4)1(6)+5(4)2(0)+3(1)1(0)+5(1)]=[12+126+200+30+5]=[02635]

#### Example B

Multiply the matrices:

174302[5182]

Solution:

In order to multiply these two matrices we need to extend the pattern given in the guidance to apply to a 3×2\begin{align*}3\times2\end{align*} matrix and a 2×2\begin{align*}2\times2\end{align*} matrix. It is important to note that matrices do not need to have the same dimensions in order to multiply them together. However, there are limitations that will be explored in the next topic. All matrix multiplication problems in this topic are possible.

Now, let’s multiply each of the rows in the first matrix by each of the columns in the second matrix to get:

174302[5182]=1(5)+3(1)7(5)+0(1)4(5)+2(1)1(8)+3(2)7(8)+0(2)4(8)+2(2)=5335+020+28+656+0324=8352225628

#### Example C

Multiply the matrices:

[327815]209

Solution:

Sometimes, not only are the matrices different dimensions, but the result has dimensions other than either of the original matrices as is the case in this example. Multiply the matrices row by column to get:

[327815]209=[3(2)+7(0)+1(9)2(2)+8(0)+5(9)]=[6+0+94+045]=[1541]

Intro Problem Revisit When the two matrixes are multiplied, the resulting matrix is:

[78]

The matrices can be multiplied, but there is no first row, second column in the resulting matrix. The element 8 is in the second row, first column. Therefore Xavier is right.

### Guided Practice

Multiply the matrices together.

1.

[4513][21]

2.

325[214]

3.

[52][1347]

1.

[4513][21]=[4(2)+1(1)5(2)+3(1)]=[8110+3]=[913]

2.

325[214]=3(2)2(2)5(2)3(1)2(1)5(1)3(4)2(4)5(4)=641032512820

3.

[52][1347]=[5(1)+2(3)5(4)+2(7)]=[5+620+14]=[1134]

### Explore More

Multiply the matrices together.

1. .
[2013][4235]
1. .
[27][1543]
1. .
351246[1432]
1. .
[8315][47]
1. .
148[236]
1. .
[51][923106]
1. .
[4513][26]
1. .
[247]315
1. .
155232411264321510
1. .
[124]351112267
1. .
[61112][21116]
1. .
419526738121
1. .
[213]458
1. .
[10][15]
1. .
2174212[53]