75 Matrices and Matrix Operations

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. (Figure) 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[latex]\,A,B,\text{}[/latex]and[latex]\,C\,[/latex]are shown below.

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

Describing Matrices

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

[latex]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][/latex]

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

A row matrix is a matrix consisting of one row with dimensions[latex]\,1\text{ }×\text{ }n.[/latex]

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

A column matrix is a matrix consisting of one column with dimensions[latex]\,m\text{ }×\text{ }1.[/latex]

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

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:[latex]\,A,B,C,\text{}[/latex]and so on. Each entry in a matrix is referred to as[latex]\,{a}_{ij},[/latex]such that[latex]\,i\,[/latex]represents the row and[latex]\,j\,[/latex]represents the column. Matrices are often referred to by their dimensions:[latex]\,m\,×\,n\,[/latex]indicating[latex]\,m\,[/latex]rows and[latex]\,n\,[/latex]columns.

Finding the Dimensions of the Given Matrix and Locating Entries

Given matrix[latex]\,A:[/latex]

  1. What are the dimensions of matrix[latex]\,A?[/latex]
  2. What are the entries at[latex]\,{a}_{31}\,[/latex]and[latex]\,{a}_{22}?[/latex]
    [latex]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][/latex]
[reveal-answer q=”fs-id1165134379500″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134379500″]

  1. The dimensions are[latex]\text{ }3\text{ }×\text{ }3\text{ }[/latex]because there are three rows and three columns.
  2. Entry[latex]\,{a}_{31}\,[/latex]is the number at row 3, column 1, which is 3. The entry[latex]\,{a}_{22}\,[/latex]is the number at row 2, column 2, which is 4. Remember, the row comes first, then the column.

[/hidden-answer]

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[latex]\text{ }3\text{ }×\text{ }3\text{ }[/latex]matrix and another[latex]\text{ }3\text{ }×\text{ }3\text{ }[/latex]matrix, but we cannot add or subtract a[latex]\text{ }2\text{ }×\text{ }3\text{ }[/latex]matrix and a[latex]\text{ }3\text{ }×\text{ }3\text{ }[/latex]matrix because some entries in one matrix will not have a corresponding entry in the other matrix.

Adding and Subtracting Matrices

Given matrices[latex]\,A\,[/latex]and[latex]\,B\,[/latex]of like dimensions, addition and subtraction of[latex]\,A\,[/latex]and[latex]\,B\,[/latex]will produce matrix[latex]\,C\,[/latex]or

[latex]A+B=C\text{ such that }{a}_{ij}+{b}_{ij}={c}_{ij}[/latex]

[latex]A-B=D\text{ such that }{a}_{ij}-{b}_{ij}={d}_{ij}[/latex]

Matrix addition is commutative.

[latex]A+B=B+A[/latex]

It is also associative.

[latex]\left(A+B\right)+C=A+\left(B+C\right)[/latex]

Finding the Sum of Matrices

Find the sum of[latex]\,A\,[/latex]and[latex]\,B,\text{}[/latex]given

[latex]A=\left[\begin{array}{cc}a& b\\ c& d\end{array}\right]\text{ and }B=\left[\begin{array}{cc}e& f\\ g& h\end{array}\right][/latex]
[reveal-answer q=”fs-id1165131851993″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165131851993″]

Add corresponding entries.

[latex]\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 \\ \text{ }=\left[\begin{array}{ccc}a+e& & b+f\\ c+g& & d+h\end{array}\right]\hfill \end{array}[/latex][/hidden-answer]

Adding Matrix A and Matrix B

Find the sum of[latex]\,A\,[/latex]and[latex]\,B.[/latex]

[latex]A=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right]\text{ and }B=\left[\begin{array}{cc}5& 9\\ 0& 7\end{array}\right][/latex]
[reveal-answer q=”fs-id1165134061952″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134061952″]

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

[latex]\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 \\ \text{ }=\left[\begin{array}{ccc}4+5& & 1+9\\ 3+0& & 2+7\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{cc}9& 10\\ 3& 9\end{array}\right]\hfill \end{array}[/latex][/hidden-answer]

Finding the Difference of Two Matrices

Find the difference of[latex]\,A\,[/latex]and[latex]\,B.[/latex]

[latex]A=\left[\begin{array}{cc}-2& 3\\ 0& 1\end{array}\right]\text{ and }B=\left[\begin{array}{cc}8& 1\\ 5& 4\end{array}\right][/latex]
[reveal-answer q=”fs-id1165137933939″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137933939″]

