Vector Algebra
Vector Algebra
Vector Algebra
Vector Algebra
W
W V+W
+ V
Newton did not write in terms of vectors, but through his diagrams we see that he clearly thought of
forces in these terms. For example, he postulated that two forces acting simultaneously can be treated
as acting sequentially. So suppose two forces, represented by vectors V and W, act on an object at a
particular point. What the object feels is the resultant of these two forces, which can be calculated by
placing the vectors end to end (as in figure 13.2). Then the resultant is the vector from the initial point
of the first vector to the end point of the second. Clearly, this is the same if we reverse the order of the
vectors. We call this the sum of the two vectors, denoted V + W. For example, if an object is moving
in a fluid in space with a velocity V, while the fluid is moving with velocity W, then the object moves
(relative to a fixed point) with velocity V + W.
186
x13.1 Basic Concepts 187
Definition 13.1
a) A vector represents the length and direction of a line segment. The length is denoted jVj. A unit
vector U is a vector of length 1. The direction of a vctor V is the unit vector U parallel to V: U = V=jVj.
b) Given two points P; Q, the vector from P to Q is denoted PQ. ~
c) Addition. The sum, or resultant, V + W of two vectors V and W is the diagonal of the parallelogram
with sides V,W.
d) Scalar Multiplication. To distinguish them from vectors, real numbers are called scalars. If c is a
positve real number, cV is the vector with the same direction as V and of length cjVj. If c negative, it is
the same, but directed in the opposite direction.
We note that the vectors V, cV are parallel, and conversely, if two vectors are parallel (that is, they
have the same direction), then one is a scalar multiple of the other.
Example 13.1 Let P; ; Q; R be three points in the plane not lying on a line. Then
(13.1) PQ ~ + RP
~ + QR ~ =0 :
Figure 13.3
R
˜ ˜
QR
RP
˜
PQ
P
Example 13.2 Using vectors, show that if two triangles have corresponding sides parallel, that the
lengths of corresponding sides are proportional.
Represent the sides of the two triangles by U; V; W and U 0 ; V0 ; W0 respectively. The hypothesis is
that there are scalars a; b; c such that U 0 = aU; V0 = bU; W0 = cW. The conclusion is that a = b = c.
To show this, we start with the result of example 1; since these are the sides of a triangle, we have
The first equation gives us U = V W, which, when substituted in the last equation gives
Now, if b 6= a, this tells us that V and W are parallel, and so the triangle lies on a line: that is, there is no
triangle. Thus we must have b = a, and by the same reasoning, c = a also.
Chapter 13 Vector Algebra 188
The advantage gained in using vectors is that they are moveable, and not tied to any particular coordinate
system. As we have seen in the examples of the previous section, geometric facts can be easily derived
using vectors while working in coordinates may be cumbersome. However, it is often the case, that in
working with vectors we must do calculations in a particular coordinate system. It is important to realize
that it is the worker who gets to choose the coordinates; it is not necessarily inherent in the problem.
We now explain how to move back and forth between vectors and coordinates. Suppose, then, that a
coordinate system has been chosen: a point O, the origin, and two perpendicular lines through the origin,
the x- and y-axes. A vector V is determined by its length, jVj and its direction, which we can describe by
the angle θ that V makes with the horizontal (see figure 13.4). In this figure, we have realized V as the
vector OP~ from the origin to P. Let (a; b) be the cartesian coordinates of P. Note that V can be realized
as the sum of a vector of length a along the x-axis, and a vector of length b along the y-axis. We express
this as follows.
Definition 13.2 We let I represent the vector from the origin to the point (1,0), and J the vector from
the origin to the point (0,1). These are the basic unit vectors (a unit vector is a vector of length 1). The
unit vector in the direction θ is cos θ I + sin θ J.
If V is a vector of length r and angle θ , then V = r(cos θ I + cos θ J). If V is the vector from the origin
to the point (a; b); r is the length of V, and cos θ I + cos θ J is its direction. If P(a; b) is the endpoint of
V, then V = OP ~ = aI + bJ. a and b are called the components of V.
Figure 13.4
P (a; b)
jVj
b
J θ
I
a
Of course, r and θ are the usual polar coordinates, and we have these relations:
p
(13.4) jVj = a2 + b2 ; θ = arctan
b
a
; a = jVj cos θ ; b = jVj sin θ :
We add vectors by adding their components, and multiply a vector by a scalar by multiplying the com-
ponents by the scalar.
5
d
V+W α
W
2 current
b V
a c
Example 13.3 A boy can paddle a canoe at 5 mph. Suppose he wants to cross a river whose current
moving at 2 mph. At what angle to the perpendicular from one bank to the other should he direct his
canoe?
Draw a diagram so that the river is moving horizontally from left to right, and the direct crossing
is vertical (see figure 13.6). Place the origin on the lower bank of the river, and choose the x-axis in
the direction of flow, and the y-axis perpendicularly across the river. TIn these coordinates, the velocity
vector of the current is 2I. Let V be the velocity vector of the canoe. We are given that jVj = 5 and we
want the resultant of the two velocities to be vertical. If α is the desired angle, we see from the diagram
that sin α = 2=5, so α = 23:5 Æ .
Example 13.4 An object on the plane is subject to the three forces F = 2I + J; G = 8J; H. Assuming
the object doesn’t move, find H. At what angle to the horizontal is H directed?
By Newton’s law, the sum of the forces must be zero. Thus
(13.5) H= F G = 2I J + 8J == 2I + 7J :
If α is the angle from the positive x-axis to H, tan α = 7=2, so α = 105:95 Æ , since H points upward
and to the left.
Since vectors represent magnitude and length, we need a computationally straightforward way of
determining lengths and angles, given the components of a vector.
Definition 13.3 The dot product of two vectors V 1 and V2 is defined by the equation
(13.7) V 1 V2 = a 1 a 2 + b 1 b 2
Chapter 13 Vector Algebra 190
Then
which is equation (13.7) in Cartesian coordinates. As for the last statement, we have strict inequality
unless cos β = 1, that is β = 0 or π , in which case the vectors are parallel.
Proposition 13.4
a) Two vectors V and W are orthogonal if and only if V W = 0.
b) If L and M are two unit vectors with L M = 0, then for any vector V, we can write
p
(13.11) V = aL + bM ; with a = V L; b = V M ; and jVj = a2 + b2 :
We shall say that a pair of unit vectors L; M with L M = 0 form a base for the plane. This statement
just reiterates that we can put cartesian coordinates on the plane with any point as origin and coordinate
axes two orthogonal lines through the origin; that is the lines in the directions of L and M. To show part
b) we start with figure 13.7.
Figure 13.7
bM
V
L
a
p we see that we can write any vector as a sum V = aL + bM with (by the Pythagorean
From that figure,
theorem) jVj = a2 + b2 . We now show that a; b are as described;
Similarly V M = b.
so β = 119:7 Æ .
Example 13.6 Suppose we have put cartesian coordinates on the plane, with I; J the standard base. Let
(13.14) L= p
I+J
; M= pI + J
2 2
~ in terms of L and M.
be a new base. Given the point P(5; 2), write OP
By the preceding proposition,
I + J
(13.15) ~ L = (5I + 2J)
OP p = p7 ; ~ M = (5I + 2J)
OP pI + J = p3 ;
2 2 2 2
~ = (7L
p
so OP 3M)= 2.
Example 13.7 Show, using vectors, that the interior angles of an isosceles triangle are equal.
Figure 13.8
V W
β V+W β0
In figure 13.8 we have labelled the sides of equal length as V and W. Thus, the base of the triangle is
V + W. First of all, since jVj = jWj, we have (V + W) V = V V + W V = W W + V W = (V + W) W.
Thus, by (2),
cos β
(V + W) V (V + W) W 0
(13.16) =
jV + WjjVj = jV + WjjWj = cos β :
(13.17) If V = aI + bJ ; then V ? = bI + aJ
Chapter 13 Vector Algebra 192
See figure 13.8 to see that V ? is counterclockwise to V (at least in the case where both a and b are
positive).
Figure 13.9
V?
a V b
b a
Definition 13.5 Given two vectors V and W, we define the determinant det(V; W) of the two vec-
tors as the signed area of the parallelogram spanned by the two vectors. The sign is positive if W is
counterclockwise from V; otherwise negative.
In figure 13.10, α is the angle from V to W. Thus
Figure 13.10
V?
β jWj sin α
W
α V
Now, let β be the angle from W to V ? so that (in figure 13.10), α + β = π =2, and we have sin α =
cos β . Since jVj = jV? j, we can rewrite (13.18) as
Proposition 13.5 The determinant of the two vectors V = aI + bJ and W = cI + dJ is the determinant
of the matrix whose rows are the vectors V and W:
(13.20) det(V; W) = ad bc
The vectors V and Ware parallel (or collinear) if and only if det(V; W) = 0, for in this case there is
no parallelogram. We also have the inequality
Figure 13.11
V V0
V
W
V0
To show this we start with the equation (V V 0 ) V0 = 0. Since V0 = aW for some a, this gives us
(13.24) (V aW) aW = 0 ; or a 2 W W = aV W
VW
WW
(13.25) a= ;
giving us (13.22). The rest of the proposition follows by replacing W by the unit vector U, and should
be viewed as a restatement of Proposition 13.6.
Example 13.9 Find the area of the parallelogram whose vertices are at O(0; 0); P(4; 2), Q(5; 8); R(9; 6).
~ =
This is the parallelogram determined by the vectors from the origin O to the points P and Q: OP
4I 2J; OQ ~ = 5I 8J, so has signed area 4( 8) ( 2)(5) = 22. We verify these are the vertices of
~ + OQ
a parallelogram by calculating OP ~ ~
= 9I + 6J = OR.
In order to discuss geometric objects in the coordinate plane, it is useful to represent a point X (x; y)
by the vector X = OX~ = xI + yJ from the origin to X. For Y another point, the vector from X to Y is thus
Y prL? X X0
X0
O L X
X X0
?
A line L is determined by its direction and a point on the line. let X 0 be a point on L, and L a vector
parallel to the line L. Then, for any point X, it is on the line if and only if X X 0 is parallel to L, or,
what is the same, orthogonal to L ? . This leads to these two equations, called the equation of the line:
(13.26) (X X 0 ) L? = 0 or det(X X 0 ; L) = 0 :
Also, since X X0 is parallel to L if and only if X X0 is a scalar multiple of L, we have the parametric
form of the equation of the line:
(13.27) L: X = X 0 + tL :
A line is also determined by two points X 0 ; X1 on the line. Given that information, we find the equations
of the line by taking L = X 1 X0.
Now, suppose L is a line and X is a point not on the line. We seek a formula for the distance from
the point X to the line. We see from figure 13.13 that this is the length of the projection in the direction
perpendicular to L of a vector from X to any point X 0 on L. This leads to the formula for the distance
from X to L
(13.28) d (X; L) = j pr L? (X X0 )j
Example 13.10 Let L be the line given by the equation 3x y = 7. Find the distance from (2,4) to L.
By comparison with equation (13.26) we see that L ? = 3I J. To use (13.28) we need a point on the
line; any solution of the equation 3x y = 7 will do. (3,2) is a solution, so we take X 0 = 3I + 2J. Thus,
for our point, X = 2I + 4J, the distance is
j prL? (X X0)j =
j(X X0 ) L? j j( I + 2J) (3I J)j
p5
(13.29)
jL? j =
j3I Jj =
10
Example 13.11 Find the distance from X(3,1) to the line through X 0 (2,-3) and parallel to V = I + 4J.
The vector L? = 4I J is orthogonal to the line. Thus the distance is
j prL? (X X0 )j =
j(I + 4J) ( 4I J)j
p8
(13.30)
j 4I Jj =
17
Example 13.12 Find the point on the line L : 2x 3y = 17 which is closest to the origin.
Let X be the vector from the origin to the desired point. Then X is orthogonal to the line, so is parallel
to the vector L? = 2I 3J. Writing X = t (2I 3J), since X ends on the line we have 2(2t ) 3( 3t ) = 17,
so t = 17=13, and X = (34=13)I (51=13)J .
x13.3 Vectors in Space 195
Figure 13.14
I J
(13.31) V = aI + bJ + cK;
where a; b; c are called the components of V. To add two vectors, add the components; to multiply a
vector by a scalar, multiply the components by the scalar. If V is given as in (13.31), its length is
p
(13.32) jVj = a2 + b2 + c2:
The direction of V is determined by the cosines of the angles between V and the coordinate axes. Thus,
for any vector V we can write
where α ; β ; γ are those angles. The components of the unit vector in (13.33) are called the direction
cosines of the vector V. Note that cos 2 α + cos2 β + cos2 γ = 1.
Definition 13.7 The dot product of two vectors V; W is defined as
(13.35) V = a 1 I + b1J + c1 K; W = a2 I + b2 J + c2 K
Chapter 13 Vector Algebra 196
in components. Then
(13.36) V W = a 1 a 2 + b 1 b 2 + c1 c2
To see this, we start with the Law of Cosines for the triangle whose sides are the vectors V; W; W V
(see figure 13.15):
Figure 13.15
W V
V
β
W
jW Vj 2= jVj jWj2
2+ 2jVjjWj cos β
so that
V W = 0.
p V = 2I 3J + K; W =p6I + J 2K.
Example 13.13 Find the angle between the vectors
We have V W = 12 3 2 = 7 and jVj = 22 + 32 + 12 = 3:74; jWj = 62 + 12 + 22 = 6:40. Thus
7
(13.39) cos α = = :2923
(3:74)(6:40)
so α = 73Æ .
Example 13.14 Find a vector orthogonal to both the vectors V and W of example 13.13.
Let X = xI + yJ + zK be the desired vector. We have the conditions
(13.40) X V = 2x 3y + z = 0 ; X W = 6x + y 2z = 0 :
We can solve these equations by replacing z by any nonzero value, say z = 1, and solving the resulting
equations for x and y:
(13.41) 2x 3y + 1 = 0 ; 6x + y 2=0:
x13.3 Vectors in Space 197
1 1
(13.42) X0 = I + J + K
4 2
as our answer. Of course there is a line of such vectors, corresponding to all possible values for z. Thus
the set of all vectors orthogonal to V and W is the set ftX 0 g.
Given vectors V and W, the projection of V (denoted pr W (V)) in the direction of W is the vector V 0
parallel to W such that V and V V0 are orthogonal. If β is the angle between V and W, this projection
is the vector of length jVj cos β in the direction of W. The formula for the projection is (as in the plane):
VW
WW
(13.43) pr W (V) = ( )W :
Again, just as in the plane, if U is the unit vector in the direction of W, then pr W (V) = (V U)U. We
note that for two vectors V 1 ; V2 ,
Definition 13.8 The cross product of two vectors V; W, denoted V W, is that vector
a) of length the area of the parallelogram spanned by V; W,
b) perpendicular to the plane of V; W so that the system fV; W; V Wg is right-handed.
Now, since the area of the parallelogram spanned by the vectors V; W is jVjjWj sin β , where β is the
angle between the two vectors, we have
(13.46) jV Wj2 = jVj2 jWj2 sin2 β = jVj2 jWj2 (1 cos2 β ) = jVj2 jWj2 jV1jjV2 j cos β )2
(
which is the right side of (13.45), from (13.34). Note that interchanging V and W changes the sign of the
cross product, for if the system fV; W; Lg is right-handed, then the system fW; V; Lg is left-handed,
and thus fW; V; Lg is right handed. This gives us the first of the following identities:
(13.48) V V = 0;
We now determine a formula for the cross product in components. It is useful to start with the determinant
of three vectors in space, sometimes called the triple scalar product.
Definition 13.9 Given three vectors in space U; V; W, we define the determinant det(U; V; W) as the
signed volume of the parallelepiped spanned by the vectors. This is zero if the vectors all lie in the same
Chapter 13 Vector Algebra 198
plane. Otherwise, the sign is positive if the vectors fU; V; Wg form a right-handed system, and negative
if a left-handed system.
Proposition 13.8 Given two vectors V; W, then, for any third vector U,
(13.50) det(U; V; W) = U (V W)
We now show (13.50) using a geometric argument similar to that used for proposition 13.4. If V and
W lie on a line, then all terms are zero, and there is nothing to show. Otherwise, V and W determine
a plane; let L be the unit vector orthogonal to that plane so that the triple V; W; L is right-handed. For
any vector U, let U 0 be the projection of U in the direction of L. Then, we see geometrically that the
volume of the parallelepiped spanned by U; V; W is the product of the area of the parallelogram spanned
by V; W and the length of U 0 (see figure 13.16).
Figure 13.16
U0
U V
L
W
Now, if we permute the three vectors U: V; W, we just change the sign of the determinant, since it is
always the parallelepiped spanned by the same vectors:
So, since, but for sign, we can move any of the vectors in det(U; V; W) to the first position, we conclude
that the determinant is linear in all three variables. In particular, the cross product is linear in its variables.
x13.3 Vectors in Space 199
This allows us to calculate the determinant and cross product from the components of the given vectors.
We first observe that the calculations for the basis vectors are immediate, since the area of the unit square
is 1:
(13.56) I J = K; J K = I; K I = J; I I = J J = K K = 0
Finally, from (21) J I = I J = K, etc. After a long computation, we find:
Proposition 13.9 If V 1 = a1 I + b1 J + c1 K; V2 = a2 I + b2 J + c2 K, then
(13.57) V 1 V2 = (b1 c2 c1 b2 )I + (c1 a2 a1c2 )J + (a1 b2 b1 a2 )K:
Now we see that the determinant of three vectors, or, what is the same, the triple scalar product:
V1 (V2 V3 ) = (V1 V2 ) V3 is, in fact, the determinant of the matrix whose rows are the components
of the vectors V 1 ; V2 ; V3 , just by taking the dot product of V 3 with the expression (13.57) for V 1 V2 :
Proposition 13.10 If, in addition, V 3 = a3 I + b3 J + c3 K, then
(13.58) det(V 1 ; V2 ; V3 ) = (V1 V2 ) V3 = a3 (b1 c2 c1b2 ) + b3 (c1 a2 a1 c2 ) + c3(a1 b2 b1 a2 ) :
This is just the expansion of the determinant by minors of the third row. An easy way to remember the
formula for the cross product is as this determinant:
0 1
I J K
(13.59) V 1 V2 = det @ a1 b1 c1 A
a2 b2 c2
Example 13.16 Find a vector W of length jWj = 5 which is orthogonal to both V 1 and V2 , so that the
system fV1 ; V2 ; Wg is right-handed.
W is a positive multiple of V1 V2, which is
0 1
I J K
(13.62) V 1 V2 = det @ 1 2 1 A = 8I + 5J 2K :
2 2 3
p p
This vector has length 64 + 25 + 4 = 93, so
in the direction of a given vector L is the set of all points X of the form
(13.64) X = P + tL
where t runs over all real numbers. This is called the parametric form of the equation of the line. This
says that the vector X P is collinear with the vector L, and thus the components are proportional. In
coordinates, writing X = xI + yJ + zK, P = x 0 I + y0 J + z0 K, and L = aI + bJ + cK, we get the symmetric
form of the equation of a line:
x x0 y y0 z z0
(13.65) = = :
a b c
Example 13.17 Find the symmetric equations of the line through the points P(2,-1,4) and Q(6, 2, -3).
The vector PQ~ = 4I + 3J 7K is on the line, so X = xI + yJ + zK is on the line precisely when X P
~
is parallel to PQ. This gives us the symmetric equations
x 2 y+1 z 4
(13.66) = = :
4 3 7
The plane through a point P, spanned by the vectors V and W is the set of all points X of the form
(13.67) X = P + sV + tW
where s; t range over all real numbers. This is the parametric form of a plane. We note that a point X
is on the plane if and only if the parallelipiped formed from X P; V; W has zero volume, that is
(13.68) det(X P; V; W) = 0 :
This is the equation of the plane. The vector N = V W is called the normal to the plane, since it is
orthogonal to all vectors lying on the plane. In terms of the normal, we have this as the equation of the
plane:
(13.69) (X P) N = 0 ;
where
Example 13.18 Find the equation of the plane through the point P(5,3,-1) perpendicular to the line in
space whose symmetric equations are
x 2 y+1 z 1
(13.73) = =
3 4 2
The vector 3I + 4J 2K has the direction of the line, so is normal to the plane, and can be taken to
be N. We know that the equation of the plane has the form (X P) N = 0, for P : (5; 3; 1) is a point
on the plane. This gives the equation
(13.74) X N = P N or 3x + 4y 2z = 15 + 12 + 2 = 29 :
Example 13.19 Find the equation of the plane containing the points P(2; 5; 1), Q(6; 1; 0), R(3; 1; 4).
~ = 4I
The vectors PQ 6J + K; PR
~ =I 4J + 5K lie on the plane, so the normal is
(13.75) ~ PR
N = PQ ~ = ( 30 + 4)I + (1 20)J + ( 16 + 6)K = 26I 19J 10K :
The equation of the plane then is X N = P N, which comes to 26x + 19y + 10z = 137.
Example 13.20 Find the equation of the line through the origin and orthogonal to the plane 2x y + 3z =
1.
The vector 2I J + 3K is normal to the plane, so lies in the direction of the line.Thus the symmetric
equations of the line are
x y z
(13.76) = =
2 1 3
Now, given two planes with equations X N 1 = d1 ; X N2 = d2 , the vector N1 N2 has the direction of
the line of intersection of the two planes. Thus if P is a point on that line (found by finding a simultaneous
solution of the equations of the planes), the equation of the line is
(13.77) X = P + t (N 1 N2 ) :
Example 13.21 Find the parametric form of the line given by the equations 2x y + 3z = 1; x + 5y 2z =
0.
Chapter 13 Vector Algebra 202
To find a point P on the line we solve the simultaneous equations, taking z = 0. This gives the equa-
tions for x and y: 2x y = 1; x + 5y = 0. The solution is x = 20=11; y = 4=11. Thus P(20=11; 4=11; 0)
is on the line. The cross product of the two normals is
and a point Q, and are asked to find the equation of the plane through Q and parallel to the lines. Then
the normal to this plane is perpendicular to the two lines, so can be taken to be L 1 L2 , and then the
equation of the desired plane is
(13.81) (X Q) (L 1 L2 ) = 0 :
Example 13.22 Find the equation of the plane through a (2,0,-1) parallel to the vectors V = 2I J; W =
6I + K.
V W is perpendicular to the vectors V; W, so can be taken as the normal N to the plane. We get
(13.83) x 2y + 6z = 2( 1) + ( 1)6 = 8
d (Q; Π) =
jPQ Nj
~
(13.84)
jNj ;
x13.4 Lines and Planes in Space 203
where P is any point on the plane. b) The distance from a point Q to a line L in the direction L is
jPQ Lj
~
(13.85) d (Q; L) =
jLj ;
d (Q; L) = j PQ
~ j sin θ
jPQjjLj sin θ = jPQ Lj
~ ~
(13.86) =
jLj jLj :
Q P L
N
d (Q; L)
( ; ) Π Q
Example 13.23 Find the distance of the point (2; 0; 4) from the plane whose equation is x + y 2z = 0.
Let Q : (2; 0; 4). Pick a point P on the plane, for example, P = (1; 1; 1). N = I + J 2K is normal to
the plane, so the distance is the length of the projection of the vector from P to Q in the direction of N:
~ N = (I
p
(13.87) PQ J + 3K) (I + J 2K) = 6 ; jNj = 6
p
so the distance is jPQ
~ Nj=jNj = 6.
Example 13.24 Find the distance of the point (2; 0; 1) from the line whose symmetric equations are
x 2 y+1 z 1
(13.88) = =
3 4 2
~
Let OQ ~ = 2I
= 2I + K be the vector to the given point, and OP J + K the vector to a point on the
line, and L = 3I + 4J 2K, a vector in the direction of the line. The distance is
r
jPQ Lj = j J (3I + 4J 2K)j =
~ 13
(13.89)
jLj j3I + 4J 2Kj 29
:
Example 13.25 Find the distance between the two parallel planes
(13.90) Π1 : x + 2y 5z = 2 ; Π2 : x + 2y 5z = 11 :
Chapter 13 Vector Algebra 204
The distance between the two planes is the length of any line segment perpendicular to both planes. Thus
we need only find the length of the projection of P~1 P2 on the common normal N = I + 2J 5K, where
P1 is a point on Π1 and P2 is a point on Π2 . Since P1 N = 2, and P2 N = 11 for these points we get, for
the distance:
j(P2 P1 ) Nj
p 11 2
p9
(13.91)
jNj =
1 + 4 + 25
=
30
: