Vector Tutorial PDF
Vector Tutorial PDF
1. Definition
A vector is a mathematical object that has magnitude and direction, and satisfies the laws of vector
addition. Vectors are used to represent physical quantities that have a magnitude and direction associated
with them. For example,
The velocity of an object is a vector. The direction of the vector specifies the direction of
travel, and the magnitude specifies the speed.
The force acting on an object is a vector. The direction of the vector specifies the line of
action of the force, and the magnitude specifies how large the force is.
Other examples of vectors include position; acceleration; electric field; electric current flow; heat flow;
the normal to a surface. Examples of quantities that are not vectors include mass, temperature, electric
potential, volume, and energy. These can all be described by their magnitude only (they have no
direction) and so are scalars.
A vector is often represented pictorially as an arrow (the arrows length is its
magnitude, and it points in its direction) and symbolically by an underlined letter a ,
Problems
1.1 Identify whether the following physical quantities should be described as vectors or scalars
(a) Your age
(b) The distance between the Earth and the sun
(c) Forecast wind
(d) The gradient (slope) of a surface
(e) The linear momentum of an object
(f) The speed of light
North
MacArthur (ISP)
99 ft MSL
East
Kennedy (JFK)
13 ft MSL
12 Nautical Miles
33 Nautical Miles
The three distances (33 NM East, 12 NM North, 0.0142NM vertically) are the components of the position
vector of ISP relative to JFK, in a Cartesian basis with its axes pointing East, North and vertically.
k
We follow the same procedure to specify the components of
any vector. First, we choose three convenient, mutually
perpendicular, reference directions as shown in the figure.
The three reference directions are often given the symbols i, j
and k or e1 , e 2 and e 3 , and are denoted {i,j,k} or
e1 , e 2 , e 3 for short. Then, we describe vectors by specifying
x
how far you need to travel along each of the three reference
directions to reach the tip of the vector from its tail, as shown
iR
in the picture. For example, to reach P from O in the figure,
y
you need to travel a distance x along i, a distance y along j and
a distance z along k. In mathematical notation this would be
expressed as
r xi yj zk
The three numbers (x,y,z) are called the components of the vector r in the basis {i,j,k}
j
z
The reference directions {i,j,k} are arbitrary, except for two important restrictions. First, as we have
already stated, the directions must be mutually perpendicular. Secondly, the directions must form a right
handed triad, which means the arrows must be chosen so that it is possible to orient your right hand so
that your thumb is parallel to i, your index finger is parallel to j and your middle finger is parallel to k.
The figure below shows two bases: the one on the left is correct (it is a right handed triad) but the one on
the right is not (it is a left handed triad)
k
i
j
i
Note that the three directions i, j, k can (and will) be regarded as vectors. Since they have direction but
no well defined magnitude, we will choose them to be unit vectors.
Example
A
450
300
i
This symbol shows that k
points towards you
Solution
A picture is always helpful
T2
T1
450
T1 sin(450)
300
T1 cos(45 0)
i
i
i
450
j
T1
T2
300
k
i
T2 sin(300)
T2 cos(300)
Now, remember that to write down the components of a vector, you need to specify the distance you
travel in each of the i,j,k directions to reach the tip of the vector from its tail.
For the gravity force, we travel a distance W in the j direction. Therefore
Fgravity Wj
For the tension in OA, we travel a distance T1 cos(45) T1 / 2 in the i direction, and
T1 sin(45) T1 / 2 in the j direction. Therefore
FOA T1 / 2 i T1 / 2 j
Finally, for the tension in OB, we travel a distance T2 cos(30) T2 / 2 in the i direction, and
T2 sin(30) T2 3 / 2 in the j direction. Therefore
FOB T2 / 2 i T2 3 / 2 j
H
j
Problems
2.1 Consider the cube shown in the figure. Identify which of the {i,j,k}
bases shown in the figure are right handed triads.
k
j
k
i
k i
j
k
i
j
2.2 Consider the simple two-dimensional truss structure shown below. Each member has length 2m.
Write down the following position vectors, expressing your answer as components in the basis shown,
with physical dimensions of meters:
(a) The position vector of A relative to O (i.e. the vector
pointing from O to A)
(b) The position of B relative to O
(c) The position of D relative to O
(d) The position of C relative to O
(e) The position of C relative to B
(f) The position of B relative to C
j
i
0
O 60
600
600
A
600
2.3 Consider the VFR Aeronautical Sectional Chart shown below. Establish a Cartesian basis with i
pointing true East, j pointing true North and k perpendicular to the plane of the picture.
PVD
55ft
Newport
172 ft
True N
True E
Block Is
109 ft
Write down the components of the following vectors in this basis, expressing your answer in Nautical
Miles
(a) The position vector of Newport State Airport relative to Providence T.F. Green Airport. (The
height of each airport in feet above mean sea level is shown near each airport see figure)
(b) The position vector of Block Island State Airport relative to Newport State Airport
(c) The position vector of Block Island State Airport relative to Providence airport
(d) An aircraft at 2000 feet on a 10 mile final approach to Providence runway 23L. (An aircraft on
final is aligned with the runway, and the number of the runway (23) indicates that the runway
heading is 230 degrees magnetic. Magnetic variation at PVD is 15 degrees W, so 230 magnetic is
245 degrees true.)
iR
x2+y2
z
Q
OQ x 2 y 2 . Now observe further that OQP is a right angled triangle, so apply Pythagoras theorem
again to see that
r OP
OQ z 2
2
x2 y2
j z
2
r x2 y2 z2
Problems
3.1 Calculate the magnitudes of each of the vectors shown below
(a) r 3i 6 j 2k
(b) r 16i 6 j
(c) r 9.6 j 2.4i 4.6k
3.2 For the truss shown below, find the magnitude of the position vector of C with respect to O.
0
O 60
600
60 0
A
60 0
3.3 A vector has magnitude 3, and i and j components of 1 and 2, respectively. Calculate its k
component.
3.4 Let {i,j,k} be a Cartesian basis. A vector a has magnitude 4 and subtends angles of 30 degrees and
100 degrees to the i and k directions, respectively. Calculate the components of a in the basis {i,j,k}
4. Addition of vectors
Let a and b be vectors. Then (by definition) c a b is also a vector.
Vector addition satisfies a b b a (again, by definition). The vector
c may be shown diagramatically by placing arrows representing a and
b head to tail, as shown.
a
c
a a x i a y j az k
id
b bx i by j bz k
c cx i cy j cz k
id
Just Do It!
c cx i cy j cz k a b a x i a y j az k bx i by j bz k
(a x bx )i (a y by ) j (az bz )k
and so comparing coefficients of i,j and k
cx a x bx
cy a y by ,
cz az bz
Problems
4.1 Find the sum of the vectors listed below, expressing your answer as components in the {i,j,k} basis.
Also compute the magnitude of each vector and the magnitude of their sum.
(a) a i j k , b i j k
(b) a 3i 2 j , b 4i 6k
(c) a xi yj zk , b i j k
4.2 For each of the vectors listed in the preceding section, calculate a-b.
4.3 The vectors a and b shown in the figure have magnitudes a 3 , b 5 .
Calculate the magnitude of the vector c.
150 0
j
4.4 For the structure shown, write down the position
vectors of B relative to O, C relative to B and C relative
to O. Verify your answer by checking that
OC OB BC
60 0
0
O 60
600
A
600
450
300
5. Multiplication of vectors
5.1 Multiplication by a scalar.
Let a be a vector, and a scalar. Then b a is a vector. The direction of b is parallel to a and its
magnitude is given by b a .
Note that you can form a unit vector n which is parallel to a by setting
a
n .
a
5.2 Formula for the product of a scalar and a vector in Cartesian Components
Let a a x i a y j az k be a vector and a scalar. Find an expression for the components of the vector
b a Then
b bx i by j bz k a a x i a y j az k a x i a y j az k
and hence
bx a x , by a y , bz az
Problems
5.1 Find the components of a unit vector parallel to the vector a 5i 6k
5.2 Let a i j k , b 4i 6k . Find 6a+2b, and 6a-2b.
(a,b)
b
5.4 Formula for the dot product of two vectors in Cartesian Components
Let
a a x i a y j az k
id
b bx i by j bz k
id
Calculate a b in terms of a x , a y , az , bx , by , bz .
This time we have to do some real work. Substitute for a and b and see what happens
a b a x i a y j a z k bx i by j bz k
id
a b a xbx i i a yby j j az bz k k
Finally, note that the a vector is always parallel to itself, so the angle between a vector and itself is zero.
Recall also that I, j and k are all unit vectors. Therefore
i i i i cos(0) 1, and so on for all three remaining dot products. So, finally
a b a xbx a y by azbz
Problems
5.3 Find the dot products of the vectors listed below
(a) a i j k , b i j k
(b) a 3i 2 j , b 4i 6k
(c) a xi yj zk , b i j k
5.4 The vectors a and b shown in the figure below have magnitudes
a 3 , b 5 . Calculate a b .
1500
5.5 Two vectors a and b are mutually perpendicular. What is their dot product?
5.6 Calculate j 3i 2 j 3k
5.7 Calculate the angle between each pair of vectors listed in Problem 5.3 i.e. find the angle
(a , b) between a and b in each case
j
5.8 For the structure shown, calculate the angle
0
O 60
600
600
A
600
O
Recall that |a| is the length of OA. The length of OX
is therefore L a cos (a , b) . But recall that
a b a b cos (a , b) , so that L a b / b , as stated.
n=b/|b|
(a,b)
n
L=|a|cos
Problems
F a bIb
(i) Show that the vector XA a G
H b JK
n=b/|b|
(a,b)
n
L=|a|cos
a (a b) 2 / b
2
c
b
(a,b)
a
Bottle-cap rule.
Obtain a twist-top bottle of your favorite beverage. Draw an arrow on the cap. Arrange the bottle so
that, by twisting the cap through the angle , you can rotate the arrow from parallel to a to parallel to b.
The direction of a b is parallel to the direction of motion of the bottle-cap as it is turned. (Full beverage
containers are not be permitted in EN3 examinations)
If none of these tricks help you
Extend your middle finger into the air. Shout your favorite expletive. This will not help, but it may
make you feel better.
Problem
5.10 Let {i,j,k} be a Cartesian basis. Use the definition of the cross product given above to calculate all
possible cross products of the basis vectors i.e., calculate
i i,
i j
ik
ji
j j
jk
ki
kj
kk
You will find that the results are all very simple. For example, i i i i sin (i, i) 0 , since I is parallel
to itself. Hence i i 0 . Similarly i j i j sin (i, j) 1 , since I and j are both unit vectors and the
angle between them is 90 degrees. The rules governing the direction of a cross product also show that
i j is parallel to k. Therefore
i j k . See if you can work out the rest on your own.
5.6 Formula for the cross product of two vectors in Cartesian Components.
Let
a a x i a y j az k
b bx i by j bz k
id
i
Calculate a b in terms of da , a , a i, db , b , b i .
i d
This is another mess. This time, note that i i i i sin (i, i) (and similarly for j j and k k ), note
that the angle (i, i) between I and itself is zero, and recall that sin(0)=0. Therefore
i i j j k k 0.
j
The remaining cross products between i,j,k have to be calculated
laboriously one at a time, using the definition given in the
preceding section. The figure shows the direction of all six
possible cross products between the basis vectors (magnitudes are
not shown to scale, for clarity). Thus, we conclude that
ii 0
j i k
ki j
ij k
j j 0
k j i
kxi
jxi
kxj
jxk
ixj
k
i k j
jk i
kk 0
ixk
i
k
i d
a b a x i a y j az k bx i by j bz k
a x by k a x bz j
a y bx k a y bz i
a zbx j azby i
(a y bz azby )i (azbx a xbz ) j (a x by a y bx )k
Hence
cx (a y bz azby ),
cy (a z bx a x bz ),
cz (a x by a y bx )
This is not an easy formula to remember, but it is so important that you must memorize it. The following
trick is sometimes used to help remember the formula if you know how to calculate the determinant of
a matrix, then you will note that
LM i
a b det Ma
MNb
j
ay
by
OP
a P (a b a b )i
b PQ
k
y z
z y
(azbx a xbz ) j (a x by a y bx )k
It is fairly easy to remember the cover-up rule for computing the determinant of a matrix, so this is a
popular trick.
Another way to remember the formula is to notice the pattern in the indices. The indices are written out
below to show the pattern more clearly
cx (a y bz azby ),
indices x , y , z x , z , y
cy (azbx a x bz ),
indices y , z , x y , x , z
cz (a xby a y bx ),
indices z , x , y z , y , x
There are two things to notice about this pattern. First, note that the expression for cx involves only a y , az
and by , bz , similarly, the expression for cy involves only a x , a z and bx , bz , and the third expression has the
same feature. Secondly, notice that the indices always appear both forwards (x,y,z or y,z,x or z,x,y) and
backwards (x,z,y or y,x,z or z,y,x) in each expression. The forward terms (x,y,z or y,z,x or z,x,y) are all
positive, while the backward terms (x,z,y or y,x,z or z,y,x) are all negative.
Problems
5.11 Find the cross products of the vectors listed below
(a) a i j k , b i j k
(b) a 3i 2 j , b 4i 6k
(c) a xi yj zk , b i j k
5.12 The vectors a and b shown in the figure have magnitudes a 3 , b 5 .
Calculate a b . What is the direction of a b ?
150 0
c
j
F
i
P
rOP
O
For each figure shown below, write down the force F and the position vector rOP as components in the
basis shown, and hence calculate the vector moment M of the force about the point O.
10N
10N
0
O 60
60
60
A
60
O 60
60
60
A
600
F
i
rOP
O
dsin
Calculate the required perpendicular distance in each problem below, and hence deduce M for each
figure.
j
i
j
10N
10N
0
O 60
600
600
A
600
O 60
60
60
A
600
a
b
br agbb bg br bgba bg
ba agbb bg ba bg
br bgba ag br agba bg
ba agbb bg ba bg
This is messy, but it looks a bit better if we choose a and b to be unit vectors, in which case
a a b b 1
r a r b a b
2
1 a b
b g d id i
d i
dr b i br a gda b i
1 da b i
2
(We put little hats on the vectors to show that you can only use the formula for unit vectors) We really
blow our minds if we also choose a and b to be mutually perpendicular so a b 0
r a
r b
a b 0
b g
d i
6.2 THEOREM II
The same sort of thing works in three dimensions. In this case, let a, b and c be three non-coplanar, noncollinear vectors. Then any vector r can be represented as a linear combination of a, b, and c, i.e. there
exist three scalars , and such that r a b c
We could, if we really wanted to, find a general expression for , and , but the results are so
complicated its not really worth the effort. However, if we choose a, b, and c to be mutually
perpendicular, unit vectors, we find that
r a r cos (r , a )
r b r cos (r , b )
a b a c b c 0
r c r cos (r , c )
These results give us a new insight into what it means to express a vector as components in a basis.
Heres the scoop.
Truth be told, we dont actually like vectors very much. (This may be the first statement in this tutorial
you really appreciate). Calculating sums and products of arbitrary vectors is a pain. So, in any problem
we solve, we use as few vectors as possible. In two dimensions, we pick two convenient vectors {i,j}and
then express all vectors as a sum of these two, r xi yj . In three dimensions, we need to pick three
reference vectors, {i,j,k}, then we can make all other vectors a sum of these r xi yj zk .
We know from our Theorems that it is very helpful if we pick our reference vectors to be mutually
perpendicular unit vectors. In this case, we get a very convenient formula
for the three numbers x, y and z.
x r i r cos (r , i)
y r j r cos (r , j)
z r k r cos (r , k )
z
O
r,k)
r P
r,j)
j
r,i)
y
This discussion has given us new insight into what we are doing in
expressing vectors as components in a basis. It shows why our three
x
reference directions can be regarded as vectors; it shows why they
i
should be unit vectors, and why the vectors should be mutually
perpendicular. It does not explain why the three basis vectors must
form a right handed triad -- This is done so that we get the correct expression for the component form for
a cross product (Sect 5.6)
Note, however, that mathematically speaking we did everything backwards in this tutorial. Strictly
speaking, we should have started with the definition of a vector sum (if a and b are vectors then c=a+b is
a vector), define the dot product ( a b a b cos (a , b) ), and then deduce the existence of a basis as we
did in this section. Then, finally, we can deduce expressions for vector operations in component form.
Problems
6.1 Let a=5i-6k; b=4i+2k Let r=5k. Express r as components parallel to a and b, i.e. find two scalars
and such that r a b
Problems
6.2 Find the direction cosines of the following vectors
(a) a i j k
(b) a 3i 2 j
In the figure shown below, the sailboat travels in a Northeasterly direction. The wind is 5i 10 j knots.
Find the components of the wind vector in a basis {e1 , e 2 , e 3} aligned with the sailboat.
.
e2
e1
-sin(45) e2
sin(45) e1
45 o
e3
i
cos(45) e2
North
45o
sin(45) e1
To proceed, we will express i and j in terms of {e1 , e 2 , e 3} . Recall that i and j have unit length, therefore
we can combine the e basis vectors as shown in the figure to make up the i and j vectors. From the figure
1
1
i cos(45)e1 sin(45)e 2
e1
e2
2
2
1
1
j sin(45)e1 cos(45)e 2
e1
e2
2
2
so plug into the expression for the wind
LM 1 e
N2
w 5i 10 j 5
OP LM
Q N
1
1
1
e 2 10
e1
e2
2
2
2
OP
Q
5
15
e1
e 2 knots
2
2
For three dimensional problems, it pays to be more systematic. Suppose we know the components of a
vector r in {i,j,k} are (x,y,z), and we wish to calculate the components ( , , ) in {e1 , e 2 , e 3} .
To proceed, we go back to the fundamental definition of the basis vectors, and note that r can be written
as
r xi yj zk e1 e 2 e 3
A clever trick allows us to solve for ( , , ) . If we take the dot product of both sides with e1 , then
xi e1 yj e1 zk e1 e1 e1 e2 e1 e3 e1
But recall that e1 e1 1, e1 e 2 e1 e 3 0 , so that
xi e1 yj e1 zk e1
Similarly, taking dot products with the other two e vectors gives
xi e1 yj e1 zk e1
xi e 2 yj e 2 zk e 2
xi e 3 yj e 3 zk e 3
Finally, we have to calculate i e1 and all the rest. This is done either by finding the angles between the
appropriate vectors and using the definition of a dot product, or, if we are lucky, we know the
components of each e vector in {i,j,k} in which case we can evaluate the dot product directly.
Lets try this out on our sailboat example. In this case x=-5, y=10, z=0, and
1
1
i e1 cos(45)
i e2 sin(45)
i e3 0
2
2
1
1
j e1 sin(45)
j e2 cos(45)
j e3 0
2
2
So, plug everything into the magic formula to see that
5
15
Problems
6.3 Repeat the sailboat problem again, but with the boat traveling at 30 degrees to the i direction.
6.4 Let a 5i 6 j 3k , b 3j 6k , c 45i 30 j 15k .
(a) Verify that a, b and c are mutually perpendicular and that c a b
(b) In view of (a), three unit vectors {e1 , e 2 , e 3} parallel to a b and c can form a basis. Calculate
the components of {e1 , e 2 , e 3} in the {i,j,k} basis.
(c) Let r=4i+6k. Calculate the components of r in {e1 , e 2 , e 3} . (Use your answer to (b) to
calculate the required dot products in the formula)
g b
rC
i
1
Recall that the area of the triangle is AB AC sin . This quantity
2
can be found quickly using a cross product
1
A AB BC
2
1
rB rA rC rB
2
If you really want to look cool, you can simplify this formula to
1
A rA rB rB rC rC rA
2
rB
rA
A
F 0
i
i 1
N
i 1
j 1
ri Fi M j 0
In a typical statics problem, our task will be to identify all the forces acting on our system of interest,
express them all as vectors, and then use the equations of equilibrium to solve for any unknown forces.
Example 1
A typical force equilibrium equation looks like this
R
Ti (4i 3j) Wk 10(i j k ) 0
5
Here, T R and W are three forces whose direction is known, but whose magnitude is not known. We need
to solve the equation for T, R and W.
To do so, we collect together all the i, j and k components
4R
3R
T
10 i
10 j (W 10)k 0
5
5
then, we note that if the vector is zero, all its components must be zero, so that
FG
H
IJ FG
K H
IJ
K
FG T 4 R 10IJ 0
H 5 K
FG 3R 10IJ 0
H5 K
50
3
(W 10) 0
40
3
W 10 Newtons)
Example 2
Here is a typical force-and-moment equilibrium problem, in two dimensions
Rj (Tx i Ty j) 10 j 0
b4i 6jg Rj (i j) (T i T j) 0
x
The first equation is force equilibrium, the second is moment equilibrium. Rj is a force with known
direction but unknown magnitude, Tx i Ty j is a force with unknown magnitude and direction.
To proceed, we have to multiply out the cross product in the second equation (remember the rules for
cross products of the basis vectors?)
4Rk Tx k Ty k 0
Then, collect all the vector components from both equations to see that
Tx 0 R Ty 10 0
4 R Tx Ty 0
which are easily solved to get Tx 0,
R2
Ty 8 Newtons.
The same procedure works for three dimensional problems. Usually, in a 3D problem we end up with 6
equations for 6 unknowns instead of just 3, so things can get really messy. But thats what computers (or
entry level engineers in your firm) are for.
Problems
7.1 Solve the following vector equations
1
(a) xi 7 j 2 i yj 0
2
1
(b) k
xi 7 j yi 2 j 0
2
FG
H
IJ
K
450
300
Summary Checklist
Before taking the EN3 Vector Proficiency Exam, you should make sure you can accomplish the
following tasks:
(i)
Identify physical quantities as scalars or vectors
(ii)
Set up a Cartesian basis
(iii) Identify whether a triad of vectors is right handed
(iv)
Using geometry, write down the components of vectors such as position, force, etc as
components in a Cartesian basis
(v)
Calculate the magnitude of a vector whose Cartesian components are given
(vi)
Add and subtract vectors, both graphically and using components
(vii) Multiply a vector by a scalar
(viii) Calculate the dot product of two vectors;
(ix)
Use dot products to calculate angles between vectors
(x)
Calculate the component of a vector in a direction parallel to another vector
(xi)
Calculate the cross product of two vectors
(xii) Calculate moments of forces about a given point, both using the cross product method and
using the perpendicular distance method.
(xiii) Calculate the direction cosines of a vector
(xiv) Given vector components in one basis, compute new components in a second basis
(xv) Calculate the area of a triangle given vector expressions for the position of its corners
(xvi) Solve vector equations for unknown components or magnitudes of vectors
(xvii) Derive any formula or expression which is derived for you in this tutorial
(xviii) Compose an epic poem extolling the joys of vectors and recite it while walking on water.