The Vector Dot Product and Angles
Calculate a dot product. Find the angle between nonzero vectors.
5 min · Vectors · Foundations
Learning goals
- Calculate a dot product
- Find the angle between nonzero vectors
Understand the concept
The dot product of u = ⟨a,b⟩ and v = ⟨c,d⟩ is u · v = ac + bd. Unlike vector addition, the result is a scalar. It also equals |u||v| cos θ, where θ is the angle between nonzero vectors in [0,π].
A zero dot product indicates perpendicularity when both vectors are nonzero. A positive value corresponds to an acute angle, and a negative value to an obtuse angle, excluding the parallel endpoint cases. Divide by both magnitudes before applying arccos.
Worked example 1
⟨2,3⟩ · ⟨4,−1⟩ = 8 − 3 = 5.
Worked example 2
For ⟨1,0⟩ and ⟨1,1⟩, cos θ = 1/√2, so θ = 45°.
Check your understanding
UNVRST English edition · Educational support · Editorial policy