matrices. special matrices matrix addition and subtraction example

44
Matrices

Post on 20-Dec-2015

270 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrices

Page 2: Matrices. Special Matrices Matrix Addition and Subtraction Example

Special Matrices

000

000

000

,0

0

0000,00

00

:

3321

1422

OO

OO

Examples

MatrixZero

0214

4513

8102

8101

453

912

601

,25

01,5

:Examples

MatrixnXnAn

MatrixSquare

Page 3: Matrices. Special Matrices Matrix Addition and Subtraction Example

Special Matrices

8000

0500

0070

0001

400

010

001

,20

01,5

:Examples

zeroesarediogonal

maintheonnotarethatentriesall

ifmatrixsquareA

MatrixDiagonal

1000

0100

0010

0001

100

010

001

,10

01,1

:

44

332211

I

III

Examples

onesarediogonal

maintheonarethatentriesall

ifmatrixdiagonalisA

MatrixIdentity

Page 4: Matrices. Special Matrices Matrix Addition and Subtraction Example

Special Matrices

6000

1700

3960

4581

700

510

412

,30

12

:

44

3322

I

II

Examples

zerosarediogonal

mainthebelowarethatentriesall

ifmatrixsquareA

MatrixDiogonalUpper

6129

1731

0068

0004

758

016

002

,31

02

:

44

3322

I

II

Examples

zerosarediogonal

maintheabovearethatentriesall

ifmatrixdiagonalA

MatrixDiogonalLower

Page 5: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrix Addition and SubtractionExample

671

012

231

391887

664524

135201

318

642

150

987

654

321

Page 6: Matrices. Special Matrices Matrix Addition and Subtraction Example

Multiplication of a Matrix by a Scalar

21176

666

512

318

642

150

181614

12108

642

318

642