We subtract the corresponding entries of each matrix.

[latex]\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 \\ \text{ }=\left[\begin{array}{rrr}\hfill -2-8& \hfill & \hfill 3-1\\ \hfill 0-5& \hfill & \hfill 1-4\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rrr}\hfill -10& \hfill & \hfill 2\\ \hfill -5& \hfill & \hfill -3\end{array}\right]\hfill \end{array}[/latex][/hidden-answer]

Finding the Sum and Difference of Two 3 x 3 Matrices

Given[latex]\,A\,[/latex]and[latex]\,B:[/latex]

  1. Find the sum.
  2. Find the difference.
[latex]A=\left[\begin{array}{rrr}\hfill 2& \hfill -10& \hfill -2\\ \hfill 14& \hfill 12& \hfill 10\\ \hfill 4& \hfill -2& \hfill 2\end{array}\right]\text{ and }B=\left[\begin{array}{rrr}\hfill 6& \hfill 10& \hfill -2\\ \hfill 0& \hfill -12& \hfill -4\\ \hfill -5& \hfill 2& \hfill -2\end{array}\right][/latex]
[reveal-answer q=”297288″]Show Solution[/reveal-answer]
[hidden-answer a=”297288″]

  1. Add the corresponding entries.
    [latex]\begin{array}{l}\hfill \\ A+B=\left[\begin{array}{rrr}\hfill 2& \hfill \,\,-10& \hfill \,\,-2\\ \hfill 14& \hfill \,\,12& \hfill \,\,10\\ \hfill 4& \hfill \,\,-2& \hfill \,\,2\end{array}\right]+\left[\begin{array}{rrr}\hfill 6& \hfill \,\,10& \hfill \,\,-2\\ \hfill 0& \hfill \,\,-12& \hfill \,\,-4\\ \hfill -5& \hfill \,\,2& \hfill \,\,-2\end{array}\right]\hfill \\ \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,=\left[\begin{array}{rrr}\hfill 2+6& \hfill \,\,-10+10& \hfill \,\,-2-2\\ \hfill 14+0& \hfill \,\,12-12& \hfill \,\,10-4\\ \hfill 4-5& \hfill \,\,-2+2& \hfill \,\,2-2\end{array}\right]\hfill \\ \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,=\left[\begin{array}{rrr}\hfill 8& \hfill \,\,0& \hfill \,\,-4\\ \hfill 14& \hfill \,\,0& \hfill \,\,6\\ \hfill -1& \hfill \,\,0& \hfill \,\,0\end{array}\right]\hfill \end{array}[/latex]
  2. Subtract the corresponding entries.
    [latex]\begin{array}{l}\hfill \\ A-B=\left[\begin{array}{rrr}\hfill 2& \hfill -10& \hfill -2\\ \hfill 14& \hfill 12& \hfill 10\\ \hfill 4& \hfill -2& \hfill 2\end{array}\right]-\left[\begin{array}{rrr}\hfill 6& \hfill 10& \hfill -2\\ \hfill 0& \hfill -12& \hfill -4\\ \hfill -5& \hfill 2& \hfill -2\end{array}\right]\hfill \\ \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,=\left[\begin{array}{rrr}\hfill 2-6& \hfill \,\,-10-10& \hfill \,\,-2+2\\ \hfill 14-0& \hfill \,\,12+12& \hfill \,\,10+4\\ \hfill 4+5& \hfill \,\,-2-2& \hfill \,\,2+2\end{array}\right]\hfill \\ \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,=\left[\begin{array}{rrr}\hfill -4& \hfill \,\,-20& \hfill \,\,0\\ \hfill 14& \hfill \,\,24& \hfill \,\,14\\ \hfill 9& \hfill \,\,-4& \hfill \,\,4\end{array}\right]\hfill \end{array}[/latex]

[/hidden-answer]

Try It

Add matrix[latex]\,A\,[/latex]and matrix[latex]\,B.[/latex]

[latex]A=\left[\begin{array}{rr}\hfill 2& \hfill 6\\ \hfill 1& \hfill 0\\ \hfill 1& \hfill -3\end{array}\right]\text{ and }B=\left[\begin{array}{rr}\hfill 3& \hfill -2\\ \hfill 1& \hfill 5\\ \hfill -4& \hfill 3\end{array}\right][/latex]
[reveal-answer q=”fs-id1165134557977″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134557977″]

