Professional Documents
Culture Documents
W1 - Lecture - Vectors - Part 1 (Updated)
W1 - Lecture - Vectors - Part 1 (Updated)
Week 1: VECTORS
Tentative Outline
2
RMIT Classification: Trusted
What is a vector?
RMIT Classification: Trusted
4
RMIT Classification: Trusted
5
RMIT Classification: Trusted
Motivation
6
RMIT Classification: Trusted
Motivation
source: https://www.wiplane.com/p/foundations-for-data-science-ml
8
RMIT Classification: Trusted
𝐵
𝑣Ԧ
9
RMIT Classification: Trusted
10
RMIT Classification: Trusted
• For any vector 𝑣Ԧ between point A with coordinate (x1, y1) and point B
with coordinate (x2, y2), the resolution of vector 𝑣Ԧ shall be equal to:
𝑦
11
RMIT Classification: Trusted
𝑦
𝐴 (4, 3)
𝐵 (5, 1)
𝑂(0, 0)
𝑥
12
RMIT Classification: Trusted
Thus, for any vector 𝑣Ԧ with resolution [x, y], the magnitude of 𝑣Ԧ shall be
13
RMIT Classification: Trusted
𝐴 (4, 3)
𝑂(0, 0)
𝑥
14
RMIT Classification: Trusted
15
RMIT Classification: Trusted
𝐴 (4, 3)
𝛽
𝑂(0, 0) 𝛼 𝑥
16
RMIT Classification: Trusted
Example:
o Is Vector 𝑎Ԧ [0, 1] a unit vector?
o Is Vector 𝑏 [1, 1] a unit vector?
17
RMIT Classification: Trusted
𝐴 (4, 3)
𝛽
𝑂(0, 0) 𝛼 𝑥
18
RMIT Classification: Trusted
I.5. 3D Vectors
I.5. 3D Vectors
Introduction
• Given the forces in the cables, how will you determine the
resultant force acting at D, the top of the tower?
𝐴 (4, 3, 5)
𝑂(0, 0, 0)
𝑥 𝑦
𝐴1 (4, 3, 0)
20
RMIT Classification: Trusted
I.5. 3D Vectors
Introduction
• Cartesian coordinate system by the right-hand rule
𝐴 (4, 3, 5)
𝑂(0, 0, 0)
𝑥 𝑦
𝐴1 (4, 3, 0)
21
RMIT Classification: Trusted
I.5. 3D Vectors
Magnitude & Direction
• The magnitude of a vector in 3D is still the length or size of the vector.
|𝑣| = 𝑥 2 + 𝑦 2 +𝑧 2
22
RMIT Classification: Trusted
I.5. 3D Vectors
Magnitude & Direction
Example: Find the magnitude of vector 𝑂𝐴 [4, 3, 5].
𝐴 (4, 3, 5)
𝑂(0, 0, 0)
𝑥 𝑦
23
RMIT Classification: Trusted
I.5. 3D Vectors
Magnitude & Direction
Similar to 2D Vectors, the direction of 3D vectors are also defined by its
“direction cosines”. Visualization of the angles 𝛼 , 𝛽 , and 𝛾 are as follows:
𝛾 𝐴 (4, 3, 5)
𝑂(0, 0, 0) 𝛽
𝛼
𝑥 𝑦
24
RMIT Classification: Trusted
I.5. 3D Vectors
Magnitude & Direction
Example: Calculate the direction cosine 𝛼 , 𝛽 , and 𝛾 of vector 𝑂𝐴 [4, 3, 5].
What are the value of 𝛼, 𝛽, and 𝛾 in degrees?
𝛾 𝐴 (4, 3, 5)
𝑂(0, 0, 0) 𝛽
𝛼
𝑥 𝑦
25
RMIT Classification: Trusted
I.5. 3D Vectors
Unit vector
Example: Calculate the resolution of the unit vector of vector 𝑂𝐴 [4, 3, 5].
𝛾 𝐴 (4, 3, 5)
𝑂(0, 0, 0) 𝛽
𝛼
𝑥 𝑦
26
RMIT Classification: Trusted
28
RMIT Classification: Trusted
29
RMIT Classification: Trusted
30
RMIT Classification: Trusted
𝑂𝐴 4, 3, 5 and 𝑂𝐵 [1, 1, 1]
31
RMIT Classification: Trusted
𝑦 𝑦
Notice the difference? 𝐶
𝑂𝐴 𝑂𝐶
𝑂𝐵 𝐵 𝐴 𝐵 𝐴
𝑂𝐵
𝑂(0, 0) 𝑂(0, 0) 𝑂𝐴
𝑂𝐶 𝑥 𝑥
𝐶
32
RMIT Classification: Trusted
33
RMIT Classification: Trusted
𝐴 (4, 3, 5)
𝑂(0, 0, 0) 𝐵
𝑥 𝑦
34
RMIT Classification: Trusted
𝑢 ⋅ 𝑣Ԧ = 𝑥1 , 𝑦1 , 𝑧1 ⋅ 𝑥2 , 𝑦2 , 𝑧2 = 𝑥1 . 𝑥2 + 𝑦1 . 𝑦2 + 𝑧1 . 𝑧2
• The dot product is larger when the magnitude of the blue vector is larger.
• The dot product is larger when the direction of the blue vectors is similar to the direction
of the red vector.
38
RMIT Classification: Trusted
II.4.1. Dot product
Example
Find the Dot product between vector 𝑂𝐴 [4, 3] and vector 𝑂𝐵 [6, 8]. What
is the angle 𝜃 between them?
𝑦
𝐵 (6, 8)
𝜃
𝐴 (4, 3)
𝑂(0, 0)
𝑥
39