Linear algebra and differential equations (Math 54): Lecture 11 - - PowerPoint PPT Presentation

linear algebra and differential equations math 54 lecture
SMART_READER_LITE
LIVE PREVIEW

Linear algebra and differential equations (Math 54): Lecture 11 - - PowerPoint PPT Presentation

Linear algebra and differential equations (Math 54): Lecture 11 Vivek Shende February 28, 2019 Hello and welcome to class! Hello and welcome to class! Today We talk about coordinates and change of basis. Review: Spanning sets Given a vector


slide-1
SLIDE 1

Linear algebra and differential equations (Math 54): Lecture 11

Vivek Shende February 28, 2019

slide-2
SLIDE 2

Hello and welcome to class!

slide-3
SLIDE 3

Hello and welcome to class!

Today

We talk about coordinates and change of basis.

slide-4
SLIDE 4

Review: Spanning sets

Given a vector space V , find a collection of vectors v1, v2, . . . such that every element of V is a linear combination of the vi. In other words, find a collection of vectors which span V . Such a collection is called a spanning set.

slide-5
SLIDE 5

Review: Linear indepedendence

Definition

Vectors {v1, v2, . . .} in a vector space V are linearly indepedendent if none is a linear combination of the others. Equivalently, if, whenever

i civi = 0 for some constants ci ∈ R,

all the ci must be zero.

slide-6
SLIDE 6

Review: Bases

Definition

A subset {v1, v2, . . .} of a vector space V is a basis for V if it is linearly independent and spans V Another way to write the definition: a subset {v1, v2, . . .} of a vector space V is a basis for V if there’s one (spanning) and only

  • ne (linear independence) way to write any element v ∈ V as a

linear combination of the vi.

slide-7
SLIDE 7

Review: Bases

Example

e1 = (1, 0, 0), e2 = (0, 1, 0), e3 = (0, 0, 1) is a basis for R3

Example

{1, x, x2} is a basis for polynomials of degree at most 2 (aka P2)

slide-8
SLIDE 8

Review: Linear transformations

Definition

If V and W are vector spaces, a function T : V → W is said to be a linear transformation if T(cv + c′v′) = cT(v) + c′T(v′) for all c, c′ in R and all v, v′ in V .

slide-9
SLIDE 9

Review: one-to-one and onto

A function f : X → Y is said to be:

◮ onto if every element of Y is f of ≥ 1 element of X. ◮ one-to-one if every element of Y is f of ≤ 1 element of X.

For a linear transformation T : Rm → Rn, we know that it is

  • ne-to-one if and only if the columns of the associated matrix are

linearly independent, and onto if and only if the columns of the associated matrix span the codomain.

slide-10
SLIDE 10

Review: the identity function

For a set X, there’s a function from X to itself which does nothing. idX : X → X x → x When X is a vector space, idX is a linear transformation. When X = Rn, the matrix of idX is the identity matrix.

slide-11
SLIDE 11

Review: Invertibility

A function f : X → Y is invertible if there’s some g : Y → X with g ◦ f = idX f ◦ g = idY When X, Y are vector spaces and f , g are linear, the matrices of f and g are inverses; i.e., they multiply to the identity. As with matrices, if f has an inverse, it’s unique. We write it f −1.

slide-12
SLIDE 12

Review: Isomorphism

Invertible linear transformations are also called isomorphisms. If there’s an isomorphism f : V → W , we say V and W are isomorphic vector spaces. Isomorphic vector spaces look the same to linear algebra. More precisely, any question which can be asked just in terms of

  • perations which make sense in any vector space must have the

same answer in both. You use the isomorphism f to translate back and forth.

slide-13
SLIDE 13

Review: Invertibility and bases

For a linear transformation T : V → W , these are equivalent:

◮ T is one-to-one and onto ◮ T is invertible (its inverse is linear) ◮ T takes some basis of V to a basis of W . ◮ T takes any basis of V to a basis of W .

slide-14
SLIDE 14

Bases, coordinates, parameterizations

Given a vector space V and a basis {vi} of V ,

slide-15
SLIDE 15

Bases, coordinates, parameterizations

