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â©.