Kronecker product

From Wikipedia, the free encyclopedia

In mathematics, the Kronecker product, denoted by \otimes, is an operation on two matrices of arbitrary size resulting in a block matrix. It is a special case of a tensor product. The Kronecker product should not be confused with the usual matrix multiplication, which is an entirely different operation. It is named after German mathematician Leopold Kronecker.

Contents

[edit] Definition

If A is an m-by-n matrix and B is a p-by-q matrix, then the Kronecker product A \otimes B is the mp-by-nq block matrix

A \otimes B = \begin{bmatrix} a_{11} B & \cdots & a_{1n}B \\ \vdots & \ddots & \vdots \\ a_{m1} B & \cdots & a_{mn} B \end{bmatrix}.

More explicitly, we have

A \otimes B = \begin{bmatrix}    a_{11} b_{11} & a_{11} b_{12} & \cdots & a_{11} b_{1q} &                     \cdots & \cdots & a_{1n} b_{11} & a_{1n} b_{12} & \cdots & a_{1n} b_{1q} \\    a_{11} b_{21} & a_{11} b_{22} & \cdots & a_{11} b_{2q} &                     \cdots & \cdots & a_{1n} b_{21} & a_{1n} b_{22} & \cdots & a_{1n} b_{2q} \\    \vdots & \vdots & \ddots & \vdots & & & \vdots & \vdots & \ddots & \vdots \\    a_{11} b_{p1} & a_{11} b_{p2} & \cdots & a_{11} b_{pq} &                     \cdots & \cdots & a_{1n} b_{p1} & a_{1n} b_{p2} & \cdots & a_{1n} b_{pq} \\    \vdots & \vdots & & \vdots & \ddots & & \vdots & \vdots & & \vdots \\    \vdots & \vdots & & \vdots & & \ddots & \vdots & \vdots & & \vdots \\    a_{m1} b_{11} & a_{m1} b_{12} & \cdots & a_{m1} b_{1q} &                     \cdots & \cdots & a_{mn} b_{11} & a_{mn} b_{12} & \cdots & a_{mn} b_{1q} \\    a_{m1} b_{21} & a_{m1} b_{22} & \cdots & a_{m1} b_{2q} &                     \cdots & \cdots & a_{mn} b_{21} & a_{mn} b_{22} & \cdots & a_{mn} b_{2q} \\    \vdots & \vdots & \ddots & \vdots & & & \vdots & \vdots & \ddots & \vdots \\    a_{m1} b_{p1} & a_{m1} b_{p2} & \cdots & a_{m1} b_{pq} &                     \cdots & \cdots & a_{mn} b_{p1} & a_{mn} b_{p2} & \cdots & a_{mn} b_{pq}  \end{bmatrix}.

[edit] Examples

\begin{bmatrix}      1 & 2 \\      3 & 1 \\    \end{bmatrix} \otimes   \begin{bmatrix}      0 & 3 \\      2 & 1 \\    \end{bmatrix} =   \begin{bmatrix}      1\cdot 0 & 1\cdot 3 & 2\cdot 0 & 2\cdot 3 \\      1\cdot 2 & 1\cdot 1 & 2\cdot 2 & 2\cdot 1 \\      3\cdot 0 & 3\cdot 3 & 1\cdot 0 & 1\cdot 3 \\      3\cdot 2 & 3\cdot 1 & 1\cdot 2 & 1\cdot 1 \\    \end{bmatrix}  =   \begin{bmatrix}      0 & 3 & 0 & 6 \\      2 & 1 & 4 & 2 \\     0 & 9 & 0 & 3 \\     6 & 3 & 2 & 1   \end{bmatrix}.
\begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \\ a_{31} & a_{32} \end{bmatrix} \otimes \begin{bmatrix} b_{11} & b_{12} & b_{13} \\ b_{21} & b_{22} & b_{23} \end{bmatrix} = \begin{bmatrix} a_{11} b_{11} & a_{11} b_{12} & a_{11} b_{13} & a_{12} b_{11} & a_{12} b_{12} & a_{12} b_{13} \\ a_{11} b_{21} & a_{11} b_{22} & a_{11} b_{23} & a_{12} b_{21} & a_{12} b_{22} & a_{12} b_{23} \\ a_{21} b_{11} & a_{21} b_{12} & a_{21} b_{13} & a_{22} b_{11} & a_{22} b_{12} & a_{22} b_{13} \\ a_{21} b_{21} & a_{21} b_{22} & a_{21} b_{23} & a_{22} b_{21} & a_{22} b_{22} & a_{22} b_{23} \\ a_{31} b_{11} & a_{31} b_{12} & a_{31} b_{13} & a_{32} b_{11} & a_{32} b_{12} & a_{32} b_{13} \\ a_{31} b_{21} & a_{31} b_{22} & a_{31} b_{23} & a_{32} b_{21} & a_{32} b_{22} & a_{32} b_{23} \end{bmatrix}.

