21.1 Workbook - Operations On Two Matrices - Solutions PDF
21.1 Workbook - Operations On Two Matrices - Solutions PDF
[17 9] [−2 5]
7 6 0 8
+
Solution:
[17 9] [−2 5]
7 6 0 8
+
[17 + (−2) 9 + 5]
7+0 6+8
[15 14]
7 14
8 3 6 7
−4 7 2 −3
+
6 0 9 11
1 13 7 −2
1
Solution:
8 3 6 7
−4 7 2 −3
+
6 0 9 11
1 13 7 −2
8+6 3+7
−4 + 2 7 + (−3)
6+9 0 + 11
1 + 7 13 + (−2)
14 10
−2 4
15 11
8 11
Solution:
2
To subtract matrices, you simply subtract entries from corresponding
positions in each matrix.
[4 − 12 −1 − (−3)]
7−3 9−8
[−8 2]
4 1
[6 3 16 8] [5 8 1 15 ]
8 11 2 9 6 11 7 −4
−
Solution:
[6 3 16 8] [5 8 1 15 ]
8 11 2 9 6 11 7 −4
−
[6 − 5 3 − 8 16 − 1 8 − 15 ]
8 − 6 11 − 11 2 − 7 9 − (−4)
3
[1 −5 15 −7]
2 0 −5 13
5. Solve for M.
Solution:
Let’s start with the matrix addition on the left side of the equation and the
matrix subtraction on the right side of the equation.
[9 + 1 −9 + 6] [−3 − 4 −1 − (−7)]
6+3 5+7 7−1 12 − 8
=M+
To isolate M, we’ll subtract the matrix on the right from both sides in order
to move it to the left.
4
[10 − (−7) −3 − 6]
9−6 12 − 4
=M
[17 −9]
3 8
=M
The conclusion is that the value of M that makes the equation true is this
matrix:
[17 −9]
3 8
M=
6. Solve for N.
[9 8 ] [9 9] [5 11] [−18 1 ]
4 12 0 3 6 3 7 −4
− =N− +
Solution:
Let’s start with the matrix subtraction on the left side of the equation.
[9 8 ] [9 9] [5 11] [−18 1 ]
4 12 0 3 6 3 7 −4
− =N− +
[9 − 9 8 − 9 ] [5 11] [−18 1 ]
4 − 0 12 − 3 6 3 7 −4
=N− +
5
To isolate N, we’ll move the matrices on the right side over to the left side,
then flip the equation.
[0 + 5 −1 + 11] [−18 1 ]
4+6 9+3 7 −4
N= −
[ 5 10] [−18 1 ]
10 12 7 −4
N= −
[5 − (−18) 10 − 1 ]
10 − 7 12 − (−4)
N=
[23 9 ]
3 16
N=
6
SCALAR MULTIPLICATION
1 12 8 3
2 −16 0
4
1 5 7
Solution:
The scalar 1/4 is being multiplied by the matrix. Distribute the scalar across
every entry in the matrix.
1 12 8 3
2 −16 0
4
1 5 7
1 1 1
4
(12) 4
(8) 4
(3)
1 1 1
4
(2) 4
(−16) 4
(0)
1 1 1
4
(1) 4
(5) 4
(7)
3
3 2 4
1
2
−4 0
1 5 7
4 4 4
7
2. Solve for Y.
[−5 0] [6 8 ]
2 9 1 −3
4 +Y=5
Solution:
[−20 0 ] [30 40 ]
8 36 5 −15
+Y=
Subtract the matrix on the left from both sides of the equation in order to
isolate Y.
[30 40 ] [−20 0 ]
5 −15 8 36
Y= −
[30 − (−20) 40 − 0 ]
5−8 −15 − 36
Y=
[ 50 40 ]
−3 −51
Y=
3. Solve for N.
8
[0 11] [−1 9]
6 5 2 4
−2 =N−4
Solution:
Add the matrix on the right to both sides of the equation in order to
isolate N.
[−4 14]
−4 6
=N
[−4 14]
−4 6
N=
9
−5 0 4
−4M = 1 −8 −2
−4 12 3
Solution:
Multiply both sides of the matrix equation by the scalar −1/4 in order to
isolate M.
1 1 −5 0 4
− (−4M ) = − 1 −8 −2
4 4
−4 12 3
5
4
0 −1
− 14 1
M= 2 2
1 −3 − 34
1
−5A + B
3
10
2 1
[3 0 ]
−5
A= 5
[ 6 −2]
−3 0
B=
Solution:
1
−5A + B
3
2 1
1 −1 0
[3 0 ] 3 [ 6 −2]
−5
−5 5 + 3
1 1 1
−5( 25 ) −5(− 15 ) (− ) (0)
[ −5(3) −5(0) ]
3 3 3
+ 1 1
3
(6) 3
(−2)
− 19 0
[−15 0]
−2 1
+
2 − 23
1
−2 − 9
1+0
2
−15 + 2 0 − 3
11
19
− 9
1
−13 − 23
6 3 7
1 0 −2 6
2[
8 6 0]
3
2X − 4 −1 2 = 0 − 2 1
6 5 4
Solution:
1 1 1
2
(0) 2
(−2) 2
(6) 6 3 7
2X − 1
2
(4) 1
2
(−1) 1
2
(2) = 0 − 32 1
1
(8) 1
(6) 1
(0) 6 5 4
2 2 2
0 −1 3 6 3 7
2X − 2 − 12 1 = 0 − 32 1
4 3 0 6 5 4
Add the matrix on the left to both sides of the equation in order to isolate
2X.
12
6 3 7 0 −1 3
2X = 0 − 32 1 + 2 − 12 1
6 5 4 4 3 0
6 2 10
[10 8 4 ]
2X = 2 −2 2
Multiply both sides of the equation by the scalar 1/2 in order to isolate X.
1 6 2 10
2[
10 8 4 ]
1
⋅ 2X = 2 −2 2
2
1 1 1
2
(6) 2
(2) 2
(10)
1 1 1
X= 2
(2) 2
(−2) 2
(2)
1 1 1
2
(10) 2
(8) 2
(4)
3 1 5
X = 1 −1 1
5 4 2
13
ZERO MATRICES
[−6 0 ]
8 17
Solution:
Adding the zero matrix to any other matrix doesn’t change the value of
the matrix, so
[−6 0 ] [0 0] [−6 0 ]
8 17 0 0 8 17
+ =
6 8 0
2 −3 11
4 12 9
Solution:
14
(−1)6 (−1)8 (−1)0
(−1) (−1)2 (−1)(−3) (−1)11
(−1)4 (−1)12 (−1)9
−6 −8 0
−2 3 −11
−4 −12 −9
[ 3 7 18 −4]
14 −1 7 5
Solution:
[0 0 0 0]
0 0 0 0
[−3 2 8]
1 −5 7
A=
15
Solution:
[−3 2 8]
1 −5 7
−A = (−1)
[ 3 −2 −8]
−1 5 −7
−A =
[−3 2 8] [ 3 −2 −8]
1 −5 7 −1 5 −7
A + (−A) = +
[−3 + 3 2 − 2 8 − 8]
1 − 1 −5 + 5 7 − 7
A + (−A) =
[0 0 0]
0 0 0
A + (−A) =
−1 2 5 1 0 −5 −1 0 5
[ ]
X + 7 −4 3 = 0 7 3 + 0 −7 −3
1 −2 4 −4 0 −1 4 0 1
16
Solution:
−1 2 5 1 − 1 0 + 0 −5 + 5
[ ]
X + 7 −4 3 = 0 + 0 7 − 7 3 − 3
1 −2 4 −4 + 4 0 + 0 −1 + 1
−1 2 5 0 0 0
[ ] [0 0 0]
X + 7 −4 3 = 0 0 0
1 −2 4
Subtract the matrix on the left from both sides of the equation in order to
isolate X.
0 0 0 −1 2 5
[0 0 0] [ ]
X = 0 0 0 − 7 −4 3
1 −2 4
1 −2 −5
[ ]
X = −7 4 −3
−1 2 −4
17
−1 5 4 −2 3 0 2 4 −7 3 −1 −11
−2 0 −3 − A = 0 −1 5 −2 + 8 0 −5 − 10 0 −2
5 7 −9 −7 0 4 −1 4 3 −6 −3 12
Solution:
−1 5 4 0 0 0 2 4 −7 3 −1 −11
[0 0 0]
−2 0 −3 − A = 0 0 0 + 8 0 −5 − 10 0 −2
5 7 −9 −1 4 3 −6 −3 12
Adding the zero matrix does not change the value of the equation, so we
can cancel it. Subtract the remaining matrices on the right side.
−1 5 4 2 4 −7 3 −1 −11
−2 0 −3 − A = 8 0 −5 − 10 0 −2
5 7 −9 −1 4 3 −6 −3 12
−1 5 4 −1 5 4
−2 0 −3 − A = −2 0 −3
5 7 −9 5 7 −9
18
Subtract the matrix on the left from both sides of the equation in order to
isolate −A.
−1 5 4 −1 5 4
−A = −2 0 −3 − −2 0 −3
5 7 −9 5 7 −9
−1 − (−1) 5 − 5 4−4
−A = −2 − (−2) 0 − 0 −3 − (−3)
5−5 7 − 7 −9 − (−9)
0 0 0
[0 0 0]
−A = 0 0 0
0 0 0
[0 0 0]
A = (−1) 0 0 0
0 0 0
[0 0 0]
A= 0 0 0
19
MATRIX MULTIPLICATION
Solution:
Line up the dimensions for the products AB and BA, and compare the
middle terms, which represent the columns from the first matrix and the
rows from the second matrix.
AB: 3 × 3 3×4
The middle numbers match for AB, so that product is defined. For BA, the
middle numbers don’t match, so that product isn’t defined.
The dimensions of AB are given by the outside numbers, which are the
rows from the first matrix and the columns from the second matrix.
AB: 3 × 3 3×4
20
[−3 1]
2 6
A=
[ 5 −4]
−2 0
B=
Solution:
[−3 1] [ 5 −4]
2 6 −2 0
AB =
[11 −4 ]
26 −24
AB =
5 −1
A = 0 11
7 −2
[−3 0 4]
6 1 8
B=
21
Solution:
5 −1
[−3 0 4]
6 1 8
AB = 0 11
7 −2
33 5 36
AB = −33 0 44
48 7 48
3 −2
[0 3 ]
A= 1 8
[4 8]
5 2
B=
Solution:
22
3 −2
[0 3 ] [4 8]
5 2
AB = 1 8
7 −10
[ ]
AB = 37 66
12 24
[4 −2]
2 0
A=
[5 4]
3 1
B=
[3 −1]
6 1
C=
Solution:
A(B + C) = AB + AC
23
[4 −2] [5 4] [4 −2] [3 −1]
2 0 3 1 2 0 6 1
AB + AC = ⋅ +
[2 −4] [18 6]
6 2 12 2
AB + AC = +
[2 + 18 −4 + 6]
6 + 12 2 + 2
AB + AC =
[20 2]
18 4
AB + AC =
[20 2]
18 4
A(B + C) =
0 0
0 0
A=
0 0
0 0
24
[7 3 5 2]
6 −2 8 1
B=
Solution:
0 0
0 [7 3 5 2]
0 0 6 −2 8 1
AB =
0
0 0
0 0 0 0
0 0 0 0
AB =
0 0 0 0
0 0 0 0
25
IDENTITY MATRICES
Solution:
We always call the identity matrix I, and it’s always a square matrix, like
2 × 2, 3 × 3, 4 × 4, etc. For that reason, it’s common to abbreviate I2x2 as just
I2, or I3x3 as just I3, etc. So, I4 is the 4 × 4 identity matrix.
1 0 0 0
0 1 0 0
I4 =
0 0 1 0
0 0 0 1
2. If we want to find the product IA, where I is the identity matrix and A is
4 × 2, then what are the dimensions of I?
Solution:
I⋅A=A
26
I⋅4×2=4×2
R×C⋅4×2=4×2
R×4⋅4×2=4×2
The dimensions of the product come from the rows in the first matrix and
the columns in the second matrix, so
4×4⋅4×2=4×2
1 0 0 0
0 1 0 0
I4 =
0 0 1 0
0 0 0 1
3. If we want to find the product IA, where I is the identity matrix and A is
a 3 × 4, then what are the dimensions of I?
Solution:
27
Start by setting up the equation I ⋅ A = A, then substitute the dimensions
for A into the equation.
I⋅A=A
I⋅3×4=3×4
R×C⋅3×4=3×4
R×3⋅3×4=3×4
The dimensions of the product come from the rows in the first matrix and
the columns in the second matrix, so
3×3⋅3×4=3×4
1 0 0
[0 0 1 ]
I3 = 0 1 0
4. If we want to find the product IA, where I is the identity matrix and A is
given, then what are the dimensions of I? What is the product IA?
28
2 8
A = −2 7
3 5
Solution:
I⋅A=A
I⋅3×2=3×2
R×C⋅3×2=3×2
R×3⋅3×2=3×2
The dimensions of the product come from the rows in the first matrix and
the columns in the second matrix, so
3×3⋅3×2=3×2
29
1 0 0
[0 0 1 ]
I3 = 0 1 0
The product IA is
1 0 0 2 8
[0 0 1] 3 5
IA = 0 1 0 −2 7
2 8
IA = −2 7
3 5
5. If we want to find the product IA, where I is the identity matrix and A is
given, then what are the dimensions of I? What is the product IA?
[5 5 2 9 ]
7 1 3 −2
A=
Solution:
30
Start by setting up the equation I ⋅ A = A, then substitute the dimensions
for A into the equation.
I⋅A=A
I⋅2×4=2×4
R×C⋅2×4=2×4
R×2⋅2×4=2×4
The dimensions of the product come from the rows in the first matrix and
the columns in the second matrix, so
2×2⋅2×4=2×4
[0 1]
1 0
I2 =
The product IA is
[0 1] [5 5 2 9 ]
1 0 7 1 3 −2
IA =
31
[0(7) + 1(5) 0(1) + 1(5) 0(3) + 1(2) 0(−2) + 1(9)]
1(7) + 0(5) 1(1) + 0(5) 1(3) + 0(2) 1(−2) + 0(9)
IA =
[5 5 2 9 ]
7 1 3 −2
IA =
AI = A
Solution:
Set up the equation AI = A, then substitute the dimensions for A into the
equation.
A⋅I=A
2×4⋅I=2×4
2×4⋅R×C =2×4
The number of rows in the second matrix must be equal to the number of
columns from the first matrix.
32
2×4⋅4×C =2×4
The dimensions of the product come from the rows of the first matrix and
the columns of the second matrix, so
2×4⋅4×4=2×4
1 0 0 0
0 1 0 0
I4 =
0 0 1 0
0 0 0 1
33
THE ELIMINATION MATRIX
1. (1/3)R1 → R1
2. −2R1 + R2 → R2
Solution:
[ 0 1]
0
E1 = 3
The row operation −2R1 + R2 → R2 means we’ll put a 1 in E2,2 and a −2 in E2,1.
[−2 1]
1 0
E1 =
E = E2 E1
[−2 1] [ 0 1]
1
1 0 3 0
E=
34
1 ( 13 ) + 0(0) 1(0) + 0(1)
E=
−2 ( 13 ) + 1(0) −2(0) + 1(1)
1
3
0
E=
− 23 1
1. −3R1 + R3 → R3
2. 5R2 + R1 → R1
3. −R3 → R3
Solution:
The row operation −3R1 + R3 → R3 means we’ll put a 1 in E3,3 and a −3 in E3,1.
1 0 0
[−3 0 1]
E1 = 0 1 0
The row operation 5R2 + R1 → R1 means we’ll put a 1 in E1,1 and 5 in E1,2.
35
1 5 0
E2 = 0 1 0
0 0 1
1 0 0
[0 0 −1]
E3 = 0 1 0
E = E3E2 E1
1 0 0 1 5 0 1 0 0
[0 0 −1] 0 0 1 [−3 0 1]
E= 0 1 0 0 1 0 0 1 0
[0 0 −1]
E= 0 1 0 0(1) + 1(0) + 0(−3) 0(0) + 1(1) + 0(0) 0(0) + 1(0) + 0(1)
0(1) + 0(0) + 1(−3) 0(0) + 0(1) + 1(0) 0(0) + 0(0) + 1(1)
1 0 0 1 5 0
[0 0 −1] −3 0 1
E= 0 1 0 0 1 0
36
1 5 0
E= 0 1 0
3 0 −1
1. −R1 → R1
2. 5R1 + R2 → R2
3. −(1/7)R2 → R2
4. R2 + R1 → R1
Solution:
[ 0 1]
−1 0
E1 =
The row operation 5R1 + R2 → R2 means we’ll put a 1 in E2,2 and a 5 in E2,1.
[5 1]
1 0
E2 =
37
1 0
[ 7]
E3 = 1
0 −
[0 1]
1 1
E4 =
E = E4 E3E2 E1
[0 1] [0 − 7 ] [5 1] [ 0 1]
1 1 1 0 1 0 −1 0
E= 1
[0 1] [0 − 7 ] [−5 1]
1 1 1 0 −1 0
E= 1
[0 1] [ 57 − 17 ]
1 1 −1 0
E=
38
1(−1) + 1 ( 57 ) 1(0) + 1 (− 17 )
E=
0(−1) + 1 ( 57 ) 0(0) + 1 (− 17 )
− 27 − 17
E= 5 1
7
−7
4. Find the single elimination matrix E that puts A into reduced row-
echelon form, where E accounts for the given set of row operations.
[ 1 2]
−3 6
A=
1
1. − R1 → R1
3
2. −R1 + R2 → R2
1
3. R2 → R2
4
4. 2R2 + R1 → R1
Solution:
39
− 13 0
[ 0 1]
E1 =
The row operation −R1 + R2 → R2 means we’ll put a 1 in E2,2 and a −1 in E2,1.
[−1 1]
1 0
E2 =
1 0
[0 4 ]
E3 = 1
The row operation 2R2 + R1 → R1 means we’ll put a 1 in E1,1 and a 2 in E1,2.
[0 1]
1 2
E4 =
E = E4 E3E2 E1
[0 1] [0 14 ] [−1 1] [ 0 1]
1 2 1 0
1
1 0 −3 0
E=
1 (− 13 ) + 0(0)
1(0) + 0(1)
[0 1] [0 14 ]
1 2 1 0
E=
−1 (− 13 ) + 1(0) −1(0) + 1(1)
40
1
−3 0
[0 1] [0 14 ] 1 1
1 2 1 0
E=
3
1 (− 13 ) + 0 ( 13 ) 1(0) + 0(1)
[0 1]
1 2
E=
0 (− 13 ) + 14 ( 13 ) 0(0) + 14 (1)
− 13 0
[0 1]
1 2
E= 1 1
12 4
1 (− 13 ) + 2 ( 12 ) (4)
1 1
1(0) + 2
E=
0 (− 13 ) + 1 ( 12 ) (4)
1 1
0(0) + 1
− 16 1
2
E= 1 1
12 4
5. Find the single elimination matrix E that puts X into reduced row-
echelon form, where E accounts for the given set of row operations.
1 0 0
X= 3 1 −4
−2 −1 5
1. −3R1 + R2 → R2
41
2. 2R1 + R3 → R3
3. R2 + R3 → R3
4. 4R3 + R2 → R2
Solution:
The row operation −3R1 + R2 → R2 means we’ll put a 1 in E2,2 and a −3 in E2,1.
1 0 0
[ 0 0 1]
E1 = −3 1 0
The row operation 2R1 + R3 → R3 means we’ll put a 1 in E3,3 and a 2 in E3,1.
1 0 0
[2 0 1]
E2 = 0 1 0
1 0 0
[0 1 1]
E3 = 0 1 0
The row operation 4R3 + R2 → R2 means we’ll put a 1 in E2,2 and a 4 in E2,3.
1 0 0
[0 0 1]
E4 = 0 1 4
42
Consolidate these four row operations into one elimination matrix by
multiplying E4 by E3 by E2 by E1.
E = E4 E3E2 E1
1 0 0 1 0 0 1 0 0 1 0 0
[0 0 1] [0 1 1] [2 0 1] [ 0 0 1]
E = 0 1 4 0 1 0 0 1 0 −3 1 0
[0 0 1] [0 1 1]
E= 0 1 4 0 1 0 0(1) + 1(−3) + 0(0) 0(0) + 1(1) + 0(0) 0(0) + 1(0) + 0(1)
2(1) + 0(−3) + 1(0) 2(0) + 0(1) + 1(0) 2(0) + 0(0) + 1(1)
1 0 0 1 0 0 1 0 0
[0 0 1] [0 1 1] [ 2 0 1]
E = 0 1 4 0 1 0 −3 1 0
[0 0 1]
E= 0 1 4 0(1) + 1(−3) + 0(2) 0(0) + 1(1) + 0(0) 0(0) + 1(0) + 0(1)
0(1) + 1(−3) + 1(2) 0(0) + 1(1) + 1(0) 0(0) + 1(0) + 1(1)
1 0 0 1 0 0
[0 0 1] [ ]
E = 0 1 4 −3 1 0
−1 1 1
1 0 0
[ ]
E = −7 5 4
−1 1 1
43
6. Find the single elimination matrix E that puts B into reduced row-
echelon form, where E accounts for the given set of row operations.
1 0 −5
B = 3 2 −9
1 −2 −10
1. −3R1 + R2 → R2
2. −R1 + R3 → R3
1
3. R2 → R2
2
4. 2R2 + R3 → R3
5. −3R3 + R2 → R2
6. 5R3 + R1 → R1
Solution:
The row operation −3R1 + R2 → R2 means we’ll put a 1 in E2,2 and a −3 in E2,1.
1 0 0
[ 0 0 1]
E1 = −3 1 0
The row operation −R1 + R3 → R3 means we’ll put a 1 in E3,3 and a −1 in E3,1.
1 0 0
[−1 0 1]
E2 = 0 1 0
44
The row operation (1/2)R2 → R2 means we’ll put a 1/2 in E2,2.
1 0 0
E3 = 0 12 0
0 0 1
1 0 0 1 0 0 1 0 0
[−1 0 1] [ 0 0 1]
E3E2 E1 = 0 12 0 0 1 0 −3 1 0
0 0 1
1 0 0 1 0 0
[−1 0 1]
E3E2 E1 = 0 12 0 −3 1 0
0 0 1
1 0 0
E3E2 E1 = − 32 1
2
0
−1 0 1
The row operation 2R2 + R3 → R3 means we’ll put a 1 in E3,3 and a 2 in E3,2.
45
1 0 0
[0 2 1]
E4 = 0 1 0
The row operation −3R3 + R2 → R2 means we’ll put a 1 in E2,2 and a −3 in E2,3.
1 0 0
[0 0 1 ]
E5 = 0 1 −3
The row operation 5R3 + R1 → R1 means we’ll put a 1 in E1,1 and a 5 in E1,3.
1 0 5
E6 = 0 1 0
0 0 1
1 0 5 1 0 0 1 0 0
[0 0 1 ] [0 2 1]
E6 E5E4 = 0 1 0 0 1 −3 0 1 0
0 0 1
1 0 5 1 0 0
E6 E5E4 = 0 1 0 0 −5 −3
0 0 1 0 2 1
46
1 10 5
E6 E5E4 = 0 −5 −3
0 2 1
E = E6 E5E4 E3E2 E1
1 10 5 1 0 0
− 32 1
E = 0 −5 −3 2
0
0 2 1 −1 0 1
−19 5 5
21
E= 2
− 52 −3
−4 1 1
47
48