Académique Documents
Professionnel Documents
Culture Documents
Vector Geometry
In this chapter we will look more closely at certain geometric arrow. If we want to stress the particular location that the vector
aspects of vectors in Rn . We will first develop an intuitive under- is pointing to we will usually represent it by a point.
standing of some basic concepts by looking at vectors in R2 and
R3 where visualization is easy, then we will extend these geometric EXAMPLE 4.1. If A = (x1 , x2 , . . . , xn ) and B = (y1 , y2 , . . . , yn )
intuitions to Rn for any n. The basic geometric concepts that we −→
are two points then the vector from A to B (represented by AB
will look at involve measurable quantities such as length, angle, area
) is defined as follows
and volume. We also take a closer look at the two main types of
equations covered in this course: parametric-vector equations and 2
y1 − x 1
3
linear equations. y 2 − x 2
−→ 6 6 7
We begin with a reminder. We defined a vector in Rn as an AB = 6 ..
7
7
n-tuple, i.e., as an n × 1 matrix. This is an algebraic definition of 4 . 5
a vector where a vector is just a list of numbers. The geometric yn − x n
objects we will look at in this chapter should be seen as geomet-
ric interpretations of this algebraic definition. One difficulty that You can think of this as letting A be the origin of a new coor-
−→
students encounter at this stage is that there are many different ge- dinate system and then the entries in AB give the location of B
ometric interpretations that can be given to a vector. For example, relative to A. Or you can imagine translating both A and B by
a vector in Rn can be interpreted geometrically as subtracting A from both points so that A is translated to the origin.
−→
• an arrow starting at the origin. Finally, you can think of AB as an arrow from A to B.
−−
→
• an arrow with a certain length and direction but no fixed lo- 2 So, 3 for example,
2 3 if we have P (1, 5, 2) and Q(7, 7, 0) then P Q =
7−1 6
cation. 47 − 55 = 4 2 5. The entries in this vector indicate that when you
• a point (or more exactly, the coordinates of a point relative to 0−2 −2
some reference point). travel from P to Q you move 6 units in the x1 direction, 2 units
in the x2 direction and 2 units in the negative x3 direction. These
• a directed line segment between two points. −
−→
entries express the location of Q relative to P . If P Q is drawn with
• a displacement (i.e., a translation). the intial point at the origin then the terminal point would be (6,
This multiplicity of interpretations is a strength of the vector 2, -2).
concept not a weakness. Vectors have many applications and de-
pending on the application one geometric interpretation may be We will usually represent a vector as an n × 1 matrix but there
more relevant than another but no matter what geometric interpre- is another standard way of representing vectors that is frequently
tation is chosen the underlying vector algebra remains the same. used. In R2 we define
We will interpret a vector in Rn as a position vector as described » – » –
in section 1.3 of Lay’s textbook. A position vector is just a pointer 1 0
i= j=
to a certain location in Rn . When using position vectors it is not 0 1
necessary to make a firm distinction between a vector and its end-
It then follows that any vector in R2 can be written as
point. For example, when we say that a line is a set of vectors we
mean that the endpoints of the vectors lie on the line. If we want to
» – » – » –
a a 0
stress the direction of the vector we will usually represent it as an = + = ai + bj
b 0 b
1
2 Chapter 4. Vector Geometry
Unit Vectors
–3
(5,–3)
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 vector.
–4
kuk
This can be seen by applying the formula kvk2 = vT v to the vector
1
Figure 4.1. u. This gives:
kuk
4.1. Distance and Length 3
„ «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
4 0 5.
EXAMPLE 4.5. Normalize the vector v = 6 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 possible
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 4. Vector Geometry
−→ −
−→
Problems 9. If kABk = 5 and kBCk = 3 what are the possible values for
−→
» – kACk?
−→ 3
1. If A = (4, −2) and AB = what is B?
» – » –
−1 cos(s) cos(t)
10. Let u = and v = . These are two unit
2 3 sin(s) sin(t)
−6
−→ vectors in R . Show that the distance from u to v is
2
2. If B = (5, −4, 7) and AB = 4 2 5 what is A? p
2 − 2 cos(s − t)
2 2 3
v1
3. Find the length of the following vectors: 3
11. Prove that in R the length of 4v2 5 is given by
» –
3
»
cos θ
– v3
a. d.
q
−2 sin θ v12 + v22 + v32 .
12. True or False:
2 3 2 3
1 cos(s) sin(t)
b. 4 4 5 e. 4cos(s) cos(t)5
−1 sin(s) a. kuk2 = uuT e. If kuk = kvk then ku+
2 3
4 f. i + j + k b. kuk2 = uT u vk = kuk + kvk.
637
g. 4i − j − 3k c. k2uk2 = 4uT u
c. 6
425
7
√ d. ku + vk2 = uT u + vT v f. kAuk2 = uT AT Au
1 h. 1 − 2t2 i + tj + tk
1
2 3 13. Under what conditions will ku + vk = kuk + kvk?
617 14. Suppose A is an n × n matrix such that AT A = I. Let v be
4. Let v = 6 . 7 be the vector in Rn all of whose entries are 1.
6 7 any vector in Rn . Show kAvk = kvk
4 .. 5 » –
cos θ − sin θ
1 15. Let A = . Show that if v is any vector in R2
sin θ cos θ
What is kvk? then kAvk = kvk.
5. Find the lengths of the sides of triangle ABC where the ver-
tices are given by
−1
4.2. The Dot Product 5
4.2 The Dot Product (This formula uses the standard convention of interpreting the 1 × 1
matrix uT v as a scalar.)
The Dot Product in R2 » – » –
» – » – 1 3
u1 v EXAMPLE 4.6. If u = and v = then
Suppose we have two vectors in R2 , u = and v = 1 as 3 1
u2 v2
illustrated in Figure 4.2 u · v = (1)(3) + (3)(1) = 6
3 and √
kuk = kvk = 10
u-v It then follows that if θ is the angle between u and v we have
2
v 6 3
cos θ = √ √ =
10 10 5
–1
EXAMPLE 4.7. Draw the parabola y = x2 and let P be the point
(1, 1) on this parabola. If O is the origin find another point Q on
Figure 4.2. the parabola such that the angle between OP and OQ is 30◦ .
P
The expression on the right hand side of the last line is given 0.0
−4 −2 0 2 4
a special name. It is called the dot product of u and v and is x
written u · v. Thus we have the following two formulas
u · v = u1 v1 + u2 v2
and Figure 4.3.
u · v = kuk kvk cos θ
» – » –
where θ is the angle between u and v. Since θ is one angle of a −−
→ 1 −−→ x
In terms of vectors we have OP = and OQ = . We
triangle we have 0◦ ≤ θ ≤ 180◦ . This means that θ is the smallest 1 x2
−−→ − −→ −−→ √ −−
→ √
positive angle between u and v. » – also have OP · OP = x + x2 , kOP k = 2, and kOQk = x2 + x4 .
u
There is another way of indicating the dot product. If u = 1 If the angle between these vectors is 30◦ the dot product formula
u2 gives
» – √ p
v1 x + x2 = 2 x2 + x4 cos 30◦
and v = then √
v2 3
» – Substituting cos 30◦ = 2
and squaring both sides gives
˜ v1
uT v = u1 u2
ˆ
= u1 v1 + u2 v2 ´3
v2 x2 + 2x3 + x4 = 2 x2 + x4
`
4
and so we have the nice formula
We omit the algebra but you should be able√to solve this equation
√
u · v = uT v and find two values of x that work x = 2 + 3 and x = 2 − 3.
6 Chapter 4. Vector Geometry
The Dot Product in Rn right hand side of this expression is positive if 0◦ ≤ θ < 90◦ and
negative if 90◦ < θ ≤ 180◦ . More importantly the dot product is 0
The dot product can be generalized to vectors in Rn . if θ = 90◦ . This means that two non-zero vectors are perpendicular
if and only if their dot product is 0. This leads to the following
Definition 4.2. Let u and v be vectors in Rn then their dot definition.
product is defined by
u · v = uT v
Definition 4.4. Two vectors in Rn are said to be orthogonal if
their dot product is 0.
u1 v1
2 3 2 3
6 u2 7 6 v2 7
The above definition implies that if u = 6 . 7 and v = 6 . 7
6 7 6 7 This definition implies that the zero vector in Rn is orthogonal
4 .. 5 4 .. 5 to every vector in Rn .
un vn
then EXAMPLE 4.8. Show that the triangle with vertices A(−2, 3),
u · v = u1 v1 + u2 v2 + · · · + un vn B(5, 5), and C(0, −4) is a right triangle.
The fundamental properties of the dot product are summarized We want to interpret the sides of this triangle as vectors. If
by the following theorem. we treat» A as the– origin
» – then the vector from
» A to B– would
» be–
−→ 5 − (−2) 7 −→ 0 − (−2) 2
AB = = . Similarly AC = = .
5−3 2 −4 − 3 −7
Theorem 4.3. If x, y, and z are vectors in Rn and c is a scalar −→ −→ −→ −→
then Now notice that AB · AC = 7(2) + 2(−7) = 0. Since AB · AC = 0
−→ −→
a. x · y = y · x we have kABk kACk cos θ = 0. We can then conclude that cos θ = 0
and so θ = 90◦ .
b. x · (y + z) = x · y + x · z
c. (cx) · y = c (x · y)
» –
k
EXAMPLE 4.9. For what value(s) of k are the vectors u =
d. x · x ≥ 0 and x · x = 0 if and only if x = 0. 2k
» –
k+1
and v = orthogonal?
k−1
Proof. The proof of part (a) is left as an exercise.
We just have to determine any values of k which make u · v = 0.
Since u·v = uT v parts (b) and (c) follow from the corresponding
properties of matrix multiplication. u · v = k(k + 1) + 2k(k − 1)
The proof of part (d) is more complicated because it makes sev- = k 2 + k + 2k 2 − 2k
eral claims. First it claims that the inner product of a vector with = 3k 2 − k
x1
2 3
6 x2 7 = k(3k − 1)
itself can never be negative. To see this let x = 6 . 7. Then It should then be clear that the vectors are orthogonal for k = 0
6 7
4 .. 5
and k = 1/3.
xn
x · x = x21 + x22 + · · · + x2n and this value can never be negative since We end this section with three theorems which state some im-
it is the sum of squares. portant properties of vectors.
Next it says that the inner product of the zero vector with itself
is 0. This is easy: if x = 0 then x · x = 0 + 0 + · · · + 0 = 0.
Finally part (d) claims that if the dot product of a vector with Theorem 4.5. (Pythagorean Theorem) Let u and v be vectors
itself is 0 then the vector must be the zero vector. To see this in Rn then ku + vk2 = kuk2 + kvk2 if and only if u and v are
suppose x · x = 0. Then x21 + x22 + · · · + x2n = 0. Since the left hand orthogonal.
side of this equation has no negative terms the only way the terms
can add up to 0 is if each term is 0. So x1 = 0, x2 = 0, . . . , xn = 0 Proof. Note that the statement of this theorem is another “if and
and we have x = 0. only if” statement. This means that the theorem is making two
This last property says that in Rn the only vector with length 0 claims. These will be proved separately below.
is the zero vector. First we must show that if u and v are orthogonal then ku +
vk2 = kuk2 + kvk2 . The argument is as follows
ku + vk2 = (u + v) · (u + v) (4.1)
= u · u + 2u · v + v · v (4.2)
Orthogonal Vectors =u·u+0+v·v (4.3)
The formula u · v = kuk kvk cos θ relates the dot product to the = kuk2 + kvk2 (4.4)
angle between vectors 1 . If u and v are non-zero vectors then the 2
Although this formula was proved only for vectors in R it is
1 applicable in all Rn . Justification for this will be given shortly.
4.2. The Dot Product 7
3 2
Equation 4.2 is a consequence of the distributive and commutative 1
6−17
properties of the dot product. Equation 4.3 is a consequence of u EXAMPLE 4.10. Find the angle between u = 6 4 1 5 and v =
7
and v being orthogonal (their dot product is 0).
Next we must show that if ku + vk2 = kuk2 + kvk2 then u and −1
2 3
v are orthogonal. The argument goes as follows 1
627
6 7.
ku + vk2 = kuk2 + kvk2 (4.5) 435
u · u + 2u · v + v · v = u · u + v · v (4.6) 4
√
2u · v = 0 (4.7) √ We have u · v = √
1 − 2 + 3 − 4 = −2,
√ kuk = 1 + 1 + 1 + 1 =
4 = 2, and kvk = 1 + 4 + 9 + 16 = 30. Thus
u·v = 0 (4.8)
u·v −2
cos θ = = √ ≈ −.1826
The last line tells us that u and v are orthogonal. kuk kvk 2 30
which gives θ ≈ 100.52◦
Proof. If v is the zero vector then both sides of the inequality Proof.
would be zero and the theorem would be true so we will assume
that v is not the zero vector. ku + vk2 = u · u + 2u · v + v · v (4.9)
Part d of Theorem 4.3 tells us that ≤ u · u + 2|u · v| + v · v (4.10)
“ u·v ” “ u·v ” ≤ u · u + 2kukkvk + v · v (4.11)
u− v · u− v ≥0
v·v v·v
= (kuk + kvk)2 (4.12)
since the dot product of any vector with itself is always greater than
Equation 4.11 follows from the Cauchy-Schwarz theorem
or equal to 0.
The above shows that ku + vk2 ≤ (kuk + kvk)2 . The theorem
Simplifying the left hand side of the above gives
then follows by taking the square root of both sides.
“ u·v ” “ u·v ” u·v (u · v)2
u− v · u− v =u·u−2 u·v+ v·v
v·v v·v v·v (v · v)2
(u · v)2 Direction Angles
=u·u−
v·v The dot product gives us a new way of looking at unit vectors. Any
Replacing this last expression in the original inequality gives 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
(u · v)2 geometric interpretation.
kuk2 − ≥0 2 3
kvk2 v1
3
In R the angles between any vector v = 4v2 5 and the x1 , x2
Rearranging these terms gives
v3
kuk2 kvk2 ≥ (u · v)2 and x3 axes are called the direction angles of v and are repre-
sented by α, β, γ respectively. These are just the angles between v
Taking the square root of both sides gives and the unit vectors i, j, and k. So we have
|u · v| ≤ kukkvk v·i v1
cos α = =
kvk kik kvk
v·j v2
cos β = =
The Cauchy-Schwarz Theorem guarantees that kvk kjk kvk
u·v v·k v3
−1 ≤ ≤1 cos γ = =
kuk kvk kvk kkk kvk
We can now write
for any non-zero vectors u and v in Rn . This allows us to define 2 3 2 3 2 3
v1 kvk cos α cos α
the angle θ between any non-zero vectors u and v in Rn by the
v = 4v2 5 = 4kvk cos β 5 = kvk 4cos β 5
formula
u·v v3 kvk cos γ cos γ
cos θ =
kuk kvk The values cos α, cos β, and cos γ are called the direction
(where 0 ≤ θ ≤ 180◦ ). cosines of v.
8 Chapter 4. Vector Geometry
Note that for any non-zero vector v there are two unit vectors
in the same direction as v. One has the same sense as v, the other
has the opposite sanse of v.
Problems 9
Problems
2 3 2 3
1 −3 1
2 3
a. v = 2 5
4 b. v = 4 1 5 627
−2 4 c. v = 637
6 7
1. For the following pairs of vectors u and v calculate kuk, kvk, 445
u · v, and the angle between u and v.
5
» – » – 2 3 2 3
2 3 2 4
a. u = ,v= 10. a. Suppose v is a vector in R2 and you know that this
−1 4 6 177 637
d. u = 4 5, v = 4 7
6 6
vector forms an angle of π/3 with i. Is this enough
2 25
1 1 information to determine vector v? What are the pos-
» – » –
1 −3
b. u = ,v= sible values for the angle between v and j?
5 0 » – » –
a b
e. u = ,v= b. Suppose v is a vector in R3 which forms an angle of
2 3 2 3 b a
1 1 π/6 with i. What are the possible values for the angle
c. u = 415, v = 4−25 f. u = i − j + k, v = between v and k?
1 3 2i + j + 2k
c. Suppose v is a vector in R3 which forms an angle of
2. Use the dot product to find the angles of the triangles with π/6 with i and an angle of π/6 with j. What are the
the following vertices possible values for the angle between v and k?
11. Use the dot product to prove that
a. A(1, 4), B(3, −2), C(6, 1)
kx + yk2 + kx − yk2 = 2 kxk2 + kyk2
` ´
b. A(1, 0, 1), B(0, 2, 1), C(2, 1, 0)
c. A(1, 1, 2, 2), B(1, 2, 2, 1), C(2, 2, 1, 1) 12. Show that if u + v and u − v have the same magnitude then
3. Given the points A(1, 1), B(3, −1), and C(4, k) find the val- u and v are orthogonal.
ues of k for which triangle ABC is a right triangle. 13. It was pointed out in this section that uT v = vT u for any
2 3
3
2 3
1 two vectors u and v in Rn . Is it also true that uvT = vuT ?
4. Let u1 = 415 and u2 = 405. Show that any vector in Prove this or give a counter-example.
1 1 14. Suppose x and y are vectors in Rn that have the same length.
2 3
1 Show that x + y bisects the angle between x and y.
Span {u1 , u2 } is orthogonal to v = 4−25. 15. Prove part a of Theorem 4.3.
−1 16. Let u and v be two vectors in Rn .
» – » –
a cos(θ) − sin(θ) a. Justify the following steps
5. Let x = and R = . Use the dot prod-
b sin(θ) cos(θ)
uct to find the angle between x and Rx. uT v = (uT v)T = vT u
» – » –
1 2
6. Let u = and v = . For what value(s) of k b. The following chain of equalities resembles the above
3 k
example but is not valid. What is wrong with the fol-
a. do u and v have the same length? lowing?
b. are u and v orthogonal? uvT = (uvT )T = vuT
c. are u and v parallel?
d. is the distance from u to v one unit?
2 3 2 3
1 2
7. Let u = 425 and v = 41 + k5. For what value(s) of k
3 1−k
a. do u and v have the same length?
b. are u and v orthogonal?
c. are u and v parallel?
d. is the distance from u to v 3 units?
» – » –
cos θ sin θ
8. Let u = and v = . For what value(s) of θ
sin θ cos θ
a. do u and v have the same length?
b. are u and v orthogonal?
c. are u and v parallel?
9. Normalize the following vectors and find the direction angles
in each case:
10 Chapter 4. Vector Geometry
4.3 Lines Now you already knew that any straight line in R2 could be
written in the form ax + by = c but what is new here is that in
an equation of this form the coefficients of x and y give a normal
Lines in R2 vector to the line.
We have already seen in Chapter 1 of Lay’s textbook that a line
in R2 can be represented by an equation of the form x = x0 + tv. EXAMPLE Given the parametric-vector equation of a line
» 4.12.
Such an equation represents the line through x0 parallel to v. This
» – –
3 4
is called a parametric-vector equation of the line. We now want to x= +t find the normal equation of this line.
1 3
look at another way of representing a line in R2 . » –
a
How can we specify the direction of a line in R2 ? One standard We will use the following observation: If u = is any vector
b
way is to give the slope of the line and another is to give a vector » –
b
parallel to the line. There is a third way of specifying the direction in R2 then is orthogonal to u. This can be easily confirmed
−a
of a line in R2 which is not so obvious and which at first might
by a simple dot product.
seem unnecessarily complicated. We can specify the direction by
giving a vector perpendicular to the line. Such a vector is said to » – » –
a b
be a normal vector to the line. · = ab − ab = 0
b −a
normal vector
Now it should be clear »that
– the direction of the given line is
4
determined by the vector . We want a normal vector to this
3
» –
3
line and the above comments show that n = would be such
(xo, yo) −4
a vector. We now know that the normal equation of the line is
3x − 4y = c with the value of
» c– yet to be determined.
3
Now we use the fact that lies on the line and so these values
1
must satisfy the equation. We then have 3(3) − 4(1) = c. So
c = 9 − 4 = 5 and the equation we are looking for is
Figure 4.4.
3x − 4y = 5
» – » –
x x0
Suppose x = lies on the straight line through x0 =
y y0
» – EXAMPLE 4.13. Find an equation for the line through A(3, 5)
a
with normal n = then x − x0 is parallel to the line and is and B(6, 1).
b » – » –
−→ 6−3 3
therefore perpendicular to n. We must then have The vector AB = = is a direction vector for this
1−5 −4
n · (x − x0 ) = 0 » –
3
» – » – line. The line x = t would be a line through the origin par-
a x − x0 −4
· =0
b y − y0 allel to the desired line. We only have to add a translation. A
a(x − x0 ) + b(y − y0 ) = 0 parametric-vector equation for this line would be
» – » –
ax + by − ax0 − by0 = 0 3 3
x=t +
The equation of the line can then be written as −4 5
ax + by = ax0 + by0 This is illustrated in Figure 4.5. » –
or more concisely 4
But we can also find a normal vector to this line, n = . The
ax+by=c 3
line therefore has an equation of the form 4x + 3y = c. Substituting
where c = ax0 + by0 . We will call this the normal equation of a the coordinates of A gives
straight line.2 Notice that this equation could be written in vector
notation as 4x + 3y = 27
nT x = nT x0
This is not the usual term for this equation. Most books would
Lines in Rn
call it the standard equation or the Cartesian equation of a In general a line in Rn can be written in parametric-vector form
line. We are calling it the normal equation just to stress the fact x = u + tv where v determines the direction of the line and u lies
that the coefficients give a normal vector to the line. on the line.
4.3. Lines 11
10.0
represented by normal or Cartesian equations only in R2 .
Problems 7. Find all values of a and b such that the following two equa-
tions represent the same line
1. Write the following lines in parametric-vector form.
4x1 + x2 = 3
a. 3x1 + x2 = 5 c. x1 = 4 2x1 + ax2 = b
b. 2x1 − 5x2 = 1 d. x2 = −3 8. Let n and x0 be vectors in R2 . Show that the line through
x0 normal to n can be written nT x = nT x0 .
2. Write the following lines in normal form 9. Find a parametric vector equation of the line containing p
» –
2
» –
3
» –
4 and q where
a. x = +t c. x = t
1 −1 3 2 3
1
2 3
4
» –
0
» –
5 a. p = 425 q = 415
b. x = +t d. x = ti + (1 − t)j 3 1
3 2
2 3 2 3
» –
−3
» –
1 0 2
3. Given the line L : x = +t 6 2 7 627
1 −2 b. p = 4 5 q = 4 7
6 7 6
1 55
a. Find the value of x that corresponds to t = 1. Find −3 5
the value of x that corresponds to t = −2.
10. In R3 find three different lines through the origin orthogonal
» –
1
b. Find the value of t that corresponds to x = . to the vector k.
−7
» –
−3 11. For what values of a and b do the following equations give
c. Find all x on L that lie 2 units from . the same line?
1
2 3 2 3 2 3
d. Find all x on L that lie 5 units from the origin. a 1 b
e. Illustrate all the above with a picture. x= 4 3 5 +t 1
4 5 and x = s 4 2 5
2 3 2 3 a+3 2 b+2
2 1
4. Given the line x = 405 + t 4−15 12. a. Show that the line in Rn which contains p and q can
1 1 be represented by the equation x = (1 − t)p + tq.
a. Find the value of x that correspond to t = 1. Find the
» –
2
values of x that correspond to t = −2. b. Find the normal equation of the line x = (1−t) +
2 3 −5
» –
4/3 1
b. Find the value of t that corresponds to x = 42/35. t .
3
1/3
2 3 2 3 13. Let p and q be vectors in Rn . Describe the difference be-
0 0 tween the following expressions (where the parameters s and
c. Is 425 on this line? For what value(s) of k is 425 on t are assumed to range over all real numbers).
2 k
a. sp + tq
this line?
b. sp + (1 − s)q
2 3
2
d. Find all x on the line that lie 2 units from 405. c. sp + q
1
e. Find all x on the line that lie 2 units from the origin.
5. Find all values of a and b such that the following two equa-
tions represent the same line
» – » –
1 2
x= +t
3 1
» – » –
a b
x= +t
2 4
6. Find all values of a and b such that the following two equa-
tions represent the same line
» – » –
4 1
x= +t
−2 3
» – » –
a b
x= +t
2 4
4.4. Planes and Hyperplanes 13
z0
2 3 −2
a
normal vector n = 4 b 5. If both x and x0 lie in the plane then the
c −3
x x + 2y − z = 3
0
–2 (1 + t) + 2(−5 + 2t) − (−3 + 2t) = 3
–2 0
2 y 3t − 6 = 3
–4 4
t=3
Figure 4.7. Intersecting planes. The point of intersection occurs when t = 3 so the point of in-
tersection is x = 21 +
3 3 = 4, y = −5 + 6 = 1, z = −3 + 6 = 3, or in
4
EXAMPLE 4.19. Find the line of intersection of the planes vector form x = 415.
x + y + 2z = 3 and x + 2y − z = 5. 3
4.4. Planes and Hyperplanes 15
Problems
2 3
1
a. The plane 2x + 3y + 3z = 8 and the line x = 445 +
1. Find a normal equation of the plane or hyperplane containing 2
2 3
x0 with normal n. 3
t 4 0 5.
23 2 3 −1
1 3 c. n = i + j + 3k, x0 =
a. n = 2 , x0 = 405
2 3 2 3
4 5
2i + 5j − 3k 1 2
−1 2 2 3 2 3 b. The plane 3x − y − z = 5 and the line x = 425 + t 415.
2 3 2 3 3 0 5 5
3 1 617 627
d. n = 4 5, x0 = 4 7
6 7 6 2 3 2 3
b. n = 435, x0 = 425 2 35 2 3
0 5 2 1 c. The plane x+y +2z = 14 and the line x = 435 +t 415.
0 1
2. Find a parametric-vector equation of each of the following
2 3 2 3
3 1
planes or hyperplanes. d. The plane x+y+2z = 14 and the line x = 435+t 4 1 5
4 −1
a. x1 + x2 − 2x3 = 3 d. x1 − 2x2 + 3x3 − 4x4 + e. The 2
hyperplane
3 2 x13+ x2 − 2x3 + x4 = 3 and the line
b. 3x1 + 2x2 + x3 = 5 5x5 = 0 8 3
6 2 7
7 + t 6 1 7.
6 7
c. x1 + x2 + x3 + x4 = 1 x=6 4−35 4−15
3 2
3. The plane x + 3y − z = 0 is in fact a subspace of R3 . Find 10. Let P
a basis for this subspace and find an equation for the line 2 be3 the2 plane3x + 3y + 2z = 9 and let L be the line
2 k
through the origin normal to this plane. x = 415 + t 4k + 25. For what value(s) of k
4. The hyperplane x1 + 3x2 − x3 + 2x4 = 0 is in fact a subspace 0 2
of R4 . Find a basis for this subspace and find an equation
for the line through the origin normal to this hyperplane. a. are P and L orthogonal?
b. are P and L parallel?
2 3
3
5. Find an equation for the plane containing 435 parallel to the 2
8
3
2 c. do P and L intersect at 4 3 5.
plane x − 2y + 4z = 0. −4
2 3
5
6. Find an equation for the line which containins 4 0 5 and is 11. In R4 let P1 be the hyperplane with equation x1 + x2 + x3 +
−1 x4 = 1, P2 be the hyperplane with equation x2 −x3 +x4 = 2,
also perpendicular to the plane x + y − 4z = 3. and P3 be the hyperplane with equation x2 − x4 = 3. Find
the parametric-vector equation for
7. The angle between two hyperplanes is defined to be the small-
est possible angle between normals of the hyperplanes. This a. The intersection of P1 and P2 .
angle must be between 0 and π/2 radians (why?). This means b. The intersection of P2 and P3 .
that you should choose normals such that their dot product is
positive. Find the angle between the following hyperplanes: c. The intersection of P1 , P2 and P3 .
2 3 2 3 2 3
a. x + y + 3z = 2, 2x − y − z = 4 1 2 0
12. Let u = 425, v = 435, and w = 415. Let V = Span {u, v}.
b. x1 + 2x2 + 3x3 + 4x4 = 0, 4x1 + 3x2 + 2x3 + x4 = 1 3 4 1
1 1 a. Find a normal equation for the plane V + w.
2 3 2 3
617 617
b. Find a parametric vector equation for V + w.
8. In Rn let n = 6 . 7 and x0 = 6 . 7. Find the normal equa-
6 7 6 7
4 .. 5 4 .. 5 13. Let p, q, and r be vectors in Rn . Show that the plane
1 1 which contains p, q and r can be represented by the equation
tion and the parametric-vector equation of the hyperplane x = (1 − s − t)p + sq + tr.
containing x0 with normal n for 14. Suppose you
2 3are told
2 3that 2the 3
equations 2x + 3y − 4z = 8
4 2 3
a. R2 b. R3 c. R4 d. R5 and x = 405 + s 405 + t 4−25 represent the same plane.
0 1 1
Which equation would be easiest to use to answer each of
9. Find the point of intersection of the following planes and lines the following problems?
Problems 17
2 3
23
a. Does −65 lie in this plane?
4
5
b. Give 5 points which lie in this plane.
15. Suppose V + v and W + w represent the same plane then
which of the following are true
a. V = W . That is, V and W must be the same plane.
b. v = w.
c. If v 6= 0 then V + v does not contain the origin.
d. V + v + w must also be the same plane as V + v and
W + w.
18 Chapter 4. Vector Geometry
4.5 Projections Step 1. Translate the line and the point so that the line 2 goes
3
1
Suppose u and v are vectors in Rn with v 6= 0. If we drop a through the origin. The simplest way to do this is to subtract 15
4
perpendicular line from u onto the line determined by v as shown 3
2 3
in Figure 4.8 we obtain a vector called the projection of u onto v 3
which we will represent by Projv u. from the line and the point. The translated line is just x = t 405
1
4 u 2 3 2 3 2 3
3 1 2
and the translated point would be u = 415 − 415 = 4 0 5.
3 perp 2 3 −1
2 3
3
2 Step 2. Let v = 405 be the direction vector of the line and find
1
v
1
Projv u. This gives
2 3 2 3
5 435 43/25
proj
0 Projv u = 0 = 0
1 2 3 4 5
10 1 1/2
Figure 4.8. The projection of u onto v. Step 3. The distance is just the length of Perpv u. We have
2 3 2 3 2 3
2 3/2 1/2
The projection of u onto v must be in the same direction as v Perpv u = 0 − 0
4 5 4 5 = 4 0 5
so we have Projv u = kv for some scalar k. We also know that −1 1/2 −3/2
u − Projv u is perpendicular to v so we can write
Thus the distance is
(u − Projv u) · v = 0 √
10
q p
(u − kv) · v = 0 (1/2)2 + (−3/2)2 = 5/2 =
2
u · v − kv · v = 0
u·v
We then have kv · v = u · v and so k = and
v·v Distance from a Point to a Plane
u·v The distance from a point to a plane (or hyperplane) can be found
Projv u = v
v·v as illustrated in Figure 4.9 idea is that we project a vector onto a
As mentioned above the vector u − Projv u is perpendicular to v normal to the plane and the distance we want is just the length of
and is called the orthogonal component of the projection. We this projection.
will denote this orthogonal component by Perpv u
n (normal)
» – » –
1 3
EXAMPLE 4.22. Let u = and v = then
4 1
» – » –
u·v 7 3 21/10 x
Projv u = v= =
v·v 10 1 7/10
and distance
» – » – » –
1 21/10 −11/10
Perpv u = u − Projv u = − =
4 7/10 33/10
We will need any point that lies on the given plane to use as a but to find the point on the plane that lies this distance from x0
reference
2 3 point. We can use the x3 intercept of the2 plane,
3 x0 = requires 2that
3 we go back to basics. A normal 2
to 3the plane is given
0 1 1 4
405. We will also need a normal to the plane, n = 425. by n = 425. The x intercept of the plane is 405. If we treat this
3 2 3 0
Step 1. Translate the point and the plane so that the plane
2 3 2 3 2 3
1 4 −3
passes through the origin. We can do this by subtracting x0 from intercept as the origin the vector v = 415 − 405 = 4 1 5 is a
each. The normal to the plane would 2 3not change. The point v 3 0 3
3 vector from the plane to x0 . Then
would be be translated to v − x0 = 4 5 5. 2 3 2 3 2 3
−1 1 1 4/7
1(−3) + 2(1) + 3(3) 4 5 8 4 5 4
Step 2. Project v − x0 onto n. P rojn v = 2 = 2 = 8/7 5
1+4+9 3 14 3 12/7
Step 3. The distance we want is just the length of this projec-
tion.
. It then follows that the point closest to x0 is
2 3 2 3 2 3
There is a simple formula for finding the distance from a point to 1 4/7 3/7
a hyperplane. Suppose we have the hyperplane nT x = nT u and the x0 − P rojn v = 415 − 4 8/7 5 = 4−1/75
point x0 . The point u lies on the hyperplane and so we can translate 3 12/7 9/7
the hyperplane and point by subtracting u. The hyperplane then 2 3
becomes nT x = 0 and the point becomes x0 − u. Next we project 3/7
the point onto the normal to the hyperplane. This projection would We will check this answer. Does 4−1/75 lie on the plane? Substi-
be 9/7
nT (x0 − u) tution into the left hand side of the equation of the plane gives
n
nT n 3/7 + 2(−1/7) + 3(9/7) = 3/7 − 2/7 + 27/7 = 28/7 = 4
The distance is just the length of this projection and this length is 2 3
˛ T ˛ ˛ T
˛n (x0 − u)˛
˛ 3/7
˛ n (x0 − u) ˛
˛ ˛ knk = knk Further computation will confirm that the distance from −1/75
4
˛ nT n ˛ knk2 9/7
˛ T ˛ √
˛n x0 − nT u˛ to x0 is 8/ 14.
=
knk
Now if we apply the above to a hyperplane in R2 (that is a line) A General Method for Finding Distances
» –
a Every problem that involves finding a distance can be reduced to a
with equation ax + by = c then n = and nT u = c. If we let
b situation as depicted in Figure 4.10.
» –
x
x0 = 0 then the above formula gives us the distance
y0
|ax0 + by0 − c|
√ ?
a2 + b2 ?
If we apply the formula2to3 a hyperplane in R3 with equation
2 3
a x0
4 5 T
ax + by + cz = d then n = b and n u = d. If we let x0 = 4y0 5
c z0
then the above formula gives us the distance
|ax0 + by0 + cz0 − d|
√
(a) (b)
a2 + b2 + c2
−→ −→ −→
Such problems can always be seen as finding the distance to a the distance
2 3 from 2AC 3to the line generated
2 by3 AB. Now AB =
subspace from some vector not in the subspace. So now suppose 2 −1 2 −1
6 7 and − → 6 2 7
we want to find the distance from u to the subspace spanned by 6 1 7 6 1 2 7
AC = 6 7 and then AT A =
4 0 5. So let A = 4 1
7 6
v1 , v2 , . . . , vk (where these vectors are assumed to be linearly inde- 4 1 5 0 5
pendent). We will illustrate a method for obtaining this information −2 1 −2 1
(and more) that seems almost magical. If you want an explanation
» –
10 −2
of why this method works you will have to take a more advanced . One elementary row operation is all that’s needed to
−2 6
course in linear algebra. Here’s the method: »
10 −2
–
put AT A in row echelon form giving so the distance
0 28/5
ˆ ˜
• Let A = v1 v2 · · · vk u . p
we are looking for is 28/5. We can also see that 10(28/5) = 56
• Compute AT A (this is sometimes called the Gram matrix). −→ −→ √
so the area of the parallelogram formed by AB and AC is 56.
• Put the Gram matrix AT A in row echelon form using only
addrow operations (no row swaps or multiplying rows by con-
EXAMPLE 4.28. This example is trickier and it is left up to
stants). This amounts to finding matrix U of the LU decom-
you 2to 3figure2 out
3 why it works. Find
2 3the distance from the line
position that we saw earlier. 2 3
1 1 1 0
• The square root of the entry in the lower right corner is the 607 617 607 617
distance you are looking for!!! x=6 405 + t 405 to the plane x = r 415 + s 415.
7 6 7 6 7 6 7
0 1 1 0
2 3 2 3
1 1 0 1 1 3 1 2 1
2 3
617 60 1 1 07 T 61 2 1 07
6 7
EXAMPLE 4.26. Find the distance from v = 627 to the plane
6 7 Let A = 6 41 1 0 05. So A A = 42 1 3 15 which
7
425
1 0 1 0 1 0 1 1
3
2 3
3 1 2 1
1 0 60 5/3 1/3 −1/37
2 3 2 3
6−17 617 reduces to 6 40
7. So the distance we want is
0 8/5 2/5 5
generated by u1 = 6 0 7 and u2 = 617. 0 0 0 1/2
6 7 6 7
4−15 415 p
1/2.
1 1
1 0 1
2 3
2 3 There is actually a simple explanantion why this trick works but
6−1 1 17 4 −1 1
T it a bit beyond the level of an introductory course. On the other
Let A = 6 0 1 27. Then A A = 4−1 4 8 5. Now
6 7
4−1 1 25 hand if we look at the specific problem of finding the distance from
1 8 19
a point to a line we can see why it works. Suppose we want to find
1 1 3
the distance
ˆ from ˜ v to the line generated by u. Then we would
row reduction gives
2 3 2 3 2 3 have A = u v . The Gram matrix would be
4 −1 1 4 −1 1 4 −1 1 » T– » –
4−1 4 8 5 −→ 40 15/4 33/45 −→ 40 15/4 33/45 u ˆ u·u u·v
AT A =
˜
T u v =
1 8 19 0 33/4 75/4 0 0 3/5 v u·v v·v
Problems
2 3 2 3
2 1
a. x0 = 4 1 , 3x + y −
5 617
c. x0 = 4 7 , x + 2x2 +
05 1
6
1. Find Projv u and Perpv u for −1
z = 22 3 0
»
1
– » –
2
2 3
1
2 3
1 1 x3 − x4 = 5
a. u = ,v= b. x0 = 415, x+y−z = 4
−12 5 617 627
c. u = 4 5, v = 4 7
6 7 6
1
1 35
1 4 2 3 2 3 2 3 2 3
1 1 1 1
d. u = 3i + 2j − k, v = 617
7, v2 = 617, v3 = 617, v4 = 607. Find the
2 3 2 3 6 7 6 7 6 7
1 1 j − 5k 6. Let v1 = 6415 415 405 405
b. u = 1 v = 4 2 5
4 5
e. u = i + j, v = j + k 1 0 0 0
4 −3
distance
2. Find the distance from x0 to the given line a. from v2 to the span of v1 .
» – » –
3 1 b. from v3 to the span of v1 and v2 .
a. x0 = ,x=t
−2 1 c. from v4 to the span of v1 , v2 and v3 .
» – » – » –
2 1 3
b. x0 = ,x= +t
5 3 −2
2 3 2 3 2 3
1 2 1
c. x0 = 0 , x = 1 + t 4 3 5
4 5 4 5
2 1 −1
2 3 2 3 2 3
0 2 1
627
7, x = 617 + t 6 1 7
6 7 6 7
d. x0 = 6
415 415 4−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
607
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
2 3 2 3 2 3
3 0 3
c. x0 = 4 1 5, x = 415 + t 415
−1 3 1
5. Find the point on the given hyperplane that is closest to x0
22 Chapter 4. Vector Geometry
2.5
The2 cross
3 product 2 is defined
3 only for vectors in R3 . Given vectors
u1 v1
u = 4u2 5 and v = 4v2 5 then the cross product of these vectors, 2
u3 v3
written u × v, is defined by 1.5 ||v|| ||v|| sin (theta)
˛ ˛
˛i j k ˛˛
˛ 1
u × v = ˛˛u1 u2 u3 ˛˛
˛ v1 v2 v3 ˛
0.5 ||u||
θ
Expanding this determinant by cofactors along the first row we get
0 1 2 3 4 5
u × v = (u2 v3 − u3 v2 )i − (u1 v3 − u3 v1 )j + (u1 v2 − u2 v1 )k
First of all notice that the cross product of two vectors in R3 Figure 4.11.
is another vector in R3 . There are a few properties of the cross
product that follow directly from this definition. Try to identify
the property of determinants that result in the following.
where θ is the angle between u and v. The proof of this is left as an
• u × u = 0 for any u ∈ R3 .
exercise. This formula means that the magnitude of the cross prod-
• u × v = −v × u. uct of two vectors gives the area of the parallelogram determined
• u · (u × v) = v · (u × v) = 0. by the two vectors. This is illustrated in Figure 4.11
• u × (kv) = ku × v
• u × (v + w) = u × v + u × w EXAMPLE 4.30. Given points A(1, 2, 4), B(5, 5, 4) and C(3, 5, 7)
3 find the area of triangle ABC.
The first property implies that if two vectors in R are parallel
As usual,
2 3 look at the2sides
3 of the triangle as vectors. The vectors
then their cross product is 0. The second property says that chang-
4 2
ing the order of the factors reverses the sense of the cross product. −→ 4 5 −→ 4 5
AB = 3 and AC = 3 determine a parallelogram. The area of
The third property says that the cross product of two vectors is
0 3
always orthogonal to both of the original factors. The right hand
this parallelogram is
rule says that u × v points in the direction of your right hand
thumb if you point the fingers of your right hand along u so that
‚2 3‚
‚ 9 ‚
−→ −→ √
the fingers curl in the direction of v.
‚ ‚
kAB × ACk = ‚‚ −12 ‚ = 3 29
4 5‚
‚ 6 ‚
EXAMPLE 4.29. Let
2 3 2 3 Triangle√ABC is half of this parallelogram so the area of triangle
3 2 3 29
u = 435 v= 5 5
4 ABC is .
2
1 −1
Problems 10. Find the volume of the parallelepiped with sides u, v and w
a. u = 3i + 2j, v = i − j + 3k, w = 4k.
1. The cross product is an example of a type of multiplication
that does not satisfy the associative rule. That is, in general b. u = −i + 2j + 2k, v = 3i + j + 2k, w = i + 4j − k.
u × (v × w) 6= (u × v) × w. Illustrate this by evaluating
2 3 2 3 2 3
3 4 2
(i × j) × j and i × (j × j). c. u = 455, v = 435, w = 4−25
2 3 2 3
2 3 7 3 −3
2. Let u = 4 4 5 and v = 415. Evaluate u×v , (u+v)×(u−v)
11. Show that the parallelepiped with sides u, v and w has the
−1 1
same volume as the parallelepiped with sides u, v − u, w − u.
, and u · (u × v) What can you say about the volume of the parallelepiped
3. Let u = i + 2j − 2k and v = 2i − 2j + k. Evaluate u × v, with sides u − v, v − w, w − u.
i × u, and (u + v) × (u − v). 2 3
3
4. Find the area of the parallelogram with sides 12. Let u = 425. What geometrical objects are defined by
» – » – 1
a. u = 2i + j − 3k and 3 −1
c. u = and v = a. x · u = 0
v = i − 4j + 2k 5 4
2 3 2 3 b. x · u = 1
1 2
b. u = 425 , v = 4−15 c. x × u = 0 (note: this is the zero vector)
3 5 d. kx × uk = 1
2 3
0 −c b
5. Use the cross product to find a normal vector to the following
planes: 13. Let A = 4 c 0 −a5. What is the null space of A.
82 3 2 39 −b a 0
< 1 2 = What property of the cross product does this illustrate.
a. Span 4 3 5 , 425 14. Suppose you are given
−1 1
: ;
2 3 2 3 2 3 u×v = v×w =w×u
1 2 3
b. x = 425 + s 435 + t 415 If u × v 6= 0 show that u + v + w = 0.
3 1 2 15. Show that
c. The plane through the origin containing u = i + 2j and ˛ ˛ ˛
˛u × v v × w w × u˛ = ˛u v
˛2
w˛
v = i − 2k.
d. The plane containing the line through u and v, 16. Describe the solutions to x + x × u = v.
2 and
17. Let u be a unit vector in R3 . Define
2 3 3
1 2
the line through u and w where u = 1 , v =
4 5 4 −1 5,
T (x) = (u · x)u + u × x
0 2
2 3
3 a. What is T (u)?
w = 415. b. If v is in the subspace with normal u show that T (v)
0 is orthogonal to v.
6. The points A(1, 3), B(3, 0), and C(4, 6) are the vertices of a
parallelogram.
a. Find the possible values for the fourth vertex.
b. Find the area of each possible parallelogram with these
points as vertices.
7. The points A(1, −2, 3), B(3, 1, 0), and C(8, 6, 4) are the ver-
tices of a parallelogram.
a. Find the possible values for the fourth vertex.
b. Find the area of each possible parallelogram with these
points as vertices.
8. Show that (u + v) × (u − v) = −2u × v.
9. Show that in R2 the area of the parallelogram determined
by vectors u and v is equal to the absolute value of the 2 × 2
determinant having u and v as rows.
Problems 25
We will find two vectors parallel to the plane and then take their The distance
p from u to L is the length
√ of the
√ orthogonal compo-
cross product. This cross product will be a normal vector to the nent, 1/9 162 + (−13)2 + 52 = 1/9 450 = 5 2/3
plane. 2 3 2 The3point on L closest to u is just the projection found above,
2 11/9
The direction vector of the given line is u = 4−15 and this 422/95
−1 22/9
vector must be parallel to the plane since the plane contains the The equation of the line perpendicular to L passing through u is
given line. 2 3 2 3 2 3 now easy.
1 4 1
2 3 2 3
3 16/9
The points 415 and 435 both lie in the plane. We will use 415 x = 1 + t −13/95
4 5 4
2 5 2 3 5/9
2 3 2 3
4 1
as our reference point and then we have the vector v = 435−415 = 2 3
5 2 3
EXAMPLE 4.39. Find the distance from u = 405 to the plane
2 3
3
425 must also be parallel to the plane. 2
3 x1 + x2 + 2x3 = 10.
The cross product v × u is a normal vector to the plane. The 2 Find
3 a point on the plane. For example, the x1 intercept v =
cross product would be 10
˛ ˛ 4 0 5. This point will be used as our reference point or origin.
˛i j k ˛˛
˛ 0
˛3 2 3 ˛˛ = i + 9j − 7k 2 3
˛ −7
˛2 −1 −1˛
Let w = u − v = 4 0 5.
The normal equation of the plane is then x1 + 9x2 − 7x3 = d. It 2
remains to find d and this can be done by substituting The situation is now the same as that illustrated in Figure 4.6.
2 3 one of the
1 The distance we are looking for is just the length
2 3 of the projection
points that lies on the plane. If we use the point 415 we have 1
2 of w onto the normal vector of the plane, n = 415.
2
1 + 9(1) − 7(2) = −4 = d
2 3
The normal equation of the plane is therefore x1 + 9x2 − 7x3 = 1
w·n −3 4 5
−4. Projn w = n= 1
n·n 6 2
Problems a. 2x + 3y + z = 7
b. x + y − 5z = 9
1. Given the points A(1, 3, 3), B(0, 2, −1), and C(3, 2, 2) find
c. 2x − y − z = 9
a. The area of triangle ABC.
b. A normal equation of the plane containing A, B and
C.
c. A parametric vector equation of the plane containing
A, B an C.
d. An equation of the line through A and B.
2. Given the points A(0, 2, 1), B(1, 1, −1), and C(5, 3, 5) find
a. The area of triangle ABC.
b. A normal equation of the plane containing A, B and
C.
c. a parametric vector equation of the plane containing
A, B and C.
d. An equation of the line through A and B.
2 3 2 3
1 1
3. Let L1 be the line x = s 425 and L2 be the line x = t 4 0 5.
1 −1
2 3
2
Let P be the plane containing L1 and L2 . Let v = 4−15.
3
a. Find the distance from v to L1 .
b. Find the distance from v to L2 .
c. Find the distance from v to P.
2 3 2 3
2 1
4. Let L1 be the line x = 1 + s 415 and L2 be the line
4 5
1 2
2 3 2 3 2 3
0 1 3
x = 4−15 + t 4−15. Let v = 425.
−3 1 5
a. Show that L1 and L2 intersect.
b. Find the distance from v to L1 .
c. Find the distance from v to L2 .
d. Find the distance from v to P, the plane containing L1
and L2 .
5. Find the distance between the parallel lines x + 2y = 3 and
x + 2y = 0.
2 3 2 3
1 1
6. Find the distance between the skew lines x = 1 + s 435
4 5
0 2
2 3 2 3
2 1
and x = 415 + t 405
1 3
7. Find the distance between the parallel hyperplanes 4x1 +
2x2 + 2x3 + x4 = 2 and 4x1 + 2x2 + 2x3 + x4 = 5.
2 3 2 3
4 2
8. The line x = 4 0 + t 435 lies in which of the following
5
−1 1
planes?
Problems 29
>v1+3*v2; >v:=<3,0,3>-<1,4,1>;
[ 13, 6, -1] v = [2, -4, 2]
>u1+5*u2;
The distance we are looking for will then be the distance from
[13, 6, -1]
v to the plane through the origin with normal n. We find this
distance as usual.
2 3
13
The point of intersection is 4 6 5.
−1 >u:=DotProduct(v,n)/DotProduct(n,n)*n;
We will now plot the lines and the plane containing the lines. >Norm(u,2);
√
>L1:=v1+s*v2: The last command gives the distance as displaystyle 113162 .
>L2:=u1+t*u2: Now the vector u represents the vector from L1 to L2 at the
>P1:=s*v2+t*u2+v1: ### Span(v2,u2) translated closest points. In general, the a vector from L1 to L2 would be
>line1:=spacecurve(L1,s=0..5,color=black,thickness=2):
>line2:=spacecurve(L2,t=0..8,color=blue,thickness=2): >w:=evalm(L2-L1):
>plane1:=plot3d(P1,s=-3..2,t=-3..2,style=patchnogrid): w = [2+t-2*s, 3*t-4-4*s, 2-t-s]
>display([line1,line2,plane1],axes=boxed);
You can rotate the plot using the mouse to view the image from For what values of s and t will w be equal to u? We can answer
different points of view. this in Maple as follows
>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);
` 2
u1 + u22 + u32 v12 + v22 + v32
´` ´
>A:=<<1,1,1,1>,<1,-1,1,0>,<0,t,0,1>>:
>B:=Transpose(A).A:
>U:=LUDecomposition(B,output=’U’);
>dist:=sqrt(U[3,3]);
Summary
Any n − 1 dimensional subspace, V , in Rn can be represented
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 translated by x0 .