mat1341-notes01-20249-full
mat1341-notes01-20249-full
mat1341-notes01-20249-full
1. Vectors in Rn
We begin MAT1341 with a friendly review of vectors, starting with concrete geometric examples
in 2- and 3-space. Once comfortable in those spaces, we will be ready to explore the abstract realm
of “vector spaces”. By reframing vectors in terms of their abstract definitions and properties, we
will be able to capture the true essence of what vectors really are, and we will discover that there
are many surprising and interesting examples, beyond Rn .
We picture vectors as arrows, where the length of the arrow corresponds to its magnitude and the
direction the arrow points is the direction of the vector.
†
These notes are intended for students registered in MAT1341. ©EJM
1
• We multiply a vector v by a S CALAR k (which is a real number) by creating a parallel
vector with the correspondingly scaled length. If the scalar is positive, the new vector has
the same direction as v. If the scalar is negative, the new vector has the opposite direction
as v.
C LOSED U NDER S CALAR M ULTIPLICATION :
A vector multiplied by a scalar is again a vector.
Vectors have a “zero concept” called THE Z ERO V ECTOR , denoted 0. The Z ERO V ECTOR has no
magnitude (i.e. zero magnitude) and it does not have a well-defined direction.
What if we add a vector v to the zero vector 0 ?
Each vector v has a N EGATIVE , denoted v. The N EGATIVE of v has the same magnitude as v
but the opposite direction.
Recall: Vector addition and scalar multiplication also satisfy the following properties.
Let u, v, w be vectors and let c, d 2 R be scalars.
V ECTOR A DDITION IS C OMMUTATIVE
2
V ECTOR A DDITION IS A SSOCIATIVE
U NITY L AW
Note: What we’re really saying is that the arrows we draw, equipped with our geometric rules for
vector addition and scalar multiplication, satisfy the A XIOMS OF A V ECTOR S PACE ( OVER R) !
For now, we will focus on how these properties work in R, R2 , R3 ,. . . , Rn , . . . , both algebraically
and geometrically. Later, we will reconsider these properties in terms of abstract vector spaces.
3
We also use coordinate systems to help us represent vectors.
• We can refer to a vector using its I NITIAL P OINT (the TAIL of the arrow) and its
T ERMINAL P OINT (the T IP or H EAD of the arrow). The coordinates of these two points
indicate the vector’s position relative to the axes.
!
Ex. Points: A(1, 1) and B(3, 4) Vector AB
!
Ex. Points: O(0, 0) and D(2, 3) Vector OD
! !
Note: AB = OD since they have the same magnitude and direction.
• We can refer to a vector using its C OORDINATES , which indicate the position of its tip
relative to its tail.
Ex. v = (2, 3)
• We often write vectors as a C OLUMN V ECTOR which is a matrix with one column:
2
Ex. v =
3
Using a column vector is nicer and this notation is compatible with matrix multiplication
(we’ll see more about this later in the course).
• But, it saves space on paper to write vectors as comma-separated rows, or by using the
matrix-transpose notation (the T stands for T RANSPOSE , which changes the rows of a
matrix into columns and vice versa):
2 ⇥ ⇤T
v= = (2, 3) = 2 3
3
2
We can see by the Pythagorean theorem that the L ENGTH of the vector v = is
3
x1
For x = , we have:
x2
4
Rn
While the arrows we draw work best on T HE P LANE (i.e. R2 ), or in 3- SPACE (i.e. R3 ), the
coordinate system representation of vectors generalizes quite naturally to higher (or lower)
dimensions!
n=1 R T HE R EAL L INE
n=2 R2 T HE P LANE
n=3 R3 3- SPACE
n=4 R4 4- SPACE
..
.
n2Z Rn n- SPACE
n>0
5
V ECTOR A DDITION AND S CALAR M ULTIPLICATION
2 3 2 3
u1 v1
Let u = 4 .. 5, and v = 4 ... 5 be vectors in Rn . Let k 2 R be a scalar.
.
un vn
Note: The E NTRIES or C OMPONENTS of these vectors are scalars, i.e. u1 , . . . , un , v1 , . . . , vn 2 R.
Again, we have two operations: V ECTOR A DDITION and S CALAR M ULTIPLICATION .
• We add vectors in Rn C OMPONENT- WISE .
6
Proposition 1.2. Let u, v, w 2 Rn and let c, d 2 R. Then the following properties hold:
• u+v =v+u
• u + (v + w) = (u + v) + w
• c(u + v) = cu + cv
• (c + d)u = cu + du
• c(du) = (cd)u
• 1u = u
3 1 2
Example 1.4. In R , is v =
2
a linear combination of the vectors u1 = , u2 = ?
12.6 0 3
h i h i h i
1 0 0
E XERCISE ! Show that every vector in R is a linear combination of 0 , 1 , 0 .
3
0 0 1
8
2 3 2 3 2 3
1 2 0
Example 1.5. Is w = 1 a linear combination of v1 = 0 , v2 = 15 ?
4 5 4 5 4
1 1 2
Recall: for two vectors x = (x1 , x2 , x3 ) and y = (y1 , y2 , y3 ) in R3 , their D OT P RODUCT is defined as:
x · y = x1 y1 + x2 y2 + x3 y3
We can then view the L ENGTH or N ORM of x as follows:
p p
kxk = x·x= x1 2 + x2 2 + x3 2
We then generalize this to Rn .
The dot product and norm, as defined above, have some nice properties:
Find u · v.
Find kvk.
In general, for v 2 Rn such that v 6= 0, we can create a U NIT V ECTOR v̂ in the same direction as v
as follows:
Although vectors are “portable”, using the norm, we define the D ISTANCE between two vectors
as follows:
In two dimensions, we see that kx yk represents the distance between the tips of the vectors,
when they are placed tail-to-tail:
2 3 2 3
1 1
E XERCISE ! Find the distance between 4 2 5 and 4 0 5.
3 1
10
O RTHOGONALITY AND A NGLES BETWEEN V ECTORS
Not only does the dot product give us a way to compute norms of vectors and distances between
vectors, but it also allows us to find A NGLES between vectors.
We’ll start with one of the nicest angles to consider: ⇡/2 (90 )
Note: if u = 0 or if v = 0, then u · v = 0.
Thus, the zero vector 0 is considered to be orthogonal to all other vectors (even though in the
picture, we cannot convey a right angle between a vector and the zero vector).
What about other angles? We can imagine placing two nonzero vectors u and v tail-to-tail and
measuring the angle formed between them as follows:
We use these ideas to generalize what we mean by “angle” between two vectors in spaces beyond
R2 and R3 .
Definition 1.11. Let u, v be two nonzero vectors in Rn . The A NGLE B ETWEEN u AND v is defined
to be the number ✓ such that:
In order for the above definition to make sense, we need kuk = 6 0 and 1 kukkvk
6 0, kvk = u·v
1.
The norms will both be nonzero since u 6= 0 and v 6= 0. The bounds on kukkvk follow from the
u·v
theorem below.
Proof:
2 3 2 3
1 0
Example 1.14. Find the angle between u = 4 1 5 and v = 35.
4
2 1
12
P ROJECTION
The way we defined the angle between two vectors generalizes what we see in triangles in R2 :
In the above illustration, we decomposed the “v-edge of the triangle” into the vector p and v p
exactly so that p and u p were orthogonal (in the picture, we dropped a perpendicular to show
the height of the triangle, making a 90 angle with the base).
Now, with our definition for angles between vectors in Rn , we want to generalize this idea, as
follows:
Question:
Answer:
Definition 1.15. Let u and v be nonzero vectors in Rn . Then the P ROJECTION OF u ONTO v ,
denoted projv (u), is the unique vector which satisfies:
• projv (u) is parallel to v (i.e. projv (u) is a scalar multiple of v), and
• u projv (u) is orthogonal to v (i.e. v · (u projv (u)) = 0)
13
Proposition 1.16. Let u and v be nonzero vectors in Rn . Then
u·v
projv (u) = k · v where k=
kvk2
u·v
That is projv (u) = v
kvk2
Proof:
Example 1.17. Let u = (1, 3) and v = (2, 1). Find projv (u) and find proju (v).
14