The dot product
The dot product measures how much two arrows point the same way: zero means perfectly sideways.
What the symbols mean
- length of vector a
- angle between them
- the same number from coordinates
Why it works — the picture
Shine a light straight down on b and measure the shadow it casts along a. The dot product is the length of a times the length of that shadow. If they point the same way, the shadow is full length; at 90 degrees the shadow vanishes and the dot product is 0. The cosine form and the coordinate form give the same number because both come from the law of cosines.
Try it yourself
- Find the dot product of (3,4) and (4,-3): why zero?
- Find the angle between (1,0) and (1,1).
- Check that a dot a equals the length of a squared.
Where it’s used in real life
Computer graphics uses it for lighting (the angle between surface and light), and machine learning for measuring similarity.