Lesson02 Vectors And Matrices Slides

65
Lesson 2 Vectors and Matrices Math 20 September 21, 2007 Announcements I Please fill out section questionnaire. I Problem Set 1 is on the course web site. Due September 26. I Office Hours: Mondays 1–2pm, Tuesdays 3–4pm, Wednesdays 1–3pm (SC 323) I Course material on website, Facebook

Transcript of Lesson02 Vectors And Matrices Slides

Page 1: Lesson02   Vectors And Matrices Slides

Lesson 2Vectors and Matrices

Math 20

September 21, 2007

Announcements

I Please fill out section questionnaire.

I Problem Set 1 is on the course web site. Due September 26.

I Office Hours: Mondays 1–2pm, Tuesdays 3–4pm, Wednesdays1–3pm (SC 323)

I Course material on website, Facebook

Page 2: Lesson02   Vectors And Matrices Slides

Vectors

There are some objects which are easily referred to collectively.

Example

The position of me on this floor can be described by two numbers.It might be

v =

(123

),

where each unit is one foot, measured from two perpendicularwalls.

Page 3: Lesson02   Vectors And Matrices Slides

Vectors

There are some objects which are easily referred to collectively.

Example

The position of me on this floor can be described by two numbers.

It might be

v =

(123

),

where each unit is one foot, measured from two perpendicularwalls.

Page 4: Lesson02   Vectors And Matrices Slides

Vectors

There are some objects which are easily referred to collectively.

Example

The position of me on this floor can be described by two numbers.It might be

v =

(123

),

where each unit is one foot, measured from two perpendicularwalls.

Page 5: Lesson02   Vectors And Matrices Slides

Example

Suppose I eat two eggs, three slices of bacon, and two slices oftoast for breakfast.

Then my breakfast can be summarized by theobject

b =

232

.

Page 6: Lesson02   Vectors And Matrices Slides

Example

Suppose I eat two eggs, three slices of bacon, and two slices oftoast for breakfast. Then my breakfast can be summarized by theobject

b =

232

.

Page 7: Lesson02   Vectors And Matrices Slides

Example

Suppose eggs cost $1.39 per dozen, bacon costs $2.49 per pound,and bread costs $1.99 per loaf. Assume a pound of bacon has 16slices, as does a loaf of bread.

Then the price per “unit” ofbreakfast is

p =

1.39/122.49/161.99/16

=

0.120.160.12

Page 8: Lesson02   Vectors And Matrices Slides

Example

Suppose eggs cost $1.39 per dozen, bacon costs $2.49 per pound,and bread costs $1.99 per loaf. Assume a pound of bacon has 16slices, as does a loaf of bread. Then the price per “unit” ofbreakfast is

p =

1.39/122.49/161.99/16

=

0.120.160.12

Page 9: Lesson02   Vectors And Matrices Slides

There is no end to the quantities that can be expressed collectivelylike this:

I stock portfolios

I (and prices)

I weather conditions

I Physical state (position, velocity)

I etc.

Page 10: Lesson02   Vectors And Matrices Slides

Matrices

In other cases numbers naturally line up into arrays. This is oftenthe case when you have two finite sets of objects and there is anumber corresponding to each pair of objects, one from each set.

Page 11: Lesson02   Vectors And Matrices Slides

Example

Pancakes, crepes, and blintzes are three types of flat breakfastconcoctions, but they have different ingredients. The ingredientscan be arranged like this:

Ingredient Pancakes Crepes Blintzes

Flour (cups) 112

12 1

Water (cups) 0 14 0

Milk (cups) 112

12 1

Eggs 2 2 3Oil (Tbsp) 3 2 2

The important information about this table is simply the numbers:

A =

1.5 0.5 10 0.25 0

1.5 0.5 12 2 33 2 2

Page 12: Lesson02   Vectors And Matrices Slides

Example

Pancakes, crepes, and blintzes are three types of flat breakfastconcoctions, but they have different ingredients. The ingredientscan be arranged like this:

Ingredient Pancakes Crepes Blintzes

Flour (cups) 112

12 1

Water (cups) 0 14 0

Milk (cups) 112

12 1

Eggs 2 2 3Oil (Tbsp) 3 2 2

The important information about this table is simply the numbers:

A =

1.5 0.5 10 0.25 0

