Topic 7 Vectors
Topic 7 Vectors
7. Vectors
7.1 Introduction
7.2 Vector algebra
7.3 Components of a vector
7.4 The scalar (or inner, or dot) product
7.5 The vector product (or cross product)
7.6 Scalar triple product
7.7 Applications of vectors to geometry
7.8 Vector methods in Engineering
7.9 Differentiating scalar and vector products
The magnitude of the vector a is represented by the length of the line; its direction
is that of the arrow.
If A and B are the ends of the arrow then an alternative notation for the vector is
−→
AB (the directed line segment from A to B).
The vector c = a + b is given by the vector starting at the tail end of a with its
arrow end at the arrow end of b.
We see that a + b = b + a so that the order of adding vectors does not matter.
Also
a + (b + c) = (a + b) + c
(Associativity and Commutativity).
It follows that a + b + c can be evaluated without ambiguity (by first adding any
two of the three vectors a, b, c, and then adding the third).
Ignoring any acceleration/deceleration, calculate the direction the boat must head
to make the crossing in the shortest time and the resultant crossing speed.
Ignoring any acceleration/deceleration, calculate the direction the boat must head
to make the crossing in the shortest time and the resultant crossing speed.
Solution: The boat must head upstream, at an angle θ to the bank, to overcome
being swept downstream by the motion of the water. The resultant direction must
be perpendicular to the bank, hence we get the vector diagram as shown.
−→ −→ −→ −→ −→
OB = OA + AB b = a + AB AB = b − a
Dr. Jun Fan (UNNC) MATH1046 2024-2025 Spring Semester 10 / 70
7.2.5 Multiplication of a vector by a scalar
It is natural to consider scalar multiples of vectors - for example, we might wish to
consider the effect of doubling some applied force. The rules are as follows, where k
is an arbitrary scalar (number):
1. ka denotes a vector having magnitude |k| times that of a and being parallel to
a.
2. 0a = 0
3. k0 = 0
4. 1a = a
5. (−k)a = −(ka)
6. (−1)a = −(a)
7. k(a + b) = ka + kb
8. (k1 + k2 ) a = k1 a + k2 a
9. (k1 k2 ) a = k1 (k2 a)
The second line is 2.5 times longer than the first and is in the same direction.
a
â =
|a|
Vectors are often written in terms of ’basis’ vectors, such as the Cartesian
system i , j , and k in three dimensions.
These vectors have unit magnitude, are perpendicular to each other, and are
right-handed, so that a right-threaded screw rotating from the direction of i to
j will advance in the direction of k.
If a = a1 i + a2 j + a3 k then the scalars a1 , a2 , and a3 are the components of
the vector a (relative to i , j , k).
p
r = |r | = x2 + y2 + z2
a · b = |a||b| cos θ
where θ is the angle between the two vectors (note that cos θ = cos(2π − θ)). This
definition does not depend on any particular coordinate system.
1. a · b = b · a (the dot product is said to be commutative)
2. If a lies in a direction perpendicular to that of b, then a · b = 0 and a and b
are said to be orthogonal to each other.
3. If a · b = 0 then either (i) a lies perpendicular to b or (ii) one (or both) of a
and b is a zero vector.
4. a · a = |a|2 = a2 .
5. (a + b) · c = a · c + b · c
(the dot product is said to be distributive)
6. i · i = j · j = k · k = 1 (unit size)
7. i · j = i · k = j · k = 0 (orthogonality)
8. If a = a1 i + a2 j + a3 k = (a1 , a2 , a3 ) and b = b1 i + b2 j + b3 k = (b1 , b2 , b3 )
then
a · b = a1 b1 + a2 b2 + a3 b3
9. (k1 a) · (k2 b) = (k1 k2 ) (a · b) (k1 , k2 scalars )
a = 2i − 2j + 4k, and b = 4i + 5k
a = 2i − 2j + 4k, and b = 4i + 5k
where θ is the angle between the two vectors. From result 8 above,
a · b = (2) × (4) + (−2) × (0) + (4) × (5) and
p √ √
a = |a| = 22 + (−2)2 + 42 = 4 + 4 + 16 = 24
p √ √
b = |b| = 42 + 02 + 52 = 16 + 0 + 25 = 41
a·b 28
Hence, cos θ = = √ √ = 0.8926, and θ = cos−1 0.8926 = 0.467
|a||b| 24 41
radians.
Solution: Introduce two vectors a and b as shown. Since a, b lie along radii they
have equal magnitudes (|a| = |b|).
c · d = (a + b) · (a − b)
= |a|2 − a · b + b · a − |b|2
=0
a × b = |a||b| sin θn
where θ is the angle between a and b with 0 ≤ θ ≤ π, and n is a unit vector such
that a, b and n form a right-handed system (like the Cartesian system i , j and k).
Useful link
https://www.mathsisfun.com/algebra/vectors-cross-product.html
1) a × b = −b × a
(unlike the scalar product, the vector product is non-commutative)
2) If a × b = 0 then either: (i) a is parallel to b (including a = b ); or (ii) one
(or both) of a or b is a zero vector.
3) a × (b + c) = a × b + a × c
(the vector product is distributive)
4) (k1 a) × (k2 b) = (k1 k2 ) (a × b) (k1 , k2 scalars )
i × i = 0, j × j = 0, k × k = 0
i × j = k, j × k = i , k × i = j
j × i = −k, k × j = −i , i × k = −j
i j k
a×b = a1 a2 a3
b1 b2 b3
Note that this last expression is not really a determinant because not all of the
elements are numbers.
Since the altitude h = |a| sin θ and the length of the side is |b|, we have
|a × b| = |a||b| sin θ
Solution:
i j k
a×b = 2 −2 4
4 0 5
= i (−2 × 5 − 0 × 4) − j (2 × 5 − 4 × 4) + k(2 × 0 − 4 × (−2)) = −10i + 6j + 8k
[a, b, c] = a · (b × c) = b · (c × a) = c · (a × b)
= (b × c) · a = (c × a) · b = (a × b) · c
In terms of determinants
a1 a2 a3
[a, b, c] = b1 b2 b3
c1 c2 c3
Solution:
1 2 −1
[a, b, c] = 2 2 3
1 −1 1
= 1(2 × 1 − 3 × (−1)) − 2(2 × 1 − 3 × 1) + (−1)(2 × (−1) − 2 × 1)
= 5 + 2 + 4 = 11
The scalar triple product [a, b, c] = 11 indicates the volume of the parallelepiped
formed by the vectors a, b, and c. The fact that the result is non-zero also tells us
that these vectors are not coplanar, meaning they span a three-dimensional space.
3 4 5
Example: If a = i + 2j + 3k and n = √ i + √ j + √ k (unit vector). Find
50 50 50
the component of a in the direction of n.
3 4 5
Example: If a = i + 2j + 3k and n = √ i + √ j + √ k (unit vector). Find
50 50 50
the component of a in the direction of n.
Solution:
3 4 5
√ i+√ j+√ k
(i + 2j + 3k) ·
50 50 50
3 8 15 26
=√ +√ +√ =√ .
50 50 50 50
Dr. Jun Fan (UNNC) MATH1046 2024-2025 Spring Semester 28 / 70
7.6.1 Components of vectors
The vector projection of a onto n is given by (a · n)n.
1
b̂ = √ (−i + j + 4k).
18
The vector projection of a onto b can then be found as follows:
1 1
(a · b̂)b̂ = √ (3i + j + 2k) · (−i + j + 4k) √ (−i + j + 4k)
18 18
1
= (−3 + 1 + 8)(−i + j + 4k)
18
6
= (−i + j + 4k)
18
1
= (−i + j + 4k).
3
This calculation yields the vector projection of a onto b.
Solution:
The work done by the force is given by the component of the force in the direction
of the distance moved (F cos θ, where F = |F |) times the magnitude of the
distance moved (d = |d |). This is simply
If a and b are the position vectors of two distinct points, then the position vector
of an arbitrary point on the line joining these points is
r = a + λ(b − a)
Thus the equation of a line can be specified by giving a point it passes through (a,
say) and the direction of the line (d, say). The equation is then
r = a + λd
x = x0 + λ (x1 − x0 )
y = y0 + λ (y1 − y0 )
z = z0 + λ (z1 − z0 )
Eliminating λ gives the Cartesian equation for a straight line passing through two
points (x0 , y0 , z0 ) and (x1 , y1 , z1 ) (symmetric equations of the line)
x − x0 y − y0 z − z0
λ= = = .
x1 − x0 y1 − y0 z1 − z0
which defines a line that intersects two points (x0 , y0 , z0 ) and (x1 , y1 , z1 ).
Solution:
(a) A direction vector of the line:
x −2 y − (−1) z −3
λ= = = .
1 −5 6
This implies that the two lines are either identical or parallel.
Since this point does not satisfy the equation of the second line, the second line
does not pass through this point.
(r − a) · n = 0
So the vector equation of the plane is: r · n = a · n = d, where r = (x , y , z) and
the vectors a and n are known.
a = (x0 , y0 , z0 ) n = (I, m, p) r = (x , y , z)
Then
((x , y , z) − (x0 , y0 , z0 )) · (I, m, p) = 0
or
lx + my + pz = constant = lx0 + my0 + pz0 .
Alternatively, if you are given the Cartesian equation of a plane in the form
lx + my + pz = constant
(c − a) × (c − b),
(r − a) · ((c − a) × (c − b)) = 0
Solution: We can form the following two vectors from the given points.
−→ −→
PQ = h2, 3, 4i PR = h−1, 1, 2i
~i ~j ~k
−→ −→
~n = PQ × PR = 2 3 4 = 2~i − 8~j + 5~k
−1 1 2
We used P for the point but could have used any of the three points.
~n = h4, 8, −2i.
Procedures:
Find the normal vectors to the
planes first.
Find the angle between the normal
vectors.
3x − 6y − 2z = 7 and 2x + y − 2z = 5.
3x − 6y − 2z = 7 and 2x + y − 2z = 5.
n 1 · n 2 = |n 1 | |n 2 | cos θ ⇒ 4 = 7 × 3 × cos θ
4
from which θ = cos−1 ' 79◦ follows.
21
a · n = (i + j ) · (2i + j − 5k) = 2 + 1 = 3.
r · (2i + j − 5k) = 3.
r = x i + y j + zk
to obtain
2x + y − 5z = 3.
Solution:
(a) The vectors
c − a = (0, 1, 3) − (1, 2, 0) = (−1, −1, 3)
c − b = (0, 1, 3) − (1, 1, 1) = (−1, 0, 2)
both lie in the required plane. Hence the vector
(b) The required equation for a line passing through A and B is r = a + λ(b − a).
Thus
(x , y , z) = λ((1, 1, 1) − (1, 2, 0)) + (1, 2, 0)
or
(x , y , z) = (1, 2 − λ, λ).
This gives
x = 1andy = 2 − λ, z = λ.
Thus the line can be interpreted as the intersection of the two planes x = 1
and y = 2 − z.
(c) To show that the given line (x = y = (z − 4)/(−3)) lies in the plane that we
have found (2x + y + z = 4), we must show that points (x , y , z) on the line
satisfy the equation of the plane. From the given equation for the line we have
z −4 z −4
x= and y =
−3 −3
Substituting these expressions into the LHS of the equation of the plane, and
then simplifying, we find
2 1
2x + y + z = (4 − z) + (4 − z) + z = 4
3 3
hence the equation of the plane is satisfied and points on the line also lie in
the plane.
Dr. Jun Fan (UNNC) MATH1046 2024-2025 Spring Semester 51 / 70
Example: Find the perpendicular distance from a point (x0 , y0 , z0 ) to a plane
Ax + By + Cz = D.
Solution:
(x − x0 , y − y0 , z − z0 ) · (A, B, C ) A (x − x0 ) + B (y − y0 ) + C (z − z0 )
√ = √
2
A +B +c 2 2 A2 + B 2 + c 2
Ax + By + Cz − (Ax0 + By0 + Cz0 )
= √
A2 + B 2 + c 2
D − (Ax0 + By0 + Cz0 )
= √ (absolute value)
A2 + B 2 + C 2
Note: “Component” can be negative, but distance cannot. Thus, we have
3 + λ = t, −1 − 2λ = 1 + 2t , 2−λ=1+t
| {z }
3+λ=−1−λ=⇒λ=−2 and t=1
λ + t = −2 + 1 = −1 6= 1.
for any k ∈ R. It can be seen that they are not parallel. Since they do not intersect
and are not parallel, they are skew.
Dr. Jun Fan (UNNC) MATH1046 2024-2025 Spring Semester 57 / 70
7.8 Vector methods in Engineering
We have already seen how to calculate moments and resultants of forces.
Example:
(a) Calculate the resultant of the three forces
(b) Calculate also the moment of the resultant about the origin if it is applied at
the point with position vector (1, 2, 3).
Example:
(a) Calculate the resultant of the three forces
(b) Calculate also the moment of the resultant about the origin if it is applied at
the point with position vector (1, 2, 3).
i j k
M = (1, 2, 3) × (0, 5, 9) = 1 2 3
0 5 9
= i (9 × 2 − 3 × 5) − j (1 × 9 − 0 × 3) + k(5 × 1 − 0 × 2)
= 3i − 9j + 5k
or
r (t) = (x (t), y (t), z(t)).
or
r (t) = (x (t), y (t), z(t)).
Then the velocity of the object is the derivative vector
dr (t) dx dy dz
v(t) = = i+ j+ k
dt dt dt dt
or, alternatively,
v(t) = r 0 (t) = (x 0 (t), y 0 (t), z 0 (t))
Similarly, the acceleration is the vector
d2 r (t) d2 x d2 y d2 z
2
= r 00 (t) = 2
i+ 2
j + 2 k = x 00 (t)i + y 00 (t)j + z 00 (t)k.
dt dt dt dt
The speed is the scalar v = |v|.
Dr. Jun Fan (UNNC) MATH1046 2024-2025 Spring Semester 60 / 70
Example: Given the position vector r (t) = 2t, 3t 2 − 1, 5t 3 find the velocity and
acceleration.
acceleration.
acceleration.
Solution: The velocity vector v(t) is the first derivative of the position vector r(t)
with respect to t:
dr(t)
v(t) = .
dt
The acceleration vector a(t) is the second derivative of the position vector r(t) with
respect to t, which can also be seen as the first derivative of the velocity vector
v(t) with respect to t:
dv(t)
a(t) = .
dt
The velocity vector v(t) is given by:
dr (t)
= 2, 6t, 15t 2 = 2i + 6tj + 15t 2 k
dt
And the acceleration vector a(t) is given by:
d2 r (t)
= (0, 6, 30t) = 6j + 30tk
dt 2
dr (t)
v(t) = = − sin ti + cos tj − e −t k
dt
The speed is
q p
2
v (t) = |v(t)| = (− sin t)2 + (cos t)2 + (−e −t ) = 1 + e −2t
The acceleration is
dv(t)
a(t) = = − cos ti − sin tj + e −t k.
dt
d2 r (t)
F (t) = ma(t) = m
dt 2
in the usual notation.
If we know m and r (t), we can calculate the applied force F by differentiating
r (t) twice.
If we know F (t) and m, we can calculate r (t) by integration.
Solution: Consider the Earth as flat for simplicity, and define the starting point
directly below the dropped object as the origin.
Let a unit vector k point straight up, with gravity’s acceleration represented as
−gk.
Assuming the particle’s position vector at time t is r (t), its motion equation
d2 r (t)
becomes −mgk = m .
dt 2
Note: Here, m = 1Kg, but mass is irrelevant since it cancels out, and gravity pulls
directly down.
dr (t)
Integrating once yields = −gtk + A, with A as a constant vector.
dt
d d 5
(a · b) = t = 5t 4 .
dt dt
2) Alternatively, we have that
da db
= 2ti , = 3t 2 i + 4k.
dt dt
Then
d da db
= (2ti ) · t 3 i + 4tk + t 2 i · 3t 2 i + 4k
(a · b) = ·b+a·
dt dt dt
= (2t)t 3 + 0 + t 2 · 3t 2 + 0 = 2t 4 + 3t 4 = 5t 4
as before.
Dr. Jun Fan (UNNC) MATH1046 2024-2025 Spring Semester 69 / 70
d d
Example: Given a = t 2 i , b = t 3 i + 4tk, calculate (a · b), and (a × b)
dt dt
directly.
3) a × b = t 2 i × t 3 i + 4tk = −4t 3 j
d d
−4t 3 j = −12t 2 j
(a × b) =
dt dt
4)
db
= t 2 i × 3t 2 i + 4k = −4t 2 j
a×
dt
and
da
× b = (2ti ) × t 3 i + 4tk = −8t 2 j
dt
Hence,
d da db
(a × b) = ×b+a× = −8t 2 j − 4t 2 j = −12t 2 j
dt dt dt
as before.