Math
Dot product.
Definition
The dot product (scalar product) of two vectors is a single number found by multiplying corresponding components and summing the results. It can also be computed as the product of the magnitudes times the cosine of the angle between them, and it equals zero when vectors are perpendicular.
Examples
Real-world.
- 1 ⟨2, 3⟩ · ⟨4, -1⟩ = 2(4) + 3(-1) = 5
- 2 Finding the angle between two vectors using cos θ = (u · v)/(|u||v|)
- 3 Testing if two vectors are perpendicular: if u · v = 0, they are
Key Fact
u · v = u₁v₁ + u₂v₂ = |u||v|cos θ