Chapter 7 - Vectors in Two Dimensions
Chapter 7 - Vectors in Two Dimensions
Chapter 7 - Vectors in Two Dimensions
MAT 092
Lecture Notes
Acknowledgements
Written by
Sajib Rahman Sarker
Reference Books:
• Precalculus - The Art of Problem Solving by Richard Rusczyk
Contents
7 Vectors in Two Dimensions 2
7.1 What’s a Vector? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
7.2 The Dot Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1
Chapter 7
2
BRAC
University MAT 092
Figure 7.1:
1
These arrows represent the same vector , because any arrow that depicts
3
right 1 unit, up 3 units represents the same vector, does not matter where the vec-
tor locates in a coordinate system.
In this text,
we will refer to an arrow that represents a vector as simply a vector.
1 ~ and AB
~ in figure 7.1 are v, and so we can write
Letting v = , we see both A
3
~ = BC
A ~ = v.
x
A vector with magnitude 1 is called a unit vector. The vector can also be
y
1 0
written as xi + yj, where i is the unit vector and j is the unit vector . The
0 1
zero vector is a vector in which both components are zero. We denote this vector
as simply 0.
3 of 15
BRAC
University MAT 092
Solution: Using the formula we introduced for the norm of a vector, we have
x p p
= (x − 0)2 + (y − 0)2 = x2 + y 2
y
Example 7.2
v
(a) If v = 3i − 4j, then what is kvk ?
7 v
(b) If , then what is kvk ?
−7
0.5 v
(c) If , then what is kvk ?
−0.2
(d) Generalize your results from the first three parts. That is, what can we say
v
about kvk when v is a nonzero vector?
Solutions: p v
(a) We have kvk = 32 + (−4)2 = 5, so kvk = 15 v = 35 i − 45 j.
Therefore, we have s
2 2
v 3 4
= + − =1
kvk 5 5
√
√
p
2 2 v 1/ √2
(b) We have kvk = 7 + (−7) = 7 2, so kvk = and
−1/ 2
r
v 1 1
= + =1
kvk 2 2
√
√
p v 0.5/ √0.2
(c) We have kvk = (0.5)2 + (−0.2)2 = 0.29, so kvk
= .
−0.2/ 1.29
v
Instead of rationalizing the denominator, we forge ahead finding kvk
:
s 2 2 r
v 0.5 0.2 0.25 + 0.04
= √ + −√ = =1
||v|| 0.29 0.29 0.29
x p
(d) Let v = . We have kvk = x2 + y 2 , which is nonzero because v 6= 0, so
y
v !2 !2 s
u
v u x y x2 + y 2
= t p + p = =1
kvk x2 + y 2 x + y2
2 x2 + y 2
4 of 15
BRAC
University MAT 092
In this problem, we showed that the result of dividing a nonzero vector by it’s
v
magnitude is a unit vector. Since kvk is a unit vector, when we write v as
v
v = kvk · ,
kvk
We have p
r= x2 + y 2 = kxi + yjk
so r is the magnitude of xi + yj. Since
p
k(cos θ)i + (sin θ)jk = (cos θ)2 + (sin θ)2 = 1
we see that (cos θ)i + (sin θ)j is a unit vector, so θ can be used to describe the di-
rection of the vector.
Solution
a 3a
(a) Let v = , so we have 3v = . The origin, the point (a, b), and the
b 3b
point (3a, 3b) are on the line through the origin with slope ab , so they are collinear.
Figure 7.2:
5 of 15
BRAC
University MAT 092
√
We have kvk = a2 + b2 and
p √
k3vk = (3a)2 + (3b)2 = 3 a2 + b2 ,so
√
a b
v = a2 + b 2 √ i+ √ j
a 2 + b2 a 2 + b2
√
3a 3b
3v = 3 a2 + b2 √ i+ √ j
3 a 2 + b2 3 a 2 + b2
√
a b
=3 a +b √
2 2 i+ √ j
a2 + b 2 a2 + b 2
We expressed each as the product of its magnitude and direction. We see that the
vector 3v has same direction as v, but has three times the magnitude. That is, 3v
is a "scaled" version of v.
a −a
(b) If v = , then −v = . The point (a, b) and the point (−a, −b)
b −b
are on the line through the origin with slope ab .
Figure 7.3:
The origin is equidistant from (a, b) and (−a, −b), and the vector from (0, 0) to
(a, b) is in the opposite direction as the vector from (0, 0) to (−a, −b). Therefore, v
and −v have the same magnitude, but opposite direction.
5 2
Example 7.5: Let v = and w =
1 4
x
(a) Find x and y such that v + w =
y
(b) Let O be the origin, let A be the point (5, 1), let B be the point (2,4) , and
let C be the point (x, y), where x and y are your answers from part (a). What are
~ OB,
OA, ~ OC, ~ and AC~ in terms of v and w? What type of quadrilateral is OACB?
(c) Use your answers to part (b) to give a geometric description for adding two
vectors.
6 of 15
BRAC
University MAT 092
Solution:
(a) According to the rule for vector addition, we have
5 2 5+2 7
+ = =
1 4 1+4 5
Figure 7.4:
~ = w = OB
Therefore, we have AC ~ with AC~ and OB ~ in the same direction;
which means sides AC and OB of OACB are parallel and we also have the same
~ and OB
length, since AC ~ have the same magnitude. So, OACB is a parallelogram.
Important:
a c
1. For any vectors and , we have 1
b d
a c a−c
− =
b d b−d
7 of 15
BRAC
University MAT 092
This also means that we can view vector subtraction as a combination of vector
addition and scalar multiplication:
a c a c a −c a−c
− = + (−1) = + =
b d b d b −d b−d
Solution
x x
(a) If w − v = , then w = + v.
y y
2 x 5 x+5
= + =
4 y 1 y+1
Therefore, x + 5 = 2 and y + 1 = 4, so x = 2 − 5 = −3 and y = 4 − 1 = 3.
x 2 5 2−5 −3
=w−v = − = =
y 4 1 4−1 3
~
(b) From example 7.5, wehave OA ~
= v and OB = w. Since (x, y) = (−3, 3)
~ = −3 = w − v.
from part (a), we have OC
3
Figure 7.5:
8 of 15
BRAC
University MAT 092
~ = −3
Since point B is 3 to the left and 3 above A, we have AB , so
3
~ = w − v.
AB
(c) Let O be the origin in figure 7.6. According to the definition of vector sub-
~ − P~ is the vector we must add to P~ to get Q.
traction, the vector Q ~
Figure 7.6:
9 of 15
BRAC
University MAT 092
4 5 −2
Example 9.7: Let p = ,q = , and r =
−3 2 7
(a) Evaluate p · q and q · p
(b) Evaluate p · (2r) and 2(p · r)
(c) Evaluate p · (q + r) and p · q + p · r
(d) Generalize your results from parts (a), (b), and (c). That is, show that for all
vectors u, v, w and all scalars a, we have u · v = v · u, u · (av) = a(u · v) and
u · (v + w) = u · v + u · w.
Solution:
(a) We have p · q = (4)(5) + (−3)(2) = 14
and q · p = (5)(4) + (2)(−3) = 14, therefore, p · q = q · p
(b) We have
4 −4
p · (2r) = · = (4)(−4) + (−3)(14) = −58
−3 14
and
4 −2
2(p · r) = 2 · = 2(4(−2) + (−3)(7)) = −58
−3 7
Therefore, we have p · (2r) = 2(p · r).
(c) We have
4 5 −2 4 3
p · (q + r) = · + = · = (4)(3) + (−3)(9)
−3 2 7 −3 9
Hence, p · (q + r) = −15 and
4 5 4 −2
p·q+p·r= · + = 14 − 29 = −15
−3 2 −3 7
· (q +
Therefore, p r) = p ·q + p· r
u1 v1 w1
(d) Let u = ,v = , and w = . We then have
u2 v2 w2
u · v = u1 v1 + u2 v2
v · u = v1 u1 + v2 u2 = u1 v1 + u2 v2
which means that the dot product is commutative: we have u · v = v · u for all
vectors u and v. We also have
u1 av1
u · (av) = · = (u1 ) (av1 ) + (u2 ) (av2 ) = a (u1 v1 + u2 v2 )
u2 av2
and
u1 v1
a(u · v) = a · = a (u1 v1 + u2 v2 )
u2 v2
Therefore, we have u · (av) = a(u · v) for all scalars a and vectors u and v. Turning
to u · (v + w) and u · v + u · w, we have
u1 v1 + w 1
u · (v + w) = · = u1 (v1 + w1 ) + u2 (v2 + w2 )
u2 v2 + w 2
10 of 15
BRAC
University MAT 092
and
u1 v1 u1 w1
u·v+u·w = · + · = u1 v1 + u2 v2 + u1 w1 + u2 w2
u2 v2 u2 w2
u·v =v·u
u · (av) = a(u · v)
u · (v + w) = u · v + u · w
2
Example 7.8 Show for any vector v, we have v · v = kvk .
that
v1
Solution: Let v = , so that
v2
v1 v1
v·v = · = v12 + v22 = kvk2
v2 v2
Important:
v · w = kvkkwk cos θ
Example 7.9 Let θ be the angle between nonzero vectors v and w. Show that
v · w = kvkkwk cos θ.
Solution: We can infer that it would be a geometric approach seeing the pres-
ence of kvk, kwk and cos θ. In figure 7.7, we have points V and W , where V~ = v
and W~ = w, and we let the origin be O. We therefore have OV = kvk, OW = kwk,
and W V = kW~V k = kv − wk.
11 of 15
BRAC
University MAT 092
Figure 7.7:
We try the Law of Cosines, since this will produce a term of the form kvkkwk cos θ.
The Law of Cosines gives us W V 2 = OV 2 + OW 2 − 2(OV )(OW ) cos θ, or
(v − w) · (v − w) = v · v + w · w − 2kvkkwk cos θ
This equation doesn’t have v · w, yet. Applying the fact that the dot product is
distributive, we have
(v − w) · (v − w) = (v − w) · v − (v − w) · w
=v·v−w·v−v·w+w·w
v · v − 2v · w + w · w = v · v + w · w − 2kvkkwk cos θ
v · w = kvkkwk cos θ
We can use this relationship to find the angle between two vectors.
12 of 15
BRAC
University MAT 092
Example
7.10:Find the
angle between each pair of vectors below.
−1
√ 0
(a) and
3 −2
12 2
(b) and
−8 3
√
2 −2 − √3
(c) and
1 −1 + 2 3
Solution: Let θ be the angle between the two given vectors in each parts.
(a) We have
√ √ √
(−1)(0) + ( 3)(−2) −2 3 3
cos θ = q √ √ = = −
4 2
(−1)2 + ( 3)2 · 02 + 22
so θ = 150◦
(b) We have
cos θ = √ (12)(2)+(−8)(3)
√ =0
12 +(−8) · 2 +32
2 2 2
◦
so θ = 90
(c) We have
√ √
(2)(−2 − 3) + (1)(−1 + 2 3) −5 1
cos θ = √ q √ √ =√ √ =−
5·2 5 2
22 + 12 · (−2 − 3)2 + (−1 + 2 3)2
so θ = 120◦
Example 7.11: We say that two vectors are orthogonal if their dot product
is zero. Suppose we draw arrows representing two nonzero vectors from the same
point. If these vectors are orthogonal, then how are the arrows that represent them
related geometrically?
Solution: Let the vectors be v and w. Since v and w are nonzero, we have
kvkkwk cos θ = 0 if and only if cos θ = 0, which means the angle between the vec-
tors is 90◦ . Therefore, the arrows representing the vectors are perpendicular if and
only if the vectors are orthogonal.
Important: If the dot product of two vectors is 0, then then the vectors are said
to be orthogonal to each other. Geometrically speaking, two nonzero orthogonal
vectors are perpendicular. The vector 0 is orthogonal to all vectors.
13 of 15
BRAC
University MAT 092
Solution: The expression on the lesser side looks like the square of a dot prod-
uct and the expression on the greater side looks like the product of the squares of
vector norms.
x1 y1
So, we let x = and y = . Then, we have
x2 y2
x · y = x1 y1 + x2 y2
and
kxk2 kyk2 = x21 + x22 y12 + y22
We also have x · y = kxkkyk cos θ, where θ is the angle between x and y. We must
have | cos θ| ≤ 1, so
x·y
= | cos θ| ≤ 1
kxkkyk
Squaring the left and right ends of this, multiplying both sides by kxk2 kyk2 , and
substituting our expressions for x · y and kxk2 kyk2 from above gives the desired
14 of 15
BRAC
University MAT 092
Finally, equality holds if either vector is the vector 0. Therefore, equality holds
in the inequality if and only if y is 0 or if x = cy for some constant c. This result
is called the Cauchy-Schwarz Inequality.
15 of 15