Given a vector space V and a basis {vi} of V , and a vector space W and any elements {wi} of W

slide-16
SLIDE 16

Bases, coordinates, parameterizations

Given a vector space V and a basis {vi} of V , and a vector space W and any elements {wi} of W there’s a unique linear transformation T : V → W vi → wi

  • aivi

  • aiwi
slide-17
SLIDE 17

Bases, coordinates, parameterizations

Given a vector space V and a basis {vi} of V , and a vector space W and any elements {wi} of W there’s a unique linear transformation T : V → W vi → wi

  • aivi

  • aiwi
slide-18
SLIDE 18

Bases, coordinates, parameterizations

For any elements {wi} of W , there’s a linear transformation

slide-19
SLIDE 19

Bases, coordinates, parameterizations

For any elements {wi} of W , there’s a linear transformation T : Rn → W ei → wi (a1, a2, . . . , an) →

  • aiwi
slide-20
SLIDE 20

Bases, coordinates, parameterizations

For any elements {wi} of W , there’s a linear transformation T : Rn → W ei → wi (a1, a2, . . . , an) →

  • aiwi

If the wi form a basis, then the above map is an isomorphism.

slide-21
SLIDE 21

Bases, coordinates, parameterizations

For any elements {wi} of W , there’s a linear transformation T : Rn → W ei → wi (a1, a2, . . . , an) →

  • aiwi

If the wi form a basis, then the above map is an isomorphism. This is called a parameterization of W .

slide-22
SLIDE 22

Bases, coordinates, parameterizations

For any elements {wi} of W , there’s a linear transformation T : Rn → W ei → wi (a1, a2, . . . , an) →

  • aiwi

If the wi form a basis, then the above map is an isomorphism. This is called a parameterization of W . Its inverse map W → Rn is called a choice of coordinates on W .

slide-23
SLIDE 23

Example

The elements {1, x, . . . , xn} give a basis of Pn.

slide-24
SLIDE 24

Example

The elements {1, x, . . . , xn} give a basis of Pn. So Pn is isomorphic to Rn+1.

slide-25
SLIDE 25

Bases, coordinates, parameterizations

A basis B = {v1, . . . , vn} of a vector space V determines a choice

  • f coordinates V

− → Rn.

slide-26
SLIDE 26

Bases, coordinates, parameterizations

A basis B = {v1, . . . , vn} of a vector space V determines a choice

  • f coordinates V

− → Rn. For v ∈ V , we write [v]B for the image of v under this map.

slide-27
SLIDE 27

Bases, coordinates, parameterizations

A basis B = {v1, . . . , vn} of a vector space V determines a choice

  • f coordinates V

− → Rn. For v ∈ V , we write [v]B for the image of v under this map. In other words, uniquely expanding v = βivi, we have [v]B = [β1, β2, . . . , βn]

slide-28
SLIDE 28

Example

Consider the basis B = {1, x + 1, x2 + 2x + 1} of P2. Determine [4x2 + 3x + 2]B.

slide-29
SLIDE 29

Example

Consider the basis B = {1, x + 1, x2 + 2x + 1} of P2. Determine [4x2 + 3x + 2]B. We are supposed to find c1, c2, c3 such that c1 · 1 + c2(x + 1) + c3(x2 + 2x + 1) = 4x2 + 3x + 2

slide-30
SLIDE 30

Example

Consider the basis B = {1, x + 1, x2 + 2x + 1} of P2. Determine [4x2 + 3x + 2]B. We are supposed to find c1, c2, c3 such that c1 · 1 + c2(x + 1) + c3(x2 + 2x + 1) = 4x2 + 3x + 2 This gives a system of linear equations c1 + c2 + c3 = 2 c2 + 2c3 = 3 c3 = 4

slide-31
SLIDE 31

Example

Consider the basis B = {1, x + 1, x2 + 2x + 1} of P2. Determine [4x2 + 3x + 2]B. We are supposed to find c1, c2, c3 such that c1 · 1 + c2(x + 1) + c3(x2 + 2x + 1) = 4x2 + 3x + 2 This gives a system of linear equations c1 + c2 + c3 = 2 c2 + 2c3 = 3 c3 = 4 We solve to find [4x2 + 3x + 2]B = [3, −5, 4].

