Vector Geometry Annotated
Vector Geometry Annotated
R2 is the xy-plane.
R3 is the xyz-plane.
In general, n-space is denoted Rn. Points in n-dimensional space are given by their n coordinates.
3
Example 1. An arrow in 2-space going 1-unit in the x-direction and 2-units in the y-direction.
terminal point
initial point
4
What is a vector?
Notation: The bold type for the vector name is to remind us that we are dealing with a vector and
not a scalar, and if you are writing by hand, typical conventions are to use an overline, an underline
→
or an arrow: x = x = x = x .
5
To sketch a vector x = (a, b) in 2-space, choose an initial point. Find the second point by moving
a units to the right (left if a is negative) and b units up (down if b is negative). Connect the two
points with an arrow: tail at the initial point, head at the terminal point.
Note: by choosing a different initial point, you get a different picture of the same vector. The ability
to slide vectors around by choosing a different initial point is essential.
y
✻
✸
✑
✑ ✻
✑
✑
x
✑
✑
✑ b units
✑
✑
t✑
✛ ✲❄
a units
✲ x
Addition of vectors
Two vectors can be added together to get a new vector.
Algebraically: If x = (x1, x2, . . . , xn) and y = (y1, y2, . . . , yn) are vectors in n-space, then
x + y = (x1 + y1, x2 + y2, . . . , xn + yn ).
Scaling of vectors
A vector can be multiplied by a scalar to obtain another vector.
For example, if x = (4, −2, 3, 0) and s = (0.5), then sx = (2, −1, 1.5, 0).
1. x + y = y + x (commutative)
2. (x + y) + z = x + (y + z) (associative)
3. x + 0 = 0 + x = x where 0 = (0, . . . , 0)
4. x + (−x) = (−x) + x = 0 where −x = (−x1, . . . , −xn)
5. 1x = x
6. (st)x = s(tx)
7. (s + t)x = sx + tx
8. s(x + y) = sx + sy
9
Example 5. Write (3, 17) as a linear combination of the standard basis vectors i and j.
The ‘standard basis vectors’ in R3 are i = (1, 0, 0) and j = (0, 1, 0) and k = (0, 0, 1).
Example 6. Write (−1, 0, 12) as a linear combination of the standard basis vectors i, j and k.
Note: We use i to denote the first standard basis vector in both R2 and R3, but these are different
things. It is important to know which space the vectors you are working with live in.
10
Parallel vectors
Vectors are parallel if they have the same or opposite direction.
Example 7. Show that (1, 2) and (−3, −6) are parallel, but (1, 2) and (2, 5) are not.
11
If we consider the line through the origin and parallel to (2, 3), then any other point on the line is
just a scalar multiple of d = (2, 3), as you can see from the examples below.
y
9
6
(4, 6) = 2(2, 3)
3
d = (2, 3)
−2 2 4 x
(−2, −3) = −1(2, 3) −3
This line consists of the position vectors (points in R2) of the form r = s (2, 3) , with s ∈ R a
scalar.
In particular, if i = (1, 0) is the standard basis vector in R2, then the vector parametric equation
for the x-axis is
r = s i, s ∈ R .
j
x
1
i
Exercise 8.
(a) Write down a vector parametric description of the x, y and z axes in 3-space.
(b) Write down the vector parametric equation for the line through the origin parallel to (1, 4, −3).
14
(c) Find a linear equation in x and y for the line given in parametric form by r = s(1, 2), s ∈ R.
This is specified by a position vector r0, which can be any point on the line, and a direction vector
d, which is any vector parallel to the line. The vector parametric equation is then
r = sd + r0 , s ∈ R.
16
For example, consider the line y = 2x + 1. Since the slope of this line is m = 12 , a direction vector
for this line is d = (1, 2).
A known point on the line is given by the y-intercept, represented by the position vector r0 = (0, 1).
Then we can use vector addition of this position vector with scalar multiples of the direction vector
to get any other point, represented by the position vector r, on the line. For example, the position
vector
r = (0, 1) + 2 (1, 2) = (2, 5)
| {z } | {z }
known point direction vector
2 d = (1, 2)
r0 = (0, 1) 1
x
−1 1 2 3
−1
17
The line through the point represented by the position vector r0, and parallel
to d is given by
r = r0 + s d
where s ∈ R is a scalar parameter and r is the position vector of a general point
on the line.
y
(translated) r = r0 + sd
sd
r0
sd
d
x
18
(a) Is the point (−3, −7) on the line r = (1, 0) + s (1, 2), s ∈ R?
19
(a) Find a vector parametric equation for the line through (1, 1, 2) and parallel to (4, −1, 1).
(b) From the vector parametric equation in (a), find the scalar parametric equations for the
line.
21
If a line passes through two points represented by the position vectors a and b, then a direction
vector for this line is given by b − a (or a − b).
(a) Find a direction vector for the line that passes through the points (2, 4) and (3, 1).
23
(b) Find the vector parametric equation of the line through (4, −5, 2) and (3, −1, 6).
24
Summary of lines
A line in R2 can be specified by any of the following:
1. a single linear equation y = mx + b;
2. a vector parametric equation r = r0 + sd;
3. two given points that lie on the line;
4. a point on the line and a vector parallel to the line .
In 2-space we know how to measure length and distance by using Pythagoras’ Theorem.
For example, take a = (3, 2) and b = (1, 3).
y
b = (1, 3)
3
b − a (translated)
2 a = (3, 2)
b − a = (−2, 1) 1
x
−3 −2 −1 1 2 3
−1
The distance between the points represented by the position vectors a and b is given by the length
of the vector b − a (or a − b). So
p √
2
kb − ak = k(1, 3) − (3, 2)k = k(−2, 1)k = (−2) + 1 = 5. 2
26
We can extend the concepts of the length of a vector and the distance between two points to higher
dimensions.
In general:
The distance between two points represented by the position vectors x and y
in Rn is given by
d(x, y) = kx − yk.
27
Definition 13. The dot product (or scalar product or inner product)
of two vectors x = (x1, x2 . . . xn) and y = (y1, y2 . . . yn ) is
x · y = x1 y1 + x2 y2 + · · · + xn yn.
Example 14. If x = (3, 2, 4) and y = (1, 0, −1), then the dot product of x and y is
1. kxk2 = x · x.
(b) v · u
(c) u · (v − w)
(d) u · (2w)
33
(b) Determine the distance between the points in R3 with position vectors u and v.
34
0 θ
x−y
b
y
35
(a) Find the cosine of the angle between x = (1, 2, 2) and y = (0, 1 , 0).
37
(b) Find the cosine of the angle between x = (1, 2, 2) and z = (0, 1, −1).
38
Let S be the triangle with vertices A = (2, 2, 2), B = (4, 2, 1), and C = (2, 3, 1)
(a) Find the length of the shortest side of S.
39
Orthogonality
Explanation: The formula for the cosine of the angle between two vectors can also be written as
x · y = ||x|| ||y|| cos θ.
Since the lengths of two non-zero vectors ||x|| and ||y|| are always positive and non-zero, the sign
of the dot product is the same as the sign of cos θ. In particular, the dot product can only be zero
if cos θ is zero, therefore θ = 90◦. We can also determine from the dot product whether the angle
between two vectors is acute or obtuse (or a right angle).
41
4 Projections
Vector projections arise in many everyday situations. For example, suppose you are pushing a lawn-
mower through the grass with the handle at a 40◦ angle with the ground. When you push along the
direction of the handle with a force F, it is actually the component of F parallel to the ground that
makes the lawnmower move forwards. We call this component of F the projection of F parallel to
the ground, or Fp. Note that if the handle is perpendicular to the ground, then Fp = 0 and the
lawn-mower does not move.
43
If you push the lawn-mower uphill then you must also push against a projection Wp of the force
due to gravity W on the lawn-mower.
More generally, suppose that d is a non-zero vector in Rn. If x is any other vector in n-space, then
y is the projection of x on d if
y
(i) y is parallel to d x
x−y
(ii) x − y is orthogonal to d
d
y
x
44
(a) x = (3, 4)
46
(b) x = (1, 3)
(c) x = (−3, 1)
47
Exercise 27.
(a) Find the projection of x = (4, 4) onto d = (2, −1).
(b) Hence find the distance of the point (4, 4) from the line {r = s (2, −1), s ∈ R}.
49
Exercise 28. Distance from a point to a line not through the origin
Find the distance from x = (2, 2) to the line given by r = (1, 0) + s(0, 1), s ∈ R.
50
One point on the plane and two vectors parallel to the plane
e r0 + sd + te
r0 d
0
Points on the plane can be parameterised by position vectors
r = r0 + s d + t e, s, t ∈ R
where
• the plane contains the point given by the position vector r0,
• the vectors d and e are parallel to the plane — direction vectors for the plane,
• s and t are parameters (the plane is 2–dimensional).
53
Example
The vector parametric form of the plane through the point (1, 2, 3) with direction vectors (4, 5, 6)
and (7, 8, 9) is
r= (1, 2, 3) + s (4, 5, 6) + t (7, 8, 9)
| {z } | {z }
fixed point in the plane parameters & direction vectors
where s and t are the parameters.
We get the scalar parametric equations by remembering that r = (x, y, z) and writing out
components:
x = 1 + 4s + 7t
y = 2 + 5s + 8t
z = 3 + 6s + 9t
54
C
e=c−a
d= b−a
A B
O
−→ −−→ −→
Suppose that the points A, B and C given by the position vectors a = OA, b = OB and c = OC
lie on a plane.
Take r0 = a and choose direction vectors
d=b−a and e = c − a.
(There are lots of other choices for direction vectors.)
Then points on the plane is given by the position vectors
r = r0 + s d + t e
= a + s (b − a) + t (c − a), s, t ∈ R.
55
Find the plane through the points (1, 2, 1), (5, 0, −1) and (3, −1, −1).
56
n
r
r − r0
r0
This description can be used as a “test” to see if a given point represented by the position vector x
lies in the plane.
57
Find a vector point-normal equation for the plane through the point (−2, 5, 4) and perpendicular
to n = (3, 1, −2).
58
Notes
• This form is sometimes called a scalar point-normal form and can be obtained by expanding
the point-normal form
(r − r0) · n = 0.
59
Expand the vector point-normal form for the plane from the previous exercise, containing the point
given by the position vector r0 = (−2, 5, 4) and with a normal vector n = (3, 1, −2), to obtain
the scalar point-normal form.
60
In the previous exercise, it was time-consuming to find the normal vector orthogonal to two vectors.
In 3-space, there is a special way of finding a vector n = (a, b, c) that is orthogonal to two given
vectors x = (x1, x2, x3) and y = (y1 , y2, y3).
Definition 35. If x = (x1, x2, x3) and y = (y1, y2, y3) are two vectors in
3-space, then the vector
x × y = (x2y3 − x3y2, −(x1y3 − x3y1), x1y2 − x2y1 )
is called the cross product of x and y.
63
For example, if x = (1, 2, 3) and y = (4, 5, 6), then the components of the cross product are
obtained as follows:
i-th component:
2 × 6 − 5 × 3 = 12 − 15 = −3
j-th component:
− (1 × 6 − 4 × 3) = − (6 − 12) = 6
k-th component:
1 × 5 − 4 × 2 = 5 − 8 = −3
Where does the formula for the cross product come from?
The cross product of x and y
1. is orthogonal to both x and y, and
2. has magnitude equal to the area of the parallelogram determined by x and y
This determines x × y up to scaling by ±1. This sign is determined by the ‘right hand rule’ which
says that if you point your right hand in the direction of x and curl your fingers in the direction of
y, then your thumb is pointing in the direction of x × y.
θ x
Comments:
• The cross product operation is not commutative. In fact, x × y = − y × x.
(Optional exercise: Prove this from the component definition of the cross product.)
• The cross product of two vectors gives a vector, whereas the dot product gives a scalar.
1. u × v = −(v × u).
2. u × (v + w) = u × v + u × w.
3. (u + v) × w = u × w + v × w.
5. u × 0 = 0 × u = 0.
6. u × u = 0.
68
Revisit Exercise 34 to find a scalar form of the plane via the cross product
r = (1, 2, 3) + s (2, 0, 1) + t (4, 1, −2), s, t ∈ R
and write it in scalar form.
69
y
73
74
• Vector Parametric
r = r0 + sd + te
where r0 is the position vector of a point on the plane, and d and e are two direction vectors
for the plane.
Note that the equation of a plane through three points is just a special case of this.
• Vector Point-Normal
(r − r0) · n = 0
where r0 is the position vector of a point on the plane, and n is a normal vector for the plane.
• Scalar Point-Normal
ax + by + cz = d
is the equation of a plane in 3-space with normal n = (a, b, c).
Make sure you can change from one form to another. This is useful when solving intersection
problems, our next section.
76
7 Intersection problems
We can find the intersection of a line and a plane using vectors. This sort of problem is easiest to
do if the plane is in scalar point-normal form – you can always convert the plane to this form if
necessary.
First find the scalar parametric equations for the line, then substitute these for x, y, and z in the
plane equation. Solve to find the value of the parameter at the point of intersection. The coordinates
of the point of intersection can then be found by substituting this value of the parameter into the
line equation.
77
Intersections of lines in R3
The chances of two lines meeting in 3-space are not great. They need to at least lie in the same
plane.
Exercise 47.
Show that the following lines in 3-space do not meet.
r1 = (2, −4, 2) + s(3, 1, −2) and r2 = (3, −1, 0) + t(−2, 2, 1)
81
Note: These lines are not parallel either. If we look at the direction vectors, (3, 1, −2) cannot be
written as a scalar multiple of (−2, 2, 1). Such lines are called skew.
82
−−→
kP Xk
X
85
• Write down a vector parametric equation for the line through the point P and perpendicular to
the plane. Note that the normal vector of the plane can be used as a direction vector for the
line!
• Find the scalar parametric equations for the line and substitute these into the scalar equation
for the plane.
• Solve the resulting equation to find the value of the parameter where the line meets the plane,
and hence find the coordinates of the closest point on the plane to the point P .
−−→
• Then find the distance from the point P to the plane by calculating the length kP Xk.
86
Comments
• The distance between parallel planes can be treated as the same problem; just find a point in
the first plane and follow the previous procedure.
• When finding the intersection of two or more planes, write the equations of the planes in scalar
point-normal form and solve using Gaussian elimination and back substitution (covered again
in more detail in the Linear Algebra topic). Two planes in 3-space usually meet in a line,
although they can also be parallel. Three planes in 3-space may have no points of intersection
(no solutions), one point of intersection (a unique solution), or they can meet in a line (an infinite
number of solutions).
• The angle between two planes can be found by finding the angle between the normal vectors for
the planes.
89
• The distance between two skew lines can also be treated in a similar way by embedding one
of the lines (call this line 1) in a plane that is parallel to the other line (line 2). The shortest
distance between the two skew lines may then be calculated by finding the distance from a point
on the other line (line 2) to the plane containing line 1.
r2 = (5, 6, 7) + t(1, 2, 1)
(5, 6, 7)
X
r1 = (4, 5, 6) + s(1, 3, 2)