1.5 0.5 12 2 33 2 2

Page 13: Lesson02   Vectors And Matrices Slides

Example

Here is a floorplan of my apartment:

Hall

Page 14: Lesson02   Vectors And Matrices Slides

The plan can be expressed as a graph with vertices for rooms andedges for doorways or passages between the rooms.

Hall

Kitchen

Laundry

LR

SR

BathMBR

Office BR2

Page 15: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 0

1 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 16: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 0

0 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 17: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 0

0 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 18: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 0

0 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 19: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 0

0 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 20: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 0

0 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 21: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 0

0 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 22: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 1

0 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 23: Lesson02   Vectors And Matrices Slides

Then you can make form a table of incidences:

H

K

L

LR

SR

BatMBR

O BR2

A =

S

R

LR

MB

R

Hal

l

Bat

h

Kit

Lau

nd

ry

Offi

ce

2nd

BR

0 1 0 0 0 0 0 0 01 0 0 1 0 0 0 1 00 0 0 1 0 0 0 0 00 1 1 0 1 1 0 0 00 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 00 1 0 0 0 0 0 0 10 0 0 0 0 0 0 1 0

SRLRMBRHBatKitLOBR2

Page 24: Lesson02   Vectors And Matrices Slides

Definition

We need some names for the things we’re working with:

DefinitionAn m× n matrix is a rectangular array of mn numbers arranged inm horizontal rows and n vertical columns.

A =

a11 a12 · · · a1j · · · a1n

a21 a22 · · · a2j · · · a2n...

.... . .

.... . .

...ai1 ai2 · · · aij · · · ain...

.... . .

.... . .

...am1 am2 · · · amj · · · amn

Page 25: Lesson02   Vectors And Matrices Slides

Definition

We need some names for the things we’re working with:

DefinitionAn m× n matrix is a rectangular array of mn numbers arranged inm horizontal rows and n vertical columns.

A =

a11 a12 · · · a1j · · · a1n

a21 a22 · · · a2j · · · a2n...

.... . .

.... . .

...ai1 ai2 · · · aij · · · ain...

.... . .

.... . .

...am1 am2 · · · amj · · · amn

Page 26: Lesson02   Vectors And Matrices Slides

Rows and Columns

DefinitionThe ith row of A is(

ai1 ai2 · · · aij · · · ain

).

The jth column of A is

a1j

a2j...

aij...

amj

Sometimes, just be succinct, we’ll write

A = (aij)m×n.

Page 27: Lesson02   Vectors And Matrices Slides

Rows and Columns

DefinitionThe ith row of A is(

ai1 ai2 · · · aij · · · ain

).

The jth column of A is

a1j

a2j...

aij...

amj

Sometimes, just be succinct, we’ll write

A = (aij)m×n.

Page 28: Lesson02   Vectors And Matrices Slides

Rows and Columns

DefinitionThe ith row of A is(

ai1 ai2 · · · aij · · · ain

).

The jth column of A is

a1j

a2j...

aij...

amj

Sometimes, just be succinct, we’ll write

A = (aij)m×n.

Page 29: Lesson02   Vectors And Matrices Slides

Dimensions

DefinitionThe dimension of a matrix A is the number of rows × (read “by”)the number of columns.

Example

The matrix in the pancakes-crepes-blintzes example is 5 × 3.

Example

The incidence matrix of my apartment is 9 × 9.

Note: Order is important!

Page 30: Lesson02   Vectors And Matrices Slides

Dimensions

DefinitionThe dimension of a matrix A is the number of rows × (read “by”)the number of columns.

Example

The matrix in the pancakes-crepes-blintzes example is

5 × 3.

Example

The incidence matrix of my apartment is 9 × 9.

Note: Order is important!

Page 31: Lesson02   Vectors And Matrices Slides

Dimensions

DefinitionThe dimension of a matrix A is the number of rows × (read “by”)the number of columns.

Example

The matrix in the pancakes-crepes-blintzes example is 5 × 3.

Example

The incidence matrix of my apartment is 9 × 9.

Note: Order is important!

Page 32: Lesson02   Vectors And Matrices Slides

Dimensions

DefinitionThe dimension of a matrix A is the number of rows × (read “by”)the number of columns.

Example

The matrix in the pancakes-crepes-blintzes example is 5 × 3.

