## Learning Objectives

In this section, you will:

- Find the sum and difference of two matrices.
- Find scalar multiples of a matrix.
- Find the product of two matrices.

Figure 1 (credit: “SD Dirk,” Flickr)

Two club soccer teams, the Wildcats and the Mud Cats, are hoping to obtain new equipment for an upcoming season. Table 1 shows the needs of both teams.

Wildcats | Mud Cats | |
---|---|---|

Goals | 6 | 10 |

Balls | 30 | 24 |

Jerseys | 14 | 20 |

Table 1

A goal costs $300; a ball costs $10; and a jersey costs $30. How can we find the total cost for the equipment needed for each team? In this section, we discover a method in which the data in the soccer equipment table can be displayed and used for calculating other information. Then, we will be able to calculate the cost of the equipment.

## Finding the Sum and Difference of Two Matrices

To solve a problem like the one described for the soccer teams, we can use a matrix, which is a rectangular array of numbers. A row in a matrix is a set of numbers that are aligned horizontally. A column in a matrix is a set of numbers that are aligned vertically. Each number is an entry, sometimes called an element, of the matrix. Matrices (plural) are enclosed in [ ] or ( ), and are usually named with capital letters. For example, three matrices named $A,B,$ and $C$ are shown below.

$$A=\left[\begin{array}{cc}1& 2\\ 3& 4\end{array}\right],B=\left[\begin{array}{ccc}1& 2& 7\\ 0& \mathrm{-5}& 6\\ 7& 8& 2\end{array}\right],C=\left[\begin{array}{c}\mathrm{-1}\\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0\\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}3\\ 2\\ 1\end{array}\right]$$

### Describing Matrices

A matrix is often referred to by its size or dimensions: $\text{}m\times n$ indicating $m$ rows and $n$ columns. Matrix entries are defined first by row and then by column. For example, to locate the entry in matrix $A$ identified as ${a}_{ij},$ we look for the entry in row $i,$ column $j.$ In matrix $A\text{, \hspace{0.17em}}$ shown below, the entry in row 2, column 3 is ${a}_{23}.$

$$A=\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\\ {a}_{21}& {a}_{22}& {a}_{23}\\ {a}_{31}& {a}_{32}& {a}_{33}\end{array}\right]$$

A square matrix is a matrix with dimensions $\text{}n\times n,$ meaning that it has the same number of rows as columns. The $3\times 3$ matrix above is an example of a square matrix.

A row matrix is a matrix consisting of one row with dimensions $1\times n.$

$$\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]$$

A column matrix is a matrix consisting of one column with dimensions $m\times 1.$

$$\left[\begin{array}{c}{a}_{11}\\ {a}_{21}\\ {a}_{31}\end{array}\right]$$

A matrix may be used to represent a system of equations. In these cases, the numbers represent the coefficients of the variables in the system. Matrices often make solving systems of equations easier because they are not encumbered with variables. We will investigate this idea further in the next section, but first we will look at basic matrix operations.

## Matrices

A matrix is a rectangular array of numbers that is usually named by a capital letter: $A,B,C,$ and so on. Each entry in a matrix is referred to as ${a}_{ij},$ such that $i$ represents the row and $j$ represents the column. Matrices are often referred to by their dimensions: $m\times n$ indicating $m$ rows and $n$ columns.

## Example 1

### Finding the Dimensions of the Given Matrix and Locating Entries

Given matrix $A:$

- ⓐWhat are the dimensions of matrix $A?$
- ⓑWhat are the entries at ${a}_{31}$ and ${a}_{22}?$
$$A=\left[\begin{array}{rrrr}\hfill 2& \hfill & \hfill 1& \hfill 0\\ \hfill 2& \hfill & \hfill 4& \hfill 7\\ \hfill 3& \hfill & \hfill 1& \hfill -2\end{array}\right]$$

### Solution

- ⓐThe dimensions are $\text{}3\times 3$ because there are three rows and three columns.
- ⓑEntry ${a}_{31}$ is the number at row 3, column 1, which is 3. The entry ${a}_{22}$ is the number at row 2, column 2, which is 4. Remember, the row comes first, then the column.

### Adding and Subtracting Matrices

We use matrices to list data or to represent systems. Because the entries are numbers, we can perform operations on matrices. We add or subtract matrices by adding or subtracting corresponding entries.

In order to do this, the entries must correspond. Therefore, *addition and subtraction of matrices is only possible when the matrices have the same dimensions*. We can add or subtract a $\text{}3\times 3$ matrix and another $\text{}3\times 3$ matrix, but we cannot add or subtract a $\text{}2\times 3$ matrix and a $\text{}3\times 3$ matrix because some entries in one matrix will not have a corresponding entry in the other matrix.

## Adding and Subtracting Matrices

Given matrices $A$ and $B$ of like dimensions, addition and subtraction of $A$ and $B$ will produce matrix $C$ or

matrix $D$ of the same dimension.

