How does one calculate the Tensor product of two matricies?

Click For Summary

Discussion Overview

The discussion revolves around the calculation of the tensor product of two matrices, specifically 2x2 matrices, and the implications of this operation in terms of dimensionality and representation. Participants explore the theoretical foundations, properties, and specific examples related to the tensor product in a mathematical context.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant provides a concrete example of two 2x2 matrices and asks for the form of their tensor product.
  • Another participant discusses the relationship between the tensor product and linear transformations, suggesting a specific expression involving the matrices and vectors.
  • A different viewpoint describes the tensor product as resulting in a 4-dimensional matrix, detailing how the entries are formed from the products of the entries of the original matrices.
  • One participant expresses confusion about the tensor product of the identity matrix with another matrix and seeks clarification on how to derive the resulting matrix intuitively.
  • Another participant corrects a misunderstanding regarding the nature of the basis elements involved in the tensor product calculation.
  • A later reply elaborates on the definition of the tensor product in terms of linear maps and provides a formal approach to calculating the tensor product using bases of vector spaces.
  • Further clarification is offered on how to compute the tensor product for specific matrices, including the ordering of basis elements and the resulting matrix structure.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and approaches to calculating the tensor product, with some clarifying misconceptions while others remain uncertain about specific aspects of the process. There is no consensus on a single method or interpretation of the tensor product calculation.

Contextual Notes

Some participants highlight the need for clarity regarding the definitions and properties of the tensor product, as well as the specific roles of matrices and basis elements in the calculations. There are unresolved questions about the intuitive understanding of the tensor product operation.

daveyp225
Messages
88
Reaction score
0
Just as a concrete example, say A and A' are two 2x2 matricies from R^2 to R^2,

A = \left [ \begin{array}{cc} a \,\, b \\ c \,\, d \end{array} \right ]

A' = \left [ \begin{array}{cc} x \,\, y \\ z \,\, w \end{array} \right ]

What would A \otimes_\mathbb{R} A' look like (say wrt the standard basis of \mathbb{R}^2 \otimes_\mathbb{R} \mathbb{R}^2?).

Any help in understanding this would be greatly appreciated.
 
Physics news on Phys.org
So, I know

