14
3.III.1. Representing Linear Maps with Matrices 3.III.2. Any Matrix Represents a Linear Map 3.III. Computing Linear Maps

3.III. Computing Linear Maps

Embed Size (px)

DESCRIPTION

3.III. Computing Linear Maps. 3.III.1. Representing Linear Maps with Matrices 3.III.2. Any Matrix Represents a Linear Map. 3.III.1. Representing Linear Maps with Matrices. A linear map is determined by its action on a basis. Example 1.1 :. h : R 2 → R 3 by. Let. →. →. →. →. - PowerPoint PPT Presentation

Citation preview

Page 1: 3.III.  Computing Linear Maps

3.III.1. Representing Linear Maps with Matrices3.III.2. Any Matrix Represents a Linear Map

3.III. Computing Linear Maps

Page 2: 3.III.  Computing Linear Maps

3.III.1. Representing Linear Maps with Matrices

A linear map is determined by its action on a basis.

Example 1.1:

Let 1 2

2 1, ,

0 4

β βB 1 2 3

1 0 1, , 0 , 2 , 0

0 0 1

δ δ δD

12

10

1

1

12

40

h: 2 → 3 by

1 1 0 11 0 2 01 0 0 1

a b c

012

1

abc

→ 1

012

1

h

β

D

1 1 0 12 0 2 00 0 0 1

a b c

→11

0

abc

→ 2

11

0h

β

D

Page 3: 3.III.  Computing Linear Maps

Given 1 21 1 2 2

2

cc c

c

v β βB

R

1

2

ch h

c

vB

1 2

0 11 12

01

c c

D

D

2

1 2

1

12

c

c c

c

D

1 1 2 2c h c h β β

E.g.

4 18 2

B

4 18 2

h h

B

252

1

D

0 111 2 12

01

D

D

Matrix notation:

1 1 2 2h c h c h v β βD D1

2

0 11 12

1 0

cc

B 1

1 22

ch h

c

β βD DB

, 1 2Rep h h h h β βB D B D D D

Page 4: 3.III.  Computing Linear Maps

Definition 1.2: Matrix Representation Let V and W be vector spaces of dimensions n and m with bases and . The matrix representation of linear map h: V → W w.r.t. and is an mn matrix

, 1Rep nh h h h β βB D B D D D 1k

k

mk

hh

h

β D

D

where

Example 1.3:

h: 3 → 1 by 1

2 1 2 3

3

2aa a a a xa

1 2 3

0 0 2, , 0 , 2 , 0

1 0 0

β β βBLet 1 , 1x x D

1h xβ 2 2h β

3 4h β

1212

D

11

D

22

D

1 1 221 1 22

h

B D

B D

Page 5: 3.III.  Computing Linear Maps

Theorem 1.4: Matrix Representation Let H = ( hi j ) be the matrix rep of linear map h: V n → W m w.r.t. bases and .

Then

h v H vB BD

11

1

n

k kk

n

mk kk

h c

h c

D

Proof: Straightforward (see Hefferon, p.198 )

where1

n

c

c

vB

B

Definition 1.5: Matrix-Vector ProductThe matrix-vector product of a mn matrix and a n1 vector is

1111 1 1

1

1

n

k kkn

nm mn n

mk kk

a ca a c

a a ca c

1

m

ρ c

ρ c

1

n

k kk

c

χ

Page 6: 3.III.  Computing Linear Maps

Example 1.6: (Ex1.3) h: 3 → 1 by 1

2 1 2 3

3

2aa a a a xa

1 2 3

0 0 2, , 0 , 2 , 0

1 0 0

β β βB

1 , 1x x D

1 1 221 1 22

h

B D

B D

Task: Calculate where h sends410

v

0122

vB

B

h h v vB B D BD

1 01 22 1/ 21 1 2 22

BB D

1 421 42

D

9292

D

or

9 91 12 2

x x 9

Page 7: 3.III.  Computing Linear Maps

Example 1.7:Let π: 3 → 2 be the projection onto the xy-plane.

And1 1 10 , 1 , 00 0 1

B2 1

,1 1

D

→ 1 1 1, ,