[latex]A+B=\left[\begin{array}{c}2\\ 1\\ 1\end{array}\begin{array}{c}\,\,\,\,6\\ \text{​}\text{​}\text{​}\,\,\,\,\,0\\ \,\,\,-3\end{array}\right]+\left[\,\begin{array}{c}\,3\\ \,1\\ -4\end{array}\begin{array}{c}\,\,-2\\ \,\,\,\,\,5\\ \,\,\,\,\,\,3\end{array}\right]=\left[\begin{array}{c}2\,\,+\,3\\ 1\,\,\,+\,\,\,1\\ 1+\left(-4\right)\end{array}\,\,\,\,\,\,\begin{array}{c}6+\left(-2\right)\\ 0\,\,+\,\,5\\ -3\,\,\,+\,\,\,3\end{array}\right]=\left[\begin{array}{c}\,5\\ \,\,2\\ -3\end{array}\,\,\,\,\,\,\begin{array}{c}4\\ 5\\ 0\end{array}\right][/latex][/hidden-answer]

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 (Figure).

Lab A Lab B
Computers 15 27
Computer Tables 16 34
Chairs 16 34

Converting the data to a matrix, we have

[latex]{C}_{2013}=\left[\begin{array}{c}15\\ 16\\ 16\end{array}\,\,\,\,\,\,\,\begin{array}{c}27\\ 34\\ 34\end{array}\right][/latex]

To calculate how much computer equipment will be needed, we multiply all entries in matrix[latex]\,C\,[/latex]by 0.15.

[latex]\left(0.15\right){C}_{2013}=\left[\begin{array}{c}\left(0.15\right)15\\ \left(0.15\right)16\\ \left(0.15\right)16\end{array}\,\,\,\,\,\,\,\,\begin{array}{c}\left(0.15\right)27\\ \left(0.15\right)34\\ \left(0.15\right)34\end{array}\right]=\left[\begin{array}{c}2.25\\ 2.4\\ 2.4\end{array}\,\,\,\,\,\begin{array}{c}4.05\\ 5.1\\ 5.1\end{array}\right][/latex]

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

[latex]\left[\begin{array}{c}3\\ 3\\ 3\end{array}\,\,\,\,\,\begin{array}{c}5\\ 6\\ 6\end{array}\right][/latex]

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

[latex]\left[\begin{array}{c}15\\ 16\\ 16\end{array}\,\,\,\,\,\,\,\begin{array}{c}27\\ 34\\ 34\end{array}\right]+\left[\begin{array}{c}3\\ 3\\ 3\end{array}\,\,\,\,\,\begin{array}{c}5\\ 6\\ 6\end{array}\right]=\left[\begin{array}{c}18\\ 19\\ 19\end{array}\,\,\,\,\,\begin{array}{c}32\\ 40\\ 40\end{array}\right][/latex]

This means

[latex]{C}_{2014}=\left[\begin{array}{c}18\\ 19\\ 19\end{array}\,\,\,\,\,\begin{array}{c}32\\ 40\\ 40\end{array}\right][/latex]

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

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

the scalar multiple[latex]\,cA\,[/latex]is

[latex]\begin{array}{l}cA=c\left[\begin{array}{ccc}{a}_{11}& & {a}_{12}\\ {a}_{21}& & {a}_{22}\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{ccc}c{a}_{11}& & c{a}_{12}\\ c{a}_{21}& & c{a}_{22}\end{array}\right]\hfill \end{array}[/latex]

Scalar multiplication is distributive. For the matrices[latex]\,A,B,[/latex]and[latex]\,C\,[/latex] with scalars[latex]\,a\,[/latex]and[latex]\,b,[/latex]

[latex]\begin{array}{l}\\ \begin{array}{c}a\left(A+B\right)=aA+aB\\ \left(a+b\right)A=aA+bA\end{array}\end{array}[/latex]

Multiplying the Matrix by a Scalar

Multiply matrix[latex]\,A\,[/latex]by the scalar 3.

[latex]A=\left[\begin{array}{cc}8& 1\\ 5& 4\end{array}\right][/latex]
[reveal-answer q=”fs-id1165133103962″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133103962″]

Multiply each entry in[latex]\,A\,[/latex]by the scalar 3.