(A \otimes A')(v \otimes v') = A(v) \otimes A(v')

So we get something like

\left [ \begin{array}. a v_1 + bv_2 \\ cv_1 + dv_2 \end{array} \right ] \otimes \left [ \begin{array}. xv_1' + yv_2' \\ zv_1' + wv_2' \end{array} \right ]

But what does this mean exactly, and how can I get a general matrix from the tensor of A and A'?
 
It would be the "2 by 2 by 2 by 2" matrix which would, strictlyh speaking, require four dimensions to show.

You can think of it as 2 2 by 2 matrices, one behind the other (3 dimensions) with the same thing (again constructed of 3 dimensions) "behind" that in the fourth dimension.

Of course, 2x2x2x2= 16 so this will have 16 entries. They will be the products of each of the four entries in the first matrix with each of the four entries in the second matrix.

That is, in position "1" in the fourth dimension, you would have 2 2 by 2 matrices, one on top of the other:
\begin{bmatrix}ax &amp; ay \\ az &amp; aw\end{bmatrix}[/itex]<br /> and<br /> <br /> \begin{bmatrix}bx &amp;amp; by \\ bz &amp;amp; bw\end{bmatrix}<br /> <br /> And at the next place in the fourth dimension, we have<br /> \begin{bmatrix}cx &amp;amp; cy \\ cz &amp;amp; cw\end{bmatrix}<br /> and<br /> <br /> \begin{bmatrix}dx &amp;amp; dy \\ dz &amp;amp; dw\end{bmatrix}
 
Okay, thanks very much for the reply. Let's say we wish to tensor the identity,

A \otimes I

To show that it is indeed this 4x4 matrix given by

\left [ \begin{array}. a \,\, 0 \,\, b \,\, 0 \\ <br /> 0 \,\, a \,\, 0 \,\, b \\ <br /> c \,\, 0 \,\, d \,\, 0 \\<br /> 0 \,\, c \,\, 0 \,\, d \end{array} \right ]

I'll need to know what I \otimes e_{ij} is since the tensor reduces to (i think):

a(I \otimes e_{11}) +b(I \otimes e_{12}) +c(I \otimes e_{21}) +d(I \otimes e_{22})

Or maybe just to know how to know exactly what e_{ij} \otimes e_{kl} is and how to arrive at it. I know what it is now, thanks to you, but "taking the tensor" just seems not concrete at all. How do you get these 4x4 matricies?

I'm not sure how to arrive at what this is, intuitively or otherwise.
 
I\otimes e_{11} makes no sense: I is a linear map, e_{11] is a vector. You need to compute the value of A\otimes I at the basis vectors {e_ij}ij. By definition this is

(A\otimes I)(e_{ij}\otimes e_{kl})=Ae_{ij}\otimes Ie_{kl},

see also Kronecker product.
 
By e_{ij} I meant the 2x2 matrix with entry 1 in row i and column j. How could it be a vector in R^2 with two indeces? With that, I believe what I wrote makes sense and is correct by the bilinearity of \otimes

The problem I am having is I don't know why or how to calculate the tensor of two 2x2 matricies is a 4x4 matrix. I'm not interested on getting the answer to the evaluation. I am interested in forming the general matrix which results from the tensor of two of them. Thanks to HallsOfIvy I know what it is. But how does one arrive at this?
 
I am sorry, I thought e_{ij} were basis elements. Here is a detailed explanation.

Let k be a field, let V_1,V_2,W_1,W_2 be finite-dimensional k-vector spaces, and let f:V_1\to W_1 , g:V_2\to W_2 be k-linear maps.

Recall that f\otimes g:V_1\otimes V_2\to W_1\otimes W_2 is (well-)defined on pure tensors by (f\otimes g_2)(v\otimes w)=f(v)\otimes g(w). Pick bases (v_1,...,v_n) resp. (w_1,...,w_m) resp. (v&#039;_1,...,v&#039;_{n&#039;}) resp. (w&#039;_1,...,w&#039;_{m&#039;}) for V_1 resp. W_1 resp. V_1 resp. W_1. Write
fv_i=\sum_{k=1}^{n&#039;} f_i^k v&#039;_k,
gw_j=\sum_{p=1}^{m&#039;} g_j^p w&#039;_p
for the matrices of f and g with respect to these bases. Recall that \{v_i\otimes w_j\}_{i,j} is a basis of V_1\otimes_k W_1 and that
\{v&#039;_i\otimes w&#039;_j\}_{i,j} is a basis of V_2\otimes_k W_2. We then have
(f\otimes g)(v_i\otimes w_j)=f(v_i)\otimes g(w_j)=\left(\sum_{k=1}^{n&#039;} f_i^k v&#039;_k\right)\otimes \left(\sum_{p=1}^{m&#039;} g_j^p w&#039;_p\right)=\sum_{k,p}f_i^kg_j^p(v&#039;_k\otimes w&#039;_p).

This matrix of f\otimes g is the 'Kronecker product' of the matrices of f and g.
 
To obtain HallsOfIvy's answer, let's work this out for your 2x2-matrices A and B=A'. Of course we have to pick an ordening to write the matrix down, so let's say (e_1,e_2) is the ordened basis of R^2, and (e_1\otimes e_1,e_1\otimes e_2,e_2\otimes e_1,e_2\otimes e_2) is the ordened basis of \mathbb{R}^2\otimes \mathbb{R}^2 (i.e. we pick the lexicographic ordening).

Then the first row of the matrix A\otimes B is determined by its value on e_1\otimes e_1:

(A\otimes B)(e_1\otimes e_1)=A_1^1B_1^1(e_1\otimes e_1)+A_1^1B_1^2(e_1\otimes e_2)+A_1^2B_1^1(e_2\otimes e_1)+A_1^2B_1^2(e_2\otimes e_2)

Hence the first row becomes

\begin{bmatrix}A_1^1B_1^1 \\ A_1^1B_1^2 \\ A_1^2B_1^1 \\ A_1^2B_1^2\end<br /> {bmatrix}

which in your terms is

\begin{bmatrix}ax\\ az \\ cx \\ cz\end{bmatrix}

in agreement with HallsOfIvy's algorithm.
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K