1. Home
  2. Explore
  3. Mathematics
  4. Circulant Matrices

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Circulant Matrices

Speaker 1Speaker 2

Circulant Matrices

8:39
0:00-8:39
  1. Michael

    Today we’re looking at circulant matrices, and how they connect convolution, image processing, and the discrete Fourier transform. One quick course note from the lecture: the project was the remaining assignment, with the final class as the latest deadline. The instructor also invited students to share a little about their projects, and said he would read and grade them himself.

  2. Simon

    Good context. So, what makes a matrix circulant? The striking thing is that an entire N-by-N matrix is determined by just N numbers, rather than N squared entries.

  3. Michael

    Exactly. Give me the first row, say c-zero through c-sub-N-minus-one, and the rest of the rows follow by shifting those entries cyclically. Each diagonal is constant, and when a diagonal reaches the edge, it wraps around to the other side. That wraparound is what makes the matrix circulant.

  4. Simon

    And multiplying by one of these matrices has a signal-processing interpretation: it applies a cyclic convolution. The word cyclic matters, because the entries that move past one end of the vector reappear at the other end.

  5. Michael

    There’s a closely related but broader idea: convolution without that wraparound. A matrix with constant diagonals is called a Toeplitz matrix; in engineering, you might hear it called a filter or a convolution matrix. These matrices describe linear, shift-invariant operations: the same pattern of weights is applied at every position.

  6. Simon

    That shared pattern is especially useful for images. An image can have an enormous number of pixel features—one million for a thousand-by-thousand grayscale image, or three million if it has three color channels. An unrestricted matrix acting on that feature vector would require an unmanageable number of weights.

  7. Michael

    A convolution-style matrix avoids assigning a completely separate weight to every pixel interaction. It reuses the same operation at different positions, so the number of weights can be far smaller—on the scale of the filter’s entries rather than the square of the image dimension. That’s why these ideas are relevant to image processing and machine learning.

  8. Simon

    The lecture also mentioned pooling as a separate way to reduce the image size. For example, take a three-by-three block of pixels and replace those nine values with their maximum. That makes the representation smaller, but taking a maximum is not a linear operation, so it’s distinct from convolution.

  9. Michael

    Right. A convolution filter can also do a recognizable signal-processing job. A simple low-pass filter might average a pixel with its neighbor—for instance, using weights of one-half and one-half. That tends to reduce rapid changes, such as speckled noise, while leaving a constant, low-frequency pattern largely unchanged.

  10. Simon

    So circulants are the especially tidy, cyclic case, while Toeplitz matrices capture the more general noncyclic convolution. And the reason to focus on circulants is that their cyclic structure makes the Fourier connection particularly clear.

  11. Michael

    Let’s start that connection with a permutation matrix P that shifts the entries of a vector by one place and wraps the last entry around to the top. It’s an orthogonal matrix: shifting doesn’t change a vector’s length, so P-transpose times P is the identity. Consequently, all its singular values are one.

  12. Simon

    But singular values aren’t the same as eigenvalues. For this shift matrix, the eigenvalues are more revealing. Since shifting N times returns the vector to its starting position, P to the Nth power is the identity. If a vector is an eigenvector with eigenvalue lambda, that implies lambda to the Nth power is one.

  13. Michael

    So the eigenvalues are the Nth roots of unity, spaced evenly around the unit circle in the complex plane. For a four-by-four shift, they’re one, minus one, i, and minus i. For an eight-by-eight shift, they’re the eight equally spaced roots of one. If we set w equal to e to the two-pi-i-over-N, those roots are powers of w.

  14. Simon

    That’s our first glimpse of Fourier: evenly spaced points on the unit circle. But eigenvalues alone don’t tell the whole story. We also want the eigenvectors, and the special structure of this shift matrix helps us find them.

  15. Michael

    Before writing them down, it’s useful to recall the matrix families with orthogonal eigenvectors. Real symmetric matrices have orthogonal eigenvectors and real eigenvalues. Orthogonal matrices, including shifts, rotations, and reflections, preserve lengths, so their eigenvalues have magnitude one.

  16. Simon

    And real skew-symmetric, or antisymmetric, matrices satisfy A-transpose equals minus A. The two-by-two example with rows zero, one and minus one, zero is a ninety-degree rotation; its eigenvalues are i and minus i. There’s no real direction that stays pointing the same way under that rotation, which is why complex numbers enter.

  17. Michael

    The broad complex category tying these examples together is the normal matrices. A normal matrix has a complete set of orthogonal eigenvectors; in complex notation, it can be written using a unitary eigenvector matrix and a diagonal matrix of eigenvalues. The quick test is M-star M equals M M-star, where M-star means conjugate transpose.

  18. Simon

    For a real matrix, the conjugate transpose reduces to the ordinary transpose. For a complex matrix, though, we must conjugate as well as transpose. That distinction matters for Fourier matrices, whose entries are generally complex.

  19. Michael

    Now return to the shift matrix P. Every circulant matrix can be built as a combination of powers of P, because those powers perform the successive cyclic shifts. So once we know P’s eigenvectors, we know eigenvectors for every circulant matrix.

  20. Simon

    There’s another useful way to see why circulants behave so well: multiplying two circulant matrices gives another circulant matrix, and any two circulants commute. In particular, a circulant commutes with its conjugate transpose, so it is normal and has orthogonal eigenvectors.

  21. Michael

    Let’s make the eigenvectors concrete with a four-entry shift. The vector one, one, one, one is unchanged by the shift, so it belongs to eigenvalue one. The alternating vector one, minus one, one, minus one changes sign under the shift, so it belongs to eigenvalue minus one.

  22. Simon

    For the eigenvalues i and minus i, the corresponding vectors use successive powers of i or minus i. More generally, for an N-entry shift, the eigenvectors are built from powers of w, the same roots of unity that appeared as eigenvalues. The exact order of the powers depends on whether we define the shift as moving entries up or down, but the Fourier pattern is the same.

  23. Michael

    Put those eigenvectors side by side as columns and you get the Fourier matrix. Its entries are powers of w; with rows and columns numbered from zero, the entry in row j and column k is w to the jk. This is the eigenvector matrix shared by all circulants of that size.

  24. Simon

    The columns are orthogonal, but as written they aren’t unit length. Each has N entries of magnitude one, so its length is the square root of N. Divide the Fourier matrix by the square root of N and the columns become orthonormal.

  25. Michael

    Why are different columns orthogonal? Their inner product reduces to a sum of powers of a root of unity. For the first column and another column, that sum is one plus w plus w squared, continuing around the circle. The roots are symmetrically distributed, so the nonconstant sum cancels to zero.

  26. Simon

    For three points, for example, one plus e to the two-pi-i-over-three plus e to the four-pi-i-over-three equals zero. A neat way to see it is to call that sum S and multiply it by e to the two-pi-i-over-three. The terms cycle, giving the same sum S; since the multiplier isn’t one, the only possibility is S equals zero.

  27. Michael

    That root-of-unity cancellation is the key to the Fourier matrix’s orthogonality. It also shows how the periodic structure of a circulant leads directly to Fourier analysis: shifts are represented by these Fourier eigenvectors, and circulants act on those same modes.

  28. Simon

    And that’s why the discrete Fourier transform is so important in both mathematics and engineering. The Fourier matrix diagonalizes circulant matrices, turning a structured convolution problem into a description in terms of its Fourier modes. The lecture pointed ahead to the fast Fourier transform as an efficient algorithm built from this connection.

  29. Michael

    So the chain of ideas is: cyclic shifts produce roots of unity as eigenvalues; their eigenvectors form the Fourier matrix; and every circulant shares those eigenvectors. Along the way, we saw why convolution is useful for images, why normal matrices explain orthogonality, and why Fourier methods are a natural tool whenever shifting and periodicity are involved.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent