35
Copyright © Cengage Learning. All rights reserved. 7.5 Operations with Matrices

7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

Copyright © Cengage Learning. All rights reserved.

7.5 Operations with Matrices

Page 2: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

2

What You Should Learn

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

Page 3: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

3

Equality of Matrices

Page 4: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

4

Equality of Matrices

This section introduces some fundamentals of matrix

theory. It is standard mathematical convention to represent

matrices in any of the following three ways.

Page 5: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

5

Equality of Matrices

Two matrices

A = [aij] and B = [bij]

are equal when they have the same dimension (m n) and

all of their corresponding entries are equal.

Page 6: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

6

Example 1 – Equality of Matrices

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

equation.

Solution:

Because two matrices are equal only when their

corresponding entries are equal, you can conclude that

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

Page 7: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

7

Equality of Matrices

Be sure you see that for two matrices to be equal, they

must have the same dimension and their corresponding

entries must be equal.

For instance,

Page 8: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

8

Matrix Addition and

Scalar Multiplication

Page 9: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

9

Matrix Addition and Scalar Multiplication

You can add two matrices (of the same dimension) by

adding their corresponding entries.

Page 10: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

10

Example 2 – Addition of Matrices

a.

b.

c. The sum of

is undefined because A is of dimension 2 3 and B is of

dimension 2 2.

Page 11: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

11

Matrix Addition and Scalar Multiplication

In operations with matrices, numbers are usually referred to

as scalars. In this text, scalars will always be real

numbers. You can multiply a matrix A by a scalar c by

multiplying each entry in A by c.

Page 12: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

12

Example 3 – Scalar Multiplication

Find 3A using .

Solution:

Page 13: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

13

Matrix Addition and Scalar Multiplication

The properties of matrix addition and scalar multiplication

are similar to those of addition and multiplication of real

numbers.

One important property of addition of real numbers is that

the number 0 is the additive identity.

That is, c + 0 = c for any real number c. For matrices, a

similar property holds.

Page 14: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

14

Matrix Addition and Scalar Multiplication

That is, if A is an m n matrix and O is the m n zero

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

In other words, O is the additive identity for the set of all

m n matrices. For example, the following matrices are the

additive identities for the sets of all 2 3 and 2 2

matrices.

and

2 3 zero matrix 2 2 zero matrix

Page 15: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

15

Matrix Addition and Scalar Multiplication

Page 16: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

16

Example 5 – Using the Distributive Property

Page 17: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

17

Matrix Addition and Scalar Multiplication

The algebra of real numbers and the algebra of matrices

have many similarities. For example, compare the following

solutions.

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 18: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

18

Example 6 – Solving a Matrix Equation

Solve for X in the equation

3X + A = B,

where

and

Page 19: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

19

Example 6 – Solution

Begin by solving the matrix equation for X.

Now, using the matrices A and B, you have

Substitute the matrices.

Subtract matrix A from matrix B.

Multiply the resulting matrix by .

Page 20: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

20

Matrix Multiplication

Page 21: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

21

Matrix Multiplication

Another basic matrix operation is matrix multiplication.

You will see later, however, that the definition of the

product of two matrices has many practical applications.

Page 22: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

22

Matrix Multiplication

The definition of matrix multiplication indicates a

row-by-column multiplication, where the entry in the ith row

and jth column of the product AB is obtained by multiplying

the entries in the ith row of A by the corresponding entries

in the jth column of B and then adding the results.

Page 23: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

23

Matrix Multiplication

The general pattern for matrix multiplication is as follows.

Page 24: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

24

Example 7 – Finding the Product of Two Matrices

Find the product AB using A = and B =

Solution:

First, note that the product AB is defined because the

number of columns of A is equal to the number of rows

of B. Moreover, the product AB has dimension 3 2.

To find the entries of the product, multiply each row of A

by each column of B.

Page 25: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

25

Example 7 – Solution

AB =

=

=

cont’d

Page 26: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

26

Matrix Multiplication

Page 27: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

27

Matrix Multiplication

Page 28: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

28

Matrix Multiplication

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

property that AIn = A and InA = A.

For example,

AI = A

Page 29: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

29

Applications

Page 30: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

30

Applications

Matrix multiplication can be used to represent a system of

linear equations. Note how the system

can be written as the matrix equation

AX = B

Page 31: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

31

Applications

where A is the coefficient matrix of the system, and X and B

are column matrices. The column matrix B is also called a

constant matrix. Its entries are the constant terms in the

system of equations.

Page 32: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

32

Example 10 – Solving a System of Linear Equations

For the system of linear equations, (a) write the system as

a matrix equation AX = B and (b) use Gauss-Jordan

elimination on [A B] to solve for the matrix X.

Page 33: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

33

Example 10 – Solution

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

follows.

b. The augmented matrix is

Page 34: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

34

Example 10 – 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.

The solution of the matrix equation is

cont’d

Page 35: 7.5 Operations with Matrices - Kent City School DistrictApr 07, 2017  · 14 Matrix Addition and Scalar Multiplication That is, if A is an m n matrix and O is the m n zero matrix consisting

35

Homework:

Page 527

#’s 9, 11, 13, 17, 21, 23, 25,

29, 31, 33, 35, 41, 47, 73,

75, 83, 85