[edit] Properties

[edit] Bilinearity and associativity

The Kronecker product is a special case of the tensor product, so it is bilinear and associative:

A \otimes (B+C) = A \otimes B + A \otimes C \qquad \mbox{(if } B \mbox{ and } C \mbox{ have the same size)},
(A+B) \otimes C = A \otimes C + B \otimes C \qquad \mbox{(if } A \mbox{ and } B \mbox{ have the same size)},
(kA) \otimes B = A \otimes (kB) = k(A \otimes B),
(A \otimes B) \otimes C = A \otimes (B \otimes C),

where A, B and C are matrices and k is a scalar.

The Kronecker product is not commutative: in general, A \otimes B and B \otimes A are different matrices. However, A \otimes B and B \otimes A are permutation equivalent, meaning that there exist permutation matrices P and Q such that

A \otimes B = P \, (B \otimes A) \, Q.

If A and B are square matrices, then A \otimes B and B \otimes A are even permutation similar, meaning that we can take P = QT.

[edit] The mixed-product property

If A, B, C and D are matrices of such size that one can form the matrix products AC and BD, then

(A \otimes B)(C \otimes D) = AC \otimes BD.

This is called the mixed-product property, because it mixes the ordinary matrix product and the Kronecker product. It follows that A \otimes B is invertible if and only if A and B are invertible, in which case the inverse is given by

(A \otimes B)^{-1} = A^{-1} \otimes B^{-1}.

[edit] Spectrum

Suppose that A and B are square matrices of size n and q respectively. Let λ1, ..., λn be the eigenvalues of A and μ1, ..., μq be those of B (listed according to multiplicity). Then the eigenvalues of A \otimes B are

\lambda_i \mu_j, \qquad i=1,\ldots,n ,\, j=1,\ldots,q.

It follows that the trace and determinant of a Kronecker product are given by

\operatorname{tr}(A \otimes B) = \operatorname{tr} A \, \operatorname{tr} B \quad\mbox{and}\quad \det(A \otimes B) = (\det A)^q (\det B)^n.

[edit] Singular values

If A and B are rectangular matrices, then one can consider their singular values. Suppose that A has rA nonzero singular values, namely

\sigma_{A,i}, \qquad i = 1, \ldots, r_A.

Similarly, denote the nonzero singular values of B by

\sigma_{B,i}, \qquad i = 1, \ldots, r_B.

Then the Kronecker product A \otimes B has rArB nonzero singular values, namely

\sigma_{A,i} \sigma_{B,j}, \qquad i=1,\ldots,r_A ,\, j=1,\ldots,r_B.

Since the rank of a matrix equals the number of nonzero singular values, we find that

\operatorname{rank}(A \otimes B) = \operatorname{rank} A \, \operatorname{rank} B.

[edit] Relation to the abstract tensor product

The Kronecker product of matrices corresponds to the abstract tensor product of linear maps. Specifically, if the matrices A and B represent linear transformations V1W1 and V2W2, respectively, then the matrix A \otimes B represents the tensor product of the two maps, V1 \otimes V2W1 \otimes W2.

[edit] Relation to products of graphs

The Kronecker product of the adjacency matrices of two graphs is the adjacency matrix of the tensor product graph.

[edit] Transpose

The operation of transposition is distributive over the Kronecker product:

(A\otimes B)^T = A^T \otimes B^T.

[edit] Matrix equations

The Kronecker product can be used to get a convenient representation for some matrix equations. Consider for instance the equation AXB = C, where A, B and C are given matrices and the matrix X is the unknown. We can rewrite this equation as

(B^\top \otimes A) \, \operatorname{vec}(X) = \operatorname{vec}(AXB) = \operatorname{vec}(C).

It now follows from the properties of the Kronecker product that the equation AXB = C has a unique solution if and only if A and B are nonsingular.

Here, vec(X) denotes the vectorization of the matrix X formed by stacking the columns of X into a single column vector.

[edit] History

The Kronecker product is named after Leopold Kronecker, even though there is little evidence that he was the first to define and use it. Indeed, in the past the Kronecker product was sometimes called the Zehfuss matrix, after Johann Georg Zehfuss.

[edit] External links

[edit] References

  • Roger Horn and Charles Johnson. Topics in Matrix Analysis, Chapter 4. Cambridge University Press, 1991. ISBN 0-521-46713-6.
In other languages