$$A+B=C\phantom{\rule{0ex}{0ex}}\text{suchthat}{a}_{ij}+{b}_{ij}={c}_{ij}$$

$$A-B=D\phantom{\rule{0ex}{0ex}}\text{suchthat}{a}_{ij}-{b}_{ij}={d}_{ij}$$

Matrix addition is commutative.

$$A+B=B+A$$

It is also associative.

$$\left(A+B\right)+C=A+\left(B+C\right)$$

## Example 2

### Finding the Sum of Matrices

Find the sum of $A$ and $B,$ given

$$A=\left[\begin{array}{cc}a& b\\ c& d\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{cc}e& f\\ g& h\end{array}\right]$$

### Solution

Add corresponding entries.

$$\begin{array}{l}A+B=\left[\begin{array}{cc}a& b\\ c& d\end{array}\right]+\left[\begin{array}{cc}e& f\\ g& h\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{ccc}a+e& & b+f\\ c+g& & d+h\end{array}\right]\hfill \end{array}$$

## Example 3

### Adding Matrix *A *and Matrix *B*

Find the sum of $A$ and $B.$

$$A=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{cc}5& 9\\ 0& 7\end{array}\right]$$

### Solution

Add corresponding entries. Add the entry in row 1, column 1, ${a}_{11},$ of matrix $A$ to the entry in row 1, column 1, ${b}_{11},$ of $B.$ Continue the pattern until all entries have been added.

$$\begin{array}{l}A+B=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right]+\left[\begin{array}{cc}5& 9\\ 0& 7\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{ccc}4+5& & 1+9\\ 3+0& & 2+7\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{cc}9& 10\\ 3& 9\end{array}\right]\hfill \end{array}$$

## Example 4

### Finding the Difference of Two Matrices

Find the difference of $A$ and $B.$

$$A=\left[\begin{array}{cc}\mathrm{-2}& 3\\ 0& 1\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{cc}8& 1\\ 5& 4\end{array}\right]$$

### Solution

We subtract the corresponding entries of each matrix.

$$\begin{array}{l}A-B=\left[\begin{array}{rr}\hfill -2& \hfill 3\\ \hfill 0& \hfill 1\end{array}\right]-\left[\begin{array}{rr}\hfill 8& \hfill 1\\ \hfill 5& \hfill 4\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{rrr}\hfill -2-8& \hfill & \hfill 3-1\\ \hfill 0-5& \hfill & \hfill 1-4\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{rrr}\hfill -10& \hfill & \hfill 2\\ \hfill -5& \hfill & \hfill -3\end{array}\right]\hfill \end{array}$$

## Example 5

### Finding the Sum and Difference of Two 3 x 3 Matrices

Given $A$ and $B:$

- ⓐFind the sum.
- ⓑFind the difference.

$$A=\left[\begin{array}{rrr}\hfill 2& \hfill \mathrm{-10}& \hfill \mathrm{-2}\\ \hfill 14& \hfill 12& \hfill 10\\ \hfill 4& \hfill \mathrm{-2}& \hfill 2\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{rrr}\hfill 6& \hfill 10& \hfill \mathrm{-2}\\ \hfill 0& \hfill \mathrm{-12}& \hfill \mathrm{-4}\\ \hfill \mathrm{-5}& \hfill 2& \hfill \mathrm{-2}\end{array}\right]$$

### Solution

- ⓐAdd the corresponding entries.
$$\begin{array}{l}\hfill \\ A+B=\left[\begin{array}{rrr}\hfill 2& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-10& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-2\\ \hfill 14& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}12& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}10\\ \hfill 4& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-2& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2\end{array}\right]+\left[\begin{array}{rrr}\hfill 6& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}10& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-2\\ \hfill 0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-12& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-4\\ \hfill -5& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-2\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rrr}\hfill 2+6& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-10+10& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-2-2\\ \hfill 14+0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}12-12& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}10-4\\ \hfill 4-5& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-2+2& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2-2\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rrr}\hfill 8& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-4\\ \hfill 14& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}6\\ \hfill -1& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0\end{array}\right]\hfill \end{array}$$

- ⓑSubtract the corresponding entries.
$$\begin{array}{l}\hfill \\ A-B=\left[\begin{array}{rrr}\hfill 2& \hfill \mathrm{-10}& \hfill \mathrm{-2}\\ \hfill 14& \hfill 12& \hfill 10\\ \hfill 4& \hfill \mathrm{-2}& \hfill 2\end{array}\right]-\left[\begin{array}{rrr}\hfill 6& \hfill 10& \hfill \mathrm{-2}\\ \hfill 0& \hfill \mathrm{-12}& \hfill \mathrm{-4}\\ \hfill \mathrm{-5}& \hfill 2& \hfill \mathrm{-2}\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rrr}\hfill 2-6& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-10}-10& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-2}+2\\ \hfill 14-0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}12+12& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}10+4\\ \hfill 4+5& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-2}-2& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2+2\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rrr}\hfill \mathrm{-4}& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-20}& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0\\ \hfill 14& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}24& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}14\\ \hfill 9& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-4}& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}4\end{array}\right]\hfill \end{array}$$

