For complex vectors z in Cⁿ, zᵀz is the wrong length: for z = (1, i) it gives 1 + i² = 0. The right length squared is z̄ᵀz = |z₁|² + ⋯ + |zₙ|², written zᴴz (H for Hermite: transpose and conjugate together); (1, i) has length √2. The inner product is yᴴx. Symmetric becomes Hermitian, Aᴴ = A (real diagonal, entries 3 + i and 3 − i across it); such matrices have real eigenvalues and perpendicular eigenvectors. Orthonormal columns now mean qᵢᴴqⱼ = 0 or 1, i.e. QᴴQ = I, and a square Q of that kind is unitary. The Fourier matrix Fₙ has entries Wⁱʲ (i, j from 0 to n − 1), with W = e^(2πi/n), the first n-th root of 1 on the unit circle; for n = 4, W = i. Its columns are orthogonal, each of length √n, so Fₙ⁻¹ is Fₙᴴ/n. The fast Fourier transform rests on W₆₄² = W₃₂: F₆₄ = [I D; I −D] [F₃₂ 0; 0 F₃₂] P, where P puts the even components before the odd ones and D = diag(1, W, …, W³¹). Repeating the split brings the cost of multiplying by Fₙ down from n² to ½n log₂ n: for n = 1024, about 5 · 1024 instead of 1024², a factor of about 200.
A vectorz=(z1,…,zn) with complex components lives in Cn, complex n-dimensional space (p. 2). The old zTz is no good. For z=(1,i) it gives 1+i2=0, and that vector does not have length zero (pp. 2–3). Each component must be multiplied by its conjugate, zˉ1z1=∣z1∣2, as on the symmetric matrices page (p. 3):
Length squared
∥z∥2=zˉTz=zHz=∣z1∣2+∣z2∣2+⋯+∣zn∣2
In words
the norm of z squared equals z bar ^ capital T z equals z to the power H z equals the absolute value of z sub 1 squared plus the absolute value of z sub 2 squared plus and so on plus the absolute value of z sub n squared
For (1,i): 1⋅1+(−i)(i)=1+1=2, so the length is 2, not zero (p. 4). The message: whenever we transpose, we also conjugate. One symbol does both, H, after Hermite (who did not pronounce the H); zH is read "zHermitian" (p. 4). The inner product follows (p. 4):
Inner product
yHx=yˉ1x1+⋯+yˉnxn
In words
y to the power H x equals y one bar x one plus and so on plus y sub n bar x sub n
Symmetric becomes Hermitian (pp. 5–6). For complex matrices the right version of AT=A is AˉT=A, written AH=A. The diagonal must be real, and entries across the diagonal are conjugates. Strang's example (p. 5):
A Hermitian matrix
A=(23−i3+i5)=AH
In words
capital A equals 2 3 plus i; 3 minus i 5 equals capital A to the power H
q sub i to the power H q sub j equals 0 when i is not equal to j; or 1 when i equals j is equivalent to capital Q to the power H capital Q equals capital I
A square matrix with such columns is called unitary instead of orthogonal (p. 7). The textbook has a short dictionary between the real words for Rn and the complex ones for Cn (p. 7).
Electrical engineers count from zero, and for this half hour Strang does too (p. 8). The n×nFourier matrix has a first column of ones and then columns of powers of one number W (pp. 8–9):
F sub n equals 1 1 1 and so on 1; 1 W W squared and so on W to the power n minus 1, end of power; 1 W squared W to the power 4 and so on W to the power 2 the quantity n minus 1, end of power; and so on and so on and so on and so on and so on; 1 W to the power n minus 1, end of power, W to the power 2 the quantity n minus 1, end of power, and so on W to the power the quantity n minus 1, all squared, end of power, ( F sub n ) sub j k equals W to the power j k
The indices run from 0 to n−1 (p. 9). (Strang says the third column ends at "W to the two n−1"; the exponent is 2(n−1).) The matrix is symmetric in the old, not quite right, sense, and full: no entry is zero (p. 9). W is the special number whose n-th power is 1 (p. 10):
The root of unity
W=e2πi/n=cosn2π+isinn2π,Wn=1
In words
W equals e to the power 2 pi i over n, end of power, equals cos 2 pi over n plus i sine 2 pi over n, W to the power n equals 1
It sits on the unit circle, 1/n of the way round. For powers, the polar form is the useful one: W10=e20πi/n at once (p. 10). For n=6, W is at 60°, and its powers W2,…,W6=1 walk round the circle: the six sixth roots of one, of which W is the primitive one (pp. 10–11). For n=4, W=eiπ/2=i, and the exponent is the row number times the column number (pp. 11–12):
F four equals 1 1 1 1; 1 i i squared i cubed; 1 i squared i to the power 4 i to the power 6; 1 i cubed i to the power 6 i to the power 9 equals 1 1 1 1; 1 i minus 1 minus i; 1 minus 1 1 minus 1; 1 minus i minus 1 i
Multiplying by F4 or by F4−1 is the four-point Fourier transform or its inverse (p. 12). Strang guesses that Fourier knew the inverse, and that what Fourier did not notice (he thinks Gauss noticed it, without making a point of it) is that Fn factors into pieces with many zeros (pp. 12–13).
Orthogonal columns (pp. 13–14). Take the second and fourth columns (Strang first calls them "two and four", then counts from zero: one and three). Without conjugating, the products are 1+1+1+1, not zero. With the conjugate, the i and −i change sign and the sum is zero: the columns are perpendicular (pp. 13–14). Each column has length squared 1+1+1+1=4, so dividing by 2 makes them orthonormal (p. 14):
Inverse of F4
(21F4)H(21F4)=I,F4−1=41F4H
In words
( one half F four ) to the power H ( one half F four ) equals capital I, F four to the power minus 1 equals one quarter F four to the power H
Anything good about F4 therefore holds for its inverse, which is just its conjugate transpose, scaled (p. 14). (Strang keeps the 21 inside the matrix and says the inverse is the conjugate transpose; the 41 above is that statement for F4 itself.) The same holds for every n: the columns of Fn are orthogonal with length squared n, so Fn−1=FnH/n; Strang shows it for n=4.
The key is a connection between F64 and F32, half as big, as between F6 and F3 or F8 and F4 (p. 15). W64 is 641 of the way round the circle; squaring doubles the angle (p. 15):
So F64 can be built from two copies of F32 with two fix-up factors (pp. 15–16):
FFT factorisation
F64=(IID−D)(F3200F32)P,D=1W⋱W31
In words
F sixty-four equals capital I D; capital I minus D F thirty-two 0; 0 F thirty-two capital P, D equals 1; W; and so on down the diagonal; W to the power 31
Here W=W64. P is the odd–even permutation: it puts the even-numbered components x0,x2,x4,… first and the odd ones x1,x3,… after them, which costs nothing (p. 16). The middle factor is half zeros: two 32×32 transforms cost 2⋅322 instead of 642 (pp. 16–17). The fix-up costs the 32 multiplications by D; the I's cost nothing (p. 16). Strang does not check the algebra here; it is a matter of sums coming out right (p. 17).
Recursion (pp. 17–18). Each F32 splits the same way into two F16's, and the permutations together sort the vector into even-evens (x0,x4,x8,…), even-odds and so on (p. 17). Going all the way down from 64 to 32, 16, 8, 4, 2 and 1 takes six steps, log264, and each level's fix-up costs 32, half of 64 (p. 18):
For n=210=1024: n2 is over a million, while 21⋅1024⋅10=5⋅1024. That is a reduction by a factor of about 200, "just by factoring the matrix properly" (p. 19). It all hinged on a special matrix with orthogonal columns (p. 19).
Worked example
Complex lengths and an FFT count
(a) Find the length of z=(2−i,1+3i). (b) Show that B=(12−i2+i5) is Hermitian and find its eigenvalues. (c) How much faster is the FFT than ordinary multiplication for n=4096?
(a) Length
zHz=∣2−i∣2+∣1+3i∣2=(4+1)+(1+9)=15, so ∥z∥=15. (Plain zTz=(2−i)2+(1+3i)2=(3−4i)+(−8+6i)=−5+2i, not even real.)
(b) Hermitian
The diagonal1,5 is real and 2+i, 2−i are conjugates, so BH=B. Trace6, determinant5−(2+i)(2−i)=5−5=0: λ2−6λ=0, eigenvalues0 and 6, both real as promised.
(c) Count
n=212: n2=16777216, while 21nlog2n=21⋅4096⋅12=24576. The FFT is about 683 times faster.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
At right angles; more generally, of two vectors or functions, having a dot product, or an integral of their product, of zero. Explained in Introduction to Fourier series.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).