slide-32
SLIDE 32

Change of basis

A basis allows you to treat an arbitrary (finite dimensional) vector space V as if it were just Rn.

slide-33
SLIDE 33

Change of basis

A basis allows you to treat an arbitrary (finite dimensional) vector space V as if it were just Rn. Depending on the problem, one choice of basis may be more convenient than another.

slide-34
SLIDE 34

Change of basis

A basis allows you to treat an arbitrary (finite dimensional) vector space V as if it were just Rn. Depending on the problem, one choice of basis may be more convenient than another. We want to be able to “change bases” at will.

slide-35
SLIDE 35

Change of basis

A basis allows you to treat an arbitrary (finite dimensional) vector space V as if it were just Rn. Depending on the problem, one choice of basis may be more convenient than another. We want to be able to “change bases” at will. That is, given bases B and C of V ,

slide-36
SLIDE 36

Change of basis

A basis allows you to treat an arbitrary (finite dimensional) vector space V as if it were just Rn. Depending on the problem, one choice of basis may be more convenient than another. We want to be able to “change bases” at will. That is, given bases B and C of V , and given an expression [v]B in

  • ne of them,
slide-37
SLIDE 37

Change of basis

A basis allows you to treat an arbitrary (finite dimensional) vector space V as if it were just Rn. Depending on the problem, one choice of basis may be more convenient than another. We want to be able to “change bases” at will. That is, given bases B and C of V , and given an expression [v]B in

  • ne of them, we would like to find the expression [v]C in the other.
slide-38
SLIDE 38

Change of basis

We are looking for the transformation

P

C←B such that

P

C←B [v]B = [v]C

slide-39
SLIDE 39

Change of basis

We are looking for the transformation

P

C←B such that

P

C←B [v]B = [v]C

In other words,

P

C←B completes the triangle of isomorphisms:

V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

slide-40
SLIDE 40

Change of basis

P

C←B [v]B = [v]C

slide-41
SLIDE 41

Change of basis

P

C←B [v]B = [v]C

Since it’s a map from Rn → Rn, we can describe

P

C←B by a matrix.

slide-42
SLIDE 42

Change of basis

P

C←B [v]B = [v]C

Since it’s a map from Rn → Rn, we can describe

P

C←B by a matrix.

To figure out which matrix,

slide-43
SLIDE 43

Change of basis

P

C←B [v]B = [v]C

Since it’s a map from Rn → Rn, we can describe

P

C←B by a matrix.

To figure out which matrix, we should see where

P

C←B sends the ei.

slide-44
SLIDE 44

Change of basis

Say B = {b1, . . . , bn} and C = {c1, . . . , cn}.

slide-45
SLIDE 45

Change of basis

Say B = {b1, . . . , bn} and C = {c1, . . . , cn}. V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

slide-46
SLIDE 46

Change of basis

Say B = {b1, . . . , bn} and C = {c1, . . . , cn}. V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

bi [bi]C ✛

P

C←B

[ ]

C

ei [ ]

B

slide-47
SLIDE 47

Change of basis

Say B = {b1, . . . , bn} and C = {c1, . . . , cn}. V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

bi [bi]C ✛

P

C←B

[ ]

C

ei [ ]

B

Thus

P

C←B(ei) = [bi]C.

slide-48
SLIDE 48

Change of basis

Say B = {b1, . . . , bn} and C = {c1, . . . , cn}. V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

bi [bi]C ✛

P

C←B

[ ]

C

ei [ ]

B

Thus

P

C←B(ei) = [bi]C.

In other words, the i’th column of the matrix of

P

C←B is [bi]C.

slide-49
SLIDE 49

Example

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2.

slide-50
SLIDE 50

Example

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. Write the change of basis matrix

P

B←C

slide-51
SLIDE 51

Example

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. Write the change of basis matrix

P

B←C

The columns of

P

B←C are [1]B, [x + 1]B, [x2 + 2x + 1]B,

slide-52
SLIDE 52

Example

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. Write the change of basis matrix

P

B←C

The columns of

P