[latex]\begin{array}{l}3A=3\left[\begin{array}{rr}\hfill 8& \hfill \,\,1\\ \hfill 5& \hfill \,\,4\end{array}\right]\hfill \\ \,\,\,\,\,\,\,\,= \left[\begin{array}{rr}\hfill 3\cdot 8& \hfill \,\,3\cdot 1\\ \hfill 3\cdot 5& \hfill \,\,3\cdot 4\end{array}\right]\hfill \\ \,\,\,\,\,\,\,\,= \left[\begin{array}{rr}\hfill 24& \hfill 3\\ \hfill 15& \hfill 12\end{array}\right]\hfill \end{array}[/latex][/hidden-answer]

Try It

Given matrix[latex]\,B,\text{}[/latex]find[latex]\,-2B\,[/latex]where

[latex]B=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right][/latex]
[reveal-answer q=”fs-id1165132912710″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165132912710″]

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

[/hidden-answer]

Finding the Sum of Scalar Multiples

Find the sum[latex]\,3A+2B.[/latex]

[latex]A=\left[\begin{array}{rrr}\hfill 1& \hfill -2& \hfill 0\\ \hfill 0& \hfill -1& \hfill 2\\ \hfill 4& \hfill 3& \hfill -6\end{array}\right]\text{ and }B=\left[\begin{array}{rrr}\hfill -1& \hfill 2& \hfill 1\\ \hfill 0& \hfill -3& \hfill 2\\ \hfill 0& \hfill 1& \hfill -4\end{array}\right][/latex]
[reveal-answer q=”fs-id1165137834785″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137834785″]

First, find[latex]\,3A,\text{}[/latex]then[latex]\,2B.[/latex]

[latex]\begin{array}{l}\begin{array}{l}\hfill \\ \hfill \\ 3A=\left[\begin{array}{lll}3\cdot 1\hfill & \,\,3\left(-2\right)\hfill & \,\,3\cdot 0\hfill \\ 3\cdot 0\hfill & \,\,3\left(-1\right)\hfill & \,\,3\cdot 2\hfill \\ 3\cdot 4\hfill & \,\,3\cdot 3\hfill & \,\,3\left(-6\right)\hfill \end{array}\right]\hfill \end{array}\hfill \\ \,\,\,\,\,\,\,=\left[\begin{array}{rrr}\hfill 3& \hfill \,\,-6& \hfill \,\,0\\ \hfill 0& \hfill \,\,-3& \hfill \,\,6\\ \hfill 12& \hfill \,\,9& \hfill \,\,-18\end{array}\right]\hfill \end{array}[/latex]
[latex]\begin{array}{l}\begin{array}{l}\hfill \\ \hfill \\ 2B=\left[\begin{array}{lll}2\left(-1\right)\hfill & \,\,2\cdot 2\hfill & \,\,2\cdot 1\hfill \\ 2\cdot 0\hfill & \,\,2\left(-3\right)\hfill & \,\,2\cdot 2\hfill \\ 2\cdot 0\hfill & \,\,2\cdot 1\hfill & \,\,2\left(-4\right)\hfill \end{array}\right]\hfill \end{array}\hfill \\ \,\,\,\,\,\,\,=\left[\begin{array}{rrr}\hfill -2& \hfill 4& \hfill 2\\ \hfill 0& \hfill -6& \hfill 4\\ \hfill 0& \hfill 2& \hfill -8\end{array}\right]\hfill \end{array}[/latex]

Now, add[latex]\,3A+2B.[/latex]

[latex]\begin{array}{l}\hfill \\ \hfill \\ 3A+2B=\left[\begin{array}{rrr}\hfill 3& \hfill -6& \hfill 0\\ \hfill 0& \hfill -3& \hfill 6\\ \hfill 12& \hfill 9& \hfill -18\end{array}\right]+\left[\begin{array}{rrr}\hfill -2& \hfill 4& \hfill 2\\ \hfill 0& \hfill -6& \hfill 4\\ \hfill 0& \hfill 2& \hfill -8\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rrr}\hfill 3-2& \hfill \,\,-6+4& \hfill 0+2\\ \hfill 0+0& \hfill \,\,-3-6& \hfill 6+4\\ \hfill 12+0& \hfill \,\,9+2& \hfill -18-8\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rrr}\hfill 1& \hfill \,\,-2& \hfill 2\\ \hfill 0& \hfill \,\,-9& \hfill 10\\ \hfill 12& \hfill \,\,11& \hfill -26\end{array}\right]\hfill \end{array}[/latex][/hidden-answer]

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

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

[latex]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]\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][/latex]

