Girish Mahajan (Editor)

Circulant matrix

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In linear algebra, a circulant matrix is a special kind of Toeplitz matrix where each row vector is rotated one element to the right relative to the preceding row vector. 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. They can be interpreted analytically as the integral kernel of a convolution operator on the cyclic group Z / n Z and hence frequently appear in formal descriptions of spatially invariant linear operations. In cryptography, a circulant matrix is used in the MixColumns step of the Advanced Encryption Standard.

Contents

Definition

An n × n circulant matrix   C takes the form

C = [ c 0 c n 1 c 2 c 1 c 1 c 0 c n 1 c 2 c 1 c 0 c n 2 c n 1 c n 1 c n 2 c 1 c 0 ] .

A circulant matrix is fully specified by one vector,   c , which appears as the first column of   C . The remaining columns of   C are each cyclic permutations of the vector   c with offset equal to the column index. The last row of   C is the vector   c in reverse order, and the remaining rows are each cyclic permutations of the last row. Note that different sources define the circulant matrix in different ways, for example with the coefficients corresponding to the first row rather than the first column of the matrix, or with a different direction of shift.

The polynomial f ( x ) = c 0 + c 1 x + + c n 1 x n 1 is called the associated polynomial of matrix C .

Eigenvectors and eigenvalues

The normalized eigenvectors of a circulant matrix are given by

v j = 1 n ( 1 ,   ω j ,   ω j 2 ,   ,   ω j n 1 ) T , j = 0 , 1 , , n 1 ,

where ω j = exp ( 2 π i j n ) are the n-th roots of unity and i is the imaginary unit.

The corresponding eigenvalues are then given by

λ j = c 0 + c n 1 ω j + c n 2 ω j 2 + + c 1 ω j n 1 , j = 0 , 1 , , n 1.

Determinant

As a consequence of the explicit formula for the eigenvalues above, the determinant of circulant matrix can be computed as:

d e t ( C ) = j = 0 n 1 ( c 0 + c n 1 ω j + c n 2 ω j 2 + + c 1 ω j n 1 ) .

Since taking transpose does not change the eigenvalues of a matrix, an equivalent formulation is

d e t ( C ) = j = 0 n 1 ( c 0 + c 1 ω j + c 2 ω j 2 + + c n 1 ω j n 1 ) = j = 0 n 1 f ( ω j ) .

Rank

The rank of circulant matrix C is equal to n d , where d is the degree of gcd ( f ( x ) , x n 1 ) .

Other properties

  • We have
  • where P is the 'cyclic permutation' matrix, a specific permutation matrix given by P = [ 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 ] .
  • The set of n × n circulant matrices forms an n-dimensional vector space; this can be interpreted as the space of functions on the cyclic group of order n, Z / n Z , or equivalently the group ring.
  • Circulant matrices form a commutative algebra, since for any two given circulant matrices   A and   B , the sum   A + B is circulant, the product   A B is circulant, and   A B = B A .
  • The matrix U that is composed of the eigenvectors of a circulant matrix is related to the Discrete Fourier transform and its Inverse transform:
  • Thus, the matrix U n diagonalizes C. In fact, we have C = U n diag ( F n c ) U n = F n 1 diag ( F n c ) F n , where c is the first column of C . Thus, the eigenvalues of C are given by the product   F n c . This product can be readily calculated by a Fast Fourier transform.
  • Let p be the monic characteristic polynomial of an n × n circulant matrix C , and let p be the derivative of p . Then the polynomial 1 n p is the monic characteristic polynomial of the following ( n 1 ) × ( n 1 ) submatrix of C :
  • C n 1 = [ c 0 c n 1 c 3 c 2 c 1 c 0 c n 1 c 3 c 1 c 0 c n 3 c n 1 c n 2 c n 3 c 1 c 0 ]

    (see for proof).

    Analytic interpretation

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

    Consider vectors in R n as functions on the integers with period n, (i.e., as periodic bi-infinite sequences: , a 0 , a 1 , , a n 1 , a 0 , a 1 , ) or equivalently, as functions on the cyclic group of order n, ( C n or Z / n Z ) geometrically, on (the vertices of) the regular n-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 ( c 0 , c 1 , , c n 1 ) ; this is a discrete circular convolution. The formula for the convolution of the functions ( b i ) := ( c i ) ( a i ) is

    b k = i = 0 n 1 a i c k i (recall that the sequences are periodic)

    which is the product of the vector of a i by the circulant matrix.

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

    The C -algebra of all circulant matrices with complex entries is isomorphic to the group C -algebra of Z / n Z .

    In linear equations

    Given a matrix equation

      C x = b ,

    where   C is a circulant square matrix of size   n we can write the equation as the circular convolution

      c x = b ,

    where   c is the first column of   C , and the vectors   c ,   x and   b are cyclically extended in each direction. Using the results of the circular convolution theorem, we can use the discrete Fourier transform to transform the cyclic convolution into component-wise multiplication

      F n ( c x ) = F n ( c ) F n ( x ) = F n ( b )

    so that

      x = F n 1 [ ( ( F n ( b ) ) ν ( F n ( c ) ) ν ) ν Z ] T .

    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 (or 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

    Circulant matrix Wikipedia