18.06.03: ‘Length and angle’ Lecturer: Barwick Monday 08 February 2016

advertisement
18.06.03: ‘Length and angle’
Lecturer: Barwick
Monday 08 February 2016
18.06.03: ‘Length and angle’
๐‘Ž1
๐‘Ž
The length of a vector ๐‘Žโƒ— = ( 2 ) ∈ R๐‘› is defined using the good old law
โ‹ฎ
๐‘Ž๐‘›
of Pythagoras:
โ€–๐‘Žโ€–โƒ— โ‰” √๐‘Ž12 + ๐‘Ž22 + โ‹ฏ + ๐‘Ž๐‘›2 .
Geometrically, it works exactly as we expect – it’s the length of the line segment
from the origin to (๐‘Ž1 , ๐‘Ž2 , … , ๐‘Ž๐‘› ):
(๐‘Ž1 , ๐‘Ž2 , … , ๐‘Ž๐‘› ) .
. (0, 0, … , 0)
18.06.03: ‘Length and angle’
Here’s a vector in R9 . How long is it?
(
(
(
(
(
๐‘ฃโƒ— = (
(
(
(
(
(
−6
0
2
−3
4
−7
0
9
−1
)
)
)
)
)
)
)
)
)
)
)
18.06.03: ‘Length and angle’
−6
0
2
−3
4
−7
0
9
โ€–( −1
โ€–
โ€–
โ€–
โ€–(
โ€–(
โ€–(
โ€–(
โ€–(
โ€–(
โ€–(
โ€–(
โ€–(
โ€–(
โ€–
โ€–
โ€–
โ€–
โ€–
โ€–
)โ€–
)โ€–
)โ€–
)โ€–
)โ€–
)โ€– = 14
)โ€–
)โ€–
)โ€–
)โ€–
โ€–
โ€–
โ€–
)โ€–
18.06.03: ‘Length and angle’
Here are the key facts about length, which you can deduce either from the
geometry or from some easy algebra:
โ–ถ โ€–๐‘Žโ€–โƒ— ≥ 0;
โ–ถ โ€–๐‘Žโ€–โƒ— = 0 if and only if ๐‘Žโƒ— = 0;โƒ—
โ–ถ โ€–๐‘Ÿ๐‘Žโ€–โƒ— = |๐‘Ÿ|โ€–๐‘Žโ€–;
โƒ—
โƒ—
โ–ถ โ€–๐‘Žโƒ— + ๐‘โ€–โƒ— ≤ โ€–๐‘Žโ€–โƒ— + โ€–๐‘โ€–.
18.06.03: ‘Length and angle’
The story we’re told is that nonzero vectors are nothing more than a length and
a direction. We’ve already sorted out what length is. Direction can be obtained,
in effect, by normalizing the length: if ๐‘Žโƒ— ≠ 0,โƒ— then we define
๐‘Žฬ‚ โ‰”
1
๐‘Ž.โƒ—
โ€–๐‘Žโ€–โƒ—
This is the unit vector in the direction of ๐‘Ž.โƒ— Clearly โ€–ฬ‚
๐‘Žโ€– = 1, and so
๐‘Žโƒ— = โ€–๐‘Žโ€–ฬ‚
โƒ— ๐‘Ž.
The unit vector ๐‘Žฬ‚ is the direction of ๐‘Ž.โƒ—
18.06.03: ‘Length and angle’
One way to think about this is that you take a nonzero vector, and scale it so
that the head of the arrow lies at the unit circle:
.
๐‘Žฬ‚
๐‘Žโƒ—
18.06.03: ‘Length and angle’
Remember that vector ๐‘ฃ โƒ— ∈ R9 ? The corresponding unit vector is
(
(
(
(
(
๐‘ฃฬ‚ = (
(
(
(
(
(
−3/7
0
1/7
−3/14
2/7
−1/2
0
9/14
−1/14
)
)
)
)
)
).
)
)
)
)
)
18.06.03: ‘Length and angle’
There are unit vectors in R๐‘› that everyone knows; we mentioned them on
Friday:
0
0
( โ‹ฎ )
(
)
( 0 )
(
)
(
)
๐‘’๐‘–ฬ‚ = ( 1 ) ,
(
)
( 0 )
(
)
( 0 )
โ‹ฎ
( 0 )
where the 1 is in the ๐‘–-th spot.
18.06.03: ‘Length and angle’
While walking in a quiet area of R17 , you encounter two unit vectors. Since
these two vectors define a plane, you can just look at that plane:
๐‘Žฬ‚
๐‘ฬ‚
.
18.06.03: ‘Length and angle’
You can also draw the lines in the plane these vectors define:
๐‘Žฬ‚
๐‘ฬ‚
.
18.06.03: ‘Length and angle’
Now we can drop perpindiculars from our unit vectors to these lines:
๐‘Žฬ‚
๐‘ฬ‚
.
The signed length from the origin to the right angle (either one!!) is the dot
product ๐‘Žฬ‚ ⋅ ๐‘.ฬ‚ Note that this is a scalar (not a vector), and it is the cosine of the
angle between ๐‘Žฬ‚ and ๐‘.ฬ‚
18.06.03: ‘Length and angle’
๐‘Ž1
๐‘Ž
Let’s get some easy stuff out of the way. If ๐‘Žฬ‚ = ( 2 ), then what is
โ‹ฎ
๐‘Ž๐‘›
๐‘Žฬ‚ ⋅ ๐‘’๐‘–ฬ‚ = ?
18.06.03: ‘Length and angle’
Indeed, ๐‘Žฬ‚ ⋅ ๐‘’๐‘–ฬ‚ = ๐‘Ž๐‘– :
.
๐‘Žฬ‚
18.06.03: ‘Length and angle’
But what if ๐‘Žโƒ— and ๐‘โƒ— aren’t unit vectors?
In that case, we scale our dot product accordingly:
โƒ— ๐‘Ž ⋅ ๐‘).
ฬ‚
๐‘Žโƒ— ⋅ ๐‘โƒ— โ‰” โ€–๐‘Žโ€–โ€–
โƒ— ๐‘โ€–(ฬ‚
๐‘Žฬ‚
๐‘ฬ‚
๐‘Ÿ๐‘ฬ‚
.
18.06.03: ‘Length and angle’
This also gives us another way of writing down the length:
โ€–๐‘Žโ€–โƒ— = √๐‘Žโƒ— ⋅ ๐‘Ž.โƒ—
18.06.03: ‘Length and angle’
More generally, you have a good distributive law:
(๐‘Žโƒ— + ๐‘)โƒ— ⋅ ๐‘ โƒ— = ๐‘Žโƒ— ⋅ ๐‘ โƒ— + ๐‘โƒ— ⋅ ๐‘.โƒ—
This distributive law is actually the key to computing the dot product!
๐‘Žโƒ— ⋅ ๐‘โƒ— = (๐‘Ž1 ๐‘’1ฬ‚ + ๐‘Ž2 ๐‘’2ฬ‚ + โ‹ฏ + ๐‘Ž๐‘› ๐‘’๐‘›ฬ‚ ) ⋅ ๐‘โƒ—
= ๐‘Ž1 (๐‘’1ฬ‚ ⋅ ๐‘)โƒ— + ๐‘Ž2 (๐‘’2ฬ‚ ⋅ ๐‘)โƒ— + โ‹ฏ + ๐‘Ž๐‘› (๐‘’๐‘›ฬ‚ ⋅ ๐‘)โƒ—
= ๐‘Ž1 ๐‘1 + ๐‘Ž2 ๐‘2 + โ‹ฏ + ๐‘Ž๐‘› ๐‘๐‘› .
18.06.03: ‘Length and angle’
It’s surprisingly good news that the formula is so simple! Let’s see if we can
use this.
Question. What’s the angle between the following two lines in R4 ?
๐‘™1 (๐‘ก) = (๐‘ก, −๐‘ก, ๐‘ก, −๐‘ก)
and ๐‘™2 (๐‘ก) = (2๐‘ก, ๐‘ก, 0 − 2๐‘ก)
18.06.03: ‘Length and angle’
Figure 1: Methane
Question. What are the angles between the bonds in a molecule of methane?
18.06.03: ‘Length and angle’
The projection of a vector ๐‘โƒ— onto a vector ๐‘Žโƒ— is the vector
โƒ—
โƒ— ๐‘Ž = ๐‘Žโƒ— ⋅ ๐‘ ๐‘Ž.โƒ—
๐œ‹๐‘Žโƒ— (๐‘)โƒ— โ‰” (ฬ‚
๐‘Ž ⋅ ๐‘)ฬ‚
๐‘Žโƒ— ⋅ ๐‘Žโƒ—
๐‘Žโƒ—
.
๐‘โƒ—
๐œ‹๐‘Žโƒ— (๐‘)โƒ—
18.06.03: ‘Length and angle’
On Wednesday, we will use the dot product repeatedly to convert systems of
linear equations into matrices.
The first problem set will be online soon.
Download