the dot product the cross product - doc benton 2016/math240-27763/ppt/vectorproduct… · what does...

59
The Dot Product & The Cross Product

Upload: others

Post on 11-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The Dot Product&

The Cross Product

Page 2: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

Mathematicians are often a little weird.

Page 3: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

They are frequently obsessive-compulsive.

Page 4: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

Give them a new toy, and they immediatelywant to do arithmetic with it.

Page 5: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

At one point, their new toy was “vectors.”

Page 6: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

We’ve seen how to add and subtract vectors, …

Page 7: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

But how do you multiply vectors?

Page 8: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

In 1773, Joseph Lagrange was working on a problem involving tetrahedrons, and he came up with two ways to multiply vectors.

Page 9: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

Today, we call these two methods the “dot product”and the “cross product.”

Page 10: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

And as with many ideas in mathematics, over time they underwent both evolution and mutation.

Page 11: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

And as with many ideas in mathematics, over time they underwent both evolution and mutation.

Ideas are also subject to the doctrine of survival of the fittest.

Page 12: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The end result was two ways of multiplying vectors that are:

Page 13: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The end result, though, was two ways of multiplying vectors that are:

a.Extremely useful, and

Page 14: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The end result, though, was two ways of multiplying vectors that are:

a.Extremely useful, and

b.Rather bizarre in appearance.

Page 15: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The Dot Product

Page 16: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

We’ll define the dot product as follows:

1 2 3 1 2 3ˆ ˆˆ ˆ ˆ ˆ ,

cos , .

If a a i a j a k and b b i b j b k

thena b a b where is theanglebetweenthevectorsθ θ

= + + = + +

⋅ =

θ a

b

Page 17: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

What does this definition mean?

cosa b a b θ⋅ =

θ

b

acosb θ

Page 18: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

What does this definition mean?

cosa b a b θ⋅ =

θ

We can think of the dot product as the length ofvector a times the length of the component of vector b that is parallel to vector a.

b

acosb θ

Page 19: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

cosa b a b θ⋅ =

θ

Alternatively, we could think of it as the length ofvector b times the length of the component of vector a that is parallel to vector b.

b

acosb θ

Page 20: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

cosa b a b θ⋅ =

θ

Alternatively, we could think of it as the length ofvector b times the length of the component of vector a that is parallel to vector b.

The result is the same either way.

b

acosb θ

Page 21: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

cosa b a b θ⋅ =

θ

The dot product gives us a way of multiplying twovectors such that the result is a number (or scalar),not another vector.

b

acosb θ

Page 22: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

cosa b a b θ⋅ =

θ

The problem, though, is that we need to know theangle between the vectors in order to accomplishthis.

b

acosb θ

Page 23: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

cosa b a b θ⋅ =

θ

The problem, though, is that we need to know theAngle between the vectors in order to accomplishThis.And this is something we often don’t know.

b

acosb θ

Page 24: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

cosa b a b θ⋅ =

θ

Fortunately, however, we have a theorem to help us.

b

acosb θ

Page 25: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

[ ]1

1 1 2 2 3 3 1 2 3 2

3

: cosb

Theorem a b a b a b a b a b a a a bb

θ⎡ ⎤⎢ ⎥⋅ = = + + = ⎢ ⎥⎢ ⎥⎣ ⎦

θ

cosa b a b θ⋅ =

b

acosb θ

Page 26: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

[ ]1

1 1 2 2 3 3 1 2 3 2

3

: cosb

Theorem a b a b a b a b a b a a a bb

θ⎡ ⎤⎢ ⎥⋅ = = + + = ⎢ ⎥⎢ ⎥⎣ ⎦

θ

b

a

a b−

2 22 2 cos .a b a b a b θ− = + −

Proof: By the law of cosines,

Page 27: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θ

b

a

a b−

2 2 21 1 2 2 3 3( ) ( ) ( )a b a b a b− + − + −

But this implies that,

2 2 2 2 2 21 2 3 1 2 3 2 cos .a a a b b b a b θ= + + + + + −

Page 28: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θ

b

a

a b−

2 2 2 2 2 21 1 1 1 2 2 2 2 3 3 3 32 2 2a a b b a a b b a a b b− + + − + + − +

Expanding the left side of the equation yields,

2 2 2 2 2 21 2 3 1 2 3 2 cos .a a a b b b a b θ= + + + + + −

Page 29: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θ

b

a

a b−

1 1 2 2 3 32 2 2 2 cos .a b a b a b a b θ− − − = −

Next, subtracting like terms from each side gives,

Page 30: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θ