B←C are [1]B, [x + 1]B, [x2 + 2x + 1]B, so

P

B←C =

  1 1 1 1 2 1  

slide-53
SLIDE 53

Try it yourself!

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. Write the change of basis matrix

P

C←B

slide-54
SLIDE 54

Try it yourself!

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. Write the change of basis matrix

P

C←B

The columns of

P

C←B are [1]C, [x]C, [x2]C,

slide-55
SLIDE 55

Try it yourself!

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. Write the change of basis matrix

P

C←B

The columns of

P

C←B are [1]C, [x]C, [x2]C, these work out to give

P

C←B =

  1 −1 1 1 −2 1  

slide-56
SLIDE 56

Example

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. We saw

P

B←C =

  1 1 1 1 2 1   ,

P

C←B =

  1 −1 1 1 −2 1  

slide-57
SLIDE 57

Example

B = {1, x, x2} and C = {1, x + 1, x2 + 2x + 1} are bases of P2. We saw

P

B←C =

  1 1 1 1 2 1   ,

P

C←B =

  1 −1 1 1 −2 1   Try multiplying these.

slide-58
SLIDE 58

Change of basis

Changing back happens by the inverse:

slide-59
SLIDE 59

Change of basis

Changing back happens by the inverse: V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

slide-60
SLIDE 60

Change of basis

Changing back happens by the inverse: V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

V Rn

P

B←C

✲ ✛

[ ]

C

Rn [ ]

B

slide-61
SLIDE 61

Change of basis

Changing back happens by the inverse: V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

V Rn

P

B←C

✲ ✛

[ ]

C

Rn [ ]

B

Said differently,

P

C←B ·

P

B←C = Identity,

slide-62
SLIDE 62

Change of basis

Changing back happens by the inverse: V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

V Rn

P

B←C

✲ ✛

[ ]

C

Rn [ ]

B

Said differently,

P

C←B ·

P

B←C = Identity, since this changes basis and

then changes it back.

slide-63
SLIDE 63

Change of basis

Changing back happens by the inverse: V Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

V Rn

P

B←C

✲ ✛

[ ]

C

Rn [ ]

B

Said differently,

P

C←B ·

P

B←C = Identity, since this changes basis and

then changes it back. So, ( P

C←B)−1 =

P

B←C

slide-64
SLIDE 64

Change of basis in Rn

slide-65
SLIDE 65

Change of basis in Rn

Consider now the special case V = Rn.

slide-66
SLIDE 66

Change of basis in Rn

Consider now the special case V = Rn. Rn Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

slide-67
SLIDE 67

Change of basis in Rn

Consider now the special case V = Rn. Rn Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

Now the maps [ ]B and [ ]C are themselves being change of bases,

slide-68
SLIDE 68

Change of basis in Rn

Consider now the special case V = Rn. Rn Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

Now the maps [ ]B and [ ]C are themselves being change of bases, from the standard basis to B or C, respectively.

slide-69
SLIDE 69

Change of basis in Rn

Consider now the special case V = Rn. Rn Rn ✛

P

C←B

[ ]

C

Rn [ ]

B

Now the maps [ ]B and [ ]C are themselves being change of bases, from the standard basis to B or C, respectively. Writing std for the standard basis, we have [ ]B =

P

B←std

[ ]C =

P

C←std

slide-70
SLIDE 70

Change of basis in Rn

[ ]B =

P

B←std

[ ]C =

P

C←std

It is easy to write a formula for

P

std←B:

slide-71
SLIDE 71

Change of basis in Rn

[ ]B =

P

B←std

[ ]C =

P

C←std

It is easy to write a formula for

P

std←B: since [v]std = v,

slide-72
SLIDE 72

Change of basis in Rn

[ ]B =

P

B←std

[ ]C =

P

C←std

It is easy to write a formula for

P

std←B: since [v]std = v, the matrix

for

P

std←B is [b1, b2, · · · , bn].

slide-73
SLIDE 73

Change of basis in Rn

[ ]B =

P

B←std

[ ]C =

P

C←std

It is easy to write a formula for

P

std←B: since [v]std = v, the matrix

for

P

std←B is [b1, b2, · · · , bn]. Thus:

