SlideShare a Scribd company logo
1 of 38
Vectors in Two and Three
Dimensions-β€–
Business Mathematics Π†
Ms. Inomi Anjala Gayashani
Department of Computer Science
Faculty of Computer Science and Engineering
The Dot Product
Definition of the Dot Product
If u = π‘Ž1, π‘Ž2 π‘Žπ‘›π‘‘ 𝐯 = 𝑏1, 𝑏2 are vectors, then their dot
product, denoted by u .v, is defined by
u .v= π‘Ž1 𝑏1+ π‘Ž2 𝑏2
The dot product is not a vector; it is a real number, or scalar.
Calculating Dot Product
Example 1
If u = 3, βˆ’2 π‘Žπ‘›π‘‘ v = 4,5 π‘‘β„Žπ‘’π‘›
u .v = (3)(4)+(-2)(5) = 2
Example 2
If u = 2i+j and v= 5i-6j, then
u .v = (2)(5)+(1)(-6) = 4
Properties of the Dot Product
1. u.v = v.u
2. (cu).v = c(u.v)=u.(cv)
3. (u+v).w= u.w + v.w
4. |𝒖|𝟐
= 𝒖. 𝒖
The Dot Product Theorem
If πœƒ 𝑖𝑠 π‘‘β„Žπ‘’ π‘Žπ‘›π‘”π‘™π‘’ 𝑏𝑒𝑑𝑀𝑒𝑒𝑛 π‘‘π‘€π‘œ π‘›π‘œπ‘›π‘§π‘’π‘Ÿπ‘œ π‘£π‘’π‘π‘‘π‘œπ‘Ÿπ‘ 
u and v , then
u.v= 𝒖 𝒗 cos πœƒ
Angle between two vectors.
If πœƒ 𝑖𝑠 π‘‘β„Žπ‘’ π‘Žπ‘›π‘”π‘™π‘’ 𝑏𝑒𝑑𝑀𝑒𝑒𝑛 π‘‘π‘€π‘œ π‘›π‘œπ‘›π‘§π‘’π‘Ÿπ‘œ π‘£π‘’π‘π‘‘π‘œπ‘Ÿπ‘  𝒖 π‘Žπ‘›π‘‘ 𝒗, π‘‘β„Žπ‘’π‘›
Vectors in Two Dimensions(2-D Vectors)
Unit Vectors
A vector of length 1.
i= 1,0 J= 0,1
Vectors in Two Dimensions(2-D Vectors)
Addition of Vectors
𝐴𝐡+ 𝐡𝐢 = 𝐴𝐢
Vectors in Two Dimensions(2-D Vectors)
Subtraction of Vectors
𝑒 βˆ’ 𝑣 = 𝑒 βˆ’ 𝑣
Vectors in Two Dimensions(2-D Vectors)
Multiplication of a vector by a scalar
If c is a real number and v is a vector,
If c>0,Then c𝑣 β„Žπ‘Žπ‘  π‘‘β„Žπ‘’ π‘ π‘Žπ‘šπ‘’ π‘‘π‘–π‘Ÿπ‘’π‘π‘‘π‘–π‘œπ‘› π‘Žπ‘  𝒗.
If c<0,Then c𝑣 β„Žπ‘Žπ‘  π‘‘β„Žπ‘’ π‘œπ‘π‘π‘œπ‘ π‘–π‘‘π‘’ π‘‘π‘–π‘Ÿπ‘’π‘π‘‘π‘–π‘œπ‘› π‘œπ‘“ 𝒗.
If c=0,Then c𝑣 = 0.
Vectors in the coordinate planes
v = π‘Ž1, π‘Ž2
π‘Ž1 - horizontal component of v
π‘Ž2 - vertical component of v
Component form of a vector
If a vector v is represented in the plane with
initial point P(π‘₯1, 𝑦1 ) and terminal point
Q(π‘₯2, 𝑦2), then
v = π‘₯2 βˆ’ π‘₯1, 𝑦2 βˆ’ 𝑦1
Exercise 1
Exercise 2
(a)Find the component form of the vector u with initial point (-2,5)and
terminal point (3,7)
The desired vector is
u = 3 βˆ’ (βˆ’2), 7 βˆ’ 5 = 5,2
Exercise 2
(b) If the vector v = πŸ‘, πŸ• is sketched with initial point (2,4)what is its
terminal point?
Let the terminal point of v be (x, y). Then
v = (π‘₯ βˆ’ 2), (𝑦 βˆ’ 4)
πŸ‘, πŸ• = (π‘₯ βˆ’ 2), (𝑦 βˆ’ 4)
π‘₯, 𝑦 = (3 + 2), (7 + 4)
π‘₯, 𝑦 = (5), (11)
Exercise 2
(c) Sketch representations of the vector w= 2,3 with initial points
at (0,0) , (2,2) , (-2,-1) and (1,4)
Exercise 3
Magnitude of a vector
The magnitude or the length of a vector v = π‘Ž1, π‘Ž2 𝑖𝑠
(π‘Ž1
2
+ π‘Ž2
2
)
Exercise 4
(a)Find the magnitude of each vector.
u = 2, βˆ’3
v = 5,0
w =
3
5
,
4
5
𝑒 = (22 + (βˆ’3)2) = 13
𝑣 = (52 + (0)2) = 25 = 5
𝑀 = ((
3
5
)2 + ((
4
5
)2) =
9
25
+
16
25
= 1
Algebraic Operations on Vectors
If u = π‘Ž1, π‘Ž2 π‘Žπ‘›π‘‘ 𝒗 = 𝑏1, 𝑏2 , π‘‘β„Žπ‘’π‘›
𝒖 + 𝒗 = π‘Ž1 + 𝑏1, π‘Ž2 + 𝑏2
𝒖 βˆ’ 𝒗 = π‘Ž1 βˆ’ 𝑏1, π‘Ž2 βˆ’ 𝑏2
𝑐𝒖= π‘π‘Ž1, π‘π‘Ž2 , c € R
Exercise 5
If u= 2, βˆ’3 π‘Žπ‘›π‘‘ 𝒗 = βˆ’1,2 , 𝑓𝑖𝑛𝑑 𝒖 + 𝒗, 𝒖 βˆ’ 𝒗, πŸπ’– βˆ’ πŸ‘π’— π‘Žπ‘›π‘‘ πŸπ’– + πŸ‘π’—
By the definitions of vector operations we have,
𝒖 + 𝒗= 2, βˆ’3 + βˆ’1,2 = 1, βˆ’1
𝒖 βˆ’ 𝒗= 2, βˆ’3 - βˆ’1,2 = 3, βˆ’5
πŸπ’– βˆ’ πŸ‘π’—=2( 2, βˆ’3 )-3( βˆ’1,2 ) = 7, βˆ’12
πŸπ’– + πŸ‘π’—=2( 2, βˆ’3 )+3( βˆ’1,2 ) = 1,0
Properties of Vectors
Vector addition
𝒖 + 𝒗 = 𝒗 + 𝒖
𝒖 + 𝒗 + π’˜ = 𝒖 + 𝒗 + π’˜
u+0 = u
u+(-u) = 0
Properties of Vectors
Length of a Vector
𝒄𝒖 = 𝒄 𝒖
Properties of Vectors
Multiplication by a scalar
c(𝒖 + 𝒗) = c𝒖 + 𝑐𝒗
𝑐 + 𝑑 𝒖 = 𝑐𝒖 + 𝑑𝒖
(cd)u = c(du) = d(cu)
1u=u
0u=0
c0=0
Vectors in terms of i and j
The vector v = a1, a2 can be expressed in terms of 𝐒 and 𝐣
v= a1, a2 = a1𝐒 + a2𝐣
Exercise 6
Exercise 7
(a)Write the vector 𝒖 = 5, βˆ’8 in terms of i and j.
(b)If u = 3i + 2j and v = -i+6j , write 2u+5v in terms of i and j
(a)𝒖= 5π’Š + βˆ’8 𝒋 = 5π’Š βˆ’ 8𝒋
(b) 2u+5v = 2(3i + 2j )+5(-i+6j )
= 6i + 4j - 5i+30j
= i + 34j
Horizontal and vertical components of a vector
Let v be a vector with magnitude 𝑣 π‘Žπ‘›π‘‘ π‘‘π‘–π‘Ÿπ‘’π‘π‘‘π‘–π‘œπ‘› ΞΈ.
π‘‡β„Žπ‘’π‘› 𝑣= a1, a2 = a1𝐒 + a2𝐣 where
a1 = 𝑣 cos πœƒ π‘Žπ‘›π‘‘ a2 = 𝑣 sin πœƒ
Thus we can express v as
v= 𝑣 cos πœƒ 𝐒 + 𝑣 sin πœƒ 𝐣
Exercise 8
(a) A vector v has length 8 and direction Ο€/3. Find the horizontal and
vertical
components, and write v in terms of i and j.
(b) Find the direction of the vector u = - 3 i + j.
(a) We have v= π‘Ž, 𝑏 , where the components are given by
a= 8 cos
πœ‹
3
= 4 and b = 8 sin
πœ‹
3
= 4 3
Thus v=(4, 4 3) = 4 i + 4 3 j
Exercise 8
(b) Find the direction of the vector u = - 3 i + j.
(b) tan πœƒ =
1
βˆ’ 3
=
βˆ’ 3
3
Thus the reference angle for ΞΈ is Ο€/6.
Since the terminal point of the vector u
is in Quadrant II,it follows that ΞΈ =5Ο€/6.
Exercise 9
Exercise 10
Using Vectors to model Velocity and Force
An airplane heads due north at 300 mi/h. It experiences a 40 mi/h crosswind flowing in the direction N
300
E, as shown below.
(1). Express the velocity v of the airplane relative to the air and the velocity u of the wind, in component form.
(2) Find the true velocity of the airplane as a vector.
(3) Find the true speed and direction of the airplane.
The True speed and Direction of an airplane
Using Vectors to model Velocity and Force
(1)The velocity of the airplane relative to the air is v = 0 i+300 j= 300j. By the formulas for
the components of a vector we find that the velocity of the wind is
u= (40 cos 60)i+(40 sin 60)j
= 20i+20 πŸ‘π’‹
β‰ˆ πŸπŸŽπ’Š + πŸ‘πŸ’. πŸ”πŸ’π’‹
(2) The true velocity of the airplane is given by the vector w=u+v
w=u+v=(20i+20 πŸ‘π’‹) + πŸ‘πŸŽπŸŽπ’‹
=20i+(20 πŸ‘ + πŸ‘πŸŽπŸŽ)𝒋
β‰ˆ πŸπŸŽπ’Š + πŸ‘πŸ‘πŸ’. πŸ”πŸ’π’‹
β€’ The true velocity is the velocity relative to the ground.
The True speed and Direction of an airplane
Using Vectors to model Velocity and Force
The true speed of the airplane is given by the magnitude of w:
π’˜ β‰ˆ ((𝟐𝟎)𝟐 + πŸ‘πŸ‘πŸ’. πŸ”πŸ’ 𝟐) ) β‰ˆ πŸ‘πŸ‘πŸ“. πŸπ’Žπ’Š/𝒉
The direction of the airplane is the direction πœƒ of the vector w.
The angle πœƒ has the property that tan πœƒ β‰ˆ334.64/20 =16.732, so πœƒ β‰ˆ 86.6
Thus the airplane is heading in the direction N 3.40
E.
The True speed and Direction of an
airplane
Using Vectors to model Velocity and Force
A woman launches a boat from one shore of a straight river and wants to land
at the point directly on the opposite shore. If the speed of the boat (relative to
the water) is 10 mi/h and the river is flowing east at the rate of 5 mi/h, in what
direction should she head the boat in order to arrive at the desired landing
point?
Calculating a Heading
Using Vectors to model Velocity and Force
We choose a coordinate system with the origin at the initial position of the boat as shown below. Let u and v
represent the velocities of the river and the boat, respectively. Clearly, u =5 i, and since the speed of the boat
is 10 mi/h, we have 𝒗 =10, so
v=(10cos πœƒ)𝑖 + (10 sin πœƒ)𝑗
The true course of the boat is given by the vector w = u + v.
We have
w = u + v=5i+ (10cos πœƒ)𝑖 + (10 sin πœƒ)𝑗
Since the woman wants to land at a point directly across the river, her direction
should have horizontal component 0.
In other words, she should choose u in such a way that
5+ 10 cos πœƒ = 0
cos πœƒ =
βˆ’1
2
Calculating a Heading