## Try It #1

Add matrix $A$ and matrix $B.$

$$A=\left[\begin{array}{rr}\hfill 2& \hfill 6\\ \hfill 1& \hfill 0\\ \hfill 1& \hfill \mathrm{-3}\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{rr}\hfill 3& \hfill \mathrm{-2}\\ \hfill 1& \hfill 5\\ \hfill \mathrm{-4}& \hfill 3\end{array}\right]$$

## Finding Scalar Multiples of a Matrix

Besides adding and subtracting whole matrices, there are many situations in which we need to multiply a matrix by a constant called a scalar. Recall that a scalar is a real number quantity that has magnitude, but not direction. For example, time, temperature, and distance are scalar quantities. The process of scalar multiplication involves multiplying each entry in a matrix by a scalar. A scalar multiple is any entry of a matrix that results from scalar multiplication.

Consider a real-world scenario in which a university needs to add to its inventory of computers, computer tables, and chairs in two of the campus labs due to increased enrollment. They estimate that 15% more equipment is needed in both labs. The school’s current inventory is displayed in Table 2.

Lab A | Lab B | |
---|---|---|

Computers | 15 | 27 |

Computer Tables | 16 | 34 |

Chairs | 16 | 34 |

Table 2

Converting the data to a matrix, we have

$${C}_{2013}=\left[\begin{array}{c}15\\ 16\\ 16\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}27\\ 34\\ 34\end{array}\right]$$

To calculate how much computer equipment will be needed, we multiply all entries in matrix $C$ by 0.15.

$$(0.15){C}_{2013}=\left[\begin{array}{c}(0.15)15\\ (0.15)16\\ (0.15)16\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}(0.15)27\\ (0.15)34\\ (0.15)34\end{array}\right]=\left[\begin{array}{c}2.25\\ 2.4\\ 2.4\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}4.05\\ 5.1\\ 5.1\end{array}\right]$$

We must round up to the next integer, so the amount of new equipment needed is

$$\left[\begin{array}{c}3\\ 3\\ 3\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}5\\ 6\\ 6\end{array}\right]$$

Adding the two matrices as shown below, we see the new inventory amounts.

$$\left[\begin{array}{c}15\\ 16\\ 16\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}27\\ 34\\ 34\end{array}\right]+\left[\begin{array}{c}3\\ 3\\ 3\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}5\\ 6\\ 6\end{array}\right]=\left[\begin{array}{c}18\\ 19\\ 19\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}32\\ 40\\ 40\end{array}\right]$$

This means

$${C}_{2014}=\left[\begin{array}{c}18\\ 19\\ 19\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}32\\ 40\\ 40\end{array}\right]$$

Thus, Lab A will have 18 computers, 19 computer tables, and 19 chairs; Lab B will have 32 computers, 40 computer tables, and 40 chairs.

## Scalar Multiplication

Scalar multiplication involves finding the product of a constant by each entry in the matrix. Given

$$A=\left[\begin{array}{cccc}{a}_{11}& & & {a}_{12}\\ {a}_{21}& & & {a}_{22}\end{array}\right]$$

the scalar multiple $cA$ is

$$\begin{array}{l}cA=c\left[\begin{array}{ccc}{a}_{11}& & {a}_{12}\\ {a}_{21}& & {a}_{22}\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{ccc}c{a}_{11}& & c{a}_{12}\\ c{a}_{21}& & c{a}_{22}\end{array}\right]\hfill \end{array}$$

Scalar multiplication is distributive. For the matrices $A,B,$ and $C$ with scalars $a$ and $b,$

$$\begin{array}{l}\\ \begin{array}{c}a(A+B)=aA+aB\\ (a+b)A=aA+bA\end{array}\end{array}$$

## Example 6

### Multiplying the Matrix by a Scalar

Multiply matrix $A$ by the scalar 3.

$$A=\left[\begin{array}{cc}8& 1\\ 5& 4\end{array}\right]$$

### Solution

Multiply each entry in $A$ by the scalar 3.

$$\begin{array}{l}3A=3\left[\begin{array}{rr}\hfill 8& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}1\\ \hfill 5& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}4\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rr}\hfill 3\cdot 8& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\cdot 1\\ \hfill 3\cdot 5& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\cdot 4\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rr}\hfill 24& \hfill 3\\ \hfill 15& \hfill 12\end{array}\right]\hfill \end{array}$$

## Try It #2

Given matrix $B,$ find $\mathrm{-2}B$ where

$$B=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right]$$

## Example 7

### Finding the Sum of Scalar Multiples

Find the sum $3A+2B.$

$$A=\left[\begin{array}{rrr}\hfill 1& \hfill \mathrm{-2}& \hfill 0\\ \hfill 0& \hfill \mathrm{-1}& \hfill 2\\ \hfill 4& \hfill 3& \hfill \mathrm{-6}\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{rrr}\hfill \mathrm{-1}& \hfill 2& \hfill 1\\ \hfill 0& \hfill \mathrm{-3}& \hfill 2\\ \hfill 0& \hfill 1& \hfill \mathrm{-4}\end{array}\right]$$

