8.2 OPERATIONS WITH MATRICES

24
8.2 OPERATIONS WITH MATRICES Copyright © Cengage Learning. All rights reserved.

Transcript of 8.2 OPERATIONS WITH MATRICES

Page 1: 8.2 OPERATIONS WITH MATRICES

8.2 OPERATIONS WITH MATRICES

Copyright © Cengage Learning. All rights reserved.

Page 2: 8.2 OPERATIONS WITH MATRICES

2

• Decide whether two matrices are equal.

• Add and subtract matrices and multiply matrices

by scalars.

• Multiply two matrices.

• Use matrix operations to model and solve

real-life problems.

What You Should Learn

Page 3: 8.2 OPERATIONS WITH MATRICES

3

Equality of Matrices

Page 4: 8.2 OPERATIONS WITH MATRICES

4

Equality of Matrices

Page 5: 8.2 OPERATIONS WITH MATRICES

5

Equality of Matrices

Two matrices A = [aij] and B = [bij] are equal if they have

the same order (m n) and aij = bij for 1 i m and

1 j n.

In other words, two matrices are equal if their

corresponding entries are equal.

Page 6: 8.2 OPERATIONS WITH MATRICES

6

Example 1 – Equality of Matrices

Solve for a11, a12, a21, and a22 in the following matrix

equation.

Solution:

a11 = 2, a12 = –1, a21 = –3, and a22 = 0.

Page 7: 8.2 OPERATIONS WITH MATRICES

7

Matrix Addition and Scalar

Multiplication

Page 8: 8.2 OPERATIONS WITH MATRICES

8

Matrix Addition and Scalar Multiplication

Matrix Subtraction

A – B = A + (-B)

Page 9: 8.2 OPERATIONS WITH MATRICES

9

Example 2 – Addition of Matrices

Page 10: 8.2 OPERATIONS WITH MATRICES

10

Example 2 – Addition of Matrices

d. The sum of

and

is undefined because A is of order 3 3 and B is of

order 3 2.

cont’d

Page 11: 8.2 OPERATIONS WITH MATRICES

11

Matrix Addition and Scalar Multiplication

Page 12: 8.2 OPERATIONS WITH MATRICES

12

Matrix Addition and Scalar Multiplication

If A is an m n matrix and O is the m n zero

matrix consisting entirely of zeros, then A + O = A.

O is the additive identity for the set of all m n matrices.

2 3 zero matrix 2 2 zero matrix

Page 13: 8.2 OPERATIONS WITH MATRICES

13

Matrix Addition and Scalar Multiplication

Real Numbers m n Matrices

(Solve for x.) (Solve for X.)

x + a = b X + A = B

x + a + (–a) = b + (–a) X + A + (–A) = B + (–A)

x + 0 = b – a X + O = B – A

x = b – a X = B – A

Page 14: 8.2 OPERATIONS WITH MATRICES

14

Matrix Multiplication

Page 15: 8.2 OPERATIONS WITH MATRICES

15

Matrix Multiplication

For the product of two matrices to be defined, the number of columns of

the first matrix must equal the number of rows of the second matrix.

A B = AB

m n n p m p

Page 16: 8.2 OPERATIONS WITH MATRICES

16

Example 7 – Finding the Product of Two Matrices

Find the product AB using and

Solution:

Page 17: 8.2 OPERATIONS WITH MATRICES

17

For most matrices, AB BA.

Matrix Multiplication

Page 18: 8.2 OPERATIONS WITH MATRICES

18

Matrix Multiplication

Page 19: 8.2 OPERATIONS WITH MATRICES

19

Matrix Multiplication

If A is an n n matrix, the identity matrix has the property

that AIn = A and In A = A.

and

AI = A

IA = A

Page 20: 8.2 OPERATIONS WITH MATRICES

20

Applications

Page 21: 8.2 OPERATIONS WITH MATRICES

21

Applications

A X = B

Page 22: 8.2 OPERATIONS WITH MATRICES

22

Example 11 – Solving a System of Linear Equations

Consider the following system of linear equations.

x1 – 2x2 + x3 = – 4

x2 + 2x3 = 4

2x1 + 3x2 – x3 = 2

a. Write this system as a matrix equation, AX = B.

b. Use Gauss-Jordan elimination on the augmented matrix

to solve for the matrix X.

Page 23: 8.2 OPERATIONS WITH MATRICES

23

Example 11 – Solution

a. In matrix form, AX = B, the system can be written as

follows.

b. The augmented matrix is formed by adjoining

matrix B to matrix A.

Page 24: 8.2 OPERATIONS WITH MATRICES

24

Example 11 – Solution

Using Gauss-Jordan elimination, you can rewrite this

equation as

So, the solution of the system of linear equations is

x1 = –1, x2 = 2, and x3 = 1, and the solution of the matrix

equation is

cont’d