On this page
Write a row of numbers, then copy it into the next row shifted one step right, with the last number wrapping round to the front. Repeat until the matrix is square. That is a circulant matrix, and every circulant of a given size, whatever its numbers, has the same eigenvectors: the columns of the discrete Fourier transform (DFT).
What is a circulant matrix?
In Robert Gray's review Toeplitz and Circulant Matrices (chapter 3), a circulant C has first row c0, c1, …, c(n−1), and each row is a cyclic shift of the row above it, so the entry in row k, column j is c of (j − k) mod n. For n = 3 the rows are:
(c0, c1, c2)
(c2, c0, c1)
(c1, c2, c0)
The Wikipedia article on circulant matrices notes that sources define them in different ways: some build the matrix from its first row, others (Wikipedia included) from its first column. The ideas hold either way.
Why does the DFT diagonalise every circulant matrix?
Start with the shift matrix P, the circulant with first row (0, 1, 0, …, 0). Multiplying a vector by P moves every entry up one place and wraps the first to the bottom. Try y = (1, ρ, ρ², …, ρ^(n−1)), where ρ is an nth root of unity. Shifting gives (ρ, ρ², …, ρ^(n−1), 1), and because ρ^n = 1 that is ρ times y. So y is an eigenvector of P with eigenvalue ρ.
Every circulant is a polynomial in P: C = c0 I + c1 P + c2 P² + … + c(n−1) P^(n−1). So y is an eigenvector of C too, with eigenvalue c0 + c1 ρ + c2 ρ² + … + c(n−1) ρ^(n−1).
Gray derives the same result in section 3.1 of his review: choosing ρm = e^(−2πim/n) gives the eigenvalue ψm = Σ ck e^(−2πimk/n), which is the DFT of the first row.
As the Wikipedia article puts it, every complex circulant matrix is diagonalised by the discrete Fourier transform. Stack the n eigenvectors as columns of the Fourier matrix F and C = F D F⁻¹, with D holding the DFT of the first row on its diagonal. The eigenvectors do not depend on the numbers in C, which is why any two circulants of the same size commute. If diagonalisation is new to you, start with finding large powers of a matrix by diagonalisation.
Worked example: a 3×3 circulant with cube roots of unity
Take the first row (1, 2, 3), so the rows are (1, 2, 3), (3, 1, 2) and (2, 3, 1).
Let ω = e^(2πi/3) = −1/2 + (√3/2)i. The cube roots of unity are 1, ω and ω², with 1 + ω + ω² = 0, the fact behind the roots of unity filter for binomial sums. Each eigenvalue is 1 + 2ρ + 3ρ².
ρ = 1: eigenvalue 6, eigenvector (1, 1, 1). Every row sums to 6.
ρ = ω: eigenvalue 1 + 2ω + 3ω² = 1 + (−1 + √3 i) + (−3/2 − (3√3/2) i) = −3/2 − (√3/2) i, eigenvector (1, ω, ω²).
ρ = ω²: eigenvalue −3/2 + (√3/2) i, the conjugate, eigenvector (1, ω², ω).
How does the FFT make circulant multiplication fast?
Multiplying an n×n matrix by a vector directly takes n² multiplications. With C = F D F⁻¹ you can instead:
Take the FFT of the vector x.
Multiply entry by entry by the eigenvalues (the FFT of the first row, computed once).
Take the inverse FFT.
The Wikipedia article states that circulant matrix–vector products and nonsingular linear systems can be computed with the FFT in O(n log n) arithmetic operations. James Cooley and John Tukey published their FFT algorithm in Mathematics of Computation in 1965. For n = 2²⁰, about a million, n² is about 1.1 × 10¹² while n log₂ n is about 2.1 × 10⁷, a ratio of roughly 50,000 before the constant factors of the FFT are counted. Solving Cx = b is as quick: divide by the eigenvalues in step 2, which works when none of them is zero.
Why is a circulant product the same as circular convolution?
The Wikipedia article says multiplication by a circulant matrix is circular convolution. With rows defined as above, Cx is the circular convolution of x with the first column of C.
In the example the first column is h = (1, 3, 2). Take x = (1, 0, 2). Row by row, Cx = (1 + 6, 3 + 4, 2 + 2) = (7, 7, 4). By convolution, entry k is the sum of h(k − j) x(j) with indices mod 3: 1·1 + 2·0 + 3·2 = 7, then 3·1 + 1·0 + 2·2 = 7, then 2·1 + 3·0 + 1·2 = 4. Same answer.
So the convolution theorem (the DFT turns convolution into pointwise multiplication) and circulant diagonalisation are two views of one fact. For the continuous version, see convolution of functions explained with flip and slide.
If roots of unity or eigenvectors feel shaky, the Fermi Concept Library has a lesson for every concept in mathematics, and the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



