Circulant matrix

From HandWiki
Short description: Linear algebra matrix


In linear algebra, a circulant matrix is a square matrix in which all rows are composed of the same elements and each row is rotated one element to the right relative to the preceding row. It is a particular kind of Toeplitz matrix.

In numerical analysis, circulant matrices are important because they are diagonalized by a discrete Fourier transform, and hence linear equations that contain them may be quickly solved using a fast Fourier transform.[1] They can be interpreted analytically as the integral kernel of a convolution operator on the cyclic group [math]\displaystyle{ C_n }[/math] and hence frequently appear in formal descriptions of spatially invariant linear operations. This property is also critical in modern software defined radios, which utilize Orthogonal Frequency Division Multiplexing to spread the symbols (bits) using a cyclic prefix. This enables the channel to be represented by a circulant matrix, simplifying channel equalization in the frequency domain.

In cryptography, a circulant matrix is used in the MixColumns step of the Advanced Encryption Standard.

Definition

An [math]\displaystyle{ n \times n }[/math] circulant matrix [math]\displaystyle{ C }[/math] takes the form [math]\displaystyle{ C = \begin{bmatrix} c_0 & c_{n-1} & \cdots & c_2 & c_1 \\ c_1 & c_0 & c_{n-1} & & c_2 \\ \vdots & c_1 & c_0 & \ddots & \vdots \\ c_{n-2} & & \ddots & \ddots & c_{n-1} \\ c_{n-1} & c_{n-2} & \cdots & c_1 & c_0 \\ \end{bmatrix} }[/math] or the transpose of this form (by choice of notation). If each [math]\displaystyle{ c_i }[/math] is a [math]\displaystyle{ p \times p }[/math] square matrix, then the [math]\displaystyle{ np \times np }[/math] matrix [math]\displaystyle{ C }[/math] is called a block-circulant matrix.

A circulant matrix is fully specified by one vector, [math]\displaystyle{ c }[/math], which appears as the first column (or row) of [math]\displaystyle{ C }[/math]. The remaining columns (and rows, resp.) of [math]\displaystyle{ C }[/math] are each cyclic permutations of the vector [math]\displaystyle{ c }[/math] with offset equal to the column (or row, resp.) index, if lines are indexed from [math]\displaystyle{ 0 }[/math] to [math]\displaystyle{ n-1 }[/math]. (Cyclic permutation of rows has the same effect as cyclic permutation of columns.) The last row of [math]\displaystyle{ C }[/math] is the vector [math]\displaystyle{ c }[/math] shifted by one in reverse.

Different sources define the circulant matrix in different ways, for example as above, or with the vector [math]\displaystyle{ c }[/math] corresponding to the first row rather than the first column of the matrix; and possibly with a different direction of shift (which is sometimes called an anti-circulant matrix).

The polynomial [math]\displaystyle{ f(x) = c_0 + c_1 x + \dots + c_{n-1} x^{n-1} }[/math] is called the associated polynomial of the matrix [math]\displaystyle{ C }[/math].

Properties

Eigenvectors and eigenvalues

The normalized eigenvectors of a circulant matrix are the Fourier modes, namely, [math]\displaystyle{ v_j=\frac{1}{\sqrt{n}} \left(1, \omega^j, \omega^{2j}, \ldots, \omega^{(n-1)j}\right),\quad j = 0, 1, \ldots, n-1, }[/math] where [math]\displaystyle{ \omega=\exp \left(\tfrac{2\pi i}{n}\right) }[/math] is a primitive [math]\displaystyle{ n }[/math]-th root of unity and [math]\displaystyle{ i }[/math] is the imaginary unit.

(This can be understood by realizing that multiplication with a circulant matrix implements a convolution. In Fourier space, convolutions become multiplication. Hence the product of a circulant matrix with a Fourier mode yields a multiple of that Fourier mode, i.e. it is an eigenvector.)

The corresponding eigenvalues are given by [math]\displaystyle{ \lambda_j = c_0+c_{1} \omega^j + c_{2} \omega^{2j} + \dots + c_{n-1} \omega^{(n-1)j},\quad j = 0, 1, \dots, n-1. }[/math]

Determinant