150

)1(

987

654

321

2

)2(

45535

30020

15105

)9(5)1(5)7(5

)6(5)0(5)4(5

)3(5)2(5)1(5

917

604

321

5

)1(

Example

Example

Page 7: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrix Multiplication(n by m) Matrix X (m by k) Matrix

The number of columns of the matrix on the left

= number of rows of the matrix on the right

The result is a (n by k) Matrix

Page 8: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrix Multiplication3x3 X 3x3

332211332211332211

332211332211332211

332211332211332211

333

222

111

321

321

321

zczczcycycycxcxcxc

zbzbzbybybybxbxbxb

zazazayayayaxaxaxa

zyx

zyx

zyx

ccc

bbb

aaa

Page 9: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrix Multiplication1x3 X 3x3→ 1x3

32211332211332211

333

222

111

321

azazayayayaxaxaxa

zyx

zyx

zyx

aaa

Page 10: Matrices. Special Matrices Matrix Addition and Subtraction Example

Example (1)

323

422

241

)2)(1()1)(1()0)(2()1)(1()1)(1()1)(2()1)(1()0)(1()2)(2(

)2)(2()1)(0()0)(0()1)(2()1)(0()1)(0()1)(2()0)(0()2)(0(

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

211

110

012

112

200

141

Page 11: Matrices. Special Matrices Matrix Addition and Subtraction Example

Example (2)(1X3) X (3X3) → 1X3

42411

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

432

1021

310

432

Page 12: Matrices. Special Matrices Matrix Addition and Subtraction Example

Example (3)(3X1) X (1X2) → 3X2

00

76

3530

)7(0)6(0

)7(1)6(1

)7(5)6(5

76

0

1

5

Page 13: Matrices. Special Matrices Matrix Addition and Subtraction Example

Example (4)

2

2

37164

1110

043

540

311

121

540

311

121

540

311

121

Page 14: Matrices. Special Matrices Matrix Addition and Subtraction Example

Transpose of Matrix

863

752

041

870

654

321

)1(

333

222

111

321

321

321

T

T

Example

cba

cba

cba

A

ccc

bbb

aaa

A

Page 15: Matrices. Special Matrices Matrix Addition and Subtraction Example

30273

251214

9102

200

020

002

32273

251014

9104

100

010

001

2

24210

181512

963

863

752

041

2

870

654

321

3

870

654

321

)2(

3I

Example

T

Page 16: Matrices. Special Matrices Matrix Addition and Subtraction Example

870

654

321

870

654

321

)3(

TT

Example

Page 17: Matrices. Special Matrices Matrix Addition and Subtraction Example

Properties of the Transpose

TTT

TT

ABAB

AA

)(.2

)(.1

Page 18: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrix ReductionDefinitions (1)

1. Zero Row: A row consisting entirely of zeros

2. Nonzero Row: A row having at least one nonzero entry

3. Leading Entry of a row: The first nonzero entry of a row.

Page 19: Matrices. Special Matrices Matrix Addition and Subtraction Example

Matrix ReductionDefinitions (2)

Reduced Matrix: A matrix satisfying the following:

1. All zero rows are at the bottom of the matrix

2. The leading entry of a row is 1

3. All other entries in the column in which the leading entry is located are zeros.

4. A leading entry in a row is to the right of a leading entry in any row above it.

Page 20: Matrices. Special Matrices Matrix Addition and Subtraction Example

Examples of Reduced Matrices

000

710

501

.3

000

010

001

.2

100

010

001

.1

Page 21: Matrices. Special Matrices Matrix Addition and Subtraction Example

Examples matrices that are not reduced

.

2

000

001

010

.2

12

100

060

001

.1

itaboverowtheinentry

leadingtheofrightthetonotisrowinentryleadingThe

notisrowinentryleadingThe

Page 22: Matrices. Special Matrices Matrix Addition and Subtraction Example

zerosarelocatedisitwhichincolumnthein

entriesotherallthebutisrowinentryleadingThe

matrixtheofottomtheatnotbutrowzeroaisRow

,12

000

210

031

.4

.2

010

000

001

.3

Page 23: Matrices. Special Matrices Matrix Addition and Subtraction Example

Elementary Row Operations

1. Interchanging two rows

2. Replacing a row by a nonzero multiple of itself

3. Replacing a row by the sum of that row and a nonzero multiple of another row.

Page 24: Matrices. Special Matrices Matrix Addition and Subtraction Example

Interchanging Rows

225

320

1263

225

1263

32021 RR

Page 25: Matrices. Special Matrices Matrix Addition and Subtraction Example

Replacing a row by a nonzero multiple of itself

225

320

421

225

320

12631

3

1R

Page 26: Matrices. Special Matrices Matrix Addition and Subtraction Example

Replacing a row by the sum of that row and a nonzero multiple of another row

22120

320

421

225

320

421)5( 13 RR

Page 27: Matrices. Special Matrices Matrix Addition and Subtraction Example

Augmented Matrix Representing a System of linear Equations

7

3

7

225

1263

320

:

7225

31263

732

:

matrixaugmentedthebydrepresenteIs

zyx

zyx

zy

equationslinearofsystemThe

Page 28: Matrices. Special Matrices Matrix Addition and Subtraction Example

29

)(

3

4

10

01

9

4

20

01

9

5

20

21

6

5

43

21

:

6

5

43

21

:

Re

)1(

221

21

12

R

RR

RR

Solution

operations

rowbasicapplyingbymatrixaugmentedfollowing

theofrihgttheonmatrixtwobytwothetheduce

Example

Page 29: Matrices. Special Matrices Matrix Addition and Subtraction Example

Solving a System of Linear Equations by Reducing its Augmented Matrix

Using Row Operations

Page 30: Matrices. Special Matrices Matrix Addition and Subtraction Example

29

29

&4

:

4

10

01

:

6

5

43

21

:

:

:

643

52

:

)1(

yx

thatconcludeWe

matrixtheatarrivingmatrixthisreduceWe

operations

matrixaugmentedtheconstructWe

Solution

yx

yx

equationslinearofsystemfollowingtheSolve

Example

Page 31: Matrices. Special Matrices Matrix Addition and Subtraction Example

7

3

7

225

1263

320

:

7225

31263

732

:

)2(

matrixaugmenteditsreducingby

zyx

zyx

zy

equationslinearofsystemfollowingtheSolve

Example

Page 32: Matrices. Special Matrices Matrix Addition and Subtraction Example

Solution

2

8

22120

10

701

2

1

22120

10

421

2

7

1

22120

320

421

7

7

1

225

320

421

7

7

3

225

320

1263

7

3

7

225

1263

320

27

23

)2(

27

23

2

1

)5(3

1

212

131

21

RRR

RRR

RR

Page 33: Matrices. Special Matrices Matrix Addition and Subtraction Example

1

2

1

100

010

001

1

1

100

10

001

1

8

100

10

701

40

8

4000

10

701

2

8

22120

10

701

)(

27

23

7

27

23

40

1

27

23

12

27

23

323

2

313

23

RR

RRR

RR

Page 34: Matrices. Special Matrices Matrix Addition and Subtraction Example

Solution of the System

1

2

1

,

1

2

1

100

010

001

z

y

x

Thus

Page 35: Matrices. Special Matrices Matrix Addition and Subtraction Example

The Idea behind the Reduction Method

Page 36: Matrices. Special Matrices Matrix Addition and Subtraction Example

7

3

7

225

1263

320

:matrixaugmentedThe

7225

31263

732

:

zyx

zyx

zy

equationslinearofsystemThe

Page 37: Matrices. Special Matrices Matrix Addition and Subtraction Example

Interchanging the First & the Second Row

7

7

3

225

320

1263

7

3

7

225

1263

32021 RR

7225

732

31263

7225

31263

732

:)2()1(

zyx

zy

zyx

zyx

zyx

zy

EqandEqBetweem

placesthengtIntercangi

Page 38: Matrices. Special Matrices Matrix Addition and Subtraction Example

Multiplying the first Equation by 1/3

7

7

1

225

320

421

7

7

3

225

320

1263

13

1R

7225

732

142

7225

732

31263

zyx

zy

zyx

zyx

zy

zyx

Page 39: Matrices. Special Matrices Matrix Addition and Subtraction Example

Subtracting from the Third Equation 5 times the First Equation

2

7

1

22120

320

421

7

7

1

225

320

421

)5( 13 RR

22212

732

142

7225

732

142

zy

zy

zyx

zyx

zy

zyx

Page 40: Matrices. Special Matrices Matrix Addition and Subtraction Example

Subtracting from the First Equation 2 times the Second Equation

2

8

22120

10

701

2

1

22120

10

421

27

23

)2(

27

23

21 RR

222122

7

2

3

87

222122

7

2

3

142

zy

zy

zx

zy

zy

zyx

Page 41: Matrices. Special Matrices Matrix Addition and Subtraction Example

Adding to the Third Equation 12 times the Second Equation

40

8

4000

10

701

2

8

22120

10

701

27

23

12

27

23

23 RR

40402

7

2

3

87

222122

7

2

3

87

z

zy

zx

zy

zy

zx

Page 42: Matrices. Special Matrices Matrix Addition and Subtraction Example

Dividing the Third Equation by 40

1

8

100

10

701

40

8

4000

10

701

27

23

40

1

27

23

3R

12

7

2

3

87

40402

7

2

3

87

z

zy

zx

z

zy

zx

Page 43: Matrices. Special Matrices Matrix Addition and Subtraction Example

Adding to the First Equation 7 times the third Equation

1

1

100

10

001

1

8

100

10

701

27

23

7

27

23

31 RR

12

7

2

3

1

12

7

2

3

87

z

zy

x

z

zy

zx

Page 44: Matrices. Special Matrices Matrix Addition and Subtraction Example

Subtracting from the Second Equation 3/2 times the third Equation

1

2

1

12

7

2

3

1

z

y

x

z

zy

x

1

2

1

100

010

001

1

1

100

10

001

)(

27

23

323

2 RR