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

Wildcats | Mud Cats | |

Goals |
6 | 10 |

Balls |
30 | 24 |

Jerseys |
14 | 20 |

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$\text{\hspace{0.17em}}A,B,\text{}$and$\text{\hspace{0.17em}}C\text{\hspace{0.17em}}$are shown below.

## Describing Matrices

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

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

A row matrix is a matrix consisting of one row with dimensions$\text{\hspace{0.17em}}1\text{}\times \text{}n.$

A column matrix is a matrix consisting of one column with dimensions$\text{\hspace{0.17em}}m\text{}\times \text{}1.$

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.

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

Given matrix$\text{\hspace{0.17em}}A:$

- What are the dimensions of matrix$\text{\hspace{0.17em}}A?$
- What are the entries at$\text{\hspace{0.17em}}{a}_{31}\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}{a}_{22}?$

- The dimensions are$\text{}3\text{}\times \text{}3\text{}$because there are three rows and three columns.
- Entry$\text{\hspace{0.17em}}{a}_{31}\text{\hspace{0.17em}}$is the number at row 3, column 1, which is 3. The entry$\text{\hspace{0.17em}}{a}_{22}\text{\hspace{0.17em}}$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\text{}\times \text{}3\text{}$matrix and another$\text{}3\text{}\times \text{}3\text{}$matrix, but we cannot add or subtract a$\text{}2\text{}\times \text{}3\text{}$matrix and a$\text{}3\text{}\times \text{}3\text{}$matrix because some entries in one matrix will not have a corresponding entry in the other matrix.

Given matrices$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$of like dimensions, addition and subtraction of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$will produce matrix$\text{\hspace{0.17em}}C\text{\hspace{0.17em}}$or

matrix$\text{\hspace{0.17em}}D\text{\hspace{0.17em}}$of the same dimension.

Matrix addition is commutative.

It is also associative.

Find the sum of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B,\text{}$given

Add corresponding entries.

*A*and Matrix

*B*

Find the sum of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B.$

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

Find the difference of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B.$

We subtract the corresponding entries of each matrix.

Given$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B:$

- Find the sum.
- Find the difference.

- Add the corresponding entries.
- Subtract the corresponding entries.

Add matrix$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and matrix$\text{\hspace{0.17em}}B.$

# 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 [link].

Lab A | Lab B | |

Computers |
15 | 27 |

Computer Tables |
16 | 34 |

Chairs |
16 | 34 |

Converting the data to a matrix, we have

To calculate how much computer equipment will be needed, we multiply all entries in matrix$\text{\hspace{0.17em}}C\text{\hspace{0.17em}}$by 0.15.

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

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

This means

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 involves finding the product of a constant by each entry in the matrix. Given

the scalar multiple$\text{\hspace{0.17em}}cA\text{\hspace{0.17em}}$is

Scalar multiplication is distributive. For the matrices$\text{\hspace{0.17em}}A,B,$and$\text{\hspace{0.17em}}C\text{\hspace{0.17em}}$ with scalars$\text{\hspace{0.17em}}a\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}b,$

Multiply matrix$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by the scalar 3.

Multiply each entry in$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by the scalar 3.

Given matrix$\text{\hspace{0.17em}}B,\text{}$find$\text{\hspace{0.17em}}\mathrm{-2}B\text{\hspace{0.17em}}$where

$\mathrm{-2}B=\left[\begin{array}{cc}\mathrm{-8}& \mathrm{-2}\\ \mathrm{-6}& \mathrm{-4}\end{array}\right]$

Find the sum$\text{\hspace{0.17em}}3A+2B.$

First, find$\text{\hspace{0.17em}}3A,\text{}$then$\text{\hspace{0.17em}}2B.$

Now, add$\text{\hspace{0.17em}}3A+2B.$

# 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$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$is an$\text{}m\text{}\times \text{}r\text{}$matrix and$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$is an$\text{}r\text{}\times \text{}n\text{}$matrix, then the product matrix$\text{\hspace{0.17em}}AB\text{\hspace{0.17em}}$is an$\text{}m\text{}\times \text{}n\text{}$matrix. For example, the product$\text{\hspace{0.17em}}AB\text{\hspace{0.17em}}$is possible because the number of columns in$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$is the same as the number of rows in$\text{\hspace{0.17em}}B.\text{\hspace{0.17em}}$If the inner dimensions do not match, the product is not defined.

