In mathematics, the tensor product, denoted by
, may be applied in different contexts to vectors, matrices, tensors, vector spaces, algebras, topological vector spaces, and modules. Mathematics is the body of Knowledge and Academic discipline that studies such concepts as Quantity, Structure, Space and In Mathematics, a vector space (or linear space) is a collection of objects (called vectors) that informally speaking may be scaled and added In Mathematics, a matrix (plural matrices) is a rectangular table of elements (or entries) which may be Numbers or more generally History The word tensor was introduced in 1846 by William Rowan Hamilton to describe the norm operation in a certain type of algebraic system (eventually In Mathematics, a vector space (or linear space) is a collection of objects (called vectors) that informally speaking may be scaled and added In Mathematics, an algebra over a field K, or a K -algebra, is a Vector space A over K equipped with In Mathematics, a topological vector space is one of the basic structures investigated in Functional analysis. In Abstract algebra, the concept of a module over a ring is a generalization of the notion of Vector space, where instead of requiring the scalars In each case the significance of the symbol is the same: the most general bilinear operation. In Mathematics, a bilinear map is a function of two arguments that is linear in each In some contexts, this product is also referred to as outer product. In Linear algebra, the outer product typically refers to the tensor product of two vectors. The term "tensor product" is also used in relation to monoidal categories. In Mathematics, a monoidal category (or tensor category) is a category C equipped with a Bifunctor &otimes: C
Example:

Resultant rank = 4, resultant dimension = 4×4.
Here rank denotes the tensor rank (number of requisite indices), while dimension counts the number of degrees of freedom in the resulting array; the matrix rank is 1. In Mathematics, the modern Component-free approach to the theory of Tensors views tensors initially as Abstract objects expressing some definite type of The column rank of a matrix A is the maximal number of Linearly independent columns of A.
A representative case is the Kronecker product of any two rectangular arrays, considered as matrices. In mathematics the Kronecker product, denoted by \otimes is an operation on two matrices of arbitrary size resulting in a Block matrix. A dyadic product is the special case of the tensor product between two vectors of the same dimension. In Mathematics, in particular Multilinear algebra, the dyadic product \mathbb{P} = \mathbf{u}\otimes\mathbf{v} of two
There is a general formula for the components of a product of two (or more) tensors. History The word tensor was introduced in 1846 by William Rowan Hamilton to describe the norm operation in a certain type of algebraic system (eventually For example, if U and V are two covariant tensors of rank m and n (respectively), then the components of their tensor product are given by
. For other uses of "covariant" or "contravariant" see Covariance and contravariance. [1]Thus, the components of the tensor product of two tensors are the ordinary product of the components of each tensor.
Note that in the tensor product, the factor U consumes the first rank(U) indices, and the factor V consumes the next rank(V) indices, so

Let U be a tensor of type (1,1) with components Uαβ, and let V be a tensor of type (1,0) with components Vγ. Then

and
. The tensor product inherits all the indices of its factors.
See also: Classical treatment of tensors
With matrices this operation is usually called the Kronecker product, a term used to make clear that the result has a particular block structure imposed upon it, in which each element of the first matrix is replaced by the second matrix, scaled by that element. Contravariant and covariant tensors A contravariant tensor of order 1(T^i is defined as \bar{T}^i = T^r\frac{\partial \bar{x}^i}{\partial x^r} In mathematics the Kronecker product, denoted by \otimes is an operation on two matrices of arbitrary size resulting in a Block matrix. In the mathematical discipline of Matrix theory, a block matrix or a partitioned matrix is a partition of a matrix into rectangular smaller matrices For matrices U and V this is:
. Given multilinear maps f(x1,. In Linear algebra, a multilinear map is a Mathematical function of several vector variables that is linear in each variable . . xk) and g(x1,. . . xm) their tensor product is the multilinear function

The tensor product
of two vector spaces V and W over a field K has a formal definition by the method of generators and relations. In Mathematics, a vector space (or linear space) is a collection of objects (called vectors) that informally speaking may be scaled and added
To construct
, one begins with the set of ordered pairs in the Cartesian product V×W. Cartesian square redirects here For Cartesian squares in Category theory, see Cartesian square (category theory. For the purposes of this construction, regard this Cartesian product as a set rather than a vector space. The free vector space on V×W is defined by taking the vector space in which the elements of V×W are a basis. In Mathematics, a free module is a Free object in the category of modules Given a set S, a free module on S is a (particular construction Symbolically,

where we have used the symbol e(v × w) to emphasize that these are taken to be linearly independent for distinct
.
The tensor product arises by defining the following three equivalence relations in F(V×W):



where v,vi,w,wi are vectors from V and W (respectively), and c is from the underlying field K. In Mathematics, an equivalence relation is a Binary relation between two elements of a set which groups them together as being "equivalent" Denoting by
the space generated by these three equivalence relations, the definition of the operator
is then the quotient space

The equivalence class of (v×w) is called the tensor product of v and w, denoted
. In Linear algebra, the quotient of a Vector space V by a subspace N is a vector space obtained by "collapsing" N In Mathematics, given a set X and an Equivalence relation ~ on X, the equivalence class of an element a in X The space
is mapped to the kernel, so that the above three equivalence relations become



The resulting space
is a vector space, which can be verified by directly checking the vector space axioms. It is called the tensor product space of V and W. Given bases {vi} and {wi} for V and W respectively, the tensors of the form
forms a basis for
. The dimension of the tensor product therefore is the product of dimensions of the original spaces; for instance
will have dimension mn.
The tensor product is characterized by a universal property. In various branches of Mathematics, certain constructions are frequently defined or characterised by an abstract property which requires the existence of a unique Morphism Consider the problem of embedding the Cartesian product V × W into a vector space X via a bilinear map φ. The tensor product construction V ⊗ W, together with the natural embedding map φ : V × W → V ⊗ W given by

is the "universal" solution to this problem in the following sense. For any other such pair (X, ψ), where X is a vector space, and ψ a bilinear mapping V × W → X, there exists a unique linear map

such that

Assuming this universal property, it can be readily verified that the tensor product is unique up to isomorphism.
An immediate consequence is the identification of

the bilinear maps from V × W to X and the linear maps

The natural isomorphism maps ψ to T. In Category theory, a branch of Mathematics, a natural transformation provides a way of transforming one Functor into another while respecting the internal
The tensor product of two Hilbert spaces is another Hilbert space, which is defined as described below. In Mathematics, there are usually many different ways to construct a topological tensor product of two Topological vector spaces For Hilbert spaces or In Operator theory, a positive definite kernel is a generalization of a positive matrix. This article assumes some familiarity with Analytic geometry and the concept of a limit.
The discussion so far has been purely algebraic. In light of the extra structure on Hilbert spaces, one would like to introduce an inner product, and therefore a topology, on the tensor product that arise naturally from those of the factors. Let H1 and H2 be two Hilbert spaces with inner products
and
, respectively. Construct the tensor product of H1 and H2 as vector spaces as explained above. We can turn this vector space tensor product into an inner product space by defining

and extending by linearity. In Mathematics, an inner product space is a Vector space with the additional Structure of inner product. That this inner product is the natural one is justified by the identification of scalar-valued bilinear maps on H1 × H2 and linear functionals on their vector space tensor product. Finally, take the completion under this inner product. In Mathematical analysis, a Metric space M is said to be complete (or Cauchy) if every Cauchy sequence of points in M has The resulting Hilbert space is the tensor product of H1 and H2.
If H1 and H2 have orthonormal bases {φk} and {ψl}, respectively, then {φk ⊗ ψl} is an orthonormal basis for H1 ⊗ H2. In Mathematics, an orthonormal basis of an Inner product space V (i
The following examples show how tensor products arise naturally.
Given two measure spaces X and Y, with measures μ and ν respectively, one may look at L2(X × Y), the space of functions on X × Y that are square integrable with respect to the product measure μ × ν. In Mathematics the concept of a measure generalizes notions such as "length" "area" and "volume" (but not all of its applications have to do with In Mathematics, the Lp and ℓp spaces are spaces of p-power integrable functions, and corresponding If f is a square integrable function on X, and g is a square integrable function on Y, then we can define a function h on X × Y by h(x,y) = f(x) g(y). The definition of the product measure ensures that all functions of this form are square integrable, so this defines a bilinear mapping L2(X) × L2(Y) → L2(X × Y). Linear combinations of functions of the form f(x) g(y) are also in L2(X × Y). In Mathematics, linear combinations are a concept central to Linear algebra and related fields of mathematics It turns out that the set of linear combinations is in fact dense in L2(X × Y), if L2(X) and L2(Y) are separable. This shows that L2(X) ⊗ L2(Y) is isomorphic to L2(X × Y), and it also explains why we need to take the completion in the construction of the Hilbert space tensor product. In Abstract algebra, an isomorphism ( Greek: ἴσος isos "equal" and μορφή morphe "shape" is a bijective
Similarly, we can show that L2(X; H), denoting the space of square integrable functions X → H, is isomorphic to L2(X) ⊗ H if this space is separable. The isomorphism maps f(x) ⊗ φ ∈ L2(X) ⊗ H to f(x)φ ∈ L2(X; H). We can combine this with the previous example and conclude that L2(X) ⊗ L2(Y) and L2(X × Y) are both isomorphic to L2(X; L2(Y)).
Tensor products of Hilbert spaces arise often in quantum mechanics. Quantum mechanics is the study of mechanical systems whose dimensions are close to the Atomic scale such as Molecules Atoms Electrons If some particle is described by the Hilbert space H1, and another particle is described by H2, then the system consisting of both particles is described by the tensor product of H1 and H2. For example, the state space of a quantum harmonic oscillator is L2(R), so the state space of two oscillators is L2(R) ⊗ L2(R), which is isomorphic to L2(R2). The quantum harmonic oscillator is the quantum mechanical analogue of the classical harmonic oscillator. Therefore, the two-particle system is described by wave functions of the form φ(x1, x2). A more intricate example is provided by the Fock spaces, which describe a variable number of particles. The Fock space is an Algebraic system ( Hilbert space) used in Quantum mechanics to describe Quantum states with a variable or unknown number of
In the discussion on the universal property, replacing X by the underlying scalar field of V and W yields that the space
(the dual space of
, containing all linear functionals on that space) is naturally identified with the space of all bilinear functionals on
. In Mathematics, any Vector space V has a corresponding dual vector space (or just dual space for short consisting of all Linear functionals In Mathematics, a functional is traditionally a map from a Vector space to the field underlying the vector space which is usually the Real In other words, every bilinear functional is a functional on the tensor product, and vice versa.
Whenever V and W are finite dimensional, there is a natural isomorphism between
and
, whereas for vector spaces of arbitrary dimension we only have an inclusion
. In Abstract algebra, an isomorphism ( Greek: ἴσος isos "equal" and μορφή morphe "shape" is a bijective So, the tensors of the linear functionals are bilinear functionals. This gives us a new way to look at the space of bilinear functionals, as a tensor product itself.
Linear subspaces of the bilinear operators (or in general, multilinear operators) determine natural quotient spaces of the tensor space, which are frequently useful. In Topology and related areas of Mathematics, a quotient space (also called an identification space) is intuitively speaking the result of identifying See wedge product for the first major example. Another would be the treatment of algebraic forms as symmetric tensors. In Mathematics, a homogeneous polynomial is a Polynomial whose terms are Monomials all having the same total degree; or are elements of the same
The notation
refers to a tensor product of modules over a ring R. In Mathematics, the tensor product of modules is a construction that allows arguments about bilinear maps (roughly speaking "multiplication" to be carried out in In Mathematics, a ring is an Algebraic structure which generalizes the algebraic properties of the Integers though the rational, real
Array programming languages may have this pattern built in. In Computer science, array programming languages (also known as vector or multidimensional languages generalize operations on scalars to apply For example, in APL the tensor product is expressed as
(for example
or
). In J the tensor product is the dyadic form of */ (for example a */ b or a */ b */ c). Not to be confused with the J++ or J# programming languages The J programming language, developed in the early 1990s by
Note that J's treatment also allows the representation of some tensor fields (as a and b may be functions instead of constants -- the result is then a derived function, and if a and b are differentiable, then a*/b is differentiable). In Calculus, a branch of mathematics the derivative is a measurement of how a function changes when the values of its inputs change
However, these kinds of notation are not universally present in array languages. Other array languages may require explicit treatment of indices (for example, Matlab), and/or may not support higher-order functions such as the Jacobian derivative (for example, Fortran/APL). MATLAB is a numerical computing environment and Programming language. In Mathematics and Computer science, higher-order functions or '''functionals''' are functions which do at least one of the following In Vector calculus, the Jacobian is shorthand for either the Jacobian matrix or its Determinant, the Jacobian determinant. Fortran (previously FORTRAN) is a general-purpose, procedural, imperative Programming language that is especially suited to