The Angle Between Two Vectors
Simple Explanation
The angle θ between two vectors a and b can be found directly from their dot product: cos θ = (a·b) / (|a||b|).
Why Do We Need It?
This connects the abstract dot product back to an intuitive, measurable geometric quantity — the actual angle between two directions in space.
See It
Two arrows from a common origin, one pointing along the y-axis and one along the z-axis, with a right angle marked between them
Formula
The Angle Between Two Vectors
cos θ = (a · b) / (|a||b|)
The angle between two vectors can be found from their dot product, divided by the product of their magnitudes.
- θ
- — the angle between vectors a and b
- |a|, |b|
- — the magnitudes of the two vectors
When to use it: Whenever the angle between two vectors needs to be found.
Worked Example
Find the angle between two vectors
Find the angle between a=(1,0,0) and b=(1,1,0).
Why Does This Work?
This formula is simply the identity a·b=|a||b|cosθ, rearranged to solve for cosθ directly — once cosθ is known, the angle itself follows by taking the inverse cosine (arccos).
Real-Life Example
Measuring the angle between two structural beams
An engineer knows the direction vectors of two beams meeting at a joint, and needs the actual angle between them.
The angle-between-vectors formula computes this directly from the two direction vectors, without needing a physical protractor.
Practice
Find the angle (in degrees) between a=(3,4,0) and b=(0,0,5).
MediumCommon mistake
Forgetting to divide by BOTH magnitudes (or forgetting the magnitudes entirely) before taking the inverse cosine — cosθ specifically needs the dot product scaled down by |a||b|.
Quick Review
- cos θ = (a·b) / (|a||b|).
- θ = 90° exactly when a·b = 0.
- Comes directly from rearranging a·b = |a||b|cosθ.