As a consequence of the explicit formula for the eigenvalues above, the determinant of a circulant matrix can be computed as: [math]\displaystyle{ \det C = \prod_{j=0}^{n-1} (c_0 + c_{n-1} \omega^j + c_{n-2} \omega^{2j} + \dots + c_1\omega^{(n-1)j}). }[/math] Since taking the transpose does not change the eigenvalues of a matrix, an equivalent formulation is [math]\displaystyle{ \det C = \prod_{j=0}^{n-1} (c_0 + c_1 \omega^j + c_2 \omega^{2j} + \dots + c_{n-1}\omega^{(n-1)j}) = \prod_{j=0}^{n-1} f(\omega^j). }[/math]

Rank

The rank of a circulant matrix [math]\displaystyle{ C }[/math] is equal to [math]\displaystyle{ n - d }[/math] where [math]\displaystyle{ d }[/math] is the degree of the polynomial [math]\displaystyle{ \gcd( f(x), x^n - 1) }[/math].[2]

Other properties

  • Any circulant is a matrix polynomial (namely, the associated polynomial) in the cyclic permutation matrix [math]\displaystyle{ P }[/math]: [math]\displaystyle{ C = c_0 I + c_1 P + c_2 P^2 + \dots + c_{n-1} P^{n-1} = f(P), }[/math] where [math]\displaystyle{ P }[/math] is given by the companion matrix [math]\displaystyle{ P = \begin{bmatrix} 0&0&\cdots&0&1\\ 1&0&\cdots&0&0\\ 0&\ddots&\ddots&\vdots&\vdots\\ \vdots&\ddots&\ddots&0&0\\ 0&\cdots&0&1&0 \end{bmatrix}. }[/math]
  • The set of [math]\displaystyle{ n \times n }[/math] circulant matrices forms an [math]\displaystyle{ n }[/math]-dimensional vector space with respect to addition and scalar multiplication. This space can be interpreted as the space of functions on the cyclic group of order [math]\displaystyle{ n }[/math], [math]\displaystyle{ C_n }[/math], or equivalently as the group ring of [math]\displaystyle{ C_n }[/math].
  • Circulant matrices form a commutative algebra, since for any two given circulant matrices [math]\displaystyle{ A }[/math] and [math]\displaystyle{ B }[/math], the sum [math]\displaystyle{ A + B }[/math] is circulant, the product [math]\displaystyle{ AB }[/math] is circulant, and [math]\displaystyle{ AB = BA }[/math].
  • For a nonsingular circulant matrix [math]\displaystyle{ A }[/math], its inverse [math]\displaystyle{ A^{-1} }[/math] is also circulant. For a singular circulant matrix, its Moore–Penrose pseudoinverse [math]\displaystyle{ A^+ }[/math] is circulant.
  • The matrix [math]\displaystyle{ U }[/math] that is composed of the eigenvectors of a circulant matrix is related to the discrete Fourier transform and its inverse transform: [math]\displaystyle{ U_n^* = \frac{1}{\sqrt{n}} F_n, \quad\text{and}\quad U_n = \sqrt{n} F_n^{-1}, \text{ where } F_n = (f_{jk}) \text{ with } f_{jk} = e^{-2jk\pi i/n}, \,\text{for } 0 \leq j,k \lt n. }[/math] Consequently the matrix [math]\displaystyle{ U_n }[/math] diagonalizes [math]\displaystyle{ C }[/math]. In fact, we have [math]\displaystyle{ C = U_n \operatorname{diag}(F_n c) U_n^* = F_n^{-1} \operatorname{diag}(F_n c) F_n, }[/math] where [math]\displaystyle{ c }[/math] is the first column of [math]\displaystyle{ C }[/math]. The eigenvalues of [math]\displaystyle{ C }[/math] are given by the product [math]\displaystyle{ F_n c }[/math]. This product can be readily calculated by a fast Fourier transform.[3] Conversely, for any diagonal matrix [math]\displaystyle{ D }[/math], the product [math]\displaystyle{ F_n^{-1}DF_n }[/math] is circulant.
  • Let [math]\displaystyle{ p(x) }[/math] be the (monic) characteristic polynomial of an [math]\displaystyle{ n \times n }[/math] circulant matrix [math]\displaystyle{ C }[/math]. Then the scaled derivative [math]\displaystyle{ \frac{1}{n}p'(x) }[/math] is the characteristic polynomial of the following [math]\displaystyle{ (n-1)\times(n-1) }[/math] submatrix of [math]\displaystyle{ C }[/math]: [math]\displaystyle{ C_{n-1} = \begin{bmatrix} c_0 & c_{n-1} & \cdots & c_3 & c_2 \\ c_1 & c_0 & c_{n-1} & & c_3 \\ \vdots & c_1 & c_0 & \ddots & \vdots \\ c_{n-3} & & \ddots & \ddots & c_{n-1} \\ c_{n-2} & c_{n-3} & \cdots & c_{1} & c_0 \\ \end{bmatrix} }[/math] (see [4] for the proof).

Analytic interpretation

Circulant matrices can be interpreted geometrically, which explains the connection with the discrete Fourier transform.

Consider vectors in [math]\displaystyle{ \R^n }[/math] as functions on the integers with period [math]\displaystyle{ n }[/math], (i.e., as periodic bi-infinite sequences: [math]\displaystyle{ \dots,a_0,a_1,\dots,a_{n-1},a_0,a_1,\dots }[/math]) or equivalently, as functions on the cyclic group of order [math]\displaystyle{ n }[/math] (denoted [math]\displaystyle{ C_n }[/math] or [math]\displaystyle{ \Z/n\Z }[/math]) geometrically, on (the vertices of) the regular [math]\displaystyle{ n }[/math]-gon: this is a discrete analog to periodic functions on the real line or circle.

Then, from the perspective of operator theory, a circulant matrix is the kernel of a discrete integral transform, namely the convolution operator for the function [math]\displaystyle{ (c_0,c_1,\dots,c_{n-1}) }[/math]; this is a discrete circular convolution. The formula for the convolution of the functions [math]\displaystyle{ (b_i) := (c_i) * (a_i) }[/math] is

[math]\displaystyle{ b_k = \sum_{i=0}^{n-1} a_i c_{k-i} }[/math]

(recall that the sequences are periodic) which is the product of the vector [math]\displaystyle{ (a_i) }[/math] by the circulant matrix for [math]\displaystyle{ (c_i) }[/math].

The discrete Fourier transform then converts convolution into multiplication, which in the matrix setting corresponds to diagonalization.

The [math]\displaystyle{ C^* }[/math]-algebra of all circulant matrices with complex entries is isomorphic to the group [math]\displaystyle{ C^* }[/math]-algebra of [math]\displaystyle{ \Z/n\Z. }[/math]

Symmetric circulant matrices

For a symmetric circulant matrix [math]\displaystyle{ C }[/math] one has the extra condition that [math]\displaystyle{ c_{n-i}=c_i }[/math]. Thus it is determined by [math]\displaystyle{ \lfloor n/2\rfloor + 1 }[/math] elements. [math]\displaystyle{ C = \begin{bmatrix} c_0 & c_1 & \cdots & c_2 & c_1 \\ c_1 & c_0 & c_1 & & c_2 \\ \vdots & c_1 & c_0 & \ddots & \vdots \\ c_2 & & \ddots & \ddots & c_1 \\ c_1 & c_2 & \cdots & c_1 & c_0 \\ \end{bmatrix}. }[/math]

The eigenvalues of any real symmetric matrix are real. The corresponding eigenvalues become: [math]\displaystyle{ \lambda_j = c_0 + 2 c_1 \Re \omega_j + 2 c_2 \Re \omega_j^2 + \dots + 2c_{n/2-1} \Re \omega_j^{n/2-1} + c_{n/2} \omega_j^{n/2} }[/math] for [math]\displaystyle{ n }[/math] even, and [math]\displaystyle{ \lambda_j = c_0 + 2 c_1 \Re \omega_j + 2 c_2 \Re \omega_j^2 + \dots + 2c_{(n-1)/2} \Re \omega_j^{(n-1)/2} }[/math] for [math]\displaystyle{ n }[/math] odd, where [math]\displaystyle{ \Re z }[/math] denotes the real part of [math]\displaystyle{ z }[/math]. This can be further simplified by using the fact that [math]\displaystyle{ \Re \omega_j^k = \cos(2\pi j k/n) }[/math] and [math]\displaystyle{ \omega_j^{n/2}= \exp\left({\pi i j}\right)=\pm1 }[/math] depending on [math]\displaystyle{ j }[/math] even or odd.

Symmetric circulant matrices belong to the class of bisymmetric matrices.

Hermitian circulant matrices

The complex version of the circulant matrix, ubiquitous in communications theory, is usually Hermitian. In this case [math]\displaystyle{ c_{n-i} = c_i^*, \; i \le n/2 }[/math] and its determinant and all eigenvalues are real.

If n is even the first two rows necessarily takes the form [math]\displaystyle{ \begin{bmatrix} r_0 & z_1 & z_2 & r_3 & z_2^* & z_1^* \\ z_1^* & r_0 & z_1 & z_2 & r_3 & z_2^* \\ \dots \\ \end{bmatrix}. }[/math] in which the first element [math]\displaystyle{ r_3 }[/math] in the top second half-row is real.

If n is odd we get [math]\displaystyle{ \begin{bmatrix} r_0 & z_1 & z_2 & z_2^* & z_1^* \\ z_1^* & r_0 & z_1 & z_2 & z_2^* \\ \dots\\ \end{bmatrix}. }[/math]

Tee[5] has discussed constraints on the eigenvalues for the Hermitian condition.

Applications

In linear equations

Given a matrix equation

[math]\displaystyle{ C \mathbf{x} = \mathbf{b}, }[/math]

where [math]\displaystyle{ C }[/math] is a circulant matrix of size [math]\displaystyle{ n }[/math], we can write the equation as the circular convolution [math]\displaystyle{ \mathbf{c} \star \mathbf{x} = \mathbf{b}, }[/math] where [math]\displaystyle{ \mathbf c }[/math] is the first column of [math]\displaystyle{ C }[/math], and the vectors [math]\displaystyle{ \mathbf c }[/math], [math]\displaystyle{ \mathbf x }[/math] and [math]\displaystyle{ \mathbf b }[/math] are cyclically extended in each direction. Using the circular convolution theorem, we can use the discrete Fourier transform to transform the cyclic convolution into component-wise multiplication [math]\displaystyle{ \mathcal{F}_{n}(\mathbf{c} \star \mathbf{x}) = \mathcal{F}_{n}(\mathbf{c}) \mathcal{F}_{n}(\mathbf{x}) = \mathcal{F}_{n}(\mathbf{b}) }[/math] so that [math]\displaystyle{ \mathbf{x} = \mathcal{F}_n^{-1} \left[ \left( \frac{(\mathcal{F}_n(\mathbf{b}))_{\nu}} {(\mathcal{F}_n(\mathbf{c}))_{\nu}} \right)_{\!\nu\in\Z}\, \right]^{\rm T}. }[/math]

This algorithm is much faster than the standard Gaussian elimination, especially if a fast Fourier transform is used.

In graph theory

In graph theory, a graph or digraph whose adjacency matrix is circulant is called a circulant graph/digraph. Equivalently, a graph is circulant if its automorphism group contains a full-length cycle. The Möbius ladders are examples of circulant graphs, as are the Paley graphs for fields of prime order.

References

  1. Davis, Philip J., Circulant Matrices, Wiley, New York, 1970 ISBN:0471057711
  2. A. W. Ingleton (1956). "The Rank of Circulant Matrices". J. London Math. Soc. s1-31 (4): 445–460. doi:10.1112/jlms/s1-31.4.445. 
  3. Golub, Gene H.; Van Loan, Charles F. (1996), "§4.7.7 Circulant Systems", Matrix Computations (3rd ed.), Johns Hopkins, ISBN 978-0-8018-5414-9 
  4. Kushel, Olga; Tyaglov, Mikhail (July 15, 2016), "Circulants and critical points of polynomials", Journal of Mathematical Analysis and Applications 439 (2): 634–650, doi:10.1016/j.jmaa.2016.03.005, ISSN 0022-247X 
  5. Tee, G J (2007). "Eigenvectors of Block Circulant and Alternating Circulant Matrices". New Zealand Journal of Mathematics 36: 195–211. 

External links