The dot product of two Vectors is a number that tells us how much two vectors point in the same direction.
In simple terms, it is the magnitude of both vectors times the cosine of the angle between the two vectors.
When
When
When
We usually have to compute the dot product a lot. Therefore, a shortcut is to multiply corresponding components and then add.
This formula extends to vectors of any length.