Lesson Objectives
• Learn how to multiply matrices

## How to Multiply Matrices

In this lesson, we will learn how to find the product of two matrices. First and foremost, in order to multiply two matrices together, the number of columns from the first matrix (leftmost) must be equal to the number of rows from the second matrix (rightmost). If these two numbers do not match, we stop and state that the product does not exist. If the two numbers match, we are able to find our product. Let's look at an example.
Example #1: Find AB. $$A=\left[ \begin{array}{cc}5&6&3\\ 4&2 &1\end{array}\right]$$ $$B=\left[ \begin{array}{cc}8&4\\ -1&1 \\ 8 & 10\end{array}\right]$$ A is a 2 x 3 matrix.
B is a 3 x 2 matrix.
The columns from A (3) match up with the rows from B (3). Therefore, we can find the product.
To set up the product, we take the rows from A and the columns from B. So AB will be a 2 x 2 matrix. $$AB=\left[ \begin{array}{cc}a&b\\ c&d\end{array}\right]$$ To find each entry in the answer, we find the product of the corresponding row from the first matrix and the corresponding column from the second matrix. In other words, if we are in the first row and first column of the answer, we will look at the first row from the first matrix and the first column from the second matrix. We will find the sum of the product of all corresponding entries. Lowercase a represents the entry in the first row and first column. So we will look at the entries in the first row of the leftmost matrix and the entries in the first column of the rightmost matrix. $$a=5 \cdot 8 + 6 \cdot -1 + 3 \cdot 8$$ $$a=40 - 6 + 24=58$$ Continuing this pattern: $$b=5 \cdot 4 + 6 \cdot 1 + 3 \cdot 10$$ $$b=20 + 6 + 30=56$$ $$c=4 \cdot 8 + 2 \cdot -1 + 1 \cdot 8$$ $$c=32 - 2 + 8=38$$ $$d=4 \cdot 4 + 2 \cdot 1 + 1 \cdot 10$$ $$d=16 + 2 + 10=28$$ This gives us a final answer of: $$AB=\left[ \begin{array}{cc}58&56\\ 38&28\end{array}\right]$$

#### Skills Check:

Example #1

Find AB. $$A=\left[ \begin{array}{cc}-4&6\\ -4&-3\end{array}\right]$$ $$B=\left[ \begin{array}{cc}5&1\\ -3&2\end{array}\right]$$

A
$$AB=\left[ \begin{array}{cc}-38&8\\ -11&-10\end{array}\right]$$
B
$$AB=\left[ \begin{array}{cc}-2&1\\ -5&-2\end{array}\right]$$
C
$$AB=\left[ \begin{array}{cc}-10&-6\\ 5&9\end{array}\right]$$
D
$$AB=\left[ \begin{array}{cc}3&-2\\ 6&11\end{array}\right]$$
E
$$AB=\left[ \begin{array}{cc}7&-1\\ 3&7\end{array}\right]$$

Example #2

Find AB. $$A=\left[ \begin{array}{ccc}2&-2 & 0\\ -2&-5 & 4\end{array}\right]$$ $$B=\left[ \begin{array}{cc}-3&-6\\ 1&-2 \\-5 & -2\end{array}\right]$$

A
$$AB=\left[ \begin{array}{cc}-8&-8\\ -19&19\end{array}\right]$$
B
$$AB=\left[ \begin{array}{cc}-8&-8\\ -19&14\end{array}\right]$$
C
$$AB=\left[ \begin{array}{cc}1&-7\\ -2&-4\end{array}\right]$$
D
$$AB=\left[ \begin{array}{cc}10&-1\\ 5&-9\end{array}\right]$$
E
$$AB=\left[ \begin{array}{cc}11&-6\\ 3&1\end{array}\right]$$       