More Related Content

Similar to Vectors in Two and Three.pptx

Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdfd00a7ece
Β 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdfd00a7ece
Β 
math1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdf
math1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdfmath1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdf
math1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdfHebaEng
Β 
Capitulo 4, 7ma ediciΓ³n
Capitulo 4, 7ma ediciΓ³nCapitulo 4, 7ma ediciΓ³n
Capitulo 4, 7ma ediciΓ³nSohar Carr
Β 
Ejercicios de geometria
Ejercicios de geometriaEjercicios de geometria
Ejercicios de geometriaArnolTipula
Β 
Notes on Equation of Plane
Notes on Equation of PlaneNotes on Equation of Plane
Notes on Equation of PlaneHerbert Mujungu
Β 
Plane in 3 dimensional geometry
Plane in 3 dimensional geometryPlane in 3 dimensional geometry
Plane in 3 dimensional geometryAMINULISLAM439
Β 
2. Linear Algebra for Machine Learning: Basis and Dimension
2. Linear Algebra for Machine Learning: Basis and Dimension2. Linear Algebra for Machine Learning: Basis and Dimension
2. Linear Algebra for Machine Learning: Basis and DimensionCeni Babaoglu, PhD
Β 
Solucionario serway cap 3
Solucionario serway cap 3Solucionario serway cap 3
Solucionario serway cap 3Carlo Magno
Β 
On the 1-2-3-edge weighting and Vertex coloring of complete graph
On the 1-2-3-edge weighting and Vertex coloring of complete graphOn the 1-2-3-edge weighting and Vertex coloring of complete graph
On the 1-2-3-edge weighting and Vertex coloring of complete graphijcsa
Β 
Geometry unit 9.1
Geometry unit 9.1Geometry unit 9.1
Geometry unit 9.1Mark Ryder
Β 
Chapter 12 Section 12.1 Three-Dimensional Coordinate Sys
Chapter 12 Section 12.1  Three-Dimensional Coordinate SysChapter 12 Section 12.1  Three-Dimensional Coordinate Sys
Chapter 12 Section 12.1 Three-Dimensional Coordinate SysEstelaJeffery653
Β 
Extended network and algorithm finding maximal flows
Extended network and algorithm finding maximal flows Extended network and algorithm finding maximal flows
Extended network and algorithm finding maximal flows IJECEIAES
Β 
B.Tech-II_Unit-IV
B.Tech-II_Unit-IVB.Tech-II_Unit-IV
B.Tech-II_Unit-IVKundan Kumar
Β 
Module 2 plane coordinate geometry
Module  2   plane coordinate geometryModule  2   plane coordinate geometry
Module 2 plane coordinate geometrydionesioable
Β 
Class 12 Cbse Maths Sample Paper 2013-14
Class 12 Cbse Maths Sample Paper 2013-14Class 12 Cbse Maths Sample Paper 2013-14
Class 12 Cbse Maths Sample Paper 2013-14Sunaina Rawat
Β 
Applied III Chapter 4(1).pdf
Applied III  Chapter 4(1).pdfApplied III  Chapter 4(1).pdf
Applied III Chapter 4(1).pdfDawitThomas
Β 
Sheet 1 electromagnetics
Sheet 1 electromagneticsSheet 1 electromagnetics
Sheet 1 electromagneticsMagdi Saadawi
Β 

