Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a...

27
Notes 7.2 – Matrices

Transcript of Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a...

Page 1: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

Notes 7.2 – Matrices

Page 2: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

I. Matrices A.) Def. – A rectangular array of numbers. An m

x n matrix is a matrix consisting of m rows and n columns. The element aij is the element found in row i, column j.

B.) Matrices are only considered to be equivalent when they have the same order, and their corresponding elements are equal.

Page 3: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

C.) Matrix Addition and Subtraction

1.) Let A = [aij] and B = [bij].

Then, A + B = [aij + bij] and A – B = [aij - bij]

Page 4: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

D.) Scalar Multiplication and Properties-

1.) Let A = [aij].

Then, kA = k[aij] = [kaij] where k is a constant

E.) Additive Identity, Zero Matrix, and Additive Inverse – See page 579

Page 5: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

II. Basic Matrix Operations

A.) Ex. 1 - Let A = [aij] and B = [bij] be 3 x 3 matrices with aij = 3i – j and bij = i2+ j2.

1.) Find A and B.

2 1 0

5 4 3

8 7 6

A

2 5 10

5 8 13

10 13 18

B

Page 6: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2.) Find 3A+ 2B.

8 13 20

3 2 25 28 35

44 47 54

A B

2 1 0

5 4 3

8 7 6

A

1 5 10

5 8 13

10 13 18

B

Page 7: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

Then A x B = an m by n matrix where

[aij] x [bij] = [cij] =

III. Matrix Multiplication

1 1 2 2 3 3 ...i j i j i j ir rja b a b a b a b

A.) Let A be an m by r matrix where A = [aij] and B be an r by n matrix where B = [bij].

Page 8: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

B.) Ex. 2 - Find the product of A and B.

2 4 1

3 2 6A

1 0 2

0 1 4

4 3 0

B

2 7 12

21 20 2A B

2( 1) 4(0) 1(4) 2(0) 4(1) 1(3) 2(2) 4( 4) 1(0)

3( 1) 2(0) 6(4) 3(0) 2(1) 6(3) 3(2) 2( 4) 6(0)A B

Page 9: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

C.) Ex. 3 - Find the product of A and B.

2 3

4 2

1 6

A

1 0 2

0 1 4

4 3 0

B

Note, a 3 x 2 cannot be multiplied by a 3 x 3 matrix. However, we can transpose matrix A to be a 2 by 3 matrix and then multiply it by B. This product is represented by ATB.

Page 10: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2 4 1

3 2 6TA

1 0 2

0 1 4

4 3 0

B

2 7 12

21 20 2TA B

Page 11: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

AIn = InA = A - In is the multiplicative identity

IV. Identity Matrix In

3 3

1 0 0

0 1 0

0 0 1

I

A.) Def. – An n by n matrix with a main diagonal of all 1’s and zeros everywhere else.

Page 12: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

B.) For real numbers, means that

is the multiplicative inverse of a.

A-1 is the multiplicative inverse of A.

11a

a

1

a

1 1NOTE: A

A

Page 13: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

V. Finding the Inverse Matrix A-1

3 2

1 1A

A.) Ex. 4 – Find the multiplicative inverse of

3 2 1 0

1 1 0 1

a b

c d

3 2 1

3 2 0

0

1

a c

b d

a c

b d

Page 14: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

3 2 1

3 0

1

1

a c

a c

c

a

3 2 1 2 1 0

1 1 1 3 0 1

1 2 is the inverse of

1 3A

3 2 0

3 1

3

2

b d

b d

d

b

Page 15: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

There has to be an easier way to find the inverse, doesn’t there?!?

The answer is YES!!!!

Page 16: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

VI. Determinants and Inverses (2 by 2)

1

1 1a b d bA

c d c aad bc

A.) Def. – If ad – bc ≠ 0, then

The number ad – bc is the determinant of a 2 by 2 matrix

Page 17: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

5 4

2 3A

B.) Ex. 5– Find the multiplicative inverse of the following matrices

1

3 43 4 3 41 1 7 7

2 5 2 5 2 55( 3) 4( 2) 7

7 7

A or

4 1

8 2B

Page 18: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

Therefore, B has no inverse. It is called a singular matrix.

1 1 1

4( 2) 8( 1) 0B

Page 19: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

VII. Cofactors

1i j

ij ijA M

A.) Def. – Let A = [aij ] be a matrix of order n x n where n > 2.

Mij is the MINOR determinant.

(i.e., the determinant of the (n – 1) by (n – 1) matrix obtained by deleting the row and column containing aij .)

The cofactor corresponding to aij is

Page 20: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2 1 1

1 0 2

1 3 1

A

B.) Ex. 5– Find the all the cofactors for matrix A.

11 6A 1 1

11

0 21

3 1A

1 2

12

1 21 1

1 1A

1 3

13

1 01 3

1 3A

Page 21: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2 1 1

1 0 2

1 3 1

A

2 2

22

2 11 3

1 1A

2 3

23

2 11 4

1 3A

2 1

21

1 11 4

3 1A

3 2

32

2 11 5

1 2A

3 3

33

2 11 1

1 0A

3 1

31

1 11 2

0 2A

Page 22: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

VII. Determinants and Inverses (n by n)

1 1 2 2det ...i i i i in inA A a A a A a A

A.) Thm – An n by n matrix A has an inverse iff det A ≠ 0.

B.) Def. – Let A = [aij ] be a matrix of order n x n where n > 2. The determinant of A, |A|, is the sum of the entries in any row or any column multiplied by their respective cofactors. For example, expanding by the ith row gives

Page 23: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2 1 1

1 0 2

1 3 1

A

2( 6) 1(1) 1( 3)A

14A

1(1) 0( 3) 3( 5)A

Using the first row

Using the second column

B.) Ex. 6 – Determine whether matrix A has an inverse by finding the determinant.

Yes, A has an inverse!

Page 24: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2 1 1

1 0 2

1 3 1

A

2 1 1 2 1

1 0 2 1 0

1 3 1 1 3

A

20

Rewrite the first 2 columns outside the matrix

Find each diagonal product and add them

C.) Another way to determine the determinant of a 3 x 3 matrix is to do the following

3 1

Page 25: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

1 13 14A

2 1 1 2 1

1 0 2 1 0

1 3 1 1 3

A

120

Find each of the three opposite diagonal products and add them

Subtract your second product from the first and you have your determinant.

1 13

Page 26: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

2 1 1

1 0 2

1 3 1

A

3 2 1

7 7 71 3 5

14 14 143 5 1

14 14 14

A

D.) Ex. – Find the inverse of A.

Matrix – Names - x-1 - ENTER

C.) The only way we have of finding the inverse of an n by n matrix for n > 3 is to use cofactors or our graphing calculator!

Matrix – Edit - Quit

Page 27: Notes 7.2 – Matrices I. Matrices A.) Def. – A rectangular array of numbers. An m x n matrix is a matrix consisting of m rows and n columns. The element.

VIII. Apps: Reflection Matrices

1 0

0 1

To reflect across the… multiply [x, y] by…

x-axis:

y-axis:

origin:

1 0

0 1

1 0

0 1