Chapter 6
Vectors
6.1 Introduction
Definition 6.1. A vector is a quantity with both a magnatude (size) and dixection.
‘Many quantities in engineering applications can be described by vectors, e.g, force, velocity
‘magnetic field.
They can be represented by arrows, for example,
Pigure 6.1: Some vectors,
Magnitude=Length of AB
Direction is shown in the Figure 6.1
We will write AB or a to represent the top vector in the figure.
Two vectors are equal when they have both the same magnitude and direetion. So
AB = CB.
élCHAPTER 6, VECTORS 62
But AB # EP, since both the magnitude and direction are different,
The sum of two vectors a and b is found by adding the vectors
cad to tal
—<—
a
Example 6.1 (Forces on an object). Consider the following forces acting on an object:
W=8N
sl
Forces add to give a net effect or resultant force.
R=Fi+Fo
Magnitude: [R| = /8°+5? = 9.4N.
Fil _ 8
Dineotion: Use tand = TL = = 16
3 0= 58)
You can multiply a vector a by a scalar (number) k. Then, as shown in Figure 6.2,i£ k > 0,
kka is a vector in the same direction as a, and the magnitude is klal... UT if k <0, kas
in the opposite direction!
Example 6.2. Two points A and B have position vectors ( .¢. relative to a fixed origin
0} a and b respectively. What is the position vector of a point on the line joining A and.
B, equidistant from A and B?
Well, the first thing we need isa sketch of the problem, like in Figure 6.3.
Next, note that AB = b — a,CHAPTER 6, VECTORS 6
wen
pO ae
-
Two examples of scalar multiplication of the vector a,
Figure 6.2
Figure 6.3: In this sketch, X is the midpoint of the tine joining A and
x=a+ dt =a+4 48
1
=at5(b—a)
1
lat)
Definition 6.2. A unit vector is a vector with magnitude 1
Often represented using a hat symbol:
For any veetor a,
Unit vectors in the 2, y, > idrections are denoted i, j, k respectively.
Then the position of a point P from the origin, with coordinates (7.4.2), is
re aityj+2kCHAPTER 6. VECTORS 64
Example 6.3.
Then
Ba = 18i-9j + 3k.
For a position vector r= ari-+ yj + 2k, the magnitude is
i= Vee
‘Then for the previous example
lal = V6? +(—3)" + 1? = v'46,
[bl = Va8-+22 + 08 = avi
So far we've seen how to add two vectors. Now we have a question
Q: How can we multiply two vectors together?
I'm going to show you that there are in fact tum ways to multiply vectors...
6.2. The Dot Product
Let us consider the origin of the dot product:
We take two vectors a and be
We might be interested in the length of the component of a which is in the same direction
as b,
Here 0 < 0 <= is the angle between a and b.CHAPTER 6, VECTORS 65
Figure 6.5: The two vectors. and b. We see that the length of the component of a which
is mn the same direction as b is |al cos
Compare with the dot produet formula:
ab
|b) cos
Looks almost like the length of the component of a, but is rescaled such that we have the
symmetry:
ab=ba
So the dot product also gives us a rescaling of the length of the component of b in the sane
direction as a, But we expected that in the first place, because of the above symmetry
rule!
Figure 6.6: This time, we would like the length of the component of b which ts in the same.
direction as a, That length ts [bj cos.
Note that
ab
lal]
Which isa useful method for calculating @ if you know a and b.
asb=|aljblcos@ > cosé=
‘Two non-zero vectors are perpendicular (orthogonal) if and only if their dot product ts
ab=0 > [allblcos?=0
= cosd=0
= (0)
Now consider i,j, k. These are unit vectors, and are mutually perpendicular. These two
facts combined show that, e.gCHAPTER 6. VECTORS
so if you then let
b
(a), 42,43) (= ai + aaj + ask)
(bi.basts) (hii + bai + bak)
iply out a-b, you obtain
ab =ayh +ayby + ayby
Note:
a-a=alla|cos0 = |al?
ie fal = Vara,
Let's try this with r= ri 4 oj 4 ork. Then:
[l= VeP= Vr? + y? +22,
which is consistent with the earlier formula for the magnitude of r
Example 6.4. For
oi-3j+k
+25,
calculate ab and find the angle between the two vectors,
ab=6x4+(-9)x2+1« (O}=18
But recall
and that
therefore
ab 18
ae 0.593,
lallb] av5v46
6 = cos *(0.503) = 53.8.
Example 6.5. Points A.B and C have coordinates (3.2), (4, ~3).(7,
5) respectively
i Find AB and AC.
ii Find AB-AC.
iii Deduce the angle between AB and AC.
AB = (4i— 33) — (81 +29)
AG = (7-59) - (31 +2)CHAPTER 6, VECTORS 67
ii Now for the dot product:
ABAC = 4x14 (-5) x (7) = 4435 =39.
iit To calculate the angle, note that
|AB) = V+ ap = v6,
\AC) = MPF CAP = Vi.
Then an
TBIG __»
- ow (sa
(aB\ ad Vaio Ger)
cos =
which gives @ = 18"
So far, we have seen one way to multiply two vectors together. However, that first way.
the dot product, spits out a number. It would be nice if there was a way to multiply two
vectors together such that the result is another vector (Guess what? There is one!)
6.3 The Cross Product:
Take any two vectors a and b. Then the cross product is denoted as
axh.
Before giving the definition, let's consider the motivation behind it using a physies context,
Example 6.6 (Moments). Consider a seesaw. If apply a force on it at some point away
from the pivot, it will turn. Also, if the force is applied farther away from the pivot, the
seesaw will turn more easily
1 = Position where the force is exerted
PF
Phe faree applied,
then the moment of F about a point 0 is
m=|F\d,
where
sineCHAPTER 6. VECTORS 68
is the perpendicular elistance between O and the line of action of F.
m= |r| sind.
In fact, the moment veetor of F about O, i.e. m, is
marxF,
which is perpendicular to both rand F. Moreover, m points in the same direction as the
axis of rotation for the seesaw (here, m points out of the page).
Now, m= |m], hence the magnitude of m is:
{m| = | F/sin
Okay, now I can define the veetor produet:
Definition 6.3. The cross product of two vectors a and b is
ax b= Jallb|sindi
which is. VECTOR, not a NUMBER. So try not to confuse this with the dot product
Length of axb: jax b|=|alfb|sin®.
Direction of aX b: i, found using the vight hand rule
A is a umt vector perpendicular to a and be.
Figure 6.% The vectors, b and a xb If you put your thumb on a and your weder finger
on b, then your middle finger will tell you the direction of a xb,
Thus definition only works for 3D vectors!
Q: Now, does ax b=b xa?
A: NO!
To sve this, let v= a x band w= b xa. By definition, we will have that [y| = |r), but
what about their directions? Well, the right hand rule shows us that v = —w, Hence
bxadaxb!CHAPTER 6. VECTORS 69
‘Suppose we have any two veetors a and b. Tf
asa taj task = (e1.42,43)
b= bit bj + bok = (bist. by)
then the three components of a x by are:
axb
(anbs ~ agba)t+ (ashi — arbs)j + (aide — abide
This can be conveniently represented using a 3x 3 matrix determinant)
axb=| a, ay
f
A trick to calculate the determinant is to multiply along, each of the six diagonal lines:
Next, add all the produets corresponding to the green diagonals, and then subtract all the
produets for the red diagonals. In ather words,
Determinant = Sum of the green products ~ Sum of red products,
Example 6.7. Compute ax b, where
a=4i-k
b= -2i+j+ak
= OLE Bh 4 ak Ok = (-i) ~ 135
~ 10) +4
Example 6.8. Show that i x
04 +0) + 1k - 01 — oj - 0k
=k
Remark 6.1. A nice interpretation of the length |a x bj is that if 8 is the angle between a
‘and b, then this is the area of the parallelogram with sides a and b, i.e.
A= jal [bising
we
Base Tength HeightCHAPTER 6. VECTORS 70
Figure 6.8: A paralellogram, whose sides correspond to vectors and b. It con be split into
two triangles
Proof:
A= 2A,
but,
1
Ay = 5lallb|sind, [Anyone recognise this trigonometsic formula?)
= Slab}
hence
A=|ax bl
o
Example 6.9 (Recycled exam question!). Find the area of a triangle with adjacent sides
given by
a=i+2j-k
bajtk
Note that .
= 2405 + (i) —§ Oke
-j+k
We want the area of the shaded region A, but
jax bl=24
=A=Hiaxd|
=lyescyp ee
=O
1
=5vii