Similar to Vectors in Two and Three.pptx (20)

Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
Β 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
Β 
math1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdf
math1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdfmath1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdf
math1Ω…Ψ±Ψ­Ω„Ψ© Ψ§ΩˆΩ„Ω‰ -compressed.pdf
Β 
Capitulo 4, 7ma ediciΓ³n
Capitulo 4, 7ma ediciΓ³nCapitulo 4, 7ma ediciΓ³n
Capitulo 4, 7ma ediciΓ³n
Β 
Ejercicios de geometria
Ejercicios de geometriaEjercicios de geometria
Ejercicios de geometria
Β 
Notes on Equation of Plane
Notes on Equation of PlaneNotes on Equation of Plane
Notes on Equation of Plane
Β 
Plane in 3 dimensional geometry
Plane in 3 dimensional geometryPlane in 3 dimensional geometry
Plane in 3 dimensional geometry
Β 
2. Linear Algebra for Machine Learning: Basis and Dimension
2. Linear Algebra for Machine Learning: Basis and Dimension2. Linear Algebra for Machine Learning: Basis and Dimension
2. Linear Algebra for Machine Learning: Basis and Dimension
Β 
Solucionario serway cap 3
Solucionario serway cap 3Solucionario serway cap 3
Solucionario serway cap 3
Β 
Sm chapter3
Sm chapter3Sm chapter3
Sm chapter3
Β 
Sm chapter3
Sm chapter3Sm chapter3
Sm chapter3
Β 
On the 1-2-3-edge weighting and Vertex coloring of complete graph
On the 1-2-3-edge weighting and Vertex coloring of complete graphOn the 1-2-3-edge weighting and Vertex coloring of complete graph
On the 1-2-3-edge weighting and Vertex coloring of complete graph
Β 
Geometry unit 9.1
Geometry unit 9.1Geometry unit 9.1
Geometry unit 9.1
Β 
Chapter 12 Section 12.1 Three-Dimensional Coordinate Sys
Chapter 12 Section 12.1  Three-Dimensional Coordinate SysChapter 12 Section 12.1  Three-Dimensional Coordinate Sys
Chapter 12 Section 12.1 Three-Dimensional Coordinate Sys
Β 
Extended network and algorithm finding maximal flows
Extended network and algorithm finding maximal flows Extended network and algorithm finding maximal flows
Extended network and algorithm finding maximal flows
Β 
B.Tech-II_Unit-IV
B.Tech-II_Unit-IVB.Tech-II_Unit-IV
B.Tech-II_Unit-IV
Β 
Module 2 plane coordinate geometry
Module  2   plane coordinate geometryModule  2   plane coordinate geometry
Module 2 plane coordinate geometry
Β 
Class 12 Cbse Maths Sample Paper 2013-14
Class 12 Cbse Maths Sample Paper 2013-14Class 12 Cbse Maths Sample Paper 2013-14
Class 12 Cbse Maths Sample Paper 2013-14
Β 
Applied III Chapter 4(1).pdf
Applied III  Chapter 4(1).pdfApplied III  Chapter 4(1).pdf
Applied III Chapter 4(1).pdf
Β 
Sheet 1 electromagnetics
Sheet 1 electromagneticsSheet 1 electromagnetics
Sheet 1 electromagnetics
Β 

