Vector Algebra Basics for Non-Majors
Vector Algebra Basics for Non-Majors
Idrissa S. A.
[Link]@[Link]
Vector Algebra
Department of Mathematics - UDSM
November 11, 2024
Scalars vs Vectors
A scalar is simply a real number or a quantity that
has magnitude. e.g., length, temperature are
represented by numbers such as 80 m, 20o C.
A vector is described as a quantity that has both
magnitude and direction. e.g. Force and velocity
Definitions
#»
Let #»a = (a1 , a2 , a3 ) and b = (b1 , b2 , b3 ) be vectors in
IR3 , then
#» #»
1 a + b = (a1 + b1 , a2 + b2 , a3 + b3 )
2 k #»
a = (ka1 , ka2 , ka3 ), k ∈ IR
#» #»
3 a = b if and only if a1 = b1 , a2 = b2 , a3 = b3
#» #» #»
4 a − b = #»a + (− b )
Vector Norm
The magnitude, length or norm of a position vector
#»
a = (a1 , a2 , a3 ) is denoted by ∣∣ #»
a ∣∣ defined as the length
of the geometric vector
√
#»
∣∣ a ∣∣ = a12 + a22 + a32
#»
Clearly ∣∣ #»
a ∣∣ ≥ 0 with ∣∣ #»
a ∣∣ = 0 ⇐⇒ #»
a = 0
∣∣ #»
√ √
u ∣∣ = 22 + 32 + (−6)2 = 49 = 7
Unit vector in the direction of #» u is
ISA MT161 – 2024/2025 14 / 19
Vectors in Space
#»
û = #» #»
1 1
u = (2, 3, −6)
∣∣ u ∣∣ 7
Unit vector in the opposite direction of #» u is
#» 1 1
− û = − (2, 3, −6) = (−2, −3, 6)
7 7
Linear Combination
Let a#»1 , a#»2 , . . . , a#»n be vectors, then expression
#» 1 #» #» #»
u = √ (−3 i + 2 j + 5 k )
38
#» #» #» #» #» #» #»
Example: If #»a = 3 i + 4 j − 8 k and b = 2 i − 5 j + 6 k
#»
find 5 #»
a −2b.
ISA MT161 – 2024/2025 19 / 19
Matrices and Basic Calculus
for Non-Majors – MT161
Idrissa S. A.
[Link]@[Link]
Dot Product
Department of Mathematics - UDSM
November 12, 2023
Dot Product
The dot Product of Two Vectors #» a = (a1 , a2 , a3 ) and
#»
b = (b1 , b2 , b3 ) is the scalar
#» #»
a ⋅ b = a1 b1 + a2 b2 + a3 b3
#» #» #»
Example: if #» a = 2 i + j − 4 k and
#» #» #» #»
b = −3 i + 5 j + 2 k , then
#» #»
a ⋅ b = 2(−3) + 1(5) + (−4)(2) = −9
#»
Dot product of the basis vectors: i = (1, 0, 0),
#» #»
j = (0, 1, 0) and k = (0, 0, 1), then
#» #» #» #» #» #» #» #»
i ⋅ j = j ⋅ i = 0, i ⋅ k = k ⋅ i = 0
#» #» #» #» #» #» #» #» #» #»
j ⋅ k = k ⋅ j = 0, i ⋅ i = j ⋅ j = k . k = 1
ISA MT161 – 2022/2023 2 / 19
Properties of dot product
#» #» #» #» #»
1 a ⋅ b = 0 if #» a = 0 or b = 0
#» #» #»
2 a ⋅ b = b . #» a commutative law
#» #» #» #» #» #» #»
3 a ⋅(b + c ) = a.b + a.c distributive law
#» #» #» #»
4 a ⋅ (k b ) = k( a ⋅ b ) k is a scalar
5
#»
a ⋅ #»
a ≥0
6
#»
a . a = ∣∣ #»
#» a ∣∣2
#»
Proof: Let #» a = (a , a , a ) and b = (b , b , b )
1 2 3 1 2 3
#» #» #»
a ⋅ b = a1 b1 + a2 b2 + a3 b3 = b1 a1 + b2 a2 + b3 a3 = b ⋅ #»
a
#»
a ⋅ #»
a = a1 a1 + a2 a2 + a3 a3 = a12 + a22 + a32 = ∣∣ #»
a ∣∣2
∣∣ a ∣∣ = #»
#» a ⋅ #»
√
a
#» 1 #»
Ô⇒ ∣∣ #»
a ∣∣∣∣ b ∣∣ cos θ = (∣∣ b ∣∣2 + ∣∣ #»
a ∣∣2 − ∣∣ #»
c ∣∣2 ) (1)
2
and
#»
∣∣ #»
c ∣∣2 = ∣∣ b − #»
a ∣∣2 = (b1 − a1 )2 + (b2 − a2 )2 + (b3 − a3 )2
substitute in 1, we have
#» #»
∣∣ #»
a ∣∣∣∣ b ∣∣ cos θ = a1 b1 + a2 b2 + a3 b3 = #»
a⋅b
#»
What can you say on orientation of vectors #»
a and b if
#» #» #» #»
a ⋅ b > 0, #»
a ⋅ b = 0, #»
a ⋅ b < 0?
#» #» #»
Example: Show that the vectors #»u = −3 i − j + 4 k
#» #» #»
and #»
v = 2 i + 14 j + 5 k are Orthogonal.
#»
u ⋅ #»
v = (−3)(2) + (−1)(14) + (4)(5) = 0
hence, the vectors are #»
u and #»
v are Orthogonal.
#» #» #»
The basis vectors i , j and k constitutes Orthogonal
unit vectors.
ISA MT161 – 2022/2023 7 / 19
Angle between two Vectors
Angle between two Vectors:
#» #»
a⋅b
cos θ = #» #»
∣∣ a ∣∣∣∣ b ∣∣
#» #» #»
Example: Find the angle between u#»1 = 2 i + 3 j + k
#» #» #»
and u#»2 = − i + 5√j +k
We have ∣∣u1 ∣∣ = 14, ∣∣u#»2 ∣∣ = 27 and u#»1 ⋅ u#»2 = 14, then
#» √
√
14 42
cos θ = √ √ =
14 27 9
√
42
Ô⇒ θ = cos−1 ( ) = 43.9o
9
ISA MT161 – 2022/2023 8 / 19
Direction Angles
The angles α, β, and γ between #» a and the unit vectors
#» #» #»
i , j , and k , respectively, are direction angles of #»
a
#» #» #» #» #» #»
a⋅ i a⋅ j a⋅k
cos α = #» , cos β = #» , cos γ = #»
∣∣ a ∣∣ ∣∣ a ∣∣ ∣∣ a ∣∣
ISA MT161 – 2022/2023 9 / 19
Direction Cosines
a1 a2 a3
Ô⇒ cos α = #» , cos β = #» , cos γ = #»
∣∣ a ∣∣ ∣∣ a ∣∣ ∣∣ a ∣∣
cos α, cos β and cos γ are the direction cosines of #»a.
The Components of unit vector are:
1 #» a1 #» a2 #» a3 #»
#» a = #» i + #» j + #» k
∣∣ a ∣∣ ∣∣ a ∣∣ ∣∣ a ∣∣ ∣∣ a ∣∣
#» #» #»
= cos α i + cos β j + cos γ k
Exercise
Show that cos2 α + cos2 β + cos2 γ = 1
ISA MT161 – 2022/2023 10 / 19
Example: Find the direction cosines and direction
#» #» #»
angles of the√vector #»
a =2i √ + 5 j + 4√k .
From ∣∣ #»
a ∣∣ = 22 + 52 + 42 = 45 = 3 5, dir. cosines:
2 5 4
cos α = √ , cos β = √ , cos γ = √
3 5 3 5 3 5
direction angles are then
2
α = cos−1 ( √ ) = 1.27 radians = 72.7o
3 5
5
β = cos−1 ( √ ) = 0.73 radians = 41.8o
3 5
4
γ = cos−1 ( √ ) = 0.93 radians = 53.4o
3 5
ISA MT161 – 2022/2023 11 / 19
#» #»
Component of a on b
#» #» #»
If #»
a = a1 i + a2 j + a3 k , the distributive law and the
dot properties of basis vectors gives
#» #» #»
a1 = #»
a ⋅ i , a2 = #»
a ⋅ j , a3 = #»
a⋅k
symbolically
#» #» #»
comp #»i #»
a = #»
a ⋅ i , comp #»j #»
a = #»
a ⋅ j , comp #»
k
#»
a = #»
a ⋅ k
#»
Component on arbitrary vector b for 0 ≤ θ ≤ π2 :
comp #»b #»
a = ∣∣ #»
a ∣∣ cos θ
#» #» #» 1 #» #» #»
comp #»b #»
3
a = (2 i + 3 j − 4 k ) ⋅ √ ( i + j + 2 k ) = − √
6 6
similarly,
#» #» #» #» 1 #» #» #» 3
comp #»a b = ( i + j + 2 k )⋅ √ (2 i + 3 j − 4 k ) = − √
29 29
#» #» #»
Projection of #» a in any directions i , j , k is a vector in
that direction whose magnitude is the component of #» a
in that direction, e.g. #» #»
proj #»i #»
a = (comp #»i #»
a ) i , proj #»j #»
a = (comp #»j #»
a)j
ISA MT161 – 2022/2023 15 / 19
#» #»
Projection of a onto b
#» #»
#» #» 1 #» a ⋅ b #»
proj #»b a = (comp #»b a ) ( #» b ) = ( #» #» ) b
∣∣ b ∣∣ b⋅b
thus
#» #»
#» a ⋅ b #» 11 #» #» #»
proj #»b a = ( #» #» ) b = − (2 i + j − 4 k )
b⋅b 21
22 #» 11 #» 44 #»
=− i − j + k
21 21 21
#» #» #» #» #» #»
Work done = (comp d#» F ) ∣∣ d ∣∣ = ∣∣ F ∣∣ cos θ∣∣ d ∣∣ = F . d
ISA MT161 – 2022/2023 18 / 19
Example: Find the work done by a constant force
#» #» #»
F = 2 i + 4 j if its point of application to a block
moves from P1 (1, 1) to P2 (4, 6). (Assume SI units)
#»
The displacement d of the block is given by
#» # » # » # » #» #»
d = P1 P2 = OP2 − OP1 = 3 i + 5 j
#» #» #» #»
W = (2 i + 4 j ).(3 i + 5 j ) = 26 Joules
Idrissa S. A.
[Link]@[Link]
Cross Product
Department of Mathematics - UDSM
November 12, 2024
Cross Product
Review of Determinants:
a1 a2
∣ ∣ = a1 b2 − a2 b1
b1 b2
RRRa1 a2 a3 RRR
RRR RR b2 b3 b1 b3 b1 b2
RRRRb1 b2 b3 RRRRR = a1 ∣ c2 c3 ∣ − a2 ∣ c1 c3 ∣ + a3 ∣ c1 c2 ∣
RRR c1 c2 c3 RRR
Definition: The cross product of two vectors
#» #»
a = (a1 , a2 , a3 ) and b = (b1 , b2 , b3 ) is defined as
#» #» #» #» #»
a × b = (a2 b3 −a3 b2 ) i −(a1 b3 −a3 b1 ) j +(a1 b2 −a2 b1 ) k
#»
Components of the #» a × b are determinants of order 2
ISA MT161 – 2023/2024 2 / 20
Cross Product
Alternatively, one can write using determinants as:
#» #» a a #» a a #» a a #»
a × b = ∣ 2 3∣ i − ∣ 1 3∣ j + ∣ 1 2∣ k
b2 b3 b1 b3 b1 b2
or determinant of order 3 as
RRR #» #» #»RR
#» #» RRR i j k RRR
a × b = RRRa1 a2 a3 RRRR
RRR R
RRb1 b2 b3 RRRR
#» #» #» #» #» #»
Example: Let a = 4 i − 2 j + 5 k and b = 3 i + j − k .
#»
Find #»
a × b.
ISA MT161 – 2023/2024 3 / 20
Cross Product
#» #» −2 5 #» 4 5 #» 4 −2 #»
a × b =∣ ∣ i −∣ ∣ j +∣ ∣k
1 −1 3 −1 3 1
#» #» #»
= −3 i + 19 j + 10 k
#»
Generally when #»
a and b are nonzero vectors, then
#» #»
a × b is orthogonal to every vector in the plane
#»
containing #»
a and b .
#» #» #»
a × b is orthogonal to the plane containing #»
a and b
A = base × altitude
#» #»
= ∣∣ b ∣∣(∣∣ #»
a ∣∣ sin θ) = ∣∣ #»
a ∣∣∣∣ b ∣∣ sin θ
#»
= ∣∣ #»
a × b ∣∣
∣∣ #»
τ ∣∣ = (3.5)(20 sin 30o )
= 70 Nm
Otherwise, #»
v 1 , #»
v 2 , . . . , #»
v n are said to be linearly
independent, i.e k1 = k2 = ⋯ = kn = 0.
Ô⇒ k1 = k2 = k3 = 0
#» #» #»
The vectors i , j and k form the basis for IR3 . Any
vector in IR3 can be written as a linear combination of
the basis vectors.
#» #» #»
The vectors i , j and k are the standard basis for IR3
ISA MT161 – 2023/2024 20 / 20
Matrices and Basic Calculus
for Non-Majors – MT161
Idrissa S. A.
[Link]@[Link]
#» # » # » # »
r = OP, r#»1 = OP1 , #»
r 2 = OP2
#»
a = r#»2 − r#»1 is parallel to
#»
r − r#», thus
2
⇒ #»
r − r#»2 = t( r#»2 − r#»1 ), t ∈ IR
Ô⇒ #»
r = r#»0 + t #»
a
r0 a pos vector r#»1 or r#»2 Vector equation of a line
#»
a is direction vector
ISA MT161 – 2023/2024 2 / 13
Vector Equation of a Line
Example: Find a vector equation for the line through
(2, −1, 8) and (5, 6, −3).
Define #»a = (2 − 5, −1 − 6, 8 − (−3)) = (−3, −7, 11),
choose r#»0 = (2, −1, 8), the vector equation is then
#» #» #» #» #» #» #»
r = r#»0 + t #»
a = 2 i − j + 8 k + t(−3 i − 7 j + 11 k )
Parametric representation
⎧
⎪ x = 2 − 3t
⎪
⎪
⎪
(x, y , z) = (2, −1, 8) + t(−3, −7, 11) Ô⇒ ⎨y = −1 − 7t
⎪
⎪
⎪
⎩z = 8 + 11t
⎪
a1 = 5 − 2 = 3, a2 = 3 − 1 = 2, a3 = 1 − 1 = 0
Ô⇒ #»
n ⋅ ( #»
r − r#»0 ) = 0
is a vector equation of the
plane with r0 as pos vector
of any point in the plane.
ISA MT161 – 2023/2024 9 / 13
Planes: Vector Equation
Example: Find an equation of the plane that contains
(1, 0, −1), (3, 1, 4), and (2, −2, 0).
Position vectors are r#»1 = (1, 0, −1), r#»2 = (3, 1, 4), and
r#»3 = (2, −2, 0), the normal vector is
#»
n = ( r#»2 − r#»1 ) × ( r#»2 − r#»3 )
#» #» #» #» #» #»
= (2 i + j + 5 k ) × ( i + 3 j + 4 k )
#» #» #»
= −11 i − 3 j + 5 k