We multiply entries of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$with entries of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$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$\text{\hspace{0.17em}}i\text{\hspace{0.17em}}$of$\text{\hspace{0.17em}}AB,\text{}$we multiply the entries in row$\text{\hspace{0.17em}}i\text{\hspace{0.17em}}$of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$ by column$\text{\hspace{0.17em}}j\text{\hspace{0.17em}}$in$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$and add. For example, given matrices$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$ and$\text{\hspace{0.17em}}B,\text{}$where the dimensions of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}2\text{}\times \text{}3\text{\hspace{0.17em}}$and the dimensions of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}3\text{}\times \text{}3,\text{}$the product of$\text{\hspace{0.17em}}AB\text{\hspace{0.17em}}$will be a$\text{\hspace{0.17em}}2\text{}\times \text{}3\text{\hspace{0.17em}}$matrix.

Multiply and add as follows to obtain the first entry of the product matrix$\text{\hspace{0.17em}}AB.$

- To obtain the entry in row 1, column 1 of$\text{\hspace{0.17em}}AB,\text{}$multiply the first row in$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by the first column in$\text{\hspace{0.17em}}B,$and add.
- To obtain the entry in row 1, column 2 of$\text{\hspace{0.17em}}AB,\text{}$multiply the first row of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$ by the second column in$\text{\hspace{0.17em}}B,$and add.
- To obtain the entry in row 1, column 3 of$\text{\hspace{0.17em}}AB,\text{}$multiply the first row of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by the third column in$\text{\hspace{0.17em}}B,$and add.

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

For the matrices$\text{\hspace{0.17em}}A,B,\text{}$and$\text{\hspace{0.17em}}C\text{\hspace{0.17em}}$the following properties hold.

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

Note that matrix multiplication is not commutative.

Multiply matrix$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and matrix$\text{\hspace{0.17em}}B.$

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

We perform the operations outlined previously.

Given$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B:$

- Find$\text{\hspace{0.17em}}AB.$
- Find$\text{\hspace{0.17em}}BA.$

- As the dimensions of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}2\text{}\times \text{}3\text{\hspace{0.17em}}$and the dimensions of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}3\text{}\times \text{}2,\text{}$these matrices can be multiplied together because the number of columns in$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$matches the number of rows in$\text{\hspace{0.17em}}B.\text{\hspace{0.17em}}$The resulting product will be a$\text{\hspace{0.17em}}2\text{}\times \text{}2\text{\hspace{0.17em}}$matrix, the number of rows in$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by the number of columns in$\text{\hspace{0.17em}}B.$
- The dimensions of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}3\times 2\text{\hspace{0.17em}}$and the dimensions of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}2\times 3.\text{\hspace{0.17em}}$The inner dimensions match so the product is defined and will be a$\text{\hspace{0.17em}}3\times 3\text{\hspace{0.17em}}$matrix.

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

*Yes, consider a matrix A with dimension$\text{\hspace{0.17em}}3\text{\hspace{0.17em}}\times \text{\hspace{0.17em}}4\text{\hspace{0.17em}}$and matrix B with dimension$\text{\hspace{0.17em}}4\text{\hspace{0.17em}}\times \text{\hspace{0.17em}}2.\text{\hspace{0.17em}}$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.*

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

Wildcats | Mud Cats | |

Goals |
6 | 10 |

Balls |
30 | 24 |

Jerseys |
14 | 20 |

We are also given the prices of the equipment, as shown in [link].

Goal |
$300 |

Ball |
$10 |

Jersey |
$30 |

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

The cost matrix is written as

We perform matrix multiplication to obtain costs for the equipment.

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

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

- Save each matrix as a matrix variable$\text{\hspace{0.17em}}\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.

Find$\text{\hspace{0.17em}}AB-C\text{\hspace{0.17em}}$ given

On the matrix page of the calculator, we enter matrix$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$above as the matrix variable$\text{\hspace{0.17em}}\left[A\right],$matrix$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$above as the matrix variable$\text{\hspace{0.17em}}\left[B\right],$and matrix$\text{\hspace{0.17em}}C\text{\hspace{0.17em}}$above as the matrix variable$\text{\hspace{0.17em}}\left[C\right].$

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

The calculator gives us the following matrix.

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

# Key Concepts

