The spectral theorem of Section 4 gives every normal
matrix a unitary of its own, found by solving that
matrix’s eigenvalue problem. This section does something
better for one particular family: it writes down a
single unitary matrix, before any
matrix of the family is named, and that one matrix
diagonalizes all of them at once. The family is the
circulants, the unitary is built from the -th roots of unity, and
the resulting dictionary between multiplying matrices
and multiplying numbers is the discrete Fourier
transform.
Two earlier pages pointed here. In Example (Which of these are normal?)
(d) a
matrix whose rows were cyclic shifts of one another
turned out to be normal, with the row dot products and
the column dot products agreeing entry for entry; Exercise (B2: A circulant, diagonalized)
met the same phenomenon again and diagonalized one such
matrix by hand. Both times the agreement was described
and not explained. It is explained below, and the
explanation is the first theorem of the section.
Throughout, the field is , and rows,
columns and vector entries are numbered . That is a departure from the rest
of the book, and it is worth it: every formula here
involves an index read modulo , and modular arithmetic
starts at .
Matrices
whose rows walk around
Fix and
let
be the matrix with when and otherwise:
a in each
position
for , one
more in the corner position , and zeros
elsewhere. For , Applied to a vector, moves every entry one
place up and sends the top entry around to the bottom:
. We call the cyclic
shift. Each row and each column of carries exactly one
, so is a permutation
matrix (Definition 3.4.2),
and shifting
times returns every entry to where it started, so .
Now think of
as a building block. The powers are the distinct “rotations of
the identity”, and a general linear combination of them
is the object of this section.
A circulant is a matrix that does not know where
the list begins: shift the indices and nothing
changes.
Definition
12.9.1 (Circulant matrix)
Let and
let . The
circulant with first row is the matrix whose
entries are where the subscript is read
modulo . The
polynomial is called the symbol of .
In words: the entry in a given position depends only
on how far the column is to the right of the diagonal,
counted cyclically. Written out, so each row is the row above it moved one step
to the right, with the entry that falls off the
right-hand end reappearing on the left. The columns
behave the same way going down. Note that the data is
one vector of length , not numbers: a circulant
is a very small object wearing a large costume.
Three examples, simplest first. The vector
gives , and
gives ; in both cases the definition is checked by
reading off , which is exactly when , respectively , modulo . The vector
gives the all-ones matrix. The matrix of Example (Which of these are normal?)
(d) is the circulant with first row , and the matrix
of Exercise (B2: A circulant, diagonalized)
is the circulant with first row .
Our running example for the whole section is the
circulant with first row :
A non-example by minimal change. Keep the first row
but
let the entries that fall off the end vanish instead of
wrapping around, giving a matrix with rows , , , . Every diagonal
of is still
constant, and its first row is still , but while the
definition demands . The clause that fails is the one
that does all the work here: the subscript must be read
modulo . Matrices
with constant diagonals and no wrap-around have their
own name and their own theory, and the warning at the
end of the section says why they do not fit into this
one.
The reason a circulant is worth a name is that it is
a polynomial in the shift.
Theorem
12.9.1 (Circulants Are Exactly the Polynomials
in the Shift)
Let
and let be the
circulant with first row , with symbol . Then:
- (a) ;
conversely,
is a circulant for every .
- (b) is the circulant
with first row .
- (c) is normal, and any two
circulants of the same size commute.
Idea. For (a), read off the entries
of : it has a
in position exactly when modulo . So is the circulant
that picks out the coefficient , and summing over
rebuilds one coefficient at a
time. Once (a) is in hand, (b) and (c) are arithmetic
with the single relation : the
adjoint of a polynomial in is again a polynomial
in , and two
polynomials in one matrix always commute (Theorem 0.9.9).
Proof.
(a) We claim that
if
and otherwise, for every . For this says . Assuming it
for , expand one
product: , and the only
non-zero factor sits at , so the sum
is , which is exactly when . This
proves the claim by induction. Hence, for each and , because exactly one value of in
satisfies . So .
Conversely, let . Dividing by (Theorem 6.1.1) gives
with , and gives , which is the
circulant whose first row is the coefficient list of
.
(b) is a permutation
matrix with real entries, so
(Lemma 3.4.7 (b)),
and because . Therefore
For
the term is , and for
we
have . So the coefficient of is when and when , which is
the stated first row.
(c) By (a) and
(b), both and
are
polynomials in ,
and any two polynomials in the same matrix commute (Theorem 0.9.9). Hence
. The same argument applies to two
circulants and .
That settles the coincidence noticed in Example (Which of these are normal?)
(d) and again in Exercise (B2: A circulant, diagonalized)
(a). It is worth seeing it once at the level of entries,
because the entries are what those pages compared. For
any , writing for
its columns and for its rows, the definition of the
matrix product gives So “normal” says exactly that the table of
column inner products and the table of row inner
products agree. Now let be a circulant, so that .
Re-index the first sum by and the second by ; as runs through all
residues modulo ,
so does in each
case. This gives all subscripts modulo . Both tables depend
only on , and
they are literally the same sum. Cyclic shifting is what
makes the re-indexing legal, and that is the whole of
the coincidence.
Quick check. Which vectors give a
circulant that is Hermitian? Answer for with real
entries.
Solution. By Theorem 12.9.1
(b),
forces and for
.
For with real
entries this reads , with and unconstrained: the
symmetric real circulants are exactly those whose first row
has the form .
The
eigenvectors of the shift
Everything now follows from one eigenvalue problem,
the one for .
Since ,
any eigenvalue satisfies , so the
candidates are the -th roots of unity of Example (Roots of Unity).
There are of them
and is an matrix, which
is encouraging. The eigenvectors are equally
explicit.
Fix so that are the distinct -th roots of unity, and
if
and only if
divides (Example (Roots of Unity)).
Theorem
12.9.2 (Eigenvectors of the Cyclic
Shift)
For let that is, . Then .
Consequently is
a unitary matrix with the distinct eigenvalues
, and each eigenspace is the
line .
Idea. The shift moves entry into slot . If the entries are the
successive powers of a fixed number , that is the same as
multiplying the whole vector by — provided the
wrap-around at the end also multiplies by , which is exactly the
condition .
So the geometric vectors with are forced on us,
and there are of
them.
Proof. Fix and let . By the
description of ,
the -th entry of
is the -st entry of , indices modulo
. For this is and for it is , while because . The two
agree, so . Each is non-zero, since
its -th entry is
, so is an
eigenvalue.
The matrix is
a real permutation matrix, so by Lemma 3.4.7 (b),
and ;
hence is unitary
(Definition 11.7.2).
The numbers are distinct, so has distinct eigenvalues,
and the sum of their eigenspaces is direct (Corollary 9.2.3). Each
of those
eigenspaces has dimension at least and their dimensions
add up to at most , so each has dimension exactly . Since
is non-zero, that eigenspace is .
The vectors are called the Fourier
vectors. They are already known to be pairwise
orthogonal: is
unitary, hence normal, and eigenvectors of a normal
matrix for distinct eigenvalues are orthogonal (Corollary 12.3.4).
But the direct computation is short, it produces the
normalization at the same time, and it is the
computation on which the rest of the section runs. So we
do it.
Theorem
12.9.3 (The Fourier Matrix Is Unitary)
The list is an orthonormal basis of
.
Equivalently, the Fourier matrix whose -th column is , is unitary: .
Proof. Let . Since
we have , hence , and so the inner product being linear in the first
slot and conjugate-linear in the second.
Case . Then , so every one of the terms equals and the sum is . Hence , and .
Case . Put . Then . Also : by Example (Roots of Unity),
would force to
divide , and
makes that impossible. Now use the
factorization which is a polynomial identity valid for every
complex . Since
, we
may divide by it, and Hence .
So the list is orthonormal; it has members and
is independent (Theorem 11.1.4),
hence a basis (Theorem 1.6.4). A
matrix whose columns form an orthonormal basis of is unitary (Theorem 11.7.3
(f)), which gives .
The second case is where the whole section lives. A
sum of unit
complex numbers, spread evenly around the circle,
cancels — and it cancels for the cheapest possible
reason, that a geometric series with ratio and telescopes to
zero.
Example
(The Fourier matrix of size four)
Write out for
, and check
one orthogonality relation by hand.
Solution. For , , and the powers cycle , , , . So Take , .
Then , and matching the geometric-series computation with
, for which
. Note that is symmetric, , but
not Hermitian: , since .
One
unitary for every circulant
Theorem
12.9.4 (Circulant Diagonalization)
Let be the circulant with first row and symbol . Then every
Fourier vector is an eigenvector of , and consequently The same unitary works for every
circulant of size , and .
Idea. There is nothing left to
prove. A circulant is a polynomial in by Theorem 12.9.1,
and a polynomial in a matrix acts on an eigenvector of
that matrix by the same polynomial applied to the
eigenvalue. The point is not the proof but the
statement: was
written down without reference to , so a single change of
orthonormal basis handles the entire family at once.
Proof. By Theorem 12.9.1
(a), , and by Theorem 12.9.2,
. Iterating the latter gives
for every , so
The -th column
of is , so the -th column of is ,
which is the -th
column of for
. Hence , and
multiplying on the left by (Theorem 12.9.3)
gives . Taking determinants, , since (Theorem 7.5.4).
This re-proves normality from the other side, and
closes the account opened in Example (Which of these are normal?)
(d): with unitary and diagonal is precisely
the factorization that Corollary 12.4.3
reserves for normal matrices. The eigenvalues need no
characteristic polynomial either: they are evaluations of a
polynomial of degree less than .
Example
(The running example, diagonalized)
Find the eigenvalues and the determinant of the
circulant with
first row , and write down .
Solution. Here , and . Evaluate at the four fourth roots of
unity, using and : So with as in Example (The Fourier matrix of size four),
and using . As a check on the first eigenvalue: every
row of sums to
, so , and
.
Solution. If every is real then for every . Taking and using
, so the eigenvalue attached to and the one attached
to are
conjugate. Here and the pair is : . The
eigenvalues for and, when is even, are their own
conjugates, hence real — which is why and came out real. (This
is also Theorem 9.2.5, seen
here with the eigenvectors named.)
Once every circulant is , the family
closes up on itself.
Corollary
12.9.5 (Circulants Form a Commutative
Algebra)
Let be the set of circulants of size . Then:
- (a) is a subspace of
of
dimension , with
basis ;
- (b) is closed under
products, and any two of its members commute;
- (c) if and only
if is
diagonal;
- (d) a circulant
is invertible if
and only if
for every , and
then is
again a circulant.
Proof.
(a) The map
from to is linear and,
by Theorem 12.9.1
(a), its image is exactly . It is injective,
because the first row of is . So is a subspace of
dimension , and
the images of the standard basis form a basis of
it.
(b) If and , then
(Theorem 0.9.9), which
is a circulant by Theorem 12.9.1
(a). Commutativity is part (c) of that theorem.
(c) is Theorem 12.9.4.
Suppose . The numbers are distinct, so by Lagrange
interpolation (Theorem 6.6.1) there
is
with for every . By Theorem 12.9.4
applied to the circulant , which has symbol
the remainder of
on division by , Multiplying both sides by on the left and on the right gives
, so
is a
circulant.
(d) From , , so is invertible exactly
when no diagonal entry vanishes
(Theorem 7.5.2). In
that case , and
is diagonal, so is a circulant by
(c).
Part (c) is the sharpest statement of the section:
being a circulant is not a statement about the pattern
of the entries at all, but a statement about which
orthonormal basis diagonalizes the matrix. The pattern
was only ever a way of recognizing it.
Multiplying circulants is convolution
A circulant is its first row. So the product of two
circulants must be computable from the two first rows,
and it is worth knowing what that computation is.
Given , define their cyclic
convolution by subscripts modulo . In words: to get entry
, slide the
reversed list
along so that
the indices add up to , and add the products.
It is the multiplication of polynomials with the
exponents read modulo , and the next theorem
says so.
Theorem
12.9.6 (Convolution Theorem)
Let with circulants and symbols
.
Then:
- (a) is the
circulant with first row ;
- (b) for every , .
In words: convolving the first rows corresponds to
multiplying the eigenvalue lists entry by entry.
Idea. Both parts are the identity
, looked at twice.
Multiplying the two symbols produces a polynomial of
degree up to ;
reducing the exponents modulo folds the coefficients
back into slots,
and the fold is precisely the convolution sum.
Evaluating at a root of makes the reduction invisible, which is
(b); substituting , for which , makes it
invisible as well, which is (a).
Proof. Expand the product of the
symbols and collect exponents modulo : For each , the pairs with
are exactly those with , one value of for each . Hence, working modulo
and using
,
(a) Substitute
. Since , the multiple
of
contributes nothing, so the first equality by Theorem 12.9.1 (a)
and Theorem 0.9.9. By Theorem 12.9.1 (a)
again, is the circulant with first row , the
coefficient list having length .
(b) Substitute
, a
root of , so
that the multiple of again contributes nothing. This gives .
Part (b) deserves its own sentence, because it is the
reason the discrete Fourier transform is used at all.
Define the discrete Fourier transform
of to
be the vector of eigenvalues, the second expression because the -th entry of is . Then (b) reads the transform turns convolution into entrywise
multiplication. Convolution is a tangled sum of products; after one
unitary change of basis it is ordinary
multiplications. Everything the transform buys comes
from this line.
Example
(Convolution in size four)
Let and . Compute , and verify Theorem 12.9.6 (b)
at all four roots of unity.
Solution. Since and , the sum
keeps only the terms with or , that is and . So , subscripts modulo : The three symbols are , and . Evaluating each at , with already computed
in Example (The running example, diagonalized):
All four agree. For the middle line, .
Solving a
circulant system, and a word about speed
If
with an
invertible circulant, then in the Fourier basis the
system falls apart into scalar equations.
Writing and setting , , the system
becomes ,
that is with . Then . Three steps:
transform, divide, transform back.
Example
(A circulant system)
Solve
for the circulant with first row and .
Solution. The eigenvalues are by Example (The running example, diagonalized).
First transform :
the -th entry of
is , so Now divide. The two zero entries stay zero,
and where the middle step multiplies numerator and
denominator by , whose product with is . Finally , whose -th entry is : Check directly: the second row of is , and ; the third row is , and . The
answer is real, as it must be: and are real, so is real,
and this shows up in the transform as the conjugate
symmetry .
Counted honestly, the recipe above saves something,
but not yet very much. Forming as a
matrix–vector product costs about multiplications, and
so does forming , so the whole solve
costs on the order of . That beats general
elimination, which is on the order of , but it is no better
than multiplying
by once
that inverse has been found. What changes the picture is
that does not
have to be applied as a general matrix. The powers of
repeat, and
splitting the sum into its even and odd reduces one transform
of length to two
of length ;
iterating brings the cost down to about . That algorithm
is the fast Fourier transform. It
proves no new theorem: the matrix , the factorization
and
everything above are unchanged, and the fast Fourier
transform is only a way of applying quickly. Chapter 24
develops it, together with the cost accounting that
makes “quickly” precise.
Warning. A
Toeplitz matrix — one with constant
diagonals, with the subscript not
reduced modulo —
is not a circulant, and does not diagonalize
it. Take Every diagonal of is constant, so is Toeplitz, but the
circulant with first row is , whose second row is
, not
. And
fails at the
very first column: and , which is not a multiple of , so is not an
eigenvector and is not
diagonal. Normality is not the issue: is symmetric, hence
normal, and Theorem 12.5.1
does hand it an orthonormal eigenbasis. It is simply a
different basis, with the irrational eigenvalues in place of
evaluations of a polynomial at roots of unity. What the
wrap-around buys is not diagonalizability; it is the
same diagonalizing basis for everybody.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define the
circulant with first row , and write down its
symbol.
- (b) State the
eigenvalues and the eigenvectors of the cyclic shift
on .
- (c) Give the
eigenvalues of the circulant with first row , and say how many
multiplications are needed to compute all of them from
by direct
evaluation.
- (d) Determine
whether the following are true, with a reason. (i) Every
Toeplitz matrix is a circulant. (ii) Every circulant is
normal. (iii) The Fourier matrix is Hermitian.
- (e) Explain in one
sentence why two circulants of the same size commute,
without computing any entries.
Solution.
(a) The matrix
with , subscripts modulo and indices running
from to (Definition 12.9.1).
Its symbol is .
(b) With :
the eigenvalues are , all distinct, and
has the
one-dimensional eigenspace spanned by (Theorem 12.9.2).
(c) The
eigenvalues are for
(Theorem 12.9.4).
Each evaluation is a sum of products, so all of them cost about
multiplications
done directly.
- (d)
- (i) False: the matrix in the
warning above has constant diagonals but is not a
circulant. (ii) True, by Theorem 12.9.1
(c); equivalently by Corollary 12.4.3,
since . (iii) False. is symmetric, but
,
and for the
entry is not real (Example (The Fourier matrix of size four)).
is Hermitian
only for ,
where all its entries are real.
(e) Both are
polynomials in the single matrix (Theorem 12.9.1
(a)), and two polynomials in one matrix always commute
(Theorem 0.9.9).
B. Practice
Exercise
(B1: Eigenvalues of small circulants)
For each vector , write down the
symbol, compute all eigenvalues of the circulant with
first row , and
give its determinant.
- (a) , .
- (b) , .
- (c) ,
.
Solution.
(a) .
With , the eigenvalues are and for . For , satisfies
and , so — the geometric-series computation of Theorem 12.9.3
again. The eigenvalues are and . (This matrix
is the all-ones matrix, of rank .)
(b) , so . The eigenvalues
are , namely , and This agrees with the sign of the permutation:
permutes the
coordinates in one -cycle, which is
odd.
(c) .
Then ;
; ; . The eigenvalues are , and . The kernel
contains , that
is the all-ones vector, as one sees directly: every row
of sums to .
Exercise
(B2: Solve a circulant system by transforming)
Let be the
circulant with first row and let . Compute the eigenvalues of
, and solve by
transforming, dividing and transforming back. Check your
answer against the first two rows of .
Solution. The symbol is ,
and with , All four are non-zero, so is invertible (Corollary 12.9.5
(d)), with .
Transform:
for every , since
. Divide:
, giving . Transform back: the -th entry of is For
and the two
middle terms cancel, since is when ; the bracket
is , so
. For the bracket is , so . For
it is , so .
Hence Check: row of is and ; row is and .
Exercise
(B3: The convolution theorem in an example)
Let and in .
- (a) Compute .
- (b) Verify for .
- (c) Hence write down
the first row of the product of the two circulants,
without multiplying any matrices.
Solution.
(a) Only and are non-zero, so
, subscripts modulo . With :
(b) The symbols
are , and . With : Here and , and similarly at the other roots. All four
rows agree.
(c) By Theorem 12.9.6
(a), the product is the circulant with first row .
C. Going deeper
Exercise
(C1: What commutes with the shift)
Let satisfy . Prove that
is a circulant.
Hint: consider the eigenspaces of .
Solution. By Theorem 12.9.2,
has the distinct eigenvalues
, and
is one-dimensional. Since commutes with , each eigenspace of
is invariant
under (Theorem 9.9.1). So
, that is for some
.
Therefore the -th column of is , which is the
-th column of
for . Hence and is
diagonal, so is
a circulant by Corollary 12.9.5
(c). This proves the converse of Theorem 12.9.1 (c)
for the single matrix : the commutant of the
cyclic shift is exactly the algebra of circulants.
Exercise
(C2: Determinant and invertibility)
Let be the
circulant with first row and symbol .
- (a) Prove that , and use it to compute the
determinant of the all-ones matrix for every .
- (b) Prove that is invertible if and
only if and
are coprime
in .
- (c) Give an example
of a
circulant with integer entries, none of them , whose determinant is
.
Solution.
- (a) This is the last
claim of Theorem 12.9.4:
from and , multiplicativity of the
determinant (Theorem 7.5.4) gives
,
which is the product of the diagonal entries .
For the all-ones matrix, and
. Then , while for
the
number satisfies and , so . Hence for every , as it must be,
since all the rows are equal.
(b) By (a), if and only
if for every , that is, if and only
if and have no common
root, the roots of being exactly (Example (Roots of Unity)).
Over , having no
common root is the same as having no common non-constant
factor: such a factor would have a root by Theorem 6.5.1, and
that root would be common to both; conversely a common
root makes
a common
factor. So invertibility of is equivalent to and being coprime (Definition 6.2.3).
Combined with Theorem 7.5.2, this
is the statement asked for.
(c) Take , so
Here , so by (a). The
reason is visible without any of the theory — rows and are equal — and the
Fourier picture names a kernel vector: , and since
is real, the
real and imaginary parts of are in the kernel
too, giving .
Exercise
(C3: The real orthogonal form of a real
circulant)
Let be the circulant with first row , with
eigenvalues as in Example (The running example, diagonalized).
Put the real and imaginary parts taken
entrywise.
- (a) Write and out, and show that
is an orthonormal basis of .
- (b) Writing ,
prove that and .
- (c) Hence write down
the matrix of in
the ordered basis of (a), and identify it as an instance
of Theorem 12.5.3.
Hint for (b): apply to
and compare real and imaginary parts.
Solution.
(a) With , , so Also and are real, so all four
vectors lie in . Each has norm
: for instance
and . They are pairwise orthogonal for the real
dot product. First , because the non-zero entries sit in
different slots, and . The four remaining pairings are Four orthonormal vectors are independent (Theorem 11.1.4) and
there are of them, so they form a basis (Theorem 1.6.4).
(b) From and we get . Its eigenvalue is , so and , and reads
Both
and are real
vectors, because , and are real. Comparing
real parts gives , and comparing imaginary parts gives
,
that is . With and , A direct check: ,
while .
(c) Reading the
coordinates of the images off (b), the matrix in the
ordered basis is since has rows and . This is exactly the shape promised by Theorem 12.5.3 for
a real normal operator: two blocks for the
real eigenvalues, and one rotation-scaling block for the
conjugate pair, with . The change of basis is orthogonal,
because the basis is orthonormal.