The dot product (inner product) of two vectors can be understood through two equivalent views:
- Algebraic view — multiply corresponding entries and sum:
- Geometric view — project one vector onto the other: , where is the angle between them
The dot product is commutative , distributive over addition, and linear in each argument.
Key geometric facts:
- means the vectors point in roughly the same direction
- means the vectors are orthogonal (perpendicular)
- means they point in roughly opposite directions
- gives the squared length of the vector
The dot product is the building block of matrix multiplication: each entry of is a dot product of a row of with a column of .
See also: Matrix Multiplication, Rank and Null Space, Eigendecomposition