Académique Documents
Professionnel Documents
Culture Documents
Vector Geometry
In this chapter we will look more closely at certain ge- vector in Rn as a position vector as described in section
ometric aspects of vectors in Rn . We will first develop an 1.3 of Lay’s textbook. A position vector is just a pointer
intuitive understanding of some basic concepts by looking to a certain location in Rn . When using position vectors
at vectors in R2 and R3 where visualization is easy, then it is not necessary to make a firm distinction between a
we will extend these geometric intuitions to Rn for any n. vector and its endpoint. For example, when we say that a
The basic geometric concepts that we will look at involve line is a set of vectors we mean that the endpoints of the
measurable quantities such as length, angle, area and vol- vectors lie on the line. If we want to stress the direction
ume. We also take a closer look at the two main types of of the vector we will usually represent it as an arrow. If
equations covered in this course: parametric-vector equa- we want to stress the particular location that the vector
tions and linear equations. is pointing to we will usually represent it by a point.
We begin with a reminder. We defined a vector in Rn
as an n-tuple, i.e., as an n × 1 matrix. This is an algebraic EXAMPLE 5.1. If A = (x1 , x2 , . . . , xn ) and B =
definition of a vector where a vector is just a list of num- (y1 , y2 , . . . , yn ) are two points then the vector from A
bers. The geometric objects we will look at in this chapter −→
to B (represented by AB ) is defined as follows
should be seen as geometric interpretations of this alge-
y 1 − x1
2 3
braic definition. One difficulty that students encounter at
this stage is that there are many different geometric in- −→ 6 y2 − x2 7
6
AB = 6 ..
7
terpretations that can be given to a vector. For example, 7
a vector in Rn can be interpreted geometrically as
4 . 5
y n − xn
• an arrow starting at the origin.
You can think of this as letting A be the origin of a new
• an arrow with a certain length and direction but no −→
coordinate system and then the entries in AB give the lo-
fixed location.
cation of B relative to A. Or you can imagine translating
• a point (or more exactly, the coordinates of a point both A and B by subtracting A from both points so that
relative to some reference point). A is translated to the origin. Finally, you can think of
−→
• a directed line segment between two points. AB as an arrow from A to B.
So, for example, 3 if 2
we have P (1, 5, 2) and Q(7, 7, 0)
• a displacement (i.e., a translation).
2 3
7−1 6
−
−→ 4
This multiplicity of interpretations is a strength of the then P Q = 7 − 55 = 4 2 5. The entries in this vector
vector concept not a weakness. Vectors have many appli- 0−2 −2
cations and depending on the application one geometric indicate that when you travel from P to Q you move 6
interpretation may be more relevant than another but no units in the x1 direction, 2 units in the x2 direction and 2
matter what geometric interpretation is chosen the under- units in the negative x3 direction. These entries express
−
−→
lying vector algebra remains the same. We will interpret a the location of Q relative to P . If P Q is drawn with the
1
2 Chapter 5. Vector Geometry
1
intial point at the origin then the terminal point would be
(6, 2, -2).
–1 1 2 3 4 5 6
0
» – » –
1 0
i= j=
0 1 –2
2
It then follows that any vector in R can be written as
» – » – » –
a a 0 –3
= + = ai + bj (5,–3)
b 0 b
2 3 2 3 2 3
1 0 0
i = 4 05 j = 4 15 k = 4 05
Figure 5.1.
0 0 1
and then any vector in R3 can be written In R3 a similar argument based on the Pythagorean
2 3 Theorem gives
a q
4 b 5 = ai + bj + ck
kuk = u21 + u22 + u23
c
2 3
u1
You should realize that in R2 the vectors i and j are just for any vector u = 4u2 5.
the vectors which we have called e1 and e2 , the standard u3
basis of R2 . Similarly in R3 the vectors i, j and k are the
We can extend the above formulas to Rn by defining
standard basis of R3 .
q
kuk = u21 + u22 + · · · + u2n
u1
2 3
5.1 Distance and Length 6 u2 7
Notice that if u = 6 . 7 is any vector in Rn then
6 7
The first geometric concept we want to look at is the 4 .. 5
the length of a vector. We define this to be the usual un
Euclidean distance from the intial point (the origin) to
the end point of the vector. The length any vector v u1
2 3
in Rn will be represented by kvk. This quantity is also 6 u2 7
uT u = u1 u2 · · · un 6 . 7 = u21 + u22 + · · · + u2n
ˆ ˜
referred to as
» the – magnitude or norm of v.
6 7
4 .. 5
u1
Let u = be a vector in R2 . The length of this un
u2
vector would be the distance from the origin (0, 0) to the
We then have the following concise formula which is
point (u1 , u2 ) and this is given by the Pythagorean The-
valid for vectors in Rn for all n
orem as q
kuk = u21 + u22 kuk2 = uT u
5
»
– EXAMPLE 5.3. Let u be any vector in Rn and k be a
EXAMPLE 5.2. Let u = . Figure 5.1 shows u scalar then
−3 “ ”
and by the Pythagorean Theorem we can find the norm kkuk2 = kuT (ku)
of u as q √ = k2 uT u
kuk = 52 + (−3)2 = 34
= k2 kuk2
5.1. Distance and Length 3
Unit Vectors
A unit vector is a vector whose length is 1.
1
If u is any non-zero vector in Rn then u is a unit
kuk
vector. This can be seen by applying the formula kvk2 =
1
vT v to the vector u. This gives:
kuk
„ «T „ «
1 1 1
u u = uT u
kuk kuk kuk2
1
= kuk2
kuk2
=1
The process of multiplying a vector by the reciprocal of
its length to obtain a unit vector is called normalization.
Notice that this procedure doesn’t alter the direction or
sense of the vector.
3 2
2
6 2 7
EXAMPLE 5.5. Normalize the vector v = 6
4 0 5.
7
−1
√ √
We have kvk = 4 + 4 + 0 + 1 = 9 = 3 so
2 3 2 3
2 2/3
166 2 7 = 6 2/3 7
7 6 7
34 0 5 4 0 5
−1 −1/3
is a unit vector parallel to v. Note: Just to avoid any pos-
sible confusion, when we say that two non-zero vectors,
u and v, are parallel we mean that they have the same
direction. Each one is a scalar multiple of the other.
4 Chapter 5. Vector Geometry
Problems
» –
3 d. 3i − 5j + 2k
a.
4 » –
−→
»
3
– 2 3 1
1. If A = (4, −2) and AB = what is B? 3 e.
−1 t
b. 445 » –
cos t + sin t
2 3
−6 5
−→ f.
2. If B = (5, −4, 7) and AB = 4 2 5 what is A?
2 3 cos t − sin t
1
2 6 1 7
c. 6
4−15
7
3. Find the length of the following vectors:
» – » – −1
3 cos θ
a. d. −→ −−
→
−2 sin θ 9. If kABk = 5 and kBCk = 3 what are the possible
−→
values for kACk?
2 3 2 3
1 cos(s) sin(t) » – » –
b. 4 4 5 e. 4cos(s) cos(t)5 cos(s) cos(t)
−1 10. Let u = and v = . These are two
sin(s) sin(s) sin(t)
unit vectors 2
p in R . Show that the distance from u
2 3
4 f. i + j + k
6 37 to v is 2 − 2 cos(s − t)
c. 6 7 g. 4i − j − 3k 2 3
4 25 √ v1
1 h. 1 − 2t2 i + tj + tk 11. Prove that in R3 the length of 4v2 5 is given by
v3
1
2 3 q
v12 + v22 + v32 .
6 17
4. Let v = 6 . 7 be the vector in Rn all of whose 12. True or False:
6 7
4 .. 5
1 a. kuk2 = uuT
entries are 1. What is kvk? b. kuk2 = uT u
5. Find the lengths of the sides of triangle ABC where c. k2uk2 = 4uT u
the vertices are given by
d. ku + vk2 = uT u + vT v
a. A(0, 0), B(3, 3), C(5, −1) C(0, 0, 1) e. If kuk = kvk then ku + vk = kuk + kvk.
b. A(−1, 2), B(1, 5), C(3, 1)d. A(3, 1, 2), f. kAuk2 = uT AT Au
c. A(1, 0, 0), B(4, −1, −2),
13. Under what conditions will ku + vk = kuk + kvk?
B(0, 1, 0), C(−2, 0, 1)
14. Suppose A is an n × n matrix such that AT A = I.
−→
»
2
–
−
−→
» –
−3 Let v be any vector in Rn . Show kAvk = kvk
6. a. If AB = , BC = , and A is the »
cos θ − sin θ
–
−1 5 15. Let A = . Show that if v is any
point (3, 7) what is C? Draw a diagram illus- sin θ cos θ
tating this problem. vector in R2 then kAvk = kvk.
2 3 2 3
3 2
−−
→ −→
b. If P Q = 415, QR = 4−15, and R is the
0 1
point (−3, 5, 2) what is P ?
2 3 2 3
1 k
7. Let u = 425 and v = 4k + 15. Use calculus to
4 k+2
find the value of k for which the distance from u to
v is a minimum.
8. Find a unit vector parallel to each of the following
vectors:
5.2. The Dot Product 5
u · v = uT v
The Dot Product in R2
» – (This formula uses the standard convention of interpreting
Suppose we have two vectors in R2 , u = uu1 and v = the 1 × 1 matrix uT v as a scalar.)
2
» –
v1
as illustrated in Figure 5.2 » –
1
» –
3
v2 EXAMPLE 5.6. If u = and v = then
3 1
3
u · v = (1)(3) + (3)(1) = 6
u-v and √
2
v kuk = kvk = 10
It then follows that if θ is the angle between u and v we
have
6 3
1
cos θ = √ √ =
u
10 10 5
θ and the angle between u and v is arccos(3/5) ≈ 51.13◦ .
–1 0 1 2 3 4
and −4 −2 0 2 4
x
u · v = kuk kvk cos θ
where θ is the angle between u and v. Since θ is one angle
of a triangle we have 0◦ ≤ θ ≤ 180◦ . This means that θ
is the smallest positive angle between u and v. Figure 5.3.
There
» –is another»way – of indicating the dot product. If
u1 v1 −−
→
» –
−−
→
u= and v = then 1
u2 v2 In terms of vectors we have OP = and OQ =
1
√
» – » –
˜ v1 x −
−→ − −→ −−
→
uT v = u1 u2 . We also have OP · OQ = x + x2 , kOP k = 2, and
ˆ
= u1 v 1 + u2 v 2
v2 x2
6 Chapter 5. Vector Geometry
−−
→ √ 2
x1
3
kOQk = x2 + x4 . If the angle between these vectors is
30◦ the dot product formula gives 6 x2 7
this let x = 6 . 7. Then x·x = x21 +x22 +· · ·+x2n and this
6 7
√ p 4 .. 5
x + x2 = 2 x2 + x4 cos 30◦
√
xn
Substituting cos 30◦ = 3
and squaring both sides gives value can never be negative since it is the sum of squares.
2
Next it says that the inner product of the zero vector
´3 with itself is 0. This is easy: if x = 0 then x · x =
x2 + 2x3 + x4 = 2 x2 + x4
`
4 0 + 0 + · · · + 0 = 0.
Finally part (d) claims that if the dot product of a
We omit the algebra but you should be able to solve this
√ vector with itself is 0 then the vector must be the zero
equation and√find two values of x that work x = 2 + 3 vector. To see this suppose x · x = 0. Then x21 + x22 +
and x = 2 − 3. · · · + x2n = 0. Since the left hand side of this equation has
no negative terms the only way the terms can add up to
The Dot Product in Rn 0 is if each term is 0. So x1 = 0, x2 = 0, . . . , xn = 0 and
we have x = 0.
The dot product can be generalized to vectors in Rn . This last property says that in Rn the only vector with
length 0 is the zero vector.
Definition 5.2. Let u and v be vectors in Rn then their
dot product is defined by
u · v = uT v
Orthogonal Vectors
u1
3 2 The formula u · v = kuk kvk cos θ relates the dot product
6 u2 7 to the angle between vectors 1 . If u and v are non-zero
The above definition implies that if u = 6 . 7 and
6 7 vectors then the right hand side of this expression is pos-
4 .. 5 itive if 0◦ ≤ θ < 90◦ and negative if 90◦ < θ ≤ 180◦ .
un More importantly the dot product is 0 if θ = 90◦ . This
v1
2 3 means that two non-zero vectors are perpendicular if and
6 v2 7 only if their dot product is 0. This leads to the following
v = 6 . 7 then
6 7 definition.
4 .. 5
vn Definition 5.4. Two vectors in Rn are said to be or-
thogonal if their dot product is 0.
u · v = u1 v 1 + u2 v 2 + · · · + un v n
The fundamental properties of the dot product are This definition implies that the zero vector in Rn is
summarized by the following theorem. orthogonal to every vector in Rn .
Theorem 5.3. If x, y, and z are vectors in Rn and c EXAMPLE 5.8. Show that the triangle with vertices
is a scalar then A(−2, 3), B(5, 5), and C(0, −4) is a right triangle.
We want to interpret the sides of this triangle as vec-
a. x · y = y · x
tors. If we treat A as the origin
» then
– the »vector
– from
b. x · (y + z) = x · y + x · z −→ 5 − (−2) 7
A to B would be AB = = . Sim-
5−3 2
c. (cx) · y = c (x · y) » – » –
−→ 0 − (−2) 2
d. x · x ≥ 0 and x · x = 0 if and only if x = 0. ilarly AC = = . Now notice that
−4 − 3 −7
−→ −→ −→ −→
AB · AC = 7(2) + 2(−7) = 0. Since AB · AC = 0 we
−→ −→
Proof. The proof of part (a) is left as an exercise. have kABk kACk cos θ = 0. We can then conclude that
Since u · v = uT v parts (b) and (c) follow from the
corresponding properties of matrix multiplication. 1
The proof of part (d) is more complicated because it Although this formula was proved only for vectors in
makes several claims. First it claims that the inner prod- R2 it is applicable in all Rn . Justification for this will be
uct of a vector with itself can never be negative. To see given shortly.
5.2. The Dot Product 7
cos θ = 0 and so θ = 90◦ . Proof. If v is the zero vector then both sides of the in-
equality would be zero and the theorem would be true so
EXAMPLE 5.9. »For what we will assume that v is not the zero vector.
» – – value(s) of k are the vectors Part d of Theorem 5.3 tells us that
k k+1
u= and v = orthogonal? “ u·v ” “ u·v ”
2k k−1 u− v · u− v ≥0
We just have to determine any values of k which make v·v v·v
u · v = 0. since the dot product of any vector with itself is always
u · v = k(k + 1) + 2k(k − 1) greater than or equal to 0.
Simplifying the left hand side of the above gives
= k2 + k + 2k2 − 2k
= 3k2 − k
“ u·v ” “ u·v ” u·v (u · v)2
u− v · u− v =u·u−2 u·v+ v·v
= k(3k − 1) v·v v·v v·v (v · v)2
which gives θ ≈ 100.52◦ That is, the entries in any unit vector are the direction
cosines of that vector.
Theorem 5.7. ( Triangle Inequality) If u and v are 2 3
vectors in Rn then 0
6 1 7
ku + vk ≤ kuk + kvk EXAMPLE 5.11. Let u = 6 4−15. If we normalize u
7
√
2
2 3
0
Proof. 6 1/2 7
we get 6 −1 −1
4−1/25. Now cos (0) = π/2, cos (1/2) = π/3,
7
ku + vk2 = u · u + 2u · v + v · v (5.9) √
≤ u · u + 2|u · v| + v · v (5.10) 2/2
√
cos−1 (−1/2) = 2π/3, and cos−1 ( 2/2) = π/4. So u lies
≤ u · u + 2kukkvk + v · v (5.11)
at an angle of 90 from e1 , at an angle of 60◦ from e2 ,
◦
2
= (kuk + kvk) (5.12) at an angle of 120◦ from e3 , at an angle of 45◦ from e4
Equation 5.11 follows from the Cauchy-Schwarz theorem
The above shows that ku + vk2 ≤ (kuk + kvk)2 . The Note that for any non-zero vector v there are two unit
theorem then follows by taking the square root of both vectors in the same direction as v. One has the same
sides. sense as v, the other has the opposite sanse of v.
Direction Angles
The dot product gives us a new way of looking at unit
vectors. Any particular entry in a unit vector cannot be
larger than 1 or less than -1. The entries in a unit vector
turn out to have a very simple geometric interpretation.
2 3
v1
3
In R the angles between any vector v = 4v2 5 and
v3
the x1 , x2 and x3 axes are called the direction angles
of v and are represented by α, β, γ respectively. These
are just the angles between v and the unit vectors i, j,
and k. So we have
v·i v1
cos α = =
kvk kik kvk
v·j v2
cos β = =
kvk kjk kvk
v·k v3
cos γ = =
kvk kkk kvk
We can now write
2 3 2 3 2 3
v1 kvk cos α cos α
v = 4v2 5 = 4kvk cos β 5 = kvk 4cos β 5
v3 kvk cos γ cos γ
The values cos α, cos β, and cos γ are called the direc-
tion cosines of v.
The last example can be generalized in the following
way (we leave the details as an exercise). Let v be any
non-zero vector in Rn . If we normalize v then the entries
in the normalized vector are just the cosines of the angles
between v and the vectors in the standard basis of Rn .
Problems 9
10.0
have to translate the line so that it passes through p and
q and we do this by adding either one of these to our
7.5
equation. So one possible answer would be
2 3 2 3
1 3
5.0 A 6 27 6 1 7
x = 4 5 + t4 7
6 7 6
3 −15
4 −3
2.5
You should understand that points on the line are gen-
B
erated by different values of the parameter t. In particular
0.0
when t = 0 in the above equation we have x = p and when
−0.8 0.0 0.8 1.6 2.4 3.2 4.0 4.8 5.6 6.4
t = 1 we have x = q.
x
−2.5
In Rn with n ≥ 3 a vector that is orthogonal to a line
can be pointing in infinitely many different directions. For
−5.0
example in R3 any vector in the x, y plane will be orthog-
onal to the z axis. This means that it is no longer possible
to determine the direction of a line just by specifying a
Figure 5.5. The line through A and B. normal vector in these spaces.
So parametric equations are more versatile since they
can be used to represent lines in spaces of any dimension.
Lines can be represented by normal or Cartesian equations
» –But we can also find a normal vector to this line, n = only in R2 .
4
. The line therefore has an equation of the form 4x +
3
3y = c. Substituting the coordinates of A gives EXAMPLE 5.15. Let L1 be the line defined by
4x + 3y = 27
2 3 2 3
1 2
6 27
7 + s 6 17
6 7
x=6 4 15 4 15
Lines in Rn 3 3
In general a line in Rn can be written in parametric-vector and L2 be the line defined by
form x = u + tv where v determines the direction of the 2 3 2 3
line and u lies on the line. 1 3
6 27 6 0 7
x = 4 5 + t4 7
6 7 6
EXAMPLE 5.14. 1 2 5
2 3 Find the 2 equation
3 of the line con-
3 −1
1 4
6 27 6 37
taining both p = 6435 and q = 425.
7 6 7 It 3should be obvious that these lines intersect at
2
1
4 1 627
If we translate this line to pass through the origin by 6 7. The angle between the direction vectors of these
415
subtracting p from all points on the line then a direction 3
vector for the line would be 6+0+2−3
lines is cos−1 √4+1+1+9 √
9+0+4+1
= cos−1 √ 5√ ≈
2 3 2 3 2 3 15 14
4 1 3 1.22 radians. This is the angle formed by the two inter-
6 37 6 27 6 1 7
q−p=4 5−4 5=4 7
6 7 6 7 6 secting lines. Even though these are lines in R4 there
2 3 −15 is still a plane (a flat 2-dimensional surface) containing
1 4 −3 these lines. It should also be obvious that this plane is
2 3 defined by the equation
3
6 1 7 2 3 2 3 2 3
The line x = t 4 7
6 would therefore be a line through 1 2 3
−15 6 27 6 17 6 0 7
−3 x = 4 5 + s4 5 + t4 7
6 7 6 7 6
1 1 2 5
the origin parallel to the line we are looking for. We just 3 3 −1
12 Chapter 5. Vector Geometry
2 3
32
647
Does 64215 lie in this plane? This is equivalent to ask-
7
0
ing if the equation
2 3 2 3 2 3 2 3
1 2 3 32
627
6 7 + s6 7 + t6 0 7 = 6 4 7
6 17 6 7 6 7
415 4 15 4 2 5 4215
3 3 −1 0
has a solution. This vector equation gives us the aug-
mented matrix 2 3
2 3 31
61 0 2 7
6 7
41 2 20 5
3 −1 −3
This augmented matrix reduces to
2 3
1 0 2
60 1 97
6 7
40 0 05
0 0 0
So this point does lie in the plane. It corresponds to the
values s = 2 and t = 9 in the equation of the plane.
Problems 13
2. Write the following lines in normal form 6. Find all values of a and b such that the following
» – » – » – two equations represent the same line
2 3 4
a. x = +t c. x = t
» – » –
1 −1 3 4 1
x= +t
» – » – −2 3
0 5 » – » –
b. x = +t d. x = ti + (1 − t)j a b
3 2 x= +t
2 4
» – » –
−3 1
3. Given the line L : x = +t 7. Find all values of a and b such that the following
1 −2
two equations represent the same line
a. Find the value of x that corresponds to t =
1. Find the value of x that corresponds to 4x1 + x2 = 3
t = −2. 2x1 + ax2 = b
b. »
Find– the value of t that corresponds to x = 8. Let n and x0 be vectors in R2 . Show that the
1 line through x0 normal to n can be written nT x =
.
−7 nT x0 .
» –
−3 9. Find a parametric vector equation of the line con-
c. Find all x on L that lie 2 units from .
1 taining p and q where
d. Find all x on L that lie 5 units from the ori- 2 3
1
2 3
4
gin. a. p = 2 q = 415
4 5
e. Illustrate all the above with a picture. 3 1
2 3 2 3 2 3 2 3
2 1 0 2
4. Given the line x = 0 + t 4−15
4 5 6 2 7
7 q = 6 27
6 7
1 1 b. p = 64 1 5 4 55
a. Find the value of x that correspond to t = 1. −3 5
Find the values of x that correspond to t =
10. In R3 find three different lines through the origin
−2.
orthogonal to the vector k.
b. 2
Find 3the value of t that corresponds to x = 11. For what values of a and b do the following equa-
4/3 tions give the same line?
42/35.
2 3 2 3 2 3
1/3 a 1 b
2 3 x= 4 3 5 +t 1
4 5 and x = s 4 2 5
0
a+3 2 b+2
c. Is 425 on this line? For what value(s) of k is
2 12. a. Show that the line in Rn which contains p
2 3
0 and q can be represented by the equation x =
425 on this line? (1 − t)p + tq.
k
b. Find
» the
– normal
» – equation of the line x = (1−
d. 2
Find3 all x on the line that lie 2 units from 2 1
2 t) +t .
−5 3
4 05.
1
e. Find all x on the line that lie 2 units from
the origin.
14 Chapter 5. Vector Geometry
n · (x − x0 ) = 0 −3
2 3 2 3
a x − x0
4 b 5 · 4 y − y0 5 = 0
c z − z0 Figure 5.6. The plane x + 2y + 4z = 0
a(x − x0 ) + b(y − y0 ) + c(z − z0 ) = 0 and a normal vector.
ax + by + cz − ax0 − by0 − cz0 = 0
This equation can be written ax+by +cz = ax0 +by0 + EXAMPLE 5.17. Find a parametric-vector equation of
cz0 or just the plane with normal equation
ax + by + cz = d x − 2y + 2z = 4
where d = ax0 + by0 + cz0 . We will call this the normal We can look at this equation as a very simple system of
equation 3 of a plane in R3 . Note that this equation can equations. It is just a system of one equation with three
be expressed in terms of the relevant vectors as unknowns. The general solution will therefore require two
free variables. The general solution will be
2 3 2 3 2 3 2 3 2 3
nT x = nT x0 x 4 + 2s − 2t 4 2 −2
4y 5 = 4 s 5 = 4 05 + s 4 15 + t 4 0 5
z t 0 0 1
EXAMPLE 5.16. The equation x + 2y + 4z = 0 can be
and this is a parametric-vector equation of the plane.
3 2 Notice
3 that the equation x−2y +2z = 4 tell us that n =
1
It is more common to call this the standard equation 4−25 is a normal vector to the plane. The parametric-
or the Cartesian equation of a plane. 2
5.4. Planes and Hyperplanes 15
expect.
–2
This means that any point on the line must satisfy the x4 = t then the general solution would be
equations x = 1 + t, y = −5 + 2t, and z = −3 + 2t for 2 3 2 3
some value of the parameter t. If the point also lies on x1 21 − 2r − 3s − 4t
6 x2 7 6 r
the plane it must satisfy the equation x + 2y − z = 3.
7
6 7=6 7
4 x3 5 4 s
Substitution then gives
5
x4 t
2 3 2 3 2 3 2 3
21 −2 −3 −4
x + 2y − z = 3 607 6 1 7 6 0 7 6 0 7
= 4 5 + r4 5 + s4 5 + t4 7
6 7 6 7 6 7 6
(1 + t) + 2(−5 + 2t) − (−3 + 2t) = 3 0 0 1 0 5
3t − 6 = 3 0 0 0 1
t=3 This would be a parametric-vector representation of the
same hyperplane. This representation makes it clear that
the hyperplane is a three dimensional subspace of R4 with
The point of intersection occurs when t = 3 so the basis
= −5 + 6 = 1,
8 2 3 2 3 2 39
point of intersection is x = 1 + 3 = 4, 2y 3 > −2 −3 −4 >
>
< 6 7 6 7 6 7>
4 1 0
6 7,6 7,6 0 7
=
z = −3 + 6 = 3, or in vector form x = 415. > 4 0 5 4 1 5 4 0 5>
3
> >
0 0 1
: ;
2 3
21
Hyperplanes 607
that has been translated by the vector 4 7
6 .
05
We have seen that in R2 the equation nT x = nT x0 de- 0
fines a line through x0 with normal n and in R3 this
equation defines a plane through x0 with normal n.
In general, in Rn the equation nT x = nT x0 defines Another notation for lines and planes
what is called a hyperplane through x0 with normal n. A line through the origin in Rn is a one-dimensional sub-
This type of equation is a linear equation with n variables. space of Rn . A plane through the origin in Rn is a two-
There are then n − 1 free variables and this means that in dimensional subspace of Rn . If we represent such a sub-
Rn a hyperplane will be an n−1 dimensonal subspace that space by V then we can translate the line or plane to a
might or might not have been translated away from the new position by adding a vector to each vector in V . The
origin. So in R2 a hyperplane is a (possibly translated) 1 translated line or plane can be represented by V + u. In
dimensional subspace, a line. In R3 a hyperplane is a 2 other words V + u = {x : x = v + u, v ∈ V }.
dimensional subspace that has possibly been translated. But there is no need to restrict ourselves to lines and
2 3 2 3 planes. If V is any subspace of Rn then V + u represents
1 2 V translated by u to a new position. If V is 1-dimensional
627 6 07 then V + u is a line. If V is 2-dimensional then V + u
EXAMPLE 5.21. Let n = 4 5 and x0 = 4 7
6 7 6 then
3 55 is a plane. If V is n − 1 dimensional then V + u is a
4 1 hyperplane. In general if V is k dimensional then V + u
the normal equation of the hyperplane through x0 with is called a k-flat.
normal n would be
nT x = nT x0
2 3 2 3
x1 2
ˆ ˜ 6 x2 7 ˆ ˜ 6 07
1 2 3 4 4 7
6 = 1 2 3 4 4 7
6
x3 5 55
x4 1
x1 + 2x2 + 3x3 + 4x4 = 21
Problems 1 1
2 3 2 3
6 17 6 17
8. In Rn let n = 6 . 7 and x0 = 6 . 7. Find the normal
6 7 6 7
1. Find a normal equation of the plane or hyperplane 4 .. 5 4 .. 5
containing x0 with normal n.
1 1
2 3 equation and the parametric-vector equation of the
1 c. n = i + j + 3k, hyperplane containing x0 with normal n for
a. n = 4 2 5, x0 = x0 = 2i + 5j − 3k
−1
2 3
3
a. R2 b. R3 c. R4 d. R5
4 05 2 3
3
2 6 17 9. Find the point of intersection of the following
2 3 d. n = 6
425, x0 =
7 planes and lines
3
b. n = 435, x0 = 2 a. 2
The 3 plane
2 2x3+ 3y + 3z = 8 and the line x =
1 3
2 3
0 0
2 3
1 627 4 45 + t 4 0 5 .
2 −1
6 7
4 25 435
5 1 b. 2
The 3x − y − z = 5 and the line x =
3 plane
2 3
1 2
2. Find a parametric-vector equation of each of the 4 25 + t 4 15.
following planes or hyperplanes. 5 5
c. 2
The 3 plane
2 3 x + y + 2z = 14 and the line x =
a. x1 + x2 − 2x3 = 3 c. x1 +x2 +x3 +x4 = 2 3
1 4 35 + t 4 15.
b. 3x1 +2x2 +x3 = 5
0 1
5.5 Projections
2 3
3
EXAMPLE 5.23. Find the distance from 415 to the
2
Suppose u and v are vectors in Rn with v 6= 0. If we 2 3 2 3
drop a perpendicular line from u onto the line determined 1 3
by v as shown in Figure 5.8 we obtain a vector called line defined by x = 415 + t 405.
the projection of u onto v which we will represent by 3 1
Projv u. Step 1. Translate the line and the point so that the
line goes through
2 3the origin. The simplest way to do this
4 u 1
is to subtract 415 from the line and the point. The trans-
3 perp
3
2 3
3
lated line is just x = t 405 and the translated point would
2
1
2 3 2 3 2 3
v 3 1 2
1
be u = 415 − 415 = 4 0 5.
proj 2 3 −1
2 3
0 1 2 3 4 5 3
Step 2. Let v = 405 be the direction vector of the
Figure 5.8. The projection of u onto v. 1
line and find Projv u. This gives
2 3 2 3
The projection of u onto v must be in the same direc- 3 3/2
5 4 5 4
tion as v so we have Projv u = kv for some scalar k. We Projv u = 0 = 0 5
also know that u − Projv u is perpendicular to v so we 10 1 1/2
can write Step 3. The distance is just the length of Perpv u. We
(u − Projv u) · v = 0 have 2 3 2 3 2 3
2 3/2 1/2
(u − kv) · v = 0
Perpv u = 4 0 5 − 4 0 5 = 4 0 5
u · v − kv · v = 0 −1 1/2 −3/2
u·v
We then have kv · v = u · v and so k = and Thus the distance is
v·v √
10
q
u·v
p
Projv u = v (1/2)2 + (−3/2)2 = 5/2 =
v·v 2
As mentioned above the vector u − Projv u is perpen-
dicular to v and is called the orthogonal component of Distance from a Point to a Plane
the projection. We will denote this orthogonal component
by Perpv u The distance from a point to a plane (or hyperplane) can
be found as illustrated in Figure 5.9. The idea is that
» – » – we project a vector onto a normal to the plane and the
1 3
EXAMPLE 5.22. Let u = and v = then distance we want is just the length of this projection.
4 1
» – » –
u·v 7 3 21/10
2 3
3
Projv u = v= =
v·v 10 1 7/10 EXAMPLE 5.24. Find the distance from v = 455 to
and 2
» – »
1 21/10
– »
−11/10
– the plane x1 + 2x2 + 2x3 = 6.
Perpv u = u − Projv u = − = We will need any point that lies on the given plane to
4 7/10 33/10
use as a reference
2 point.
3 We can use the x3 intercept of
0
Distance from a Point to a Line in Rn the plane, x0 = 405. We will also need a normal to the
3
The method we will use for finding the distance from a
2 3
1
point to a line is illustrated by Figure 5.8. The distance plane, n = 425.
will just be kPerpv uk. 2
20 Chapter 5. Vector Geometry
Further
2 3 computation will confirm that the distance from • The square root of the entry in the lower right corner
3/7 √ is the distance you are looking for!!!
4−1/75 to x0 is 8/ 14.
9/7 1
2 3
6 17
A General Method for Finding EXAMPLE 5.26. Find the distance from v = 627 to
6 7
4 25
Distances 3
1 0
2 3 2 3
Every problem that involves finding a distance can be
reduced to a situation as depicted in Figure 5.10. 6−17 6 17
the plane generated by u1 = 6 0 7 and u2 = 617.
6 7 6 7
4−15 4 15
1 1
1 0 1
2 3
? 6−1 1 17
?
Let A = 6 0 1 27. Then AT A =
6 7
4−1 1 25
1 1 3
2 3
4 −1 1
4−1 4 8 5. Now row reduction gives
1 8 19
(a) (b) 2 3 2 3 2 3
4 −1 1 4 −1 1 4 −1 1
4−1 4 8 5 −→ 40 15/4 33/45 −→ 40 15/4 33/45
Figure 5.10. Distance (a) to a line (b) 1 8 19 0 33/4 75/4 0 0 3/5
to a plane.
p
In Figure 5.10 (a) the distance you are looking for is the So the distance from v to the span of u1 and u2 is 3/5.
distance from one vector to the line generated by another But there is more information given by this reduced
vector. In Figure 5.10 (b) the distance is the distance from matrix. The square root of the first diagonal entry is the
one vector to the plane generated by two other vectors. distance of u1 from the origin. The square root of the
You should be able to see how this pattern could extend second diagonal entry is the distance from u2 to the line
to higher dimensional situations with hyperplanes. generated by u1 . The square root of the third diagonal
Such problems can always be seen as finding the dis- entry is the distance of v from the plane generated by u1
tance to a subspace from some vector not in the subspace. and u2 . Distance, distance, distance.
So now suppose we want to find the distance from u to the Also the product of the three diagonal entries is the
subspace spanned by v1 , v2 , . . . , vk (where these vectors square of the volume of the parallelepiped formed by the
are assumed to be linearly independent). We will illus- columns of A. The product of the first two diagonal en-
trate a method for obtaining this information (and more) tries is the square of the area of the parallelogram formed
that seems almost magical. If you want an explanation by u1 and u2 . The first diagonal entry is is the square of
of why this method works you will have to take a more the length of u1 . Length, area, volume!!!
advanced course in linear algebra. Here’s the method:
ˆ ˜ EXAMPLE 5.27. Given the points A(1, 0, 0, 1),
• Let A = v1 v2 · · · vk u .
B(3, 1, 1, −1), C(0, 2, 0, 2) in four dimensions find the dis-
• Compute AT A (this is sometimes called the Gram tance from C to the line through A and B.
matrix). The first step is to restate the problem in terms of vec-
tors in R4 . It should be clear that the problem is equiv-
• Put the Gram matrix AT A in row echelon form us- −→
alent to finding the distance from 2 3AC to the line 2 gen-
ing only addrow operations (no row swaps or multi-
3
2 −1
plying rows by constants). This amounts to finding −→ −→ 6 1 7 −→ 6 2 7
matrix U of the LU decomposition that we saw ear- erated by AB. Now AB = 6 4 1 5 and AC = 4 0 5.
7 6 7
lier. −2 1
22 Chapter 5. Vector Geometry
2 3
2 −1 » – Notice also the fact that the determinant of the Gram
7 and then AT A = 10 −2 .
6 1 2 7
So let A = 6 matrix gives the square of the volume implies the Cauchy-
4 1 0 5 −2 6 Scwarz theorem that was mentioned earlier in this chap-
−2 1 ter.
One elementary row operation is »all that’s needed
– to put
10 −2
AT A in row echelon form giving so the dis-
0 28/5
p
tance we are looking for is 28/5. We can also see that
10(28/5) = 56 so the area of the parallelogram formed by
−→ −→ √
AB and AC is 56.
0
2 3 2 3
1 0 1 1 3 1 2 1
6 0 1 1 07
6 1 2 1 07
T
6 7
Let A = 641 1 0 05. So A A = 42 1 3 15
7
1 0 1 0 1 0 1 1
2 3
3 1 2 1
60 5/3 1/3 −1/37
which reduces to 6 40
7. So the dis-
0 8/5 2/5 5
0 0 0 1/2
p
tance we want is 1/2.
(u · v)2
kvk2 − = kvk2 − kvk2 cos2 θ
kuk2
If you’ve followed the reasoning so far you should be able
to finish it yourself.
Problems 23
Problems
2 3 2 3 2 3
3 0 3
c. x0 = 1 , x = 1 + t 415
4 5 4 5
1. Find Projv u and Perpv u for −1 3 1
» – 2 3 5. Find the point on the given hyperplane that is clos-
1 1 est to x0
a. u = , v =
−12 6 17
» – c. u = 64 15, v =
7 2 3
2 y − z3 = 2m
a. 3x + 2 1
5 1 2
415
1
2 3
2 3 1 x =4 1 5
0
1 6 27
b. u = 415 v = 6 7 −1 c. x1 + 2x2 + x23 −
4 35 1
3
4
2 3 4 6 17
1 x4 = 5, x0 = 6
4 05
7
4 2 5 d. u = 3i + 2j − k,
b. x+y−z = 4, x0 = 0
−3 v = j − 5k
2 3 2 3 2 3 2 3
1 1 1 1
2. Find the distance from x0 to the given line 6 17 6 17 6 17 6 07
6. Let v1 = 4 7 , v = 6 7, v3 = 4 5, v4 = 4 7 .
15 2
» – » – 6 6 7 6
3 1 4 15 0 05
a. x0 = ,x=t 1 0 0 0
−2 1
» – » – » – Find the distance
2 1 3
b. x0 = ,x= +t a. from v2 to the span of v1 .
5 3 −2
2 3 2 3 2 3 b. from v3 to the span of v1 and v2 .
1 2 1
c. x0 = 0 , x = 1 + t 4 3 5
4 5 4 5 c. from v4 to the span of v1 , v2 and v3 .
2 1 −1
2 3 2 3 2 3
0 2 1
6 27 617 6 1 7
d. x0 = 4 5, x = 4 5 + t 4 7
6 7 6 7 6
1 1 −15
1 2 −1
3. Find the distance from x0 to the given hyperplane
» –
3
a. x0 = , x − 4y = 1
2
2 3
2
b. x0 = 415, 3x − y − z = 4
0
2 3
1
c. x0 = 4 3 5, x + y + 2z = 9
−4
2 3
0
6 07
d. x0 = 4 7 , x + x2 + x3 + x4 = 4
05 1
6
1
4. Find the point on the given line that is closest to
x0
» – » – » –
1 1 1
a. x0 = ,x= +t
3 0 −1
2 3 2 3 2 3
0 1 0
b. x0 = 0 , x = 2 + t 435
4 5 4 5
0 1 1
24 Chapter 5. Vector Geometry
5.6 The Cross Product Another important property of the cross product is
• u × (kv) = ku × v
• u × (v + w) = u × v + u × w Figure 5.11.
The first property implies that if two vectors in R3 are
parallel then their cross product is 0. The second property
says that changing the order of the factors reverses the
sense of the cross product. The third property says that EXAMPLE 5.30. Given points A(1, 2, 4), B(5, 5, 4)
the cross product of two vectors is always orthogonal to and C(3, 5, 7) find the area of triangle ABC.
both of the original factors. The right hand rule says As usual, look at2 the
3 sides of the
2 triangle
3 as vectors.
4 2
that u×v points in the direction of your right hand thumb −→ 4 5 −→ 4 5
if you point the fingers of your right hand along u so that The vectors AB = 3 and AC = 3 determine a par-
the fingers curl in the direction of v. 0 3
allelogram. The area of this parallelogram is
‚2 3‚
EXAMPLE 5.29. Let ‚ 9 ‚
√
−→ −→ ‚ ‚
kAB × ACk = ‚4−125‚ ‚ = 3 29
2 3 2 3
3 2 ‚
u = 4 35 v= 5 5
4 ‚ 6 ‚
1 −1
Triangle ABC is half
√ of this parallelogram so the area
then ˛ ˛ 3 29
˛i j k ˛˛ of triangle ABC is .
˛ 2
u × v = ˛3 3
˛ 1 ˛˛ = −8i + 5j + 9k
˛2 5 −1˛
EXAMPLE 5.31. We know that a plane in R3 can be
Notice that this cross product is orthogonal to each of the
represented by an equation of the form x = x0 + su + tv
original factors as the following dot products show
2 3 2 3 where u and v are linearly independent. Suppose we take
3 −8 the dot product of both sides of this equation with u × v.
435 · 4 5 5 = −24 + 15 + 9 = 0 We get
1 9
2 3 2 3 x · (u × v) = (x0 + su + tv) · (u × v)
2 −8
4 5 5 · 4 5 5 = −16 + 25 − 9 = 0 = x0 · (u × v) + su · (u × v) + tv · (u × v)
−1 9 = x0 · (u × v) + 0 + 0
5.6. The Cross Product 25
Let n = u×v, this will be a normal vector to the plane. The volume of the parallelpiped is therefore given by
The above computations can then be written x · n = x0 · n
Volume = (area of base) times (height)
or nT x = nT x0 , another familiar equation of the plane.
|u · (v × w)|
= kv × wk
There is another way of looking at the cross product. kv × wk
Let = |u · (v × w)|
2 3 2 3 2 3
a 0 −c b x1 The value u · (v × w) is called the scalar triple product
u= b 4 5 A= c4 0 −a 5 x = 4 x2 5 of u, v, and w. It’s a bit surprising but the scalar triple
c −b a 0 x3 product can be computed as a 3 × 3 determinant.
then
2 3 ˛ ˛ ˛ ˛
2 32 3 2 3 u1 ˛ i
˛ j k ˛˛ ˛˛ u1 u2 u3 ˛˛
0 −c b x1 −cx2 + bx3 u · (v × w) = 4u2 5 · ˛˛ v1 v2 v3 ˛˛ = ˛˛ v1 v2 v3 ˛˛
Ax = 4 c 0 −a 5 4 x2 = cx1 − ax3 5 = u × x
5 4 u3 ˛w 1 w 2 w 3 ˛ ˛w 1 w 2 w 3 ˛
−b a 0 x3 −bx1 + ax2 This means that the absolute value of a 3 × 3 determi-
So a cross product can be seen as a linear transformation. nant gives the volume of the parallepiped determined by
the rows of the determinant (or the columns of the de-
terminant since a matrix and its transpose have the same
The scalar triple product determinant).
Three linearly independent vectors u, v and w in R3
determine a parallelepiped as shown in Figure 5.12. EXAMPLE 5.32. Find 2 3 the volume
2 3 of the parallelepiped
2 3
1 3 2
vxw determined by u = 2 , v = 0 , w = 425. From
4 5 4 5
1 1 5
the previous comments the volume can be easily computed
u using a 3 × 3 determinant with the given vectors as rows
height (or columns).
˛ ˛
˛1 2 1˛
˛ ˛
˛3 0 1˛ = 0 + 4 + 6 − 0 − 2 − 30 = −22
˛ ˛
˛2 2 5˛
w
The volume is the absolute value of the determinant so
the volume is 22.
d. The plane containing the line through u and u×v =v×w =w×u
v, 3
2 and the2line3through
2 u3 and w where u = If u × v 6= 0 show that u + v + w = 0.
1 2 3
415, v = 4−15, w = 415. 15. Show that
0 2 0 ˛u × v v × w w × u˛ = ˛u v w˛2
˛ ˛ ˛ ˛
6. The points A(1, 3), B(3, 0), and C(4, 6) are the ver- 2 3 2 3
2 1
tices of a parallelogram.
16. Let u = 4 1 5 and v = 435. Describe the solu-
a. Find the possible values for the fourth vertex. −1 3
b. Find the area of each possible parallelogram tions to x × u = v.
with these points as vertices. 17. Let u be a unit vector in R3 . Define
7. The points A(1, −2, 3), B(3, 1, 0), and C(8, 6, 4) are T (x) = (u · x)u + u × x
the vertices of a parallelogram.
a. What is T (u)?
a. Find the possible values for the fourth vertex.
b. If v is in the subspace with normal u show
b. Find the area of each possible parallelogram that T (v) is orthogonal to v.
with these points as vertices.
c. Show that kT (x)k = kxk.
8. Show that (u + v) × (u − v) = −2u × v.
28 Chapter 5. Vector Geometry
5.7 Sample problems with We set these expressions equal to each othe
3
√ √
The length of this projection is 6
6= 6/2.
Problems
2 3
1
6. Find the distance between the skew lines x = 415+
1. Given the points A(1, 3, 3), B(0, 2, −1), and 0
2 3 2 3 2 3
C(3, 2, 2) find 1 2 1
s 435 and x = 415 + t 405
a. The area of triangle ABC. 2 1 3
b. A normal equation of the plane containing A, 7. Find the distance between the parallel hyperplanes
B and C. 4x1 +2x2 +2x3 +x4 = 2 and 4x1 +2x2 +2x3 +x4 = 5.
2 3 2 3
4 2
c. A parametric vector equation of the plane
8. The line x = 4 0 + t 435 lies in which of the
5
containing A, B an C.
−1 1
d. An equation of the line through A and B. following planes?
>with(LinearAlgebra): ### you always need this We proceed as we did in the text. The 2 key
3 insight
2 3is
>with(plots): ### we need this for some plots 2 1
>v1:=<1,3,2>:v2:=<4,1,-1>: that the direction vectors for these lines, 445 and 4 3 5,
>u1:=<8,-4,9>:u2:=<1,2,-2>: 1 −1
>A:=<v2 | -u2 | u1-v1>: define a plane parallel to both lines. A normal vector, n,
>ReducedRowEchelonForm(A); to this plane will be
2
1 0 3
3 >n:=CrossProduct(<2,4,1>, <1,3,-1>);
6 7 n = [-7, 3, 2]
6 0 1 5 7
4 5 2 3
1
0 0 0
We will translate both lines by subtracting 445. After
So we have s = 3 and t = 5. 1
translation L1 will pass through the origin. The trans-
>v1+3*v2; lated L2 will not pass through the origin but
[ 13, 6, -1] 2 3 2 3 2 3
>u1+5*u2; 3 1 2
[13, 6, -1] v = 405 − 445 = 4−45
23 3 1 2
13
The point of intersection is 4 6 5. will lie on this line.
−1
>v:=<3,0,3>-<1,4,1>;
You can now plot the lines and the plane containing
v = [2, -4, 2]
the lines.
The distance we are looking for will then be the dis-
>L1:=v1+s*v2:
tance from v to the plane through the origin with normal
>L2:=u1+t*u2:
n. We find this distance as usual.
>P1:=s*v2+t*u2+v1: ### Span(v2,u2) translated
>line1:=spacecurve(L1,s=0..5,color=black,thickness=2):
>u:=DotProduct(v,n)/DotProduct(n,n)*n;
>line2:=spacecurve(L2,t=0..8,color=blue,thickness=2):
>Norm(u,2);
>plane1:=plot3d(P1,s=-3..2,t=-3..2,style=patchnogrid):
>display([line1,line2,plane1],axes=boxed);
The last √ command gives the distance as
11 62
You can rotate the plot using the mouse to view the displaystyle 31
.
image from different points of view. Now the vector u represents the vector from L1 to L2
at the closest points. In general, the a vector from L1 to
L2 would be
EXAMPLE 5.42. We will use Maple to find the dis-
3
tance between two skew lines in R . We will then find
>w:=evalm(L2-L1):
the points on the two lines that are closest. The lines will
w = [2+t-2*s, 3*t-4-4*s, 2-t-s]
be 2 3 2 3
1 2
L1 : x = 445 + s 445 For what values of s and t will w be equal to u? We
1 1 can answer this in Maple as follows
5.8. Maple examples 33
` 2
u1 + u22 + u32 v12 + v22 + v32
´` ´
>solve( {w[1]=u[1], w[2]=u[2], w[3]=u[3]}, {s,t});
s= 23/31 , t = 61/31 This last result is clearly kuk2 kvk2 . This shows that
The two closest points are therefore ku × vk2
= kuk2 kvk2
sin2 θ
>x1:=<1,4,1>+23/31*<2,4,1>:
and the desired formula follows easily.
x1 = [77/31, 216/31, 54/31]
>x2:=<3,0,3>+61/31*<1,3,-1>: 2 3
x2 = [154/31, 183/31, 32/31] 0
6t7
EXAMPLE 5.44. Find the distance from 4 7 6 to the
Here is another plot which shows the lines and the clos- 05
est points 1
2 3 2 3
1 1
>p3:=pointplot3d( {x1, x2}, connect=true, color=red): 6 177 6−17
plane generated by 4 5 and 4 7
6 6 .
>display( {p1,p2,p3}); 1 1 5
1 0
An alternate way of finding the distance between the Here’s one way:
lines (as described in Section 5.5 is as follows
>A:=<<1,1,1,1>,<1,-1,1,0>,<0,t,0,1>>:
>A:=<<2,4,1>|<-1,-3,1>|<2,-4,2>>: >B:=Transpose(A).A:
>GaussianElimination(Transpose(A).A); >U:=LUDecomposition(B,output=’U’);
>dist:=sqrt(U[3,3]);
21 −13 −10
2 3
6
6 0 62 122 7
7 Matrix U is the result of applying Gaussian elimination
4 21 21 5 (using only addrows) to AT A. This gives
242
0 0 31
2
4 1 1+t
3
r
242 6 7
The distance between the lines is therefore = U =64 0 11/4 −5/4 t − 1/4 7
√ 31 5
8 8
11 2 0 0 11
+ 2/11 t2 − 11 t
√ .
31
Using the information given by the diagonal entries
the distance we want is the square root of the entry
EXAMPLE 5.43. We will use Maple to prove the for- in the third row and third column. So the distance
√ p
mula ku×vk = kuk kvk sin θ where θ is the angle between 22 (−2 + t)2
u and v. is . Notice that this implies that when
11
We will actually show that ku×vk2 = kuk2 kvk2 sin2 θ t = 2 the distance is 0. In other words when t = 2 the
and the given formula follows directly. third column of A lies in the plane generated by the first
First we define two arbitrary vectors in R3 . two columns.
>u:=<u1,u2,u3>:
>v:=<v1,v2,v3>:
>uv:=CrossProduct(u,v): ### uv is the cross product of u and v
>c2:=(u^%T.v)^2/u^%T.u/v^%T.v:
>s2:=1-c2:
>normuv2:=uv^%T.uv:
>simplify(normuv2/s2);
34 Chapter 5. Vector Geometry
Summary
Any n − 1 dimensional subspace, V , in Rn can be rep-
resented by an equation of the form
nT x = 0
where n is a normal vector to the subspace. The subspace
consists of all vectors orthogonal to n.
This idea can be generalized in the following way: the
equation
nT x = nT x0
represents a hyperplane in Rn with normal n and which
contains vector x0 . This hyperplane is V + x0 , V trans-
lated by x0 .