Math21b Review to first midterm Spring 2007 1 Matrices 2 column - - PowerPoint PPT Presentation

math21b review to first midterm spring 2007
SMART_READER_LITE
LIVE PREVIEW

Math21b Review to first midterm Spring 2007 1 Matrices 2 column - - PowerPoint PPT Presentation

Math21b Review to first midterm Spring 2007 1 Matrices 2 column picture x 1 x 2 Ax= v v v m 2 1 x m x 1 x m v v x 1 v + ... + = + m 2 1 3 row picture Ax= Example: A x =0, means x is perpendicular to row space.


slide-1
SLIDE 1

Math21b Review to first midterm Spring 2007

1
slide-2
SLIDE 2

Matrices

2
slide-3
SLIDE 3

column picture

Ax=

x1 x x1

+ =

x1 v

1

v

2

v

m

v

1

v

2 + ... +

x

m v m 2

xm

3
slide-4
SLIDE 4

row picture

Ax=

Example: A x =0, means x is perpendicular to row space. Example: A x =b, means b is the dot product of the k’th row with x.

k

4
slide-5
SLIDE 5

=

matrix multiplication

nxm

mxp

nxp

.

5
slide-6
SLIDE 6

Problem:

Can we multiply a 4 x 5 matrix A with a 5x4 matrix B? Is A B defined?

in other words:

6
slide-7
SLIDE 7

Matrix algebra:

With nxn matrices A,B,C,D,... one can work as with numbers

A+B = B+A a (A+B)=aA + aB A(B+C) = AB + AC A (B C) = (A B) C etc

except for two things in general:

A B = B A A

  • 1
  • 1 -1
  • 1

might not exist even for nonzero A

(A B) = B A

7
slide-8
SLIDE 8

True or False?

(A + B) ( A - B) = A - B

2 2

(1+A+A + A ) = (1-A ) (1-A)

2 3 4

  • 1

assuming (1-A) is invertible 1=In

A,B, arbitrary nxn matrices

8
slide-9
SLIDE 9

Row reduction

9
slide-10
SLIDE 10

Gauss-Jordan elimination

Scale a row Swap two rows Subtract row from

  • ther

row

S S S

10
slide-11
SLIDE 11

First blackboard problem

11
slide-12
SLIDE 12

Row reduce the X matrix

8 8 8 8 8 8 8 8 8

12
slide-13
SLIDE 13

Remember the Boston milkshake scare?

13
slide-14
SLIDE 14 14
slide-15
SLIDE 15

Gotscha!

15
slide-16
SLIDE 16

You can no more escape

16
slide-17
SLIDE 17

Executed with water gun

17
slide-18
SLIDE 18

Warriors with their prey

18
slide-19
SLIDE 19

The milkshake as a matrix

19
slide-20
SLIDE 20

Lets row reduce it!

20
slide-21
SLIDE 21

The rref death of a milkshake

21
slide-22
SLIDE 22

leading 1

22
slide-23
SLIDE 23

There is a kernel!

kernel = nukleus (Lat)

Does this mean, there was a nuklear or even a nukelar device in that milkshake?

23
slide-24
SLIDE 24

lets rowreduce this. just kidding...

24
slide-25
SLIDE 25

Row reduced echelon form

  • 3. Every row above leading row leads to the left
  • 1. Every first nonzero element in a row is 1
  • 2. Leading columns otherwise only contain 0’s

“Leaders like to be first, do not like other leaders in the same column and like leaders above them to be to their left. “

25
slide-26
SLIDE 26

1 1 1 4 2

Row reduced echelon form?

26
slide-27
SLIDE 27

1 1 4 2 6 2 4 2 3

Row reduced echelon form?

27
slide-28
SLIDE 28

1 1 3 4

Row reduced echelon form?

5 1 1 1 5

28
slide-29
SLIDE 29

Inverting a matrix

29
slide-30
SLIDE 30

Second blackboard problem

30
slide-31
SLIDE 31

3 4 3 1 1 1 10

invert the following matrix

31
slide-32
SLIDE 32

3 4 3 1 1 1 10

32
slide-33
SLIDE 33

1 1 1 3 4 3 1 1 1 10

32
slide-34
SLIDE 34

1 1 1 3 4 3 1 1 1 10 1

  • 3

10 2

  • 1

1

  • 3

1 1 1

32
slide-35
SLIDE 35

Which 2x2 matrices are their own inverse?

1 1 1

  • 1
  • 1 0
  • 1
  • 1 0

1

4 examples: are there more?

33
slide-36
SLIDE 36

There are more!

34
slide-37
SLIDE 37

Two hints: think geometrically change basis

35
slide-38
SLIDE 38
  • II. Linear transformations
36
slide-39
SLIDE 39

T(x+y) = T(x) + T(y) T(r x) = r T(x) T(0)=0

T plays well with 0, addition and scalar multiplication:

37
slide-40
SLIDE 40

How do we express T as a matrix?

38
slide-41
SLIDE 41

Key Fact: The columns of A are the images of the basis vectors.

v v v ...

1 2 m

39
slide-42
SLIDE 42

Geometry

v v v ...

1 2 m

Algebra

ei v i

40
slide-43
SLIDE 43

1 1 2 1

Example

What does the following transformation do?

41
slide-44
SLIDE 44

Examples of transformations

42
slide-45
SLIDE 45

rotations

43
slide-46
SLIDE 46 44
slide-47
SLIDE 47

rotation-dilation

45
slide-48
SLIDE 48 46
slide-49
SLIDE 49

shears

47
slide-50
SLIDE 50 48
slide-51
SLIDE 51

projections

49
slide-52
SLIDE 52

