The dot product turns two vectors into one number. Multiply the matching components and add the products; the sign of the result tells you whether the vectors point roughly the same way.
| Step | On | |
|---|---|---|
| 1 | Check the dimensions match. The dot product is defined only for two vectors with the same number of components. | both in |
| 2 | Multiply matching components. First with first, second with second, and so on. Keep the signs. | , , |
| 3 | Add the products. The result is a scalar, not a vector. | |
| 4 | Read the sign. Positive: the angle is acute. Zero: the vectors are orthogonal. Negative: the angle is obtuse. | : acute angle |