Tensor Product — Definition, Formula & Examples
The tensor product combines two vectors (or more general objects) into a higher-dimensional object that captures every possible pairing of their components. For two vectors, the result is a matrix whose entries are all products of one component from each vector.
Given vectors and , the tensor product is the matrix with entries . More generally, for vector spaces and over a field , the tensor product is a vector space spanned by elements subject to bilinearity: and distributivity over addition.
Key Formula
Where:
- = A vector in \mathbb{R}^m
- = A vector in \mathbb{R}^n
- = The i-th component of u
- = The j-th component of v
How It Works
To compute the tensor product of two vectors, multiply every component of the first vector by every component of the second. Arrange the results into a matrix where rows correspond to the first vector and columns to the second. Unlike the dot product (which returns a scalar) or the cross product (which returns a vector), the tensor product increases dimensionality. If has components and has components, the result is an matrix — equivalently called the outer product in this vector-to-vector case.
Worked Example
Problem: Compute the tensor product of u = (2, 3) and v = (1, 4, 5).
Step 1: Set up the outer product matrix by multiplying each component of u with each component of v.
Step 2: Compute each entry: row 1 gives (2·1, 2·4, 2·5) and row 2 gives (3·1, 3·4, 3·5).
Answer: The tensor product is the 2×3 matrix [[2, 8, 10], [3, 12, 15]].
Why It Matters
Tensor products appear throughout physics and engineering — stress tensors in mechanics, quantum state spaces in quantum computing, and feature interactions in machine learning all rely on them. In a linear algebra or abstract algebra course, understanding tensor products is essential for working with multilinear maps and higher-dimensional data representations.
Common Mistakes
Mistake: Confusing the tensor product with the dot product or cross product.
Correction: The dot product of two vectors yields a scalar, the cross product yields a vector (in 3D), but the tensor product yields a matrix (or higher-order tensor). They are fundamentally different operations with different output types.