Pikaboo, where has Oliver gone?

50
slide-53
SLIDE 53

reflections

51
slide-54
SLIDE 54 52
slide-55
SLIDE 55

dilations

53
slide-56
SLIDE 56 54
slide-57
SLIDE 57

Third blackboard problem

55
slide-58
SLIDE 58

Find the matrix of the transformation in R4 which reflects at the xz plane then reflects at the yz plane.

56
slide-59
SLIDE 59

Quiz coming up!

57
slide-60
SLIDE 60 58
slide-61
SLIDE 61

6 -8 8 6 1

100

What is the length of

59
slide-62
SLIDE 62

The answer is ....

60
slide-63
SLIDE 63

10

100

1 gogool, term coined by Milton Sirotta (1929-1980), nephew of Edward Kasner (1878-1955) 1 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000

61
slide-64
SLIDE 64
  • III. Basis
62
slide-65
SLIDE 65

Linear independence

a v + a v + .... + a v = 0

1 1 2 2 n n

then, a = a = ... = a = 0

1 2 n

if

63
slide-66
SLIDE 66

Spanning

every v in V can be written as a v + a v + .... + a v = v

1 1 2 2 n n

64
slide-67
SLIDE 67

Basis

linear independent and span

65
slide-68
SLIDE 68

Standard basis

66
slide-69
SLIDE 69

Standard basis

1 1 1 1

e1 e2 e3 e4

67
slide-70
SLIDE 70

How do we check to have a basis?

v

1

v2 v3 v 4

68
slide-71
SLIDE 71

Fourth blackboard problem

69
slide-72
SLIDE 72

Is this a basis?

1 1 1 1 1 2 1 1 1 1 3 1 1 1 1 4

v

1

v2 v3 v 4

70
slide-73
SLIDE 73
  • IV. Image and Kernel
71
slide-74
SLIDE 74 72
slide-75
SLIDE 75 72
slide-76
SLIDE 76 72
slide-77
SLIDE 77

Rene Magritte, The son of man: 1963

73
slide-78
SLIDE 78

Oliver Knill Son of a peach, 2007

74
slide-79
SLIDE 79

Oliver Knill Son of a peach, 2007

74
slide-80
SLIDE 80

ker(A) im(A)

im(A) = { Ax | x in V } ker(A) = { x | Ax =0 }

75
slide-81
SLIDE 81

How do we compute a basis for the image and kernel?

row reduce!

76
slide-82
SLIDE 82 77
slide-83
SLIDE 83 78
slide-84
SLIDE 84

Dimension formula

dim(im(A)) + dim(ker(A)) = m

fundamental theorem of linear algebra? rank nulletly theorem rank nullety

79
slide-85
SLIDE 85

Computing the image:

The basis is the set of pivot columns.

Computing the kernel:

The basis is obtained by solving the linear system in row reduced echelon form and taking free variables.

80
slide-86
SLIDE 86

Fifth blackboard problem

81
slide-87
SLIDE 87

Image and kernel of X matrix

1 1 1 1 1 1 1 1 1

82
slide-88
SLIDE 88

XXX (2003) , movie won Taurus award for this stunt. 18 cameras filmed in Auburn CA at 730 feet bridge.

83
slide-89
SLIDE 89
  • IV. Coordinates
84
slide-90
SLIDE 90

[v] = S v

  • 1

B

v coordinates in standard basis

[v] coordinates in basis B

85
slide-91
SLIDE 91

B = S A S

  • 1
86
slide-92
SLIDE 92

Sixth blackboard problem

87
slide-93
SLIDE 93

Problem

1 1 1 1 1 1 1 1 1 1

{ }

, , ,

B=

What are the B coordinates of v =

1 2 3 4

88
slide-94
SLIDE 94

1 1 1 1 1 1 1 1 1 1

S=

1

  • 1

1

  • 1

1

  • 1

1

S=

  • 1
89
slide-95
SLIDE 95

1

  • 1

1

  • 1

1

  • 1

1

Sv=

  • 1

1 2 3 4

=

  • 1
  • 1
  • 1

4

90
slide-96
SLIDE 96
  • V. Linear Spaces
91
slide-97
SLIDE 97

R

n

R

2

R

1

R

92
slide-98
SLIDE 98

From vectors to functions

4 1 3 4 2

10%

30%

40%

20%

1 2 3 4 1 2 3 4

93
slide-99
SLIDE 99

From vectors to functions

1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

94
slide-100
SLIDE 100

polynomials

95
slide-101
SLIDE 101

Basis

P

n

has basis {1,x ,x ,.... x }

n 1 2

and so dim(P ) = n+1

n

Dimension: how many parameters do we need to describe a general object in the space?

96
slide-102
SLIDE 102

What is the dimension of

P

5

X ={f in | f(0)=0 }

97
slide-103
SLIDE 103

soltions to differential solutions to differential equations

X={ f in C (R) | f’’(x)=-f(x)}

Example: 8

Solutions to linear differential equations are linear spaces.

98
slide-104
SLIDE 104

matrices

+

1 2 4 6 1

  • 1

2 1 3 3 8

=

1 2

  • 1

2

  • 3

= -3 -6

3 6

99
slide-105
SLIDE 105

periodic functions

100
slide-106
SLIDE 106

Seventh blackboard problem

101
slide-107
SLIDE 107

Find a basis and dimension of

P

3

X ={f in | f(0)=1 }

102
slide-108
SLIDE 108

P

3

X ={f in | f(0)=1 }

Trap!

This is not a linear space!

103
slide-109
SLIDE 109

Find a basis and dimension of

P

3

X ={f in | f(0)=0 }

104
slide-110
SLIDE 110

The end

105