the dot product measures alignment: it equals |a||b|cos(θ)

Why do vectors sometimes "agree" with each other?

Image: NASA/Scott Kelly, Public domain, via Wikimedia Commons

the dot product measures alignment: it equals |a||b|cos(θ)

Why do vectors sometimes "agree" with each other?

Imagine you're looking at two arrows on a board, pointing at each other. You want to know how well they align, not just if they're pointing in the same direction.

Think of the arrows as friends holding hands. The closer they are to each other, the stronger their friendship. The dot product is like measuring how tightly they're holding hands, which depends on how long their arms are and the angle between them.

Example

Arrow A is 5 units long, and Arrow B is 3 units long. They're holding hands at a 60-degree angle. The dot product tells us how "strong" their friendship is.

Remember this

The dot product equals the product of the vectors' lengths and the cosine of the angle between them, showing how aligned they are.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath