Outer Product
Definition
The outer product of two column vectors produces a matrix; it is the reverse of the inner product in the sense that it expands rather than contracts dimensionality.
Intuition
Where the inner product asks “how aligned are these two vectors?” and returns a number, the outer product asks “what matrix captures every pairwise interaction between the components of these two vectors?” The result is always a rank-1 matrix — a single “direction” stretched across both vector spaces simultaneously. Sums of outer products build up higher-rank matrices and underlie SVD and low-rank approximations.
Formal Description
For column vectors :
- Every column of is a scalar multiple of ; every row is a scalar multiple of .
- The resulting matrix has rank at most 1.
- For vectors and , the outer product .
Applications
- SVD expresses any matrix as a weighted sum of rank-1 outer products: .
- Low-rank approximations truncate this sum to compress matrices (image compression, collaborative filtering).
- Covariance matrices are sums of outer products of mean-centred data vectors: .
Trade-offs
- The outer product always yields a rank-1 matrix, so it cannot represent general linear maps on its own; a full-rank matrix requires at least outer products summed together.
- Unlike the inner product, the outer product is not commutative: in general (the two results have transposed shapes unless ).
- Memory cost is — for large vectors this is expensive compared to storing the two vectors separately ().