Multiply and add as follows to obtain the first entry of the product matrix[latex]\,AB.[/latex]

  1. To obtain the entry in row 1, column 1 of[latex]\,AB,\text{}[/latex]multiply the first row in[latex]\,A\,[/latex]by the first column in[latex]\,B,[/latex]and add.
    [latex]\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]\cdot \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}[/latex]
  2. To obtain the entry in row 1, column 2 of[latex]\,AB,\text{}[/latex]multiply the first row of[latex]\,A\,[/latex] by the second column in[latex]\,B,[/latex]and add.
    [latex]\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]\cdot \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}[/latex]
  3. To obtain the entry in row 1, column 3 of[latex]\,AB,\text{}[/latex]multiply the first row of[latex]\,A\,[/latex]by the third column in[latex]\,B,[/latex]and add.
    [latex]\left[\begin{array}{ccc}{a}_{11}& {a}_{12}& {a}_{13}\end{array}\right]\cdot \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}[/latex]

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

[latex]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}\,\,\,\,\,\,\,\,\,\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}\,\,\,\,\,\,\,\,\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][/latex]

Properties of Matrix Multiplication

For the matrices[latex]\,A,B,\text{}[/latex]and[latex]\,C\,[/latex]the following properties hold.

  • Matrix multiplication is associative:[latex]\,\left(AB\right)C=A\left(BC\right).[/latex]
  • Matrix multiplication is distributive:[latex]\begin{array}{l}\begin{array}{l}\\ \,C\left(A+B\right)=CA+CB,\end{array}\hfill \\ \,\left(A+B\right)C=AC+BC.\hfill \end{array}[/latex]

Note that matrix multiplication is not commutative.

Multiplying Two Matrices

Multiply matrix[latex]\,A\,[/latex]and matrix[latex]\,B.[/latex]

[latex]A=\left[\begin{array}{cc}1& 2\\ 3& 4\end{array}\right]\text{ and }B=\left[\begin{array}{cc}5& 6\\ 7& 8\end{array}\right][/latex]
[reveal-answer q=”fs-id1165137475669″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137475669″]

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

We perform the operations outlined previously.

[/hidden-answer]

Multiplying Two Matrices

Given[latex]\,A\,[/latex]and[latex]\,B:[/latex]

  1. Find[latex]\,AB.[/latex]
  2. Find[latex]\,BA.[/latex]
[latex]A=\left[\begin{array}{l}\begin{array}{ccc}-1& 2& 3\end{array}\hfill \\ \begin{array}{ccc}\,\,\,4& 0& 5\end{array}\hfill \end{array}\right]\text{ and }B=\left[\begin{array}{c}\,\,5\\ -4\\ \,\,2\end{array}\,\,\,\begin{array}{c}-1\\ \,\,0\\ \,\,3\end{array}\right][/latex]
[reveal-answer q=”707230″]Show Solution[/reveal-answer]
[hidden-answer a=”707230″]

  1. As the dimensions of[latex]\,A\,[/latex]are[latex]\,2\text{}×\text{}3\,[/latex]and the dimensions of[latex]\,B\,[/latex]are[latex]\,3\text{}×\text{}2,\text{}[/latex]these matrices can be multiplied together because the number of columns in[latex]\,A\,[/latex]matches the number of rows in[latex]\,B.\,[/latex]The resulting product will be a[latex]\,2\text{}×\text{}2\,[/latex]matrix, the number of rows in[latex]\,A\,[/latex]by the number of columns in[latex]\,B.[/latex]
    [latex]\begin{array}{l}\hfill \\ AB=\left[\begin{array}{rrr}\hfill -1& \hfill 2& \hfill 3\\ \hfill 4& \hfill 0& \hfill 5\end{array}\right]\text{ }\left[\begin{array}{rr}\hfill 5& \hfill -1\\ \hfill -4& \hfill 0\\ \hfill 2& \hfill 3\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rr}\hfill -1\left(5\right)+2\left(-4\right)+3\left(2\right)& \hfill \,\,-1\left(-1\right)+2\left(0\right)+3\left(3\right)\\ \hfill 4\left(5\right)+0\left(-4\right)+5\left(2\right)& \hfill \,\,4\left(-1\right)+0\left(0\right)+5\left(3\right)\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rr}\hfill -7& \hfill 10\\ \hfill 30& \hfill 11\end{array}\right]\hfill \end{array}[/latex]
  2. The dimensions of[latex]\,B\,[/latex]are[latex]\,3×2\,[/latex]and the dimensions of[latex]\,A\,[/latex]are[latex]\,2×3.\,[/latex]The inner dimensions match so the product is defined and will be a[latex]\,3×3\,[/latex]matrix.
    [latex]\begin{array}{l}\hfill \\ BA=\left[\begin{array}{rr}\hfill 5& \hfill -1\\ \hfill -4& \hfill 0\\ \hfill 2& \hfill 3\end{array}\right]\text{ }\left[\begin{array}{rrr}\hfill -1& \hfill 2& \hfill 3\\ \hfill 4& \hfill 0& \hfill 5\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rrr}\hfill 5\left(-1\right)+-1\left(4\right)& \hfill \,\,5\left(2\right)+-1\left(0\right)& \hfill \,\,5\left(3\right)+-1\left(5\right)\\ \hfill -4\left(-1\right)+0\left(4\right)& \hfill \,\,-4\left(2\right)+0\left(0\right)& \hfill \,\,-4\left(3\right)+0\left(5\right)\\ \hfill 2\left(-1\right)+3\left(4\right)& \hfill \,\,2\left(2\right)+3\left(0\right)& \hfill \,\,2\left(3\right)+3\left(5\right)\end{array}\right]\hfill \\ \text{ }=\left[\begin{array}{rrr}\hfill -9& \hfill 10& \hfill 10\\ \hfill 4& \hfill -8& \hfill -12\\ \hfill 10& \hfill 4& \hfill 21\end{array}\right]\hfill \end{array}[/latex]