### Solution

First, find $3A,$ then $2B.$

$$\begin{array}{l}\begin{array}{l}\hfill \\ \hfill \\ 3A=\left[\begin{array}{lll}3\cdot 1\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3(\mathrm{-2})\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\cdot 0\hfill \\ 3\cdot 0\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3(\mathrm{-1})\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\cdot 2\hfill \\ 3\cdot 4\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\cdot 3\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3(\mathrm{-6})\hfill \end{array}\right]\hfill \end{array}\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rrr}\hfill 3& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-6}& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0\\ \hfill 0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-3}& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}6\\ \hfill 12& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}9& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-18}\end{array}\right]\hfill \end{array}$$

$$\begin{array}{l}\begin{array}{l}\hfill \\ \hfill \\ 2B=\left[\begin{array}{lll}2(\mathrm{-1})\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2\cdot 2\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2\cdot 1\hfill \\ 2\cdot 0\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2(\mathrm{-3})\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2\cdot 2\hfill \\ 2\cdot 0\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2\cdot 1\hfill & \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2(\mathrm{-4})\hfill \end{array}\right]\hfill \end{array}\hfill \\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}=\left[\begin{array}{rrr}\hfill \mathrm{-2}& \hfill 4& \hfill 2\\ \hfill 0& \hfill \mathrm{-6}& \hfill 4\\ \hfill 0& \hfill 2& \hfill \mathrm{-8}\end{array}\right]\hfill \end{array}$$

Now, add $3A+2B.$

$$\begin{array}{l}\hfill \\ \hfill \\ 3A+2B=\left[\begin{array}{rrr}\hfill 3& \hfill \mathrm{-6}& \hfill 0\\ \hfill 0& \hfill \mathrm{-3}& \hfill 6\\ \hfill 12& \hfill 9& \hfill \mathrm{-18}\end{array}\right]+\left[\begin{array}{rrr}\hfill \mathrm{-2}& \hfill 4& \hfill 2\\ \hfill 0& \hfill \mathrm{-6}& \hfill 4\\ \hfill 0& \hfill 2& \hfill \mathrm{-8}\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{rrr}\hfill 3-2& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-6}+4& \hfill 0+2\\ \hfill 0+0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-3}-6& \hfill 6+4\\ \hfill 12+0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}9+2& \hfill \mathrm{-18}\mathrm{-8}\end{array}\right]\hfill \\ \phantom{\rule{0ex}{0ex}}\text{}=\left[\begin{array}{rrr}\hfill 1& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-2}& \hfill 2\\ \hfill 0& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-9}& \hfill 10\\ \hfill 12& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}11& \hfill -26\end{array}\right]\hfill \end{array}$$

## Finding the Product of Two Matrices

In addition to multiplying a matrix by a scalar, we can multiply two matrices. Finding the product of two matrices is only possible when the inner dimensions are the same, meaning that the number of columns of the first matrix is equal to the number of rows of the second matrix. If $A$ is an $\text{}m\times r$ matrix and $B$ is an $\text{}r\times n$ matrix, then the product matrix $AB$ is an $\text{}m\times n$ matrix. For example, the product $AB$ is possible because the number of columns in $A$ is the same as the number of rows in $B.$ If the inner dimensions do not match, the product is not defined.

We multiply entries of $A$ with entries of $B$ according to a specific pattern as outlined below. The process of matrix multiplication becomes clearer when working a problem with real numbers.

To obtain the entries in row $i$ of $AB,$ we multiply the entries in row $i$ of $A$ by column $j$ in $B$ and add. For example, given matrices $A$ and $B,$ where the dimensions of $A$ are $2\times 3$ and the dimensions of $B$ are $3\times 3,$ the product of $AB$ will be a $2\times 3$ matrix.

$$A=\left[\begin{array}{rrr}\hfill {a}_{11}& \hfill {a}_{12}& \hfill {a}_{13}\\ \hfill {a}_{21}& \hfill {a}_{22}& \hfill {a}_{23}\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{rrr}\hfill {b}_{11}& \hfill {b}_{12}& \hfill {b}_{13}\\ \hfill {b}_{21}& \hfill {b}_{22}& \hfill {b}_{23}\\ \hfill {b}_{31}& \hfill {b}_{32}& \hfill {b}_{33}\end{array}\right]$$

Multiply and add as follows to obtain the first entry of the product matrix $AB.$

- To obtain the entry in row 1, column 1 of $AB,$ multiply the first row in $A$ by the first column in $B,$ and add.
$$\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]\left[\begin{array}{c}{b}_{11}\\ {b}_{21}\\ {b}_{31}\end{array}\right]={a}_{11}\cdot {b}_{11}+{a}_{12}\cdot {b}_{21}+{a}_{13}\cdot {b}_{31}$$

