The dot product is a scalar value that represents the amount of “similarity” between the two vectors. It is used to:
- Calculate the magnitude of a vector: $\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2$
- Determine the angle between two vectors: $\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| |\mathbf{b}| \cos(\theta)$
- Project one vector onto another: $\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| |\mathbf{b}| \cos(\theta)$