Finding Angles Between Vectors
What you'll learn: You'll discover how to calculate the exact angle between two vectors using the dot product formula.
The Core Idea
When two vectors meet at a point, they form an angle between them. The dot product gives us a direct way to find this angle without needing to draw or measure anything. The formula connects the algebraic dot product to the geometric angle:
cos(θ) = (u · v) / (||u|| ||v||)
Where:
- θ (theta) is the angle between vectors u and v
- u · v is the dot product of the vectors
- ||u|| and ||v|| are the magnitudes (lengths) of each vector
How It Works
Think of it like this: when two vectors point in exactly the same direction, their dot product is maximized and the angle is 0°. When they're perpendicular, the dot product is zero and the angle is 90°. When they point in opposite directions, the angle is 180°.
Steps to find the angle:
- Calculate the dot product: u · v
- Find both magnitudes: ||u|| and ||v||
- Divide the dot product by the product of magnitudes
- Take the inverse cosine (arccos) to get the angle
Example: If u = 〈3, 4〉 and v = 〈1, 0〉:
- u · v = 3(1) + 4(0) = 3
- ||u|| = 5, ||v|| = 1
- cos(θ) = 3/(5·1) = 0.6
- θ = arccos(0.6) ≈ 53.13°
Key Takeaway: The dot product formula cos(θ) = (u · v)/(||u|| ||v||) lets you calculate the angle between any two vectors using only their components and basic algebra.