- A matrix is a rectangular array of numbers. Entries are arranged in rows and columns.
- The dimensions of a matrix refer to the number of rows and the number of columns. A$\text{\hspace{0.17em}}3\times 2\text{\hspace{0.17em}}$matrix has three rows and two columns. See [link].
- We add and subtract matrices of equal dimensions by adding and subtracting corresponding entries of each matrix. See [link], [link], [link], and [link].
- Scalar multiplication involves multiplying each entry in a matrix by a constant. See [link].
- Scalar multiplication is often required before addition or subtraction can occur. See [link].
- Multiplying matrices is possible when inner dimensions are the same—the number of columns in the first matrix must match the number of rows in the second.
- The product of two matrices,$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}B,$is obtained by multiplying each entry in row 1 of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by each entry in column 1 of$\text{\hspace{0.17em}}B;\text{\hspace{0.17em}}$then multiply each entry of row 1 of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by each entry in columns 2 of$\text{\hspace{0.17em}}B,\text{}$and so on. See [link] and [link].
- Many real-world problems can often be solved using matrices. See [link].
- We can use a calculator to perform matrix operations after saving each matrix as a matrix variable. See [link].

# Section Exercises

## Verbal

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.

No, they must have the same dimensions. An example would include two matrices of different dimensions. One cannot add the following two matrices because the first is a$\text{\hspace{0.17em}}2\times 2\text{\hspace{0.17em}}$matrix and the second is a$\text{\hspace{0.17em}}2\times 3\text{\hspace{0.17em}}$matrix.$\text{\hspace{0.17em}}\left[\begin{array}{cc}1& 2\\ 3& 4\end{array}\right]+\left[\begin{array}{ccc}6& 5& 4\\ 3& 2& 1\end{array}\right]\text{\hspace{0.17em}}$has no sum.

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

Can both the products$\text{\hspace{0.17em}}AB\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}BA\text{\hspace{0.17em}}$be defined? If so, explain how; if not, explain why.

Yes, if the dimensions of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}m\times n\text{\hspace{0.17em}}$and the dimensions of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$are$\text{\hspace{0.17em}}n\times m,\text{}$both products will be defined.

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.

Does matrix multiplication commute? That is, does$\text{\hspace{0.17em}}AB=BA?\text{\hspace{0.17em}}$If so, prove why it does. If not, explain why it does not.

Not necessarily. To find$\text{\hspace{0.17em}}AB,\text{}$we multiply the first row of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$by the first column of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$to get the first entry of$\text{\hspace{0.17em}}AB.\text{\hspace{0.17em}}$To find$\text{\hspace{0.17em}}BA,\text{}$we multiply the first row of$\text{\hspace{0.17em}}B\text{\hspace{0.17em}}$by the first column of$\text{\hspace{0.17em}}A\text{\hspace{0.17em}}$to get the first entry of$\text{\hspace{0.17em}}BA.\text{\hspace{0.17em}}$Thus, if those are unequal, then the matrix multiplication does not commute.

## Algebraic

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

$A+B$

$C+D$

$\left[\begin{array}{cc}11& 19\\ 15& 94\\ 17& 67\end{array}\right]$

$A+C$

$B-E$

$\left[\begin{array}{cc}\mathrm{-4}& 2\\ 8& 1\end{array}\right]$

$C+F$

$D-B$

Undidentified; dimensions do not match

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

$5A$

$3B$

$\left[\begin{array}{cc}9& 27\\ 63& 36\\ 0& 192\end{array}\right]$

$\mathrm{-2}B$

$\mathrm{-4}C$

$\left[\begin{array}{cccc}\mathrm{-64}& \mathrm{-12}& \mathrm{-28}& \mathrm{-72}\\ \mathrm{-360}& \mathrm{-20}& \mathrm{-12}& \mathrm{-116}\end{array}\right]$

$\frac{1}{2}C$

$100D$

$\left[\begin{array}{ccc}1,800& 1,200& 1,300\\ 800& 1,400& 600\\ 700& 400& 2,100\end{array}\right]$

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

$AB$

$BC$

$\left[\begin{array}{cc}20& 102\\ 28& 28\end{array}\right]$

$CA$

$BD$

$\left[\begin{array}{ccc}60& 41& 2\\ \mathrm{-16}& 120& \mathrm{-216}\end{array}\right]$

$DC$

$CB$

$\left[\begin{array}{ccc}\mathrm{-68}& 24& 136\\ \mathrm{-54}& \mathrm{-12}& 64\\ \mathrm{-57}& 30& 128\end{array}\right]$

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+B-C$

$4A+5D$

Undefined; dimensions do not match.