0 1 0

B 1 0 1

, ,1 1 1

D D D

Illustrating Theorem 1.4 using

1 0 11 1 1

B DB D

22

v

121

v

B

1

1 0 12

1 1 11

vB DB D

B

221

v

02

D

22

2

1 0 02

0 1 01

v 22

→1 0 00 1 0

3

1 0 0, ,

0 1 0

E

Page 8: 3.III.  Computing Linear Maps

Example 1.8: RotationLet tθ : 2 → 2 be the rotation by angle θ in the xy-plane.

2

1 0,

0 1t t

E cos sin,

sin cos

cos sinsin cos

t

E.g. / 6

3 13 32 22 21 3

2 2

t

3.5980.232

Example 1.10: Matrix-vector product as column sum2

1 0 1 1 0 11 2 1 1

2 0 3 2 0 31

17

Page 9: 3.III.  Computing Linear Maps

Exercise 3.III.1.

Using the standard bases, find(a) the matrix representing this map;(b) a general formula for h(v).

1. Assume that h: 2 → 3 is determined by this action.

21

20

0

0

01

11

2. Let d/dx: 3 → 3 be the derivative transformation.(a) Represent d/dx with respect to , where = 1, x, x2, x3 .(b) Represent d/dx with respect to , where = 1, 2x, 3x2, 4x3 .

Page 10: 3.III.  Computing Linear Maps

3.III.2. Any Matrix Represents a Linear Map

Theorem 2.1:Every matrix represents a homomorphism between vector spaces, of appropriate dimensions, with respect to any pair of bases.

Proof by construction:

Given an mn matrix H = ( hi j ), one can construct a homomorphism

h: V n → W m by v h(v ) with h(v ) = H · v where and are any bases for V and W, resp.v is an n1 column vector representing vV w.r.t. .

Page 11: 3.III.  Computing Linear Maps

Example 2.2: Which map the matrix represents depends on which bases are used.

Let 1 00 0

H 1 1

1 0,

0 1

B D 2 2

0 1,

1 0

B D

Then h1: 2 → 2 as represented by H w.r.t. 1 and 1 gives

1

1 1

2 2

c cc c

B

1

0c

While h2: 2 → 2 as represented by H w.r.t. 2 and 2 gives

1 1 1

1

2

1 00 0

cc

B D B

1

1

0c

D

2

1 2

2 1

c cc c

B 2

0c

2 2 2

2

1

1 00 0

cc

B D B

2

2

0c

D

Convention:

An mn matrix with no spaces or bases specified will be assumed to represent

h: V n → W m w.r.t. the standard bases.

In which case, column space of H = (h).

Page 12: 3.III.  Computing Linear Maps

Theorem 2.3:rank H = rank h

Proof: (See Hefferon, p.207.)

For each set of bases for h: V n → W m , Isomorphism: W m → m.

∴ dim columnSpace = dim rangeSpace

Example 2.4: Any map represented by

1 2 21 2 10 0 30 0 2

H must be of type h: V 3 → W 4

rank H = 2 → dim (h) = 2

Corollary 2.5: Let h be a linear map represented by an mn matrix H. Then

h is onto rank H = m h is 1-1 rank H = n

Page 13: 3.III.  Computing Linear Maps

Corollary 2.6:A square matrix represents nonsingular maps iff it is a nonsingular matrix.A matrix represents an isomorphism iff it is square and nonsingular.

Example 2.7:Any map from 2 to 1 represented w.r.t. any pair of bases by

1 20 3

H

is nonsingular because rank H = 2.

Example 2.8:Any map represented by 1 2

3 6

H is singular because H is singular.

Page 14: 3.III.  Computing Linear Maps

Exercise 3.III.2.

1. Decide if each vector lies in the range of the map from 3 to 2 represented with respect to the standard bases by the matrix.

1 1 2 1,

0 1 4 3

(a)

2 0 3 1,

4 0 6 1

(b)

2. Describe geometrically the action on 2 of the map represented with respect to the standard bases 2 , 2 by this matrix.

3 00 2

Do the same for these:

1 00 0

0 11 0

1 30 1