Example

The incidence matrix of my apartment is

9 × 9.

Note: Order is important!

Page 33: Lesson02   Vectors And Matrices Slides

Dimensions

DefinitionThe dimension of a matrix A is the number of rows × (read “by”)the number of columns.

Example

The matrix in the pancakes-crepes-blintzes example is 5 × 3.

Example

The incidence matrix of my apartment is 9 × 9.

Note: Order is important!

Page 34: Lesson02   Vectors And Matrices Slides

Dimensions

DefinitionThe dimension of a matrix A is the number of rows × (read “by”)the number of columns.

Example

The matrix in the pancakes-crepes-blintzes example is 5 × 3.

Example

The incidence matrix of my apartment is 9 × 9.

Note: Order is important!

Page 35: Lesson02   Vectors And Matrices Slides

Vector

DefinitionAn n-vector (or simply vector) is an n × 1 or 1 × n matrix.

Example

We’ve seen many already. For each n there are also two zerovectors

0 =

0...0

or(0 · · · 0

).

In linear algebra we mostly work with column vectors.

Page 36: Lesson02   Vectors And Matrices Slides

Vector

DefinitionAn n-vector (or simply vector) is an n × 1 or 1 × n matrix.

Example

We’ve seen many already. For each n there are also two zerovectors

0 =

0...0

or(0 · · · 0

).

In linear algebra we mostly work with column vectors.

Page 37: Lesson02   Vectors And Matrices Slides

Vector

DefinitionAn n-vector (or simply vector) is an n × 1 or 1 × n matrix.

Example

We’ve seen many already. For each n there are also two zerovectors

0 =

0...0

or(0 · · · 0

).

In linear algebra we mostly work with column vectors.

Page 38: Lesson02   Vectors And Matrices Slides

Algebra of vectors

Example

My wife doesn’t like eggs, so her breakfast may take the form

b′ =

022

.

How can you express my wife’s and my breakfast for one day?

Answer.We just add the components each by each:2 + 0

3 + 22 + 2

=

254

.

Page 39: Lesson02   Vectors And Matrices Slides

Algebra of vectors

Example

My wife doesn’t like eggs, so her breakfast may take the form

b′ =

022

.

How can you express my wife’s and my breakfast for one day?

Answer.We just add the components each by each:2 + 0

3 + 22 + 2

=

254

.

Page 40: Lesson02   Vectors And Matrices Slides

Algebra of vectors: Adding

DefinitionThe sum of two n-vectors is the vector whose ith component isthe sum of the ith component of the first vector and ithcomponent of the second vector.

Looking above, we see my wife’s and my breakfast is measured bythe vector b + b′.

Page 41: Lesson02   Vectors And Matrices Slides

Algebra of vectors: Adding

DefinitionThe sum of two n-vectors is the vector whose ith component isthe sum of the ith component of the first vector and ithcomponent of the second vector.

Looking above, we see my wife’s and my breakfast is measured bythe vector b + b′.

Page 42: Lesson02   Vectors And Matrices Slides

Algebra of vectors

Example

Suppose I eat the same breakfast every day. What vectorrepresents my consumption over a week?

Answer.This vector is 7 · 2

7 · 37 · 2

=

142114

.

DefinitionThe scalar multiple of a vector v by number a (called a scalar) isthe vector whose ith component is a times the ith component of v.

So my weekly breakfast vector is 7b.

Page 43: Lesson02   Vectors And Matrices Slides

Algebra of vectors

Example

Suppose I eat the same breakfast every day. What vectorrepresents my consumption over a week?

Answer.This vector is 7 · 2

7 · 37 · 2

=

142114

.

DefinitionThe scalar multiple of a vector v by number a (called a scalar) isthe vector whose ith component is a times the ith component of v.

So my weekly breakfast vector is 7b.

Page 44: Lesson02   Vectors And Matrices Slides

Algebra of vectors

Example

Suppose I eat the same breakfast every day. What vectorrepresents my consumption over a week?

Answer.This vector is 7 · 2

7 · 37 · 2

=

142114

.

DefinitionThe scalar multiple of a vector v by number a (called a scalar) isthe vector whose ith component is a times the ith component of v.

So my weekly breakfast vector is 7b.

Page 45: Lesson02   Vectors And Matrices Slides