$2C+B$

$3D+4E$

$\left[\begin{array}{ccc}\mathrm{-8}& 41& \mathrm{-3}\\ 40& \mathrm{-15}& \mathrm{-14}\\ 4& 27& 42\end{array}\right]$

$C\mathrm{-0.5}D$

$100D\mathrm{-10}E$

$\left[\begin{array}{ccc}\mathrm{-840}& 650& \mathrm{-530}\\ 330& 360& 250\\ \mathrm{-10}& 900& 110\end{array}\right]$

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:$\text{\hspace{0.17em}}{A}^{2}=A\cdot A$ )

$AB$

$BA$

$\left[\begin{array}{cc}\mathrm{-350}& 1,050\\ 350& 350\end{array}\right]$

$CA$

$BC$

Undefined; inner dimensions do not match.

${A}^{2}$

${B}^{2}$

$\left[\begin{array}{cc}1,400& 700\\ \mathrm{-1},400& 700\end{array}\right]$

${C}^{2}$

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

$\left[\begin{array}{cc}332,500& 927,500\\ \mathrm{-227},500& 87,500\end{array}\right]$

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

${(AB)}^{2}$

$\left[\begin{array}{cc}490,000& 0\\ 0& 490,000\end{array}\right]$

${(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:$\text{\hspace{0.17em}}{A}^{2}=A\cdot A$ )

$AB$

$\left[\begin{array}{ccc}\mathrm{-2}& 3& 4\\ \mathrm{-7}& 9& \mathrm{-7}\end{array}\right]$

$BA$

$BD$

$\left[\begin{array}{ccc}\mathrm{-4}& 29& 21\\ \mathrm{-27}& \mathrm{-3}& 1\end{array}\right]$

$DC$

${D}^{2}$

$\left[\begin{array}{ccc}\mathrm{-3}& \mathrm{-2}& \mathrm{-2}\\ \mathrm{-28}& 59& 46\\ \mathrm{-4}& 16& 7\end{array}\right]$

${A}^{2}$

${D}^{3}$

$\left[\begin{array}{ccc}1& \mathrm{-18}& \mathrm{-9}\\ \mathrm{-198}& 505& 369\\ \mathrm{-72}& 126& 91\end{array}\right]$

$(AB)C$

$A(BC)$

$$\left[\begin{array}{cc}0& 1.6\\ 9& \mathrm{-1}\end{array}\right]$$

## 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.

$AB$

$BA$

$\left[\begin{array}{ccc}2& 24& \mathrm{-4.5}\\ 12& 32& \mathrm{-9}\\ \mathrm{-8}& 64& 61\end{array}\right]$

$CA$

$BC$

$\left[\begin{array}{ccc}0.5& 3& 0.5\\ 2& 1& 2\\ 10& 7& 10\end{array}\right]$

$ABC$

## Extensions

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

${B}^{2}$

$\left[\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right]$

${B}^{3}$

${B}^{4}$

$\left[\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right]$

${B}^{5}$

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

${B}^{n}=\{\begin{array}{l}\left[\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right],\text{\hspace{1em}}n\text{\hspace{0.17em}}\text{even,}\\ \left[\begin{array}{ccc}1& 0& 0\\ 0& 0& 1\\ 0& 1& 0\end{array}\right],\text{\hspace{1em}}n\text{\hspace{0.17em}}\text{odd}\text{.}\end{array}$

- Precalculus
- Preface
- Functions
- Linear Functions
- Polynomial and Rational Functions
- Exponential and Logarithmic Functions
- Trigonometric Functions
- Periodic Functions
- Trigonometric Identities and Equations
- Further Applications of Trigonometry
- Systems of Equations and Inequalities
- Introduction to Systems of Equations and Inequalities
- Systems of Linear Equations: Two Variables
- Systems of Linear Equations: Three Variables
- Systems of Nonlinear Equations and Inequalities: Two Variables
- Partial Fractions
- Matrices and Matrix Operations
- Solving Systems with Gaussian Elimination
- Solving Systems with Inverses
- Solving Systems with Cramer's Rule

- Analytic Geometry
- Sequences, Probability and Counting Theory
- Introduction to Calculus
- Appendix

Notice that the products$\text{\hspace{0.17em}}AB\text{\hspace{0.17em}}$and$\text{\hspace{0.17em}}BA\text{\hspace{0.17em}}$are not equal.

This illustrates the fact that matrix multiplication is not commutative.