- To obtain the entry in row 1, column 2 of $AB,$ multiply the first row of $A$ by the second column in $B,$ and add.
$$\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]\left[\begin{array}{c}{b}_{12}\\ {b}_{22}\\ {b}_{32}\end{array}\right]={a}_{11}\cdot {b}_{12}+{a}_{12}\cdot {b}_{22}+{a}_{13}\cdot {b}_{32}$$

- To obtain the entry in row 1, column 3 of $AB,$ multiply the first row of $A$ by the third column in $B,$ and add.
$$\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]\left[\begin{array}{c}{b}_{13}\\ {b}_{23}\\ {b}_{33}\end{array}\right]={a}_{11}\cdot {b}_{13}+{a}_{12}\cdot {b}_{23}+{a}_{13}\cdot {b}_{33}$$

We proceed the same way to obtain the second row of $AB.$ In other words, row 2 of $A$ times column 1 of $B;$ row 2 of $A$ times column 2 of $B;$ row 2 of $A$ times column 3 of $B.$ When complete, the product matrix will be

$$AB=\left[\begin{array}{c}\begin{array}{l}{a}_{11}\cdot {b}_{11}+{a}_{12}\cdot {b}_{21}+{a}_{13}\cdot {b}_{31}\\ \end{array}\\ {a}_{21}\cdot {b}_{11}+{a}_{22}\cdot {b}_{21}+{a}_{23}\cdot {b}_{31}\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}\begin{array}{l}{a}_{11}\cdot {b}_{12}+{a}_{12}\cdot {b}_{22}+{a}_{13}\cdot {b}_{32}\\ \end{array}\\ {a}_{21}\cdot {b}_{12}+{a}_{22}\cdot {b}_{22}+{a}_{23}\cdot {b}_{32}\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}\begin{array}{l}{a}_{11}\cdot {b}_{13}+{a}_{12}\cdot {b}_{23}+{a}_{13}\cdot {b}_{33}\\ \end{array}\\ {a}_{21}\cdot {b}_{13}+{a}_{22}\cdot {b}_{23}+{a}_{23}\cdot {b}_{33}\end{array}\right]$$

## Properties of Matrix Multiplication

For the matrices $A,B,$ and $C$ the following properties hold.

- Matrix multiplication is associative: $\left(AB\right)C=A\left(BC\right).$
- Matrix multiplication is distributive: $\begin{array}{l}\begin{array}{l}\\ \phantom{\rule{0ex}{0ex}}C(A+B)=CA+CB,\end{array}\hfill \\ \phantom{\rule{0ex}{0ex}}(A+B)C=AC+BC.\hfill \end{array}$

Note that matrix multiplication is not commutative.

## Example 8

### Multiplying Two Matrices

Multiply matrix $A$ and matrix $B.$

$$A=\left[\begin{array}{cc}1& 2\\ 3& 4\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{cc}5& 6\\ 7& 8\end{array}\right]$$

### Solution

First, we check the dimensions of the matrices. Matrix $A$ has dimensions $2\times 2$ and matrix $B$ has dimensions $2\times 2.$ The inner dimensions are the same so we can perform the multiplication. The product will have the dimensions $2\times 2.$

We perform the operations outlined previously.

## Example 9

### Multiplying Two Matrices

Given $A$ and $B:$

- ⓐFind $AB.$
- ⓑFind $BA.$

$$A=\left[\begin{array}{l}\begin{array}{ccc}\mathrm{-1}& 2& 3\end{array}\hfill \\ \begin{array}{ccc}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}4& 0& 5\end{array}\hfill \end{array}\right]\phantom{\rule{0ex}{0ex}}\text{and}B=\left[\begin{array}{c}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}5\\ \mathrm{-4}\\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}\mathrm{-1}\\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}0\\ \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}3\end{array}\right]$$

### Solution

- ⓐAs the dimensions of $A$ are $2\times 3$ and the dimensions of $B$ are $3\times 2,$ these matrices can be multiplied together because the number of columns in $A$ matches the number of rows in $B.$ The resulting product will be a $2\times 2$ matrix, the number of rows in $A$ by the number of columns in $B.$
$$\begin{array}{l}\hfill \\ AB=\left[\begin{array}{rrr}\hfill \mathrm{-1}& \hfill 2& \hfill 3\\ \hfill 4& \hfill 0& \hfill 5\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{}\left[\begin{array}{rr}\hfill 5& \hfill \mathrm{-1}\\ \hfill -4& \hfill 0\\ \hfill 2& \hfill 3\end{array}\right]\hfill \\ =\left[\begin{array}{rr}\hfill \mathrm{-1}(5)+2(\mathrm{-4})+3(2)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-1}(\mathrm{-1})+2(0)+3(3)\\ \hfill 4(5)+0(\mathrm{-4})+5(2)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}4(\mathrm{-1})+0(0)+5(3)\end{array}\right]\hfill \\ =\left[\begin{array}{rr}\hfill \mathrm{-7}& \hfill 10\\ \hfill 30& \hfill 11\end{array}\right]\hfill \end{array}$$