[ ]B =

P

B←std = [b1, b2, · · · , bn]−1

[ ]C =

P

C←std = [c1, c2, · · · , cn]−1

slide-74
SLIDE 74

Change of basis in Rn

[ ]B =

P

B←std

[ ]C =

P

C←std

It is easy to write a formula for

P

std←B: since [v]std = v, the matrix

for

P

std←B is [b1, b2, · · · , bn]. Thus:

[ ]B =

P

B←std = [b1, b2, · · · , bn]−1

[ ]C =

P

C←std = [c1, c2, · · · , cn]−1

Finally we can compose these to find

P

C←B =

P

C←std ·

P

std←B = [c1, c2, · · · , cn]−1[b1, b2, · · · , bn]

P

B←C =

P

B←std ·

P

std←C = [b1, b2, · · · , bn]−1[c1, c2, · · · , cn]

slide-75
SLIDE 75

Example

Determine the change of basis matrix

P

C←B from the basis

B = {(1, 2), (3, 4)} to the basis {(3, 4), (5, 7)}.

slide-76
SLIDE 76

Example

Determine the change of basis matrix

P

C←B from the basis

B = {(1, 2), (3, 4)} to the basis {(3, 4), (5, 7)}. We just saw the formula

P

C←B =

P

C←std ·

P

std←B = [c1, c2, · · · , cn]−1[b1, b2, · · · , bn]

slide-77
SLIDE 77

Example

Determine the change of basis matrix

P

C←B from the basis

B = {(1, 2), (3, 4)} to the basis {(3, 4), (5, 7)}. We just saw the formula

P

C←B =

P

C←std ·

P

std←B = [c1, c2, · · · , cn]−1[b1, b2, · · · , bn]

In this case, that’s 3 5 4 7 −1 1 3 2 4

  • =
  • 7

−5 −4 3 1 3 2 4

  • =

−3 1 2

slide-78
SLIDE 78

The matrix of a linear transformation

If B is a basis in V and C is a basis in W ,

slide-79
SLIDE 79

The matrix of a linear transformation

If B is a basis in V and C is a basis in W , a linear transformation T : V → W is written in coordinates by the matrix C[T]B which completes the square W ✛ T V Rdim W [ ]C

❄ ✛

C[T]B Rdim V

[ ]B

slide-80
SLIDE 80

The matrix of a linear transformation

If B is a basis in V and C is a basis in W , a linear transformation T : V → W is written in coordinates by the matrix C[T]B which completes the square W ✛ T V Rdim W [ ]C

❄ ✛

C[T]B Rdim V

[ ]B

For a new choice of basis B′ of V and C′ of W , we have

C′[T]B′ = P

C′←C C[T]B

P

B←B′

slide-81
SLIDE 81

The matrix of a linear transformation

In the special case when V = W and B = C, we write just [T]B. V ✛ T V Rdim V [ ]B

❄ ✛

[T]B Rdim V [ ]B

slide-82
SLIDE 82

The matrix of a linear transformation

In the special case when V = W and B = C, we write just [T]B. V ✛ T V Rdim V [ ]B

❄ ✛

[T]B Rdim V [ ]B

For a new choice of basis B′ of V , we have [T]B′ =

P

B′←B [T]B

P

B←B′=

  • P

B←B′

−1 [T]B

P

B←B′

slide-83
SLIDE 83

Change of basis and conjugation

Finally, if V = Rn, Rn ✛ T Rn Rdim V [ ]B

❄ ✛

[T]B Rdim V [ ]B

slide-84
SLIDE 84

Change of basis and conjugation

Finally, if V = Rn, Rn ✛ T Rn Rdim V [ ]B

❄ ✛

[T]B Rdim V [ ]B

we recall that [v]B = [b1, . . . , bn]−1 · v

slide-85
SLIDE 85

Change of basis and conjugation

Finally, if V = Rn, Rn ✛ T Rn Rdim V [ ]B

❄ ✛

[T]B Rdim V [ ]B

we recall that [v]B = [b1, . . . , bn]−1 · v so [T]B = [b1, . . . , bn]−1 · T · [b1, . . . , bn]