There are a lot of questions like this all over the site, but I cannot find one that resolved my confusion- what are the formal definitions of direct sums, direct products, and tensor products (in the most general sense), and how are they different?
-
7From memory, the direct sum and direct product of a finite sequence of linear spaces are exactly the same thing. Maybe they differ, according to some authors, for an infinite number of linear spaces. The tensor product is a totally different kettle of fish. That's the dual of a space of multilinear forms. And that is a very long story if you do it right. The margin of this comment is insufficient to contain a full explanation of tensor products. – Alan U. Kennington Jun 22 '15 at 14:19
-
https://en.wikipedia.org/wiki/Direct_sum – vadim123 Jun 22 '15 at 15:00
1 Answers
I won't even attempt to be the most general with this answer, because I admit, I do not have a damn clue about what perverted algebraic sets admit tensor products, for example, so I will stick with vector spaces, but I am quite sure everything I say about vector spaces works for finitely generated modules over commutative rings as well. And also that the basic concept for all direct sums and tensor products are the same, just the algebraic structures involved are different.
Direct product
I'm pretty sure the direct product is the same as Cartesian product. If $X$ and $Y$ are two sets, then $X\times Y$, the Cartesian product of $X$ and $Y$ is a set made up of all ordered pairs of elements of $X$ and $Y$.
Ergo, if $x\in X$ and $y\in Y$, then $(x,y)\in X\times Y$.
Direct sum
If $V$ and $W$ are vector spaces over a field $\mathbb{F}$, then their direct sum $V\oplus W$ is the vector space whose elements are ordered pairs of elements of $V$ and $W$, equipped with the following linear structure: $$ (x_1,y_1)+(x_2,y_2)=(x_1+x_2,y_1+y_2) \\ \alpha(x,y)=(\alpha x,\alpha y), $$ where $x,x_1,x_2\in V,\ y,y_1,y_2\in W$ and $\alpha\in\mathbb{F}$.
How is this different from the direct product? Well, the direct product can be made between arbitrary sets, and has nothing to do with algebraic properties, while the direct sum also carries over the linear structure.
However, most of the time, when you take direct product of vector spaces, you assume quietly, or directly state the existence of this linear structure on the product space, and there is one other difference:
If you take a Cartesian product of infinite amount of vector spaces, then an element of this product space can have infinite nonzero "components", while if you take the direct sum of infinite amount of vector spaces, then an element of that sum will always have finite nonzero "terms".
Tensor product
Oh man, this is quite different.
Basically, if you check the properties of a direct sum, you'll see that it indeed kinda does behave like a sum. Also for example, the map that maps $x\in V$ and $y\in W$ to $(x,y)\in V\oplus W$, is absolutely not a bilinear map, as evidenced by the fact that $\alpha(x,y)\neq(\alpha x,y)$.
Question: Would it be possible to create a third vector space from $V$ and $W$ in a way, that the "pair forming map" is bilinear, and thus this new space behaves kinda like a product?
Another, seemingly unrelated question: If we have a multilinear map from a direct sum of vector spaces, then is it possible to somehow represent this map as a linear map, and have this representation be unique?
Although the two questions are seemingly unrelated, if the answer to both questions is yes, then maybe our multilinear map would appear as the composition of the "pair forming map" with a unique linear map?
These musings lead us to the actual concept of tensor product.
Definition:
Let $V$ and $W$ be finite dimensional vector spaces over the field $\mathbb{F}$. In addition, let $U$ and $X$ also be finite dimensional vector spaces over $\mathbb{F}$.
Let $p:V\times W\rightarrow X$ be a multilinear map. The pair $(X,p)$ is the tensor product of $V$ and $W$ if for every multilinear map $A:V\times W\rightarrow U$, there exists a unique linear map $A^\otimes:X\rightarrow U$ such that $$ A=A^\otimes\circ p. $$ --------------------
We usually denote $p(x,y)$ as $x\otimes y$, and $X$ as $V\otimes W$.
This also works for any amount of vector spaces, but I chose to roll with two (same goes for direct sum and direct product too).
After this, it is customary to prove existence and unicity for the tensor product. Unicity in this case means that if there is another tensor product of $V$ and $W$, then the two tensor product spaces are canonically isomorphic, and the $p$ map is given by the composition of the other "$p$ map" and the isomorphism.
Existence is usually given by constructing a tensor product directly. One elegant example is to assume that $U$ is $\mathbb{F}$ (we can do that without loss of generality, since the space of multilinear maps $V\times W\rightarrow U$ is canonically isomorphic to the space of multilinear functionals $V\times W\times U^*\rightarrow\mathbb{F}$.), and take the tensor product space to be the dual of the space of multilinear functionals over $V\times W$.
A more immediately understandable construction would be to take the tensor product space to be the space of multilinear functionals over $V^*\times W^*$, since the two are canonically isomorhpic.
Also as a closing remark, note that unlike the direct sum, which always consists of pairs $(x,y)$, elements of the tensor product space are generated by pairs $x\otimes y$, but they are not all pairs.
- 7,919
-
1Could you explain a little bit what do you mean by "they are not all pairs" in the last paragraph ? Do you mean the tensor product of V and W is a strict subset of the direct sum of the two ? – Hua Jan 24 '18 at 18:00
-
6@bridger By "they are not all pairs", Uldreth means that given $v \in V \otimes W$, it need not be the case that $\exists x,y \in V,W $ such that $v = x \otimes y $. Instead, it's only necessary that $\exists {x_i}\subset V, {y_i}\subset W$ such that $v=\sum_i x_i \otimes y_i$. By contrast, $\forall \space v\in V \oplus W, \exists x,y \in V,W$ such that $v= (x,y)$. The situation is quite different than your statement; indeed, $\dim(V \otimes W)=\dim(V)\dim(W)$, which is typically much larger than $\dim(V \oplus W) = \dim(V)+\dim(W)$. – jawheele Feb 18 '18 at 04:25
-
1Suggestion: Use inner product as an example for "Another, seemingly unrelated question". The map $f: V \oplus V \to \mathbb R, f(a,b)=a^T b$ for a finite real vector space $V$ (I understand $V$ is then vector space isomorphic to $\mathbb R^n$ for some non-negative integer $n$) is $\mathbb R$-bilinear but not $\mathbb R$-linear. However, the $f^{\otimes}$ is $\mathbb R$-linear. – Oct 12 '19 at 07:49
-
“If you take a Cartesian product of infinite amount of vector spaces, then an element of this product space can have infinite nonzero "components", while if you take the direct sum of infinite amount of vector spaces, then an element of that sum will always have finite nonzero "terms".”
Hi! Could you explain the reason of this?
– dahemar Oct 21 '21 at 19:26 -
1@dahemar The comment space is too small to give a satisfactory answer, but basically direct sums of vector spaces are category theoretical coproducts , while direct products are category theoretical products . These happen to coincide for finite factors but differ for infinite factors. – Bence Racskó Oct 21 '21 at 20:03
-
If direct product and direct sum are the same thing, why I see $\left( \begin{matrix} a& b\ c& d\ \end{matrix} \right) \otimes \left( \begin{matrix} e& f\ g& h\ \end{matrix} \right) =\left( \begin{matrix} a\left( \begin{matrix} e& f\ g& h\ \end{matrix} \right)& b\left( \begin{matrix} e& f\ g& h\ \end{matrix} \right)\ c\left( \begin{matrix} e& f\ g& h\ \end{matrix} \right)& d\left( \begin{matrix} e& f\ g& h\ \end{matrix} \right)\ \end{matrix} \right) $ while – narip Jun 01 '22 at 13:41
-
$\left( \begin{matrix} a& b\ c& d\ \end{matrix} \right) \oplus \left( \begin{matrix} e& f\ g& h\ \end{matrix} \right) =diag\left{ \left( \begin{matrix} a& b\ c& d\ \end{matrix} \right) ,\left( \begin{matrix} e& f\ g& h\ \end{matrix} \right) \right} $, which seems to have two kind of methods to calculate? – narip Jun 01 '22 at 13:42
-
1@narip The first thing you calculated is the Kronecker product, which is a particular representation of the tensor product on matrices, not the direct product. – Bence Racskó Jun 01 '22 at 15:26
-
"If you take a Cartesian product of infinite amount of vector spaces, then an element of this product space can have infinite nonzero "components", while if you take the direct sum of infinite amount of vector spaces, then an element of that sum will always have finite nonzero "terms"." - I completely don't understand. From your definition it seems either can have infinite or finite nonzero components. – Alex Aug 13 '23 at 02:58