[/hidden-answer]

Analysis

Notice that the products[latex]\,AB\,[/latex]and[latex]\,BA\,[/latex]are not equal.

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

This illustrates the fact that matrix multiplication is not commutative.

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

Yes, consider a matrix A with dimension[latex]\,3\,×\,4\,[/latex]and matrix B with dimension[latex]\,4\,×\,2.\,[/latex]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.

Using Matrices in Real-World Problems

Let’s return to the problem presented at the opening of this section. We have (Figure), 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 (Figure).

Goal $300
Ball $10
Jersey $30

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

[latex]E=\left[\begin{array}{c}6\\ 30\\ 14\end{array}\,\,\,\,\,\begin{array}{c}10\\ 24\\ 20\end{array}\right][/latex]

The cost matrix is written as

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

We perform matrix multiplication to obtain costs for the equipment.

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

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.

  1. Save each matrix as a matrix variable[latex]\,\left[A\right],\left[B\right],\left[C\right],...[/latex]
  2. Enter the operation into the calculator, calling up each matrix variable as needed.
  3. If the operation is defined, the calculator will present the solution matrix; if the operation is undefined, it will display an error message.

Using a Calculator to Perform Matrix Operations

Find[latex]\,AB-C\,[/latex] given

[latex]A=\left[\begin{array}{rrr}\hfill -15& \hfill 25& \hfill 32\\ \hfill 41& \hfill -7& \hfill -28\\ \hfill 10& \hfill 34& \hfill -2\end{array}\right],B=\left[\begin{array}{rrr}\hfill 45& \hfill 21& \hfill -37\\ \hfill -24& \hfill 52& \hfill 19\\ \hfill 6& \hfill -48& \hfill -31\end{array}\right],\text{and }C=\left[\begin{array}{rrr}\hfill -100& \hfill -89& \hfill -98\\ \hfill 25& \hfill -56& \hfill 74\\ \hfill -67& \hfill 42& \hfill -75\end{array}\right].[/latex]
[reveal-answer q=”301100″]Show Solution[/reveal-answer]
[hidden-answer a=”301100″]On the matrix page of the calculator, we enter matrix[latex]\,A\,[/latex]above as the matrix variable[latex]\,\left[A\right],[/latex]matrix[latex]\,B\,[/latex]above as the matrix variable[latex]\,\left[B\right],[/latex]and matrix[latex]\,C\,[/latex]above as the matrix variable[latex]\,\left[C\right].[/latex]

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

[latex]\left[A\right]×\left[B\right]-\left[C\right][/latex]

The calculator gives us the following matrix.

[latex]\left[\begin{array}{rrr}\hfill -983& \hfill \,\,-462& \hfill \,\,136\\ \hfill 1,820& \hfill \,\,1,897& \hfill \,\,-856\\ \hfill -311& \hfill \,\,2,032& \hfill \,\,413\end{array}\right][/latex]

