Dot Product and Vector Angles
Dot Product and Angle Between Vectors
The dot product (or scalar product) is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number (a scalar). It is a powerful tool in both algebra and geometry.
Calculating the Dot Product
For two 2D vectors u=โจu1โ,u2โโฉ and v=โจv1โ,v2โโฉ, the dot product is calculated by multiplying corresponding components and adding the results:
uโ v=u1โv1โ+u2โv2โ
(This extends naturally to 3D vectors: u1โv1โ+u2โv2โ+u3โv3โ)
Finding the Angle Between Vectors
The dot product connects algebra and geometry. Geometrically, it is defined as:
uโ v=โฃuโฃโฃvโฃcosฮธ
where ฮธ is the angle between the two vectors, and โฃuโฃ and โฃvโฃ are their magnitudes (lengths). Rearranging this gives a reliable formula for finding the angle between any two vectors:
cosฮธ=โฃuโฃโฃvโฃuโ vโ
Example: Find the angle between u=โจ2,3โฉ and v=โจโ1,4โฉ.
- Find the dot product: uโ v=(2)(โ1)+(3)(4)=โ2+12=10
- Find the magnitudes: โฃuโฃ=22+32โ=4+9โ=13โ โฃvโฃ=(โ1)2+42โ=1+16โ=17โ
- Calculate the angle: cosฮธ=13โ17โ10โ=221โ10โ ฮธ=arccos(221โ10โ)โ47.7โ
Orthogonal (Perpendicular) Vectors
If two non-zero vectors are perpendicular, the angle between them is 90โ. Since cos(90โ)=0, their dot product must be zero.
Rule: Two vectors u and v are orthogonal if and only if: uโ v=0
Vector Projection
The vector projection of u onto v gives the component (or "shadow") of u that lies perfectly along the direction of v. The formula is:
projvโu=(โฃvโฃ2uโ vโ)v
Example: Find the projection of u=โจ3,4โฉ onto v=โจ1,0โฉ.
- Dot product: uโ v=(3)(1)+(4)(0)=3
- Magnitude squared of v: โฃvโฃ2=12+02=1
- Projection: projvโu=(13โ)โจ1,0โฉ=โจ3,0โฉ
This means the component of โจ3,4โฉ acting purely in the horizontal direction (along โจ1,0โฉ) is exactly โจ3,0โฉ.