- ⓑThe dimensions of $B$ are $3\times 2$ and the dimensions of $A$ are $2\times 3.$ The inner dimensions match so the product is defined and will be a $3\times 3$ matrix.
$$\begin{array}{l}\hfill \\ BA=\left[\begin{array}{rr}\hfill 5& \hfill \mathrm{-1}\\ \hfill \mathrm{-4}& \hfill 0\\ \hfill 2& \hfill 3\end{array}\right]\phantom{\rule{0ex}{0ex}}\text{}\left[\begin{array}{rrr}\hfill \mathrm{-1}& \hfill 2& \hfill 3\\ \hfill 4& \hfill 0& \hfill 5\end{array}\right]\hfill \\ =\left[\begin{array}{rrr}\hfill 5(\mathrm{-1})+\mathrm{-1}(4)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}5(2)+\mathrm{-1}(0)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}5(3)+\mathrm{-1}(5)\\ \hfill \mathrm{-4}(\mathrm{-1})+0(4)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-4}(2)+0(0)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\mathrm{-4}(3)+0(5)\\ \hfill 2(\mathrm{-1})+3(4)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2(2)+3(0)& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2(3)+3(5)\end{array}\right]\hfill \\ =\left[\begin{array}{rrr}\hfill \mathrm{-9}& \hfill 10& \hfill 10\\ \hfill 4& \hfill \mathrm{-8}& \hfill \mathrm{-12}\\ \hfill 10& \hfill 4& \hfill 21\end{array}\right]\hfill \end{array}$$

### Analysis

Notice that the products $AB$ and $BA$ are not equal.

$$AB=\left[\begin{array}{cc}\mathrm{-7}& 10\\ 30& 11\end{array}\right]\ne \left[\begin{array}{ccc}\mathrm{-9}& 10& 10\\ 4& \mathrm{-8}& \mathrm{-12}\\ 10& 4& 21\end{array}\right]=BA$$

This illustrates the fact that matrix multiplication is not commutative.

## Q&A

**Is it possible for AB to be defined but not BA?**

*Yes, consider a matrix A with dimension $3\times 4$ and matrix B with dimension $4\times 2.$ For the product AB the inner dimensions are 4 and the product is defined, but for the product BA the inner dimensions are 2 and 3 so the product is undefined.*

## Example 10

### Using Matrices in Real-World Problems

Let’s return to the problem presented at the opening of this section. We have Table 3, representing the equipment needs of two soccer teams.

Wildcats | Mud Cats | |
---|---|---|

Goals | 6 | 10 |

Balls | 30 | 24 |

Jerseys | 14 | 20 |

Table 3

We are also given the prices of the equipment, as shown in Table 4.

Goal | $300 |

Ball | $10 |

Jersey | $30 |

Table 4

We will convert the data to matrices. Thus, the equipment need matrix is written as

$$E=\left[\begin{array}{c}6\\ 30\\ 14\end{array}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}\begin{array}{c}10\\ 24\\ 20\end{array}\right]$$

The cost matrix is written as

$$C=\left[\begin{array}{ccc}300& 10& 30\end{array}\right]$$

We perform matrix multiplication to obtain costs for the equipment.

$$\begin{array}{l}\hfill \\ \hfill \\ CE=\left[\begin{array}{rrr}\hfill 300& \hfill 10& \hfill 30\end{array}\right]\left[\begin{array}{rr}\hfill 6& \hfill 10\\ \hfill 30& \hfill 24\\ \hfill 14& \hfill 20\end{array}\right]\hfill \\ =\left[\begin{array}{rr}\hfill 300(6)+10(30)+30(14)& \hfill 300(10)+10(24)+30(20)\end{array}\right]\hfill \\ =\left[\begin{array}{rr}\hfill \mathrm{2,520}& \hfill \mathrm{3,840}\end{array}\right]\hfill \end{array}$$

The total cost for equipment for the Wildcats is $2,520, and the total cost for equipment for the Mud Cats is $3,840.

## How To

**Given a matrix operation, evaluate using a calculator. **

- Save each matrix as a matrix variable $\left[A\right],\left[B\right],\left[C\right],\mathrm{...}$
- Enter the operation into the calculator, calling up each matrix variable as needed.
- If the operation is defined, the calculator will present the solution matrix; if the operation is undefined, it will display an error message.

## Example 11

### Using a Calculator to Perform Matrix Operations

Find $AB-C$given

$$A=\left[\begin{array}{rrr}\hfill \mathrm{-15}& \hfill 25& \hfill 32\\ \hfill 41& \hfill \mathrm{-7}& \hfill \mathrm{-28}\\ \hfill 10& \hfill 34& \hfill \mathrm{-2}\end{array}\right],B=\left[\begin{array}{rrr}\hfill 45& \hfill 21& \hfill \mathrm{-37}\\ \hfill \mathrm{-24}& \hfill 52& \hfill 19\\ \hfill 6& \hfill \mathrm{-48}& \hfill \mathrm{-31}\end{array}\right],\text{and}C=\left[\begin{array}{rrr}\hfill \mathrm{-100}& \hfill \mathrm{-89}& \hfill \mathrm{-98}\\ \hfill 25& \hfill \mathrm{-56}& \hfill 74\\ \hfill \mathrm{-67}& \hfill 42& \hfill \mathrm{-75}\end{array}\right].$$