[/hidden-answer]

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[latex]\,3×2\,[/latex]matrix has three rows and two columns. See (Figure).
  • We add and subtract matrices of equal dimensions by adding and subtracting corresponding entries of each matrix. See (Figure), (Figure), (Figure), and (Figure).
  • Scalar multiplication involves multiplying each entry in a matrix by a constant. See (Figure).
  • Scalar multiplication is often required before addition or subtraction can occur. See (Figure).
  • 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,[latex]\,A\,[/latex]and[latex]\,B,[/latex]is obtained by multiplying each entry in row 1 of[latex]\,A\,[/latex]by each entry in column 1 of[latex]\,B;\,[/latex]then multiply each entry of row 1 of[latex]\,A\,[/latex]by each entry in columns 2 of[latex]\,B,\text{}[/latex]and so on. See (Figure) and (Figure).
  • Many real-world problems can often be solved using matrices. See (Figure).
  • We can use a calculator to perform matrix operations after saving each matrix as a matrix variable. See (Figure).

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.

[reveal-answer q=”fs-id1165132324546″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165132324546″]

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[latex]\,2×2\,[/latex]matrix and the second is a[latex]\,2×3\,[/latex]matrix.[latex]\,\left[\begin{array}{cc}1& 2\\ 3& 4\end{array}\right]+\left[\begin{array}{ccc}6& 5& 4\\ 3& 2& 1\end{array}\right]\,[/latex]has no sum.

[/hidden-answer]

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

Can both the products[latex]\,AB\,[/latex]and[latex]\,BA\,[/latex]be defined? If so, explain how; if not, explain why.

[reveal-answer q=”fs-id1165133257257″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133257257″]

Yes, if the dimensions of[latex]\,A\,[/latex]are[latex]\,m×n\,[/latex]and the dimensions of[latex]\,B\,[/latex]are[latex]\,n×m,\text{}[/latex]both products will be defined.

[/hidden-answer]

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[latex]\,AB=BA?\,[/latex]If so, prove why it does. If not, explain why it does not.

[reveal-answer q=”fs-id1165131884652″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165131884652″]

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

[/hidden-answer]

Algebraic

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

[latex]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][/latex]

[latex]A+B[/latex]

[latex]C+D[/latex]

[reveal-answer q=”fs-id1165134054892″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134054892″]

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

[/hidden-answer]

[latex]A+C[/latex]

[latex]B-E[/latex]

[reveal-answer q=”fs-id1165135398737″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135398737″]

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

[/hidden-answer]

[latex]C+F[/latex]

[latex]D-B[/latex]

[reveal-answer q=”fs-id1165135185114″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135185114″]

Undidentified; dimensions do not match

[/hidden-answer]

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

[latex]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][/latex]
[latex]5A[/latex]
[latex]3B[/latex]
[reveal-answer q=”fs-id1165134040464″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134040464″]

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

[/hidden-answer]

[latex]-2B[/latex]

[latex]-4C[/latex]

[reveal-answer q=”fs-id1165133093347″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133093347″]

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

[/hidden-answer]

[latex]\frac{1}{2}C[/latex]

[latex]100D[/latex]
[reveal-answer q=”fs-id1165133078116″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165133078116″]

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

[/hidden-answer]

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

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

[latex]AB[/latex]

[latex]BC[/latex]
[reveal-answer q=”fs-id1165135363090″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135363090″]

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

[/hidden-answer]

[latex]CA[/latex]

[latex]BD[/latex]

[reveal-answer q=”fs-id1165134086079″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134086079″]

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

[/hidden-answer]

[latex]DC[/latex]

[latex]CB[/latex]

[reveal-answer q=”fs-id1165134278623″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134278623″]

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

[/hidden-answer]

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.

[latex]A=\left[\begin{array}{rr}\hfill 2& \hfill -5\\ \hfill 6& \hfill 7\end{array}\right],B=\left[\begin{array}{rr}\hfill -9& \hfill 6\\ \hfill -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 -8& \hfill 7& \hfill -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 -6& \hfill -5\\ \hfill 1& \hfill 0& \hfill 9\end{array}\right][/latex]

[latex]A+B-C[/latex]

[latex]4A+5D[/latex]

[reveal-answer q=”fs-id1165135397106″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135397106″]

Undefined; dimensions do not match.

[/hidden-answer]

[latex]2C+B[/latex]

[latex]3D+4E[/latex]

[reveal-answer q=”fs-id1165135450265″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135450265″]

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

[/hidden-answer]

[latex]C-0.5D[/latex]

[latex]100D-10E[/latex]