b

a

a b−

1 1 2 2 3 3 cos .a b a b a b a b a bθ+ + = = ⋅

And finally, we divide each side by -2.

Page 31: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θ

b

a

a b−

1 1 2 2 3 3 cos .a b a b a ba ba b a b

θ+ +⋅

= =

As a corollary, we get the following formula for findingthe angle between two vectors.

0 θ π≤ ≤

Page 32: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θ

b

a

a b−

EXAMPLE:

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −

(2)( 1) (3)(2) (4)( 2) 4a b⋅ = − + + − = −

14 4 4cos cos 104.34 9 16 1 4 4 3 29 3 29

a ba b

θ θ − ⎛ ⎞⋅ − − −= = = ⇒ = ≈ °⎜ ⎟+ + + + ⎝ ⎠

Page 33: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

A fairly immediate and important consequence of what we’ve seen is the following:

cos 0 90 0 0.a b a b if and only if or a or bθ θ⋅ = = = ° = =

Page 34: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

A fairly immediate and important consequence of what we’ve seen is the following:

cos 0 90 0 0.a b a b if and only if or a or bθ θ⋅ = = = ° = =

In other words, we can determine if two vectors areperpendicular or not simply by looking to see if the dotproduct is zero. Furthermore, the zero vector is consideredperpendicular to all vectors.

Page 35: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

A fairly immediate and important consequence of what we’ve seen is the following:

cos 0 90 0 0.a b a b if and only if or a or bθ θ⋅ = = = ° = =

In other words, we can determine if two vectors areperpendicular or not simply by looking to see if the dotproduct is zero. Furthermore, the zero vector is consideredperpendicular to all vectors.

As a final note, the dot product is also known as the“scalar product.”

Page 36: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The Cross Product

Page 37: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product of two vectors is defined asfollows:

1 2 3 1 2 3

2 3 1 3 1 21 2 3

2 3 1 3 1 21 2 3

2 3 3 2 1 3 3 1 1 2 2 1

ˆ ˆˆ ˆ ˆ ˆ ,

ˆˆ ˆˆˆ ˆ

ˆˆ ˆ( . ) ( . ) ( . ) .

If a a i a j a k and b b i b j b k

i j ka a a a a a

then a b a a a i j kb b b b b b

b b b

a b a b i a b a b j a b a b k

= + + = + +

× = = − +

= − − − + −

Page 38: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product of two vectors is defined asfollows:

1 2 3 1 2 3

2 3 1 3 1 21 2 3

2 3 1 3 1 21 2 3

2 3 3 2 1 3 3 1 1 2 2 1

ˆ ˆˆ ˆ ˆ ˆ ,

ˆˆ ˆˆˆ ˆ

ˆˆ ˆ( . ) ( . ) ( . ) .

If a a i a j a k and b b i b j b k

i j ka a a a a a

then a b a a a i j kb b b b b b

b b b

a b a b i a b a b j a b a b k

= + + = + +

× = = − +

= − − − + −

Isn’t that cool!

Page 39: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product of two vectors is another vector.

Page 40: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product of two vectors is another vector.

Also, the cross product is perpendicular to both vector aand vector b.

Page 41: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product of two vectors is another vector.

( ) [ ]

2 3 1 2 3

1 2 3 3 2 2 1 3 3 1 3 1 2 2 1

2 3 11 2 3 1 3 2 1 3 2 3 12 3 21

ˆ ˆˆ ˆ ˆ ˆ ,

( . ) ( . ) ( . )

0

If a a i a j a k and b b

a

i b j b k then

a a b a

a b a a b

a b a b a a b a b a a b a

a a ba a b

b

aa ab a b

= + + = + +

⋅ × = − + −

+ −− +

− + −

= − =

Also, the cross product is perpendicular to both vector aand vector b.

Page 42: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product of two vectors is another vector.

( ) [ ]

2 3 1 2 3

1 2 3 3 2 2 1 3 3 1 3 1 2 2 1

2 3 11 2 3 1 3 2 1 3 2 3 12 3 21

ˆ ˆˆ ˆ ˆ ˆ ,

( . ) ( . ) ( . )

0

If a a i a j a k and b b

a

i b j b k then

a a b a

a b a a b

a b a b a a b a b a a b a

a a ba a b

b

aa ab a b

= + + = + +

⋅ × = − + −

+ −− +

− + −

= − =

Also, the cross product is perpendicular to both vector aand vector b.

The proof that the cross product is perpendicular to vector bis similar.

Page 43: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product, , obeys a right-hand rule.a b×

a b

a b×