### Solution

On the matrix page of the calculator, we enter matrix $A$ above as the matrix variable $\left[A\right],$ matrix $B$ above as the matrix variable $\left[B\right],$ and matrix $C$ above as the matrix variable $\left[C\right].$

On the home screen of the calculator, we type in the problem and call up each matrix variable as needed.

$$\left[A\right]\left[B\right]-\left[C\right]$$

The calculator gives us the following matrix.

$$\left[\begin{array}{rrr}\hfill -983& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-462& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}136\\ \hfill 1,820& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}1,897& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}-856\\ \hfill -311& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}2,032& \hfill \phantom{\rule{0ex}{0ex}}\phantom{\rule{0ex}{0ex}}413\end{array}\right]$$

## Media

Access these online resources for additional instruction and practice with matrices and matrix operations.

- Dimensions of a Matrix
- Matrix Addition and Subtraction
- Matrix Operations
- Matrix Multiplication

## 7.5 Section Exercises

### Verbal

1.

Can we add any two matrices together? If so, explain why; if not, explain why not and give an example of two matrices that cannot be added together.

2.

Can we multiply any column matrix by any row matrix? Explain why or why not.

3.

Can both the products $AB$ and $BA$ be defined? If so, explain how; if not, explain why.

4.

Can any two matrices of the same size be multiplied? If so, explain why, and if not, explain why not and give an example of two matrices of the same size that cannot be multiplied together.

5.

Does matrix multiplication commute? That is, does $AB=BA?$ If so, prove why it does. If not, explain why it does not.

### Algebraic

For the following exercises, use the matrices below and perform the matrix addition or subtraction. Indicate if the operation is undefined.

$$A=\left[\begin{array}{cc}1& 3\\ 0& 7\end{array}\right],B=\left[\begin{array}{cc}2& 14\\ 22& 6\end{array}\right],C=\left[\begin{array}{cc}1& 5\\ 8& 92\\ 12& 6\end{array}\right],D=\left[\begin{array}{cc}10& 14\\ 7& 2\\ 5& 61\end{array}\right],E=\left[\begin{array}{cc}6& 12\\ 14& 5\end{array}\right],F=\left[\begin{array}{cc}0& 9\\ 78& 17\\ 15& 4\end{array}\right]$$

6.

$A+B$

7.

$C+D$

8.

$A+C$

9.

$B-E$

10.

$C+F$

11.

$D-B$

For the following exercises, use the matrices below to perform scalar multiplication.

$$A=\left[\begin{array}{rr}\hfill 4& \hfill 6\\ \hfill 13& \hfill 12\end{array}\right],B=\left[\begin{array}{rr}\hfill 3& \hfill 9\\ \hfill 21& \hfill 12\\ \hfill 0& \hfill 64\end{array}\right],C=\left[\begin{array}{rrrr}\hfill 16& \hfill 3& \hfill 7& \hfill 18\\ \hfill 90& \hfill 5& \hfill 3& \hfill 29\end{array}\right],D=\left[\begin{array}{rrr}\hfill 18& \hfill 12& \hfill 13\\ \hfill 8& \hfill 14& \hfill 6\\ \hfill 7& \hfill 4& \hfill 21\end{array}\right]$$

12.

$5A$

13.

$3B$

14.

$\mathrm{-2}B$

15.

$\mathrm{-4}C$

16.

$\frac{1}{2}C$

17.

$100D$

For the following exercises, use the matrices below to perform matrix multiplication.

$$A=\left[\begin{array}{rr}\hfill \mathrm{-1}& \hfill 5\\ \hfill 3& \hfill 2\end{array}\right],B=\left[\begin{array}{rrr}\hfill 3& \hfill 6& \hfill 4\\ \hfill \mathrm{-8}& \hfill 0& \hfill 12\end{array}\right],C=\left[\begin{array}{rr}\hfill 4& \hfill 10\\ \hfill \mathrm{-2}& \hfill 6\\ \hfill 5& \hfill 9\end{array}\right],D=\left[\begin{array}{rrr}\hfill 2& \hfill \mathrm{-3}& \hfill 12\\ \hfill 9& \hfill 3& \hfill 1\\ \hfill 0& \hfill 8& \hfill \mathrm{-10}\end{array}\right]$$

18.

$AB$

19.

$BC$

20.

$CA$

21.

$BD$

22.

$DC$

23.

$CB$

For the following exercises, use the matrices below to perform the indicated operation if possible. If not possible, explain why the operation cannot be performed.