[reveal-answer q=”fs-id1165134389851″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134389851″]
[latex]\left[\begin{array}{ccc}-840& 650& -530\\ 330& 360& 250\\ -10& 900& 110\end{array}\right][/latex][/hidden-answer]

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:[latex]\,{A}^{2}=A\cdot A[/latex])

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

[latex]BA[/latex]

[reveal-answer q=”fs-id1165135409281″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135409281″]

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

[/hidden-answer]

[latex]CA[/latex]

[latex]BC[/latex]

[reveal-answer q=”fs-id1165135662468″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135662468″]

Undefined; inner dimensions do not match.

[/hidden-answer]

[latex]{A}^{2}[/latex]

[latex]{B}^{2}[/latex]

[reveal-answer q=”fs-id1165134248921″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134248921″]

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

[/hidden-answer]

[latex]{C}^{2}[/latex]

[latex]{B}^{2}{A}^{2}[/latex]

[reveal-answer q=”fs-id1165131927234″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165131927234″]

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

[/hidden-answer]

[latex]{A}^{2}{B}^{2}[/latex]

[latex]{\left(AB\right)}^{2}[/latex]

[reveal-answer q=”fs-id1165135618051″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135618051″]
[latex]\left[\begin{array}{cc}490,000& 0\\ 0& 490,000\end{array}\right][/latex][/hidden-answer]

[latex]{\left(BA\right)}^{2}[/latex]

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:[latex]\,{A}^{2}=A\cdot A[/latex])

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

[latex]AB[/latex]

[reveal-answer q=”fs-id1165137870897″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137870897″]

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

[/hidden-answer]

[latex]BA[/latex]

[latex]BD[/latex]

[reveal-answer q=”fs-id1165131968563″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165131968563″]

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

[/hidden-answer]

[latex]DC[/latex]

[latex]{D}^{2}[/latex]

[reveal-answer q=”fs-id1165134081098″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134081098″]

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

[/hidden-answer]

[latex]{A}^{2}[/latex]

[latex]{D}^{3}[/latex]

[reveal-answer q=”fs-id1165134254079″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134254079″]

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

[/hidden-answer]

[latex]\left(AB\right)C[/latex]

[latex]A\left(BC\right)[/latex]

[reveal-answer q=”fs-id1165135684111″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135684111″]

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

[/hidden-answer]

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.

[latex]A=\left[\begin{array}{rrr}\hfill -2& \hfill 0& \hfill 9\\ \hfill 1& \hfill 8& \hfill -3\\ \hfill 0.5& \hfill 4& \hfill 5\end{array}\right],B=\left[\begin{array}{rrr}\hfill 0.5& \hfill 3& \hfill 0\\ \hfill -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][/latex]

[latex]AB[/latex]

[latex]BA[/latex]

[reveal-answer q=”fs-id1165135466313″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135466313″]

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

[/hidden-answer]

[latex]CA[/latex]

[latex]BC[/latex]

[reveal-answer q=”fs-id1165135298357″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135298357″]

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

[/hidden-answer]

[latex]ABC[/latex]

Extensions

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

[latex]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][/latex]

[latex]{B}^{2}[/latex]

[reveal-answer q=”fs-id1165134234207″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134234207″]

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

[/hidden-answer]

[latex]{B}^{3}[/latex]

[latex]{B}^{4}[/latex]

[reveal-answer q=”fs-id1165135207405″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135207405″]

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

[/hidden-answer]

[latex]{B}^{5}[/latex]

Using the above questions, find a formula for[latex]\,{B}^{n}.\,[/latex]Test the formula for[latex]\,{B}^{201}\,[/latex]and[latex]\,{B}^{202},\text{}[/latex]using a calculator.

[reveal-answer q=”fs-id1165134357394″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134357394″]

[latex]{B}^{n}=\{\begin{array}{l}[\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}],\text{ }n\,\text{even,}\\ [\begin{array}{ccc}1& 0& 0\\ 0& 0& 1\\ 0& 1& 0\end{array}],\text{ }n\,\text{odd}\text{.}\end{array}[/latex]

[/hidden-answer]

Glossary

column
a set of numbers aligned vertically in a matrix
entry
an element, coefficient, or constant in a matrix
matrix
a rectangular array of numbers
row
a set of numbers aligned horizontally in a matrix
scalar multiple
an entry of a matrix that has been multiplied by a scalar

License

Icon for the Creative Commons Attribution 4.0 International License

Algebra and Trigonometry OpenStax Copyright © 2015 by OpenStax is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book