Recently uploaded

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
Β 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
Β 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
Β 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
Β 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
Β 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
Β 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
Β 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
Β 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
Β 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
Β 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
Β 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
Β 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
Β 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
Β 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
Β 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
Β 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
Β 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
Β 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
Β 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
Β 

Recently uploaded (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Β 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Β 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Β 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Β 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Β 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Β 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
Β 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Β 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Β 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Β 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Β 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Β 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Β 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Β 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Β 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Β 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Β 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Β 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Β 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Β 

Vectors in Two and Three.pptx

  • 1. Vectors in Two and Three Dimensions-β€– Business Mathematics Π† Ms. Inomi Anjala Gayashani Department of Computer Science Faculty of Computer Science and Engineering
  • 2. The Dot Product Definition of the Dot Product If u = π‘Ž1, π‘Ž2 π‘Žπ‘›π‘‘ 𝐯 = 𝑏1, 𝑏2 are vectors, then their dot product, denoted by u .v, is defined by u .v= π‘Ž1 𝑏1+ π‘Ž2 𝑏2 The dot product is not a vector; it is a real number, or scalar.
  • 3. Calculating Dot Product Example 1 If u = 3, βˆ’2 π‘Žπ‘›π‘‘ v = 4,5 π‘‘β„Žπ‘’π‘› u .v = (3)(4)+(-2)(5) = 2 Example 2 If u = 2i+j and v= 5i-6j, then u .v = (2)(5)+(1)(-6) = 4
  • 4. Properties of the Dot Product 1. u.v = v.u 2. (cu).v = c(u.v)=u.(cv) 3. (u+v).w= u.w + v.w 4. |𝒖|𝟐 = 𝒖. 𝒖
  • 5. The Dot Product Theorem If πœƒ 𝑖𝑠 π‘‘β„Žπ‘’ π‘Žπ‘›π‘”π‘™π‘’ 𝑏𝑒𝑑𝑀𝑒𝑒𝑛 π‘‘π‘€π‘œ π‘›π‘œπ‘›π‘§π‘’π‘Ÿπ‘œ π‘£π‘’π‘π‘‘π‘œπ‘Ÿπ‘  u and v , then u.v= 𝒖 𝒗 cos πœƒ
  • 6. Angle between two vectors. If πœƒ 𝑖𝑠 π‘‘β„Žπ‘’ π‘Žπ‘›π‘”π‘™π‘’ 𝑏𝑒𝑑𝑀𝑒𝑒𝑛 π‘‘π‘€π‘œ π‘›π‘œπ‘›π‘§π‘’π‘Ÿπ‘œ π‘£π‘’π‘π‘‘π‘œπ‘Ÿπ‘  𝒖 π‘Žπ‘›π‘‘ 𝒗, π‘‘β„Žπ‘’π‘›
  • 7. Vectors in Two Dimensions(2-D Vectors) Unit Vectors A vector of length 1. i= 1,0 J= 0,1
  • 8. Vectors in Two Dimensions(2-D Vectors) Addition of Vectors 𝐴𝐡+ 𝐡𝐢 = 𝐴𝐢
  • 9. Vectors in Two Dimensions(2-D Vectors) Subtraction of Vectors 𝑒 βˆ’ 𝑣 = 𝑒 βˆ’ 𝑣
  • 10. Vectors in Two Dimensions(2-D Vectors) Multiplication of a vector by a scalar If c is a real number and v is a vector, If c>0,Then c𝑣 β„Žπ‘Žπ‘  π‘‘β„Žπ‘’ π‘ π‘Žπ‘šπ‘’ π‘‘π‘–π‘Ÿπ‘’π‘π‘‘π‘–π‘œπ‘› π‘Žπ‘  𝒗. If c<0,Then c𝑣 β„Žπ‘Žπ‘  π‘‘β„Žπ‘’ π‘œπ‘π‘π‘œπ‘ π‘–π‘‘π‘’ π‘‘π‘–π‘Ÿπ‘’π‘π‘‘π‘–π‘œπ‘› π‘œπ‘“ 𝒗. If c=0,Then c𝑣 = 0.
  • 11. Vectors in the coordinate planes v = π‘Ž1, π‘Ž2 π‘Ž1 - horizontal component of v π‘Ž2 - vertical component of v
  • 12. Component form of a vector If a vector v is represented in the plane with initial point P(π‘₯1, 𝑦1 ) and terminal point Q(π‘₯2, 𝑦2), then v = π‘₯2 βˆ’ π‘₯1, 𝑦2 βˆ’ 𝑦1
  • 14. Exercise 2 (a)Find the component form of the vector u with initial point (-2,5)and terminal point (3,7) The desired vector is u = 3 βˆ’ (βˆ’2), 7 βˆ’ 5 = 5,2
  • 15. Exercise 2 (b) If the vector v = πŸ‘, πŸ• is sketched with initial point (2,4)what is its terminal point? Let the terminal point of v be (x, y). Then v = (π‘₯ βˆ’ 2), (𝑦 βˆ’ 4) πŸ‘, πŸ• = (π‘₯ βˆ’ 2), (𝑦 βˆ’ 4) π‘₯, 𝑦 = (3 + 2), (7 + 4) π‘₯, 𝑦 = (5), (11)
  • 16. Exercise 2 (c) Sketch representations of the vector w= 2,3 with initial points at (0,0) , (2,2) , (-2,-1) and (1,4)
  • 18. Magnitude of a vector The magnitude or the length of a vector v = π‘Ž1, π‘Ž2 𝑖𝑠 (π‘Ž1 2 + π‘Ž2 2 )
  • 19. Exercise 4 (a)Find the magnitude of each vector. u = 2, βˆ’3 v = 5,0 w = 3 5 , 4 5 𝑒 = (22 + (βˆ’3)2) = 13 𝑣 = (52 + (0)2) = 25 = 5 𝑀 = (( 3 5 )2 + (( 4 5 )2) = 9 25 + 16 25 = 1
  • 20. Algebraic Operations on Vectors If u = π‘Ž1, π‘Ž2 π‘Žπ‘›π‘‘ 𝒗 = 𝑏1, 𝑏2 , π‘‘β„Žπ‘’π‘› 𝒖 + 𝒗 = π‘Ž1 + 𝑏1, π‘Ž2 + 𝑏2 𝒖 βˆ’ 𝒗 = π‘Ž1 βˆ’ 𝑏1, π‘Ž2 βˆ’ 𝑏2 𝑐𝒖= π‘π‘Ž1, π‘π‘Ž2 , c € R
  • 21. Exercise 5 If u= 2, βˆ’3 π‘Žπ‘›π‘‘ 𝒗 = βˆ’1,2 , 𝑓𝑖𝑛𝑑 𝒖 + 𝒗, 𝒖 βˆ’ 𝒗, πŸπ’– βˆ’ πŸ‘π’— π‘Žπ‘›π‘‘ πŸπ’– + πŸ‘π’— By the definitions of vector operations we have, 𝒖 + 𝒗= 2, βˆ’3 + βˆ’1,2 = 1, βˆ’1 𝒖 βˆ’ 𝒗= 2, βˆ’3 - βˆ’1,2 = 3, βˆ’5 πŸπ’– βˆ’ πŸ‘π’—=2( 2, βˆ’3 )-3( βˆ’1,2 ) = 7, βˆ’12 πŸπ’– + πŸ‘π’—=2( 2, βˆ’3 )+3( βˆ’1,2 ) = 1,0
  • 22. Properties of Vectors Vector addition 𝒖 + 𝒗 = 𝒗 + 𝒖 𝒖 + 𝒗 + π’˜ = 𝒖 + 𝒗 + π’˜ u+0 = u u+(-u) = 0
  • 23. Properties of Vectors Length of a Vector 𝒄𝒖 = 𝒄 𝒖
  • 24. Properties of Vectors Multiplication by a scalar c(𝒖 + 𝒗) = c𝒖 + 𝑐𝒗 𝑐 + 𝑑 𝒖 = 𝑐𝒖 + 𝑑𝒖 (cd)u = c(du) = d(cu) 1u=u 0u=0 c0=0
  • 25. Vectors in terms of i and j The vector v = a1, a2 can be expressed in terms of 𝐒 and 𝐣 v= a1, a2 = a1𝐒 + a2𝐣
  • 27. Exercise 7 (a)Write the vector 𝒖 = 5, βˆ’8 in terms of i and j. (b)If u = 3i + 2j and v = -i+6j , write 2u+5v in terms of i and j (a)𝒖= 5π’Š + βˆ’8 𝒋 = 5π’Š βˆ’ 8𝒋 (b) 2u+5v = 2(3i + 2j )+5(-i+6j ) = 6i + 4j - 5i+30j = i + 34j
  • 28. Horizontal and vertical components of a vector Let v be a vector with magnitude 𝑣 π‘Žπ‘›π‘‘ π‘‘π‘–π‘Ÿπ‘’π‘π‘‘π‘–π‘œπ‘› ΞΈ. π‘‡β„Žπ‘’π‘› 𝑣= a1, a2 = a1𝐒 + a2𝐣 where a1 = 𝑣 cos πœƒ π‘Žπ‘›π‘‘ a2 = 𝑣 sin πœƒ Thus we can express v as v= 𝑣 cos πœƒ 𝐒 + 𝑣 sin πœƒ 𝐣
  • 29. Exercise 8 (a) A vector v has length 8 and direction Ο€/3. Find the horizontal and vertical components, and write v in terms of i and j. (b) Find the direction of the vector u = - 3 i + j. (a) We have v= π‘Ž, 𝑏 , where the components are given by a= 8 cos πœ‹ 3 = 4 and b = 8 sin πœ‹ 3 = 4 3 Thus v=(4, 4 3) = 4 i + 4 3 j
  • 30. Exercise 8 (b) Find the direction of the vector u = - 3 i + j. (b) tan πœƒ = 1 βˆ’ 3 = βˆ’ 3 3 Thus the reference angle for ΞΈ is Ο€/6. Since the terminal point of the vector u is in Quadrant II,it follows that ΞΈ =5Ο€/6.
  • 33.
  • 34. Using Vectors to model Velocity and Force An airplane heads due north at 300 mi/h. It experiences a 40 mi/h crosswind flowing in the direction N 300 E, as shown below. (1). Express the velocity v of the airplane relative to the air and the velocity u of the wind, in component form. (2) Find the true velocity of the airplane as a vector. (3) Find the true speed and direction of the airplane. The True speed and Direction of an airplane
  • 35. Using Vectors to model Velocity and Force (1)The velocity of the airplane relative to the air is v = 0 i+300 j= 300j. By the formulas for the components of a vector we find that the velocity of the wind is u= (40 cos 60)i+(40 sin 60)j = 20i+20 πŸ‘π’‹ β‰ˆ πŸπŸŽπ’Š + πŸ‘πŸ’. πŸ”πŸ’π’‹ (2) The true velocity of the airplane is given by the vector w=u+v w=u+v=(20i+20 πŸ‘π’‹) + πŸ‘πŸŽπŸŽπ’‹ =20i+(20 πŸ‘ + πŸ‘πŸŽπŸŽ)𝒋 β‰ˆ πŸπŸŽπ’Š + πŸ‘πŸ‘πŸ’. πŸ”πŸ’π’‹ β€’ The true velocity is the velocity relative to the ground. The True speed and Direction of an airplane
  • 36. Using Vectors to model Velocity and Force The true speed of the airplane is given by the magnitude of w: π’˜ β‰ˆ ((𝟐𝟎)𝟐 + πŸ‘πŸ‘πŸ’. πŸ”πŸ’ 𝟐) ) β‰ˆ πŸ‘πŸ‘πŸ“. πŸπ’Žπ’Š/𝒉 The direction of the airplane is the direction πœƒ of the vector w. The angle πœƒ has the property that tan πœƒ β‰ˆ334.64/20 =16.732, so πœƒ β‰ˆ 86.6 Thus the airplane is heading in the direction N 3.40 E. The True speed and Direction of an airplane
  • 37. Using Vectors to model Velocity and Force A woman launches a boat from one shore of a straight river and wants to land at the point directly on the opposite shore. If the speed of the boat (relative to the water) is 10 mi/h and the river is flowing east at the rate of 5 mi/h, in what direction should she head the boat in order to arrive at the desired landing point? Calculating a Heading
  • 38. Using Vectors to model Velocity and Force We choose a coordinate system with the origin at the initial position of the boat as shown below. Let u and v represent the velocities of the river and the boat, respectively. Clearly, u =5 i, and since the speed of the boat is 10 mi/h, we have 𝒗 =10, so v=(10cos πœƒ)𝑖 + (10 sin πœƒ)𝑗 The true course of the boat is given by the vector w = u + v. We have w = u + v=5i+ (10cos πœƒ)𝑖 + (10 sin πœƒ)𝑗 Since the woman wants to land at a point directly across the river, her direction should have horizontal component 0. In other words, she should choose u in such a way that 5+ 10 cos πœƒ = 0 cos πœƒ = βˆ’1 2 Calculating a Heading