$$A=\left[\begin{array}{rr}\hfill 2& \hfill \mathrm{-5}\\ \hfill 6& \hfill 7\end{array}\right],B=\left[\begin{array}{rr}\hfill \mathrm{-9}& \hfill 6\\ \hfill \mathrm{-4}& \hfill 2\end{array}\right],C=\left[\begin{array}{rr}\hfill 0& \hfill 9\\ \hfill 7& \hfill 1\end{array}\right],D=\left[\begin{array}{rrr}\hfill \mathrm{-8}& \hfill 7& \hfill \mathrm{-5}\\ \hfill 4& \hfill 3& \hfill 2\\ \hfill 0& \hfill 9& \hfill 2\end{array}\right],E=\left[\begin{array}{rrr}\hfill 4& \hfill 5& \hfill 3\\ \hfill 7& \hfill \mathrm{-6}& \hfill \mathrm{-5}\\ \hfill 1& \hfill 0& \hfill 9\end{array}\right]$$

24.

$A+B-C$

25.

$4A+5D$

26.

$2C+B$

27.

$3D+4E$

28.

$C\mathrm{-0.5}D$

29.

$100D\mathrm{-10}E$

For the following exercises, use the matrices below to perform the indicated operation if possible. If not possible, explain why the operation cannot be performed. (Hint: ${A}^{2}=A\cdot A$)

$$A=\left[\begin{array}{rr}\hfill \mathrm{-10}& \hfill 20\\ \hfill 5& \hfill 25\end{array}\right],B=\left[\begin{array}{rr}\hfill 40& \hfill 10\\ \hfill \mathrm{-20}& \hfill 30\end{array}\right],C=\left[\begin{array}{rr}\hfill \mathrm{-1}& \hfill 0\\ \hfill 0& \hfill \mathrm{-1}\\ \hfill 1& \hfill 0\end{array}\right]$$

30.

$AB$

31.

$BA$

32.

$CA$

33.

$BC$

34.

${A}^{2}$

35.

${B}^{2}$

36.

${C}^{2}$

37.

${B}^{2}{A}^{2}$

38.

${A}^{2}{B}^{2}$

39.

${(AB)}^{2}$

40.

${(BA)}^{2}$

For the following exercises, use the matrices below to perform the indicated operation if possible. If not possible, explain why the operation cannot be performed. (Hint: ${A}^{2}=A\cdot A$)

$$A=\left[\begin{array}{rr}\hfill 1& \hfill 0\\ \hfill 2& \hfill 3\end{array}\right],B=\left[\begin{array}{rrr}\hfill \mathrm{-2}& \hfill 3& \hfill 4\\ \hfill \mathrm{-1}& \hfill 1& \hfill \mathrm{-5}\end{array}\right],C=\left[\begin{array}{rr}\hfill 0.5& \hfill 0.1\\ \hfill 1& \hfill 0.2\\ \hfill \mathrm{-0.5}& \hfill 0.3\end{array}\right],D=\left[\begin{array}{rrr}\hfill 1& \hfill 0& \hfill \mathrm{-1}\\ \hfill \mathrm{-6}& \hfill 7& \hfill 5\\ \hfill 4& \hfill 2& \hfill 1\end{array}\right]$$

41.

$AB$

42.

$BA$

43.

$BD$

44.

$DC$

45.

${D}^{2}$

46.

${A}^{2}$

47.

${D}^{3}$

48.

$(AB)C$

49.

$A(BC)$

### Technology

For the following exercises, use the matrices below to perform the indicated operation if possible. If not possible, explain why the operation cannot be performed. Use a calculator to verify your solution.

$$A=\left[\begin{array}{rrr}\hfill \mathrm{-2}& \hfill 0& \hfill 9\\ \hfill 1& \hfill 8& \hfill \mathrm{-3}\\ \hfill 0.5& \hfill 4& \hfill 5\end{array}\right],B=\left[\begin{array}{rrr}\hfill 0.5& \hfill 3& \hfill 0\\ \hfill \mathrm{-4}& \hfill 1& \hfill 6\\ \hfill 8& \hfill 7& \hfill 2\end{array}\right],C=\left[\begin{array}{rrr}\hfill 1& \hfill 0& \hfill 1\\ \hfill 0& \hfill 1& \hfill 0\\ \hfill 1& \hfill 0& \hfill 1\end{array}\right]$$

50.

$AB$

51.

$BA$

52.

$CA$

53.

$BC$

54.

$ABC$

### Extensions

For the following exercises, use the matrix below to perform the indicated operation on the given matrix.

$$B=\left[\begin{array}{rrr}\hfill 1& \hfill 0& \hfill 0\\ \hfill 0& \hfill 0& \hfill 1\\ \hfill 0& \hfill 1& \hfill 0\end{array}\right]$$

55.

${B}^{2}$

56.

${B}^{3}$

57.

${B}^{4}$

58.

${B}^{5}$

59.

Using the above questions, find a formula for ${B}^{n}.$ Test the formula for ${B}^{201}$ and ${B}^{202},$ using a calculator.