Algebra of vectors

Example

Suppose I eat the same breakfast every day. What vectorrepresents my consumption over a week?

Answer.This vector is 7 · 2

7 · 37 · 2

=

142114

.

DefinitionThe scalar multiple of a vector v by number a (called a scalar) isthe vector whose ith component is a times the ith component of v.

So my weekly breakfast vector is 7b.

Page 46: Lesson02   Vectors And Matrices Slides

Linear algebra of matrices

Matrices can be added and scaled the same way.

Example (1 23 4

)+

(1 −10 2

)=

(2 13 6

)

Example

4

(1 1−1 2

)=

(4 4−4 8

)

Page 47: Lesson02   Vectors And Matrices Slides

Linear algebra of matrices

Matrices can be added and scaled the same way.

Example (1 23 4

)+

(1 −10 2

)=

(2 13 6

)

Example

4

(1 1−1 2

)=

(4 4−4 8

)

Page 48: Lesson02   Vectors And Matrices Slides

Linear algebra of matrices

Matrices can be added and scaled the same way.

Example (1 23 4

)+

(1 −10 2

)=

(2 13 6

)

Example

4

(1 1−1 2

)=

(4 4−4 8

)

Page 49: Lesson02   Vectors And Matrices Slides

Linear algebra of matrices

Matrices can be added and scaled the same way.

Example (1 23 4

)+

(1 −10 2

)=

(2 13 6

)

Example

4

(1 1−1 2

)=

(4 4−4 8

)

Page 50: Lesson02   Vectors And Matrices Slides

Linear algebra of matrices

Matrices can be added and scaled the same way.

Example (1 23 4

)+

(1 −10 2

)=

(2 13 6

)

Example

4

(1 1−1 2

)=

(4 4−4 8

)

Page 51: Lesson02   Vectors And Matrices Slides

The plane

Given a vector

(ab

), we can consider not only the point (a, b) in

the plane, but the arrow that joins the origin to (a, b).

One reason for this arrow concept is that the addition of vectorscorresponds to a head-to-tail concatenation of vectors, ortail-to-tail by the parallelogram law.

Page 52: Lesson02   Vectors And Matrices Slides

The plane

Given a vector

(ab

), we can consider not only the point (a, b) in

the plane, but the arrow that joins the origin to (a, b).One reason for this arrow concept is that the addition of vectorscorresponds to a head-to-tail concatenation of vectors, ortail-to-tail by the parallelogram law.

Page 53: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

wv + w

v

Page 54: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

wv + w

v

Page 55: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

wv + w

v

Page 56: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

wv + w

v

Page 57: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

w

v + wv

Page 58: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

wv + w

v

Page 59: Lesson02   Vectors And Matrices Slides

Example

Let v =

(12

)and w =

(2−1

). Plot v, w, and v + w.

Solution

x

y

v

w

wv + w

v

Page 60: Lesson02   Vectors And Matrices Slides

In three dimensions we have to add a third “direction” to theCartesian plane. It’s typical to pretend it points out the paper orboard, but draw it foreshortened.

Example

Draw the vector

−121

.

Solution

y

z

x

v

Page 61: Lesson02   Vectors And Matrices Slides

In three dimensions we have to add a third “direction” to theCartesian plane. It’s typical to pretend it points out the paper orboard, but draw it foreshortened.

Example

Draw the vector

−121

.

Solution

y

z

x

v

Page 62: Lesson02   Vectors And Matrices Slides

In three dimensions we have to add a third “direction” to theCartesian plane. It’s typical to pretend it points out the paper orboard, but draw it foreshortened.

Example

Draw the vector

−121

.

Solution

y

z

x

v

Page 63: Lesson02   Vectors And Matrices Slides

In three dimensions we have to add a third “direction” to theCartesian plane. It’s typical to pretend it points out the paper orboard, but draw it foreshortened.

Example

Draw the vector

−121

.

Solution

y

z

x

v

Page 64: Lesson02   Vectors And Matrices Slides

In three dimensions we have to add a third “direction” to theCartesian plane. It’s typical to pretend it points out the paper orboard, but draw it foreshortened.

Example

Draw the vector

−121

.

Solution

y

z

x

v

Page 65: Lesson02   Vectors And Matrices Slides

Worksheet

Work in groups of 1–3.