Page 44: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

The cross product is also known as the “vector product.” Furthermore, just like the dot product, so does the cross product have interesting properties.

Page 45: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

sin , ,a b a b where is theanglebetweenthetwovectorsθ θ× =

One of the more important ones is below:

The cross product is also known as the “vector product.” Furthermore, just like the dot product, so does the cross product have interesting properties.

Page 46: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

sin , ,a b a b where is theanglebetweenthetwovectorsθ θ× =

One of the more important ones is below:

The cross product is also known as the “vector product.” Furthermore, just like the dot product, so does the cross product have interesting properties.

The proof is amazingly simple!

Page 47: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

Proof:

2 2 2 2 2 2 2 22 3 2 3 2

2 2 2 22 3 3 2 1 3 3 1 1 2 2 1

2 2 2 2 2 2 2 2 2 2 2 21 2 1 3 2 1 2 3 3 1 3 2

1 2 1 2 1 3 1 3 2 3 2 3

3 3 2 1 3 1 3 1 3 3 12 2 2 2

1 2 1 2 1

1

2 2 1

2 21

2

( . ) (

2

2

. ) ( . )

2 2 2

a b a a b b a b a b a a b b a b

a b

a b a b a b a b a b a b a b

a b a b a b a b a b a ba a b b a a b b a a b

a b

a a b b b

b

a

× = − + − + −

= + + + + +

=

= − + + − +

− −

+ +

+

( ) ( )

2 2 2 22 2 3 3

2 2 2 2 2 2 21 2 3 1 2 3 1 1 2 2

2 2 2 2 2 2 2 2 2 2 2 21 2 1 3 2 1 2 3 3 1 3 2

1 2 1 2 1 3 1 3 2 3 2 3

2 22

222

2 2 2 2 2 21 1 2 2 3 3

3

2

2

2

3

2

2

co

( )( ) (

2 2 2

co

s

s

)

a b a b a

a

a b a b a b a b a b a b

a a b

a b a b

a a a b b b a b a b a b

b a a

b a b a b a b

bb b a a b b

a b a b

θ

+

= + + + + − +

= −

+ + + + + +

− − −

= −

+

= −

( )2 22 22 21 cos sin .a b a bθ θ θ= − =

Page 48: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

Thus,2 22 2sin .a b a b θ× =

And since,

sin 0 0 ,forθ θ π≥ ≤ ≤

We have that,

sin .a b a b θ× =

Page 49: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

One application of this result is a formula for the areaof a parallelogram.

sinArea a b a bθ= = ×

a

b sinheight b θ=

Page 50: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

Another result is a formula for the volume of a parallelepiped.

θ

Areaof base b c= ×

cos ,height a θ=

where θ is the acute angle between b x c and a.

b c×

Page 51: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

θb c×

This suggests the following formula for the volume.

( )cosVolume Areaof base height b c a b c aθ= × = × ⋅ = × i

Page 52: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

However, if we don’t take our cross product in the rightorder, then cosθ will be negative. The fix is to just take theabsolute value of the whole thing.

( ) ( ) ( )1 2 3

1 2 3

1 2 3

Volumea a a

c b a b c a a b c absolutevalueof b b bc c c

=

× = × = × =i i i

c b×

Page 53: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Volume of Parallelepiped):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −ˆˆ ˆ3 4c i j k= − − +

Page 54: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Volume of Parallelepiped):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −ˆˆ ˆ3 4c i j k= − − +

( )2 3 41 2 2 421 3 4

Volume a b c absolutevalueof= × = − − =− −

i

Page 55: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Volume of Parallelepiped):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −ˆˆ ˆ3 4c i j k= − − +

( )2 3 41 2 2 421 3 4

Volume a b c absolutevalueof= × = − − =− −

i

( ) .a b c is alsoknownas the scalar triple product×i

Page 56: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Cross Product):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −

Page 57: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Cross Product):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −

ˆˆ ˆˆ ˆˆ ˆ ˆ2 3 4 14 0 7 14 7

1 2 2

i j ka b i j k i k× = = − + + = − +

− −

Page 58: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Area of aParallelogram):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −

Page 59: The Dot Product The Cross Product - Doc Benton 2016/Math240-27763/ppt/vectorproduct… · What does this definition mean? ab a b⋅= cosθ GGGG θ We can think of the dot product

EXAMPLE (Area of aParallelogram):

ˆˆ ˆ2 3 4a i j k= + +ˆˆ ˆ2 2b i j k= − + −

ˆˆ14 7 245 7 5 15.65Area a b i k= × = − + = = ≈