18.06.02: ‘Vectors’ Lecturer: Barwick Wednesday 05 February 2016

advertisement
18.06.02: ‘Vectors’
Lecturer: Barwick
Wednesday 05 February 2016
18.06.02: ‘Vectors’
Lines vs. vectors
A vector is a list of real numbers
๐‘Ž1
๐‘Ž
๐‘Žโƒ— = ( 2 ) .
โ‹ฎ
๐‘Ž๐‘›
We draw this vector as an arrow pointing from the point (0, 0, … , 0) to the
point (๐‘Ž1 , ๐‘Ž2 , … , ๐‘Ž๐‘› ):
. (0, 0, … , 0)
(๐‘Ž1 , ๐‘Ž2 , … , ๐‘Ž๐‘› ) .
18.06.02: ‘Vectors’
By extending this vector, we obtain a line:
.
.
This is the unique line between the origin and (๐‘Ž1 , ๐‘Ž2 , … , ๐‘Ž๐‘› ).
Question. How can we write a formula for a parametrization of this line?
18.06.02: ‘Vectors’
๐œ†(๐‘ก) = (๐‘ก๐‘Ž1 , ๐‘ก๐‘Ž2 , … , ๐‘ก๐‘Ž๐‘› ).
Note that there’s one exception to this: the zero vector
0
0
0โƒ— โ‰” (
)
โ‹ฎ
0
doesn’t give us much of a line. This is the only special vector. We’ll return to
this.
18.06.02: ‘Vectors’
Two vectors may determine the same line:
.
.
Question. When does this happen?
.
18.06.02: ‘Vectors’
If there’s a real number ๐‘Ÿ such that
๐‘Ž1
๐‘Ž
( 2 )=(
โ‹ฎ
๐‘Ž๐‘›
๐‘Ÿ๐‘1
๐‘Ÿ๐‘2
),
โ‹ฎ
๐‘Ÿ๐‘๐‘›
then we say that ๐‘Žโƒ— is a scalar multiple of ๐‘,โƒ— and we just write ๐‘Žโƒ— = ๐‘Ÿ๐‘.โƒ— In this
case, as long as ๐‘Žโƒ— and ๐‘โƒ— are nonzero, they determine the same line.
So lines through the origin are the “same thing” as nonzero vectors, up to
scaling.
18.06.02: ‘Vectors’
R1 and R2
We write R๐‘› for the collection of all vectors
๐‘Ž1
๐‘Ž
( 2 ).
โ‹ฎ
๐‘Ž๐‘›
Thus R1 is simply the set of real numbers, but we regard those real numbers
as arrows from the origin to the number as it sits on the number line:
.
.
.
18.06.02: ‘Vectors’
Note that if ๐‘Ž ∈ R1 is a nonzero real number, then any real number is a scalar
mutiple of ๐‘Ž. In other words, R1 is 1-dimensional.
๐‘Ž1
). This is the set of vectors that
๐‘Ž2
point from the origin to points on the plane.
How about R2 ? This is the set of vectors (
A nonzero vector ๐‘Žโƒ— ∈ R2 specifies a line through the origin. Two vectors
๐‘Ž,โƒ— ๐‘โƒ— ∈ R2 specify two distinct lines through the origin if and only if there exists
no real number ๐‘Ÿ such that ๐‘Žโƒ— = ๐‘Ÿ๐‘:โƒ—
.
18.06.02: ‘Vectors’
Now remember that we translated each line along the other to end up with a
parallelogram. Let’s do that here in such a way that the vectors meet head to
tail:
.
We thus get a new vector that points at the new vertex we created.
.
18.06.02: ‘Vectors’
Now let’s clear out the lines spanned by these vectors, and gaze lovingly at the
vectors themselves:
.
What we’ve drawn there is a way of taking two vectors ๐‘Žโƒ— and ๐‘,โƒ— translating ๐‘Žโƒ—
along ๐‘โƒ— and translating ๐‘โƒ— along ๐‘Žโƒ— to make a parallelogram. The diagonal vector
of that parallelogram is
๐‘Ž
๐‘
๐‘Ž + ๐‘1
๐‘Žโƒ— + ๐‘โƒ— = ( 1 ) + ( 1 ) = ( 1
).
๐‘Ž2
๐‘2
๐‘Ž2 + ๐‘2
This is vector addition.
18.06.02: ‘Vectors’
The fact that you can get that diagonal by translating ๐‘Žโƒ— along ๐‘โƒ— or by translating
๐‘โƒ— along ๐‘Žโƒ— is way of visualizing the commutativity of vector summation. It turns
out that all the algebraic properties of vectors have pictures to go along with
them.
Question. What does associativity look like? adding with 0?โƒ— the formation of
negatives? the distribution of scalar multiplication over vector addition?
18.06.02: ‘Vectors’
R3
๐‘Ž1
Of course R is the set of all vectors ( ๐‘Ž2 ). Consider two vectors ๐‘Ž,โƒ— ๐‘โƒ— ∈ R3
๐‘Ž3
such that there exists no real number ๐‘Ÿ such that ๐‘Žโƒ— = ๐‘Ÿ๐‘.โƒ— These two vectors
define a plane: the vectors that can be writen as a linear combination ๐‘ ๐‘Žโƒ— + ๐‘ก๐‘;โƒ—
we call this plane the span of ๐‘Žโƒ— and ๐‘.โƒ— So a vector ๐‘ โƒ— does not lie in the span of
๐‘Žโƒ— and ๐‘โƒ— if and only if it can’t be written as a linear combination of of ๐‘Žโƒ— and ๐‘.โƒ—
3
Once we’ve found such a ๐‘,โƒ— I claim that any vector ๐‘ฃ โƒ— ∈ R3 can be written
as a linear combination of ๐‘Ž,โƒ— ๐‘,โƒ— and ๐‘.โƒ— Geometrically, this means any point
(๐‘ฃ1 , ๐‘ฃ2 , ๐‘ฃ3 ) lies in the span of ๐‘Ž,โƒ— ๐‘,โƒ— and ๐‘.โƒ—
18.06.02: ‘Vectors’
๐‘ฃ1
Algebraically, this means that for any ๐‘ฃ โƒ— = ( ๐‘ฃ2 ), there is a solution (๐‘Ÿ, ๐‘ , ๐‘ก)
๐‘ฃ3
to the equation ๐‘ฃ โƒ— = ๐‘Ÿ๐‘Žโƒ— + ๐‘ ๐‘โƒ— + ๐‘ก๐‘.โƒ— But that equation is secretly the system of
linear equations
๐‘ฃ1 = ๐‘Ÿ๐‘Ž1 + ๐‘ ๐‘1 + ๐‘ก๐‘1 ;
๐‘ฃ2 = ๐‘Ÿ๐‘Ž2 + ๐‘ ๐‘2 + ๐‘ก๐‘2 ;
๐‘ฃ3 = ๐‘Ÿ๐‘Ž3 + ๐‘ ๐‘3 + ๐‘ก๐‘3 .
What we’re saying is that this set of equations has a solution.
18.06.02: ‘Vectors’
But there’s more: the vectors ๐‘Ž,โƒ— ๐‘,โƒ— and ๐‘ โƒ— are linearly indepenedent – that is, the
lines they span are independent.
What this means algebraically is that none of them are zero, and there’s no way
to write
๐‘ โƒ— = ๐‘ ๐‘Žโƒ— + ๐‘ก๐‘โƒ—
or
๐‘โƒ— = ๐‘๐‘Žโƒ— + ๐‘ž๐‘ โƒ—
or
๐‘Žโƒ— = ๐‘š๐‘โƒ— + ๐‘›๐‘.โƒ—
18.06.02: ‘Vectors’
We can express this more efficiently: what it means for ๐‘Ž,โƒ— ๐‘,โƒ— and ๐‘ โƒ— to be linearly
indepenedent is that if
๐‘Ÿ๐‘Žโƒ— + ๐‘ ๐‘โƒ— + ๐‘ก๐‘ โƒ— = 0,โƒ—
then ๐‘Ÿ = ๐‘  = ๐‘ก = 0.
๐‘ฃ1
What we will learn is that for any ๐‘ฃ โƒ— = ( ๐‘ฃ2 ), there is a unique solution
๐‘ฃ3
โƒ—
(๐‘Ÿ, ๐‘ , ๐‘ก) to the equation ๐‘ฃ โƒ— = ๐‘Ÿ๐‘Žโƒ— + ๐‘ ๐‘ + ๐‘ก๐‘.โƒ—
18.06.02: ‘Vectors’
Let’s do an example. We’ll find three independent vectors. We have to start
1
with the nonzero vector ๐‘Žโƒ— = ( 2 ). For our next vector, we just need to
1
2
โƒ—
select a vector that is not a multiple of ๐‘Ž.โƒ— Here’s one: ๐‘ = ( 0 ).
0
18.06.02: ‘Vectors’
๐‘1
Now for the tricky bit. We want a third vector, ๐‘ โƒ— = ( ๐‘2 ), that doesn’t lie
๐‘3
โƒ—
in the plane spanned by ๐‘Žโƒ— and ๐‘. That’s more than just making sure that ๐‘ โƒ— is
not a scalar multiple of ๐‘Žโƒ— or ๐‘.โƒ—
−5/2
1
OK, does ( 15 ) lie in the plane spanned by ๐‘Žโƒ— = ( 2 ) and ๐‘โƒ— =
15/2
1
2
( 0 )??
0
18.06.02: ‘Vectors’
It looks like it does!
1
2
−2/5
15
( 2 ) + (−5) ( 0 ) = ( 15 ) .
2
1
0
15/2
So how do we make sure that we get a vector that doesn’t live on that plane?
0
Here’s one that will work: ( 0 ). What makes me so sure that will work?
2
18.06.02: ‘Vectors’
1
2
0
โƒ—
See, a linear combination of ๐‘Žโƒ— = ( 2 ) and ๐‘ = ( 0 ) that gives ( 0 )
1
0
2
would have to have a nonzero coefficient on ๐‘Ž,โƒ— and that will give a nonzero
second coordinate.
So we have our example:
1
2
0
โƒ—
๐‘Žโƒ— = ( 2 ) , ๐‘ = ( 0 ) , ๐‘ โƒ— = ( 0 )
1
0
2
are three linearly independent vectors in R3 .
18.06.02: ‘Vectors’
๐‘ฃ1
Now my claim is that any vector ๐‘ฃ โƒ— = ( ๐‘ฃ2 ) can be written as a unique
๐‘ฃ3
2
โƒ—
linear combination of ๐‘Ž,โƒ— ๐‘, and ๐‘.โƒ— If ๐‘ฃ โƒ— = ( −6 ), for example, we’re trying
14
to solve this system of linear equations:
2 = ๐‘Ÿ + 2๐‘  + 0๐‘ก;
−6 = 2๐‘Ÿ + 0๐‘  + 0๐‘ก;
14 = ๐‘Ÿ + 0๐‘  + 2๐‘ก.
So we straight away get ๐‘Ÿ = −3, ๐‘  = 5/2, and ๐‘ก = 17/2.
18.06.02: ‘Vectors’
Here is the general algebraic picture:
Definition. If ๐‘Ž1โƒ— , ๐‘Ž2โƒ— , … , ๐‘Ž๐‘˜โƒ— are vectors of R๐‘› , then the span of ๐‘Ž1โƒ— , ๐‘Ž2โƒ— , … , ๐‘Ž๐‘˜โƒ—
is the set of all linear combinations
๐‘Ÿ1 ๐‘Ž1โƒ— + ๐‘Ÿ2 ๐‘Ž2โƒ— + … + ๐‘Ÿ๐‘˜ ๐‘Ž๐‘˜โƒ— .
18.06.02: ‘Vectors’
๐‘ฃ1
๐‘ฃ
So ๐‘ฃ โƒ— = ( 2 ) lies in the span of ๐‘Ž1โƒ— = (
โ‹ฎ
๐‘ฃ๐‘›
if and only if the system of linear equations
๐‘Ž11
๐‘Ž21
) , … , ๐‘Ž๐‘˜โƒ— = (
โ‹ฎ
๐‘Ž๐‘›1
๐‘ฃ1
=
๐‘Ÿ1 ๐‘Ž11 + ๐‘Ÿ2 ๐‘Ž12 + โ‹ฏ + ๐‘Ÿ๐‘˜ ๐‘Ž1๐‘˜ ;
๐‘ฃ2
=
๐‘Ÿ1 ๐‘Ž21 + ๐‘Ÿ2 ๐‘Ž22 + โ‹ฏ + ๐‘Ÿ๐‘˜ ๐‘Ž2๐‘˜ ;
โ‹ฎ
๐‘ฃ๐‘›
has at least one solution.
=
๐‘Ÿ1 ๐‘Ž๐‘›1 + ๐‘Ÿ2 ๐‘Ž๐‘›2 + โ‹ฏ + ๐‘Ÿ๐‘˜ ๐‘Ž๐‘›๐‘˜ .
๐‘Ž1๐‘˜
๐‘Ž2๐‘˜
)
โ‹ฎ
๐‘Ž๐‘›๐‘˜
18.06.02: ‘Vectors’
Geometrically, that means that a vector ๐‘ฃ โƒ— lies in the span of ๐‘Ž1โƒ— , ๐‘Ž2โƒ— , … , ๐‘Ž๐‘˜โƒ— when
you can build a multidimensional parallelopiped out of ๐‘Ž1โƒ— , ๐‘Ž2โƒ— , … , ๐‘Ž๐‘˜โƒ— to get ๐‘ฃ โƒ—
pointing from the origin across the diagonal.
18.06.02: ‘Vectors’
Figure 1: Doesn’t know how to make an image of multidimensional
paralellopipeds.
18.06.02: ‘Vectors’
Definition. We say vectors ๐‘Ž1โƒ— , ๐‘Ž2โƒ— , … , ๐‘Ž๐‘˜โƒ— of R๐‘› are linearly independent if we’re
in the following situation: any vanishing linear combination
๐‘Ÿ1 ๐‘Ž1โƒ— + ๐‘Ÿ2 ๐‘Ž2โƒ— + … + ๐‘Ÿ๐‘˜ ๐‘Ž๐‘˜โƒ— = 0โƒ—
must be a trivial linear combination – that is, we must have
๐‘Ÿ1 = ๐‘Ÿ2 = โ‹ฏ = ๐‘Ÿ๐‘˜ = 0.
18.06.02: ‘Vectors’
๐‘Ž11
๐‘Ž1๐‘˜
๐‘Ž
๐‘Ž
So the vectors ๐‘Ž1โƒ— = ( 21 ) , … , ๐‘Ž๐‘˜โƒ— = ( 2๐‘˜ ) are linearly indepenโ‹ฎ
โ‹ฎ
๐‘Ž๐‘›1
๐‘Ž๐‘›๐‘˜
dent if and only if any system of linear equations
๐‘ฃ1
=
๐‘Ÿ1 ๐‘Ž11 + ๐‘Ÿ2 ๐‘Ž12 + โ‹ฏ + ๐‘Ÿ๐‘˜ ๐‘Ž1๐‘˜ ;
๐‘ฃ2
=
๐‘Ÿ1 ๐‘Ž21 + ๐‘Ÿ2 ๐‘Ž22 + โ‹ฏ + ๐‘Ÿ๐‘˜ ๐‘Ž2๐‘˜ ;
โ‹ฎ
๐‘ฃ๐‘›
has at most one solution.
=
๐‘Ÿ1 ๐‘Ž๐‘›1 + ๐‘Ÿ2 ๐‘Ž๐‘›2 + โ‹ฏ + ๐‘Ÿ๐‘˜ ๐‘Ž๐‘›๐‘˜ .
18.06.02: ‘Vectors’
Geometrically, that means that none of the vectors ๐‘Ž๐‘–โƒ— lie in the span of the
remaining vectors
๐‘Ž1โƒ— , ๐‘Ž2โƒ— , … , ๐‘Ž๐‘–−1
โƒ— , ๐‘Ž๐‘–+1
โƒ— , … , ๐‘Ž๐‘˜โƒ— .
18.06.02: ‘Vectors’
Figure 2: Cool. Can we go play in the snow now?
18.06.02: ‘Vectors’
We’d like a more efficient way of checking whether a vector lies in a span of a
certain collection of vectors and whether that collection of vectors is linearly
independent.
To do this, we’ll want to introduce two fundamental manipulations of vectors:
forming the dot product of two vectors and combining a list of vectors into
a matrix. The dot product extracts a bunch of helpful geometry, and matrices give us an efficient way to organize and conceptualize systems of linear
equations.
For next week, please read §§1.2–2.1 of Strang.
The first problem set will be posted on Monday.
Download