BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 10: complex matrices, similar matrices and the SVD

Seven problems of our own on Lectures 26, 28 and 29: lengths and inner products of complex vectors, the eigenvalues of a Hermitian matrix, the four-point Fourier matrix and its inverse, the counting behind the fast Fourier transform, similar matrices, Jordan blocks and how fragile they are, and the singular value decomposition of a square and of a rectangular matrix.

You need this first

Full reading path (31 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
  11. Properties of determinants (18.06)
  12. Determinant formulas and cofactors (18.06)
  13. Cramer's rule, the inverse matrix and volume (18.06)
  14. Column space and nullspace (18.06)
  15. Eigenvalues and eigenvectors (18.06)
  16. Diagonalisation and powers of A (18.06)
  17. Solving Ax = 0: pivot variables and special solutions (18.06)
  18. Solving Ax = b: the complete solution (18.06)
  19. Independence, basis and dimension (18.06)
  20. The four fundamental subspaces (18.06)
  21. Orthogonal vectors and subspaces (18.06)
  22. Projections onto subspaces (18.06)
  23. Projection matrices and least squares (18.06)
  24. Symmetric matrices and positive definiteness (18.06)
  25. Differential equations and exp(At) (18.06)
  26. Orthogonal matrices and Gram–Schmidt (18.06)
  27. Markov matrices and Fourier series (18.06)
  28. Complex matrices and the fast Fourier transform (18.06)
  29. Positive definite matrices and minima (18.06)
  30. Similar matrices and the Jordan form (18.06)
  31. Singular value decomposition (18.06)
On this page · 9 sections
  1. How to answer
  2. What you need from the lessons
  3. Problem 1
  4. Problem 2
  5. Problem 3
  6. Problem 4
  7. Problem 5
  8. Problem 6
  9. Problem 7

This set practises three lessons: complex matrices and the fast Fourier transform (Lecture 26), similar matrices and the Jordan form (Lecture 28) and the singular value decomposition (Lecture 29). Lecture 27, on positive definite matrices and minima, belongs to Problem Set 9.

MIT's 18.06 problem sets assign exercises from a textbook that is not openly licensed, so this set is made of our own problems on the same lectures, in MIT's lecture order. No MIT or textbook problem is used: every matrix and every number below is ours, and so are the hints and the solutions. The formulas come from the lessons and from the lecture transcripts they cite.

How to answer#

Work each problem on paper first. Then type or choose your result in the answer box and press Check.

Give a number answer to 3 significant figures and keep 4 in intermediate steps; an answer with only 2 significant figures may or may not be accepted. Where a box needs more digits, its label says so.

A number box wants a decimal number, not a fraction or a root: write 0.250.25, not 1/41/4. Every number box accepts any value within 0.010.01 of the exact one, so give at least two decimal places when the answer is not a whole number. A complex number cannot be typed: its real part and its imaginary part have a box each (for 3−5i3 - 5i the real part is 33 and the imaginary part is −5-5). A matrix cannot be typed either: a box asks for one of its entries, its eigenvalues or its singular values, or you choose the matrix from a list. Entries are numbered by row, then column, starting from 1 (so b12b_{12} is in the first row, second column), except in the Fourier matrix, whose rows and columns count from 0 as in the lecture.

A formula box takes plain typing, for example (a + 1)/sqrt(2*a), and accepts every correct way of writing the answer. Type ε\varepsilon as eps, and sqrt( ) for a square root.

Some parts ask you to show something. They have no answer box: write your argument, then open the solution and mark yourself. MIT gives no points for these problems: the points here (100 in all) and their split between the parts are ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.

What you need from the lessons#

Complex vectors and matrices (Lecture 26). For complex vectors, transposing always goes with conjugating; the superscript HH does both. The length squared and the inner product are

Length and inner product in Cⁿ
∥z∥2=zHz=∣z1∣2+⋯+∣zn∣2,yHx=yˉ1x1+⋯+yˉnxn\|z\|^2 = z^Hz = |z_1|^2 + \cdots + |z_n|^2, \qquad y^Hx = \bar y_1x_1 + \cdots + \bar y_nx_n
In words

the norm of z squared equals z^ capital H z equals the absolute value of z sub 1 squared plus and so on plus the absolute value of z sub n squared, y^ capital H x equals y one bar x one plus and so on plus y sub n bar x sub n

A Hermitian matrix has AH=AA^H = A: a real diagonal and conjugate entries across it. Its eigenvalues are real and its eigenvectors perpendicular (p. 6 of the transcript). The Fourier matrix FnF_n has entries WjkW^{jk}, with rows and columns counted from 0:

The Fourier matrix
(Fn)jk=Wjk,W=e2πi/n,F4=(11111i−1−i1−11−11−i−1i)(F_n)_{jk} = W^{jk}, \qquad W = e^{2\pi i/n}, \qquad F_4 = \begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & i & -1 & -i \\ 1 & -1 & 1 & -1 \\ 1 & -i & -1 & i \end{pmatrix}
In words

( F sub n ) sub j k equals W to the power j k, W equals e to the power 2 pi i over n, end of power, F four equals 1 1 1 1; 1 i minus 1 minus i; 1 minus 1 1 minus 1; 1 minus i minus 1 i

Its inverse
F4−1=14F4HF_4^{-1} = \tfrac14F_4^H
In words

F four to the power minus 1 equals one quarter F four ^ capital H

The fast Fourier transform builds F2mF_{2m} from two copies of FmF_m, with the diagonal D=diag⁡(1,W,…,Wm−1)D = \operatorname{diag}(1, W, \dots, W^{m-1}) of W=W2mW = W_{2m} and the permutation PP that puts the even-numbered components before the odd ones (shown in the lecture for 2m=642m = 64):

One step of the FFT
F2m=(IDI−D)(Fm00Fm)P,W2m2=WmF_{2m} = \begin{pmatrix} I & D \\ I & -D \end{pmatrix}\begin{pmatrix} F_m & 0 \\ 0 & F_m \end{pmatrix}P, \qquad W_{2m}^2 = W_m
In words

F sub 2 m equals capital I capital D; capital I minus capital D F sub m 0; 0 F sub m capital P, W sub 2 m squared equals W sub m

Repeating the step brings the cost from n2n^2 down to 12nlog⁡2n\frac12n\log_2n multiplications (pp. 18–19).

Similar matrices (Lecture 28). BB is similar to AA when B=M−1AMB = M^{-1}AM for an invertible MM. Similar matrices have the same eigenvalues; an eigenvector xx of AA becomes the eigenvector M−1xM^{-1}x of BB:

Similar matrices
B=M−1AM,Ax=λx  ⇒  B(M−1x)=λ(M−1x)B = M^{-1}AM, \qquad Ax = \lambda x \;\Rightarrow\; B(M^{-1}x) = \lambda(M^{-1}x)
In words

capital B equals capital M to the power minus 1 capital A capital M, capital A x equals lambda x which gives capital B ( capital M to the power minus 1 x) equals lambda ( capital M to the power minus 1 x)

Every square matrix is similar to a Jordan matrix JJ, with one Jordan block (one eigenvalue on its diagonal, ones just above it) for each independent eigenvector:

Jordan form
A=MJM−1,J=(J1⋱Jd)A = MJM^{-1}, \qquad J = \begin{pmatrix} J_1 & & \\ & \ddots & \\ & & J_d \end{pmatrix}
In words

capital A equals capital M capital J capital M to the power minus 1, capital J equals capital J one; and so on down the diagonal; capital J sub d

For a rectangular AA, ATAA^TA is positive definite exactly when AA has independent columns, because xTATAx=∥Ax∥2x^TA^TAx = \|Ax\|^2 (pp. 4–5).

The SVD (Lecture 29). Every matrix factors as A=UΣVTA = U\Sigma V^T. The vv's are orthonormal eigenvectors of ATAA^TA, the σ2\sigma^2's its eigenvalues, and each viv_i goes to a multiple of uiu_i:

The SVD
A=UΣVT,ATA=VΣTΣVT,Avi=σiuiA = U\Sigma V^T, \qquad A^TA = V\Sigma^T\Sigma V^T, \qquad Av_i = \sigma_iu_i
In words

capital A equals capital U capital sigma capital V ^ capital T, capital A ^ capital T capital A equals capital V capital sigma ^ capital T capital sigma capital V ^ capital T, capital A v sub i equals sigma sub i u sub i

The uu's are the eigenvectors of AATAA^T (p. 10); their signs are matched to the vv's by taking ui=Avi/σiu_i = Av_i/\sigma_i. The first rr vv's and uu's are orthonormal bases of the row space and the column space; the rest are orthonormal bases of the nullspace and the left nullspace (pp. 17–18).

Problem 1#

Problem

Complex vectors and a Hermitian matrix

14 points

Take the complex vectors

Two complex vectors
z=(1+2i2−i),y=(i1)z = \begin{pmatrix} 1 + 2i \\ 2 - i \end{pmatrix}, \qquad y = \begin{pmatrix} i \\ 1 \end{pmatrix}
In words

z equals 1 plus 2 i; 2 minus i, y equals i; 1

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 1 (our own problem)

and, for a real number aa, the matrix

A matrix with a real parameter
A=(a1−i1+i2)A = \begin{pmatrix} a & 1 - i \\ 1 + i & 2 \end{pmatrix}
In words

capital A equals a 1 minus i; 1 plus i 2

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 1 (our own problem)

(a)4 points

Find ∥z∥2\|z\|^2 and the inner product yHzy^Hz.

Hint

Each component of zz is multiplied by its own conjugate: ∣p+qi∣2=p2+q2|p + qi|^2 = p^2 + q^2.

Hint

In yHzy^Hz the components of yy are conjugated, not those of zz. The conjugate of ii is −i-i.

Solution

The idea. In Cn\mathbf{C}^n every transpose comes with a conjugate: ∥z∥2=zHz\|z\|^2 = z^Hz and the inner product is yHzy^Hz.

The length

∣1+2i∣2=1+4=5|1 + 2i|^2 = 1 + 4 = 5 and ∣2−i∣2=4+1=5|2 - i|^2 = 4 + 1 = 5, so

Length squared of z
∥z∥2=zHz=5+5=10\|z\|^2 = z^Hz = 5 + 5 = 10
In words

the norm of z squared equals z^ capital H z equals 5 plus 5 equals 10

The inner product

Conjugate yy to (−i,1)(-i, 1) and multiply:

The inner product
yHz=(−i)(1+2i)+(1)(2−i)=(−i+2)+(2−i)=4−2iy^Hz = (-i)(1 + 2i) + (1)(2 - i) = (-i + 2) + (2 - i) = 4 - 2i
In words

y^ capital H z equals (-i) the quantity 1 plus 2 i, all plus (1) the quantity 2 minus i, equals the quantity minus i plus 2, all plus the quantity 2 minus i, equals 4 minus 2 i

The real part is 44, the imaginary part −2-2.

Check

Without the conjugate, yTz=i(1+2i)+(2−i)=(i−2)+(2−i)=0y^Tz = i(1 + 2i) + (2 - i) = (i - 2) + (2 - i) = 0: the old rule would wrongly call yy and zz perpendicular, just as it gave (1,i)(1, i) the length zero in the lecture. In the other order, zHyz^Hy is the conjugate 4+2i4 + 2i, so the order matters for the imaginary part.

(b)6 points

Check that AA is Hermitian for every real aa (this check has no box). Find its larger eigenvalue as a formula in aa, and its smaller eigenvalue for a=3a = 3. For which values of aa is AA positive definite?

Hint

For a 2×22 \times 2 matrix the eigenvalues solve λ2−(trace)λ+det⁡=0\lambda^2 - (\text{trace})\lambda + \det = 0. In the determinant, multiply the two off-diagonal entries with each other carefully.

Hint

A Hermitian matrix is positive definite when both its eigenvalues are positive: their sum is the trace and their product the determinant.

Solution

The idea. Hermitian means AH=AA^H = A. The eigenvalues come from the trace and the determinant, and the determinant needs the product of two conjugates.

Hermitian

The diagonal entries aa and 22 are real, and 1−i1 - i and 1+i1 + i are conjugates of each other. So transposing and conjugating gives AA back: AH=AA^H = A (p. 5 of the Lecture 26 transcript).

The eigenvalues

The trace is a+2a + 2 and the determinant is 2a−(1−i)(1+i)=2a−22a - (1 - i)(1 + i) = 2a - 2. So

Eigenvalues of A
λ2−(a+2)λ+(2a−2)=0,λ=a+2±(a+2)2−4(2a−2)2=a+2±(a−2)2+82\lambda^2 - (a + 2)\lambda + (2a - 2) = 0, \qquad \lambda = \frac{a + 2 \pm \sqrt{(a + 2)^2 - 4(2a - 2)}}{2} = \frac{a + 2 \pm \sqrt{(a - 2)^2 + 8}}{2}
In words

lambda squared minus the quantity a plus 2, lambda plus the quantity 2 a minus 2, equals 0, lambda equals the quantity a plus 2 plus or minus the square root of the quantity a plus 2, all squared minus 4 the quantity 2 a minus 2, end of root, all over 2 equals the quantity a plus 2 plus or minus the square root of the quantity a minus 2, all squared plus 8, end of root, all over 2

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 1(b) (our own solution)

The term under the root is at least 88, so both eigenvalues are real for every aa, as they must be for a Hermitian matrix. For a=3a = 3: (5±1+8)/2=(5±3)/2(5 \pm \sqrt{1 + 8})/2 = (5 \pm 3)/2, so the eigenvalues are 44 and 11.

Positive definite

Both eigenvalues are positive when their product 2a−22a - 2 and their sum a+2a + 2 are positive. The first needs a>1a > 1, and then the second holds too. So AA is positive definite exactly for a>1a > 1. At a=1a = 1 the determinant is zero and one eigenvalue is 00.

Check

For a=3a = 3: 4+1=54 + 1 = 5 is the trace and 4⋅1=4=2⋅3−24 \cdot 1 = 4 = 2 \cdot 3 - 2 is the determinant. And A−4I=(−11−i1+i−2)A - 4I = \begin{pmatrix} -1 & 1 - i \\ 1 + i & -2 \end{pmatrix} has determinant 2−2=02 - 2 = 0, as it should.

(c)4 points

Show that for any Hermitian matrix AA and any complex vector xx the number xHAxx^HAx is real. Use this to show that every eigenvalue of a Hermitian matrix is real.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

A number is real when it equals its own conjugate. xHAxx^HAx is a 1×11 \times 1 matrix: what is its conjugate transpose?

Hint

For an eigenvector, Ax=λxAx = \lambda x. Multiply on the left by xHx^H and look at both sides.

Solution

The idea. A 1×11 \times 1 matrix that equals its conjugate transpose is a real number.

xHAxx^HAx is real

The conjugate transpose of a product is the product of the conjugate transposes in reverse order, and (xH)H=x(x^H)^H = x:

The quadratic form is real
(xHAx)H=xHAH(xH)H=xHAx(x^HAx)^H = x^HA^H(x^H)^H = x^HAx
In words

(x^ capital H capital A x)^ capital H equals x^ capital H capital A ^ capital H (x^ capital H )^ capital H equals x^ capital H capital A x

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 1(c) (our own solution)

For a 1×11 \times 1 matrix the conjugate transpose is just the conjugate, so xHAxx^HAx equals its own conjugate: it is real.

The eigenvalues are real

Let Ax=λxAx = \lambda x with x≠0x \neq 0. Multiply on the left by xHx^H:

An eigenvalue as a ratio of real numbers
xHAx=λ xHx,λ=xHAxxHxx^HAx = \lambda\,x^Hx, \qquad \lambda = \frac{x^HAx}{x^Hx}
In words

x^ capital H capital A x equals lambda x^ capital H x, lambda equals x^ capital H capital A x over the quantity x^ capital H x

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 1(c) (our own solution)

The top is real by the first step, and the bottom is ∥x∥2\|x\|^2, real and positive. So λ\lambda is real. This is the fact the lecture states for Hermitian matrices (Lecture 26 transcript, p. 6).

Check

Part (b) agrees: the eigenvalues of AA came out real for every aa. A matrix that is not Hermitian can fail: (01−10)\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} has eigenvalues ±i\pm i, and its xHAxx^HAx for x=(1,i)x = (1, i) is 2i2i, not real.

Problem 2#

Problem

The four-point Fourier matrix

16 points

Use the matrix F4F_4 of "What you need", with rows and columns numbered 0,1,2,30, 1, 2, 3. Take the real vector x=(1,2,0,−1)x = (1, 2, 0, -1), with components x0,x1,x2,x3x_0, x_1, x_2, x_3.

(a)6 points

Compute y=F4xy = F_4x, with components y0,y1,y2,y3y_0, y_1, y_2, y_3.

Hint

Row jj of F4F_4 holds the powers i0,ij,i2j,i3ji^{0}, i^{j}, i^{2j}, i^{3j}. Write out each row times xx and collect the real and the imaginary parts.

Solution

The idea. Multiply row by row; the entries of F4F_4 are only 1,i,−1,−i1, i, -1, -i.

Row by row

The transform of x
y=F4x=(1+2+0−11+2i+0−(−i)1−2+0−(−1)1−2i+0−i)=(21+3i01−3i)y = F_4x = \begin{pmatrix} 1 + 2 + 0 - 1 \\ 1 + 2i + 0 - (-i) \\ 1 - 2 + 0 - (-1) \\ 1 - 2i + 0 - i \end{pmatrix} = \begin{pmatrix} 2 \\ 1 + 3i \\ 0 \\ 1 - 3i \end{pmatrix}
In words

y equals F four x equals 1 plus 2 plus 0 minus 1; 1 plus 2 i plus 0 minus (-i); 1 minus 2 plus 0 minus (-1); 1 minus 2 i plus 0 minus i equals 2; 1 plus 3 i; 0; 1 minus 3 i

Source: 18.06 Lecture 26 transcript (Prof. Strang), pp. 11–12 (the matrix; the product is our own)

In row 1, the last term is (−i)(−1)=+i(-i)(-1) = +i; in row 3 it is i⋅(−1)=−ii \cdot (-1) = -i.

Check

y0y_0 is the plain sum of the components, 1+2+0−1=21 + 2 + 0 - 1 = 2. And because xx is real, y3y_3 is the conjugate of y1y_1: row 3 of F4F_4 is the conjugate of row 1. Part (b) checks the lengths.

(b)4 points

Find ∥y∥2\|y\|^2 for the yy of part (a), and compare it with ∥x∥2\|x\|^2 (this check has no box).

Hint

Use the complex length: add ∣yj∣2|y_j|^2 for the four components.

Solution

The idea. Each ∣yj∣2|y_j|^2 is a real part squared plus an imaginary part squared.

The length

Length squared of y
∥y∥2=22+∣1+3i∣2+02+∣1−3i∣2=4+10+0+10=24\|y\|^2 = 2^2 + |1 + 3i|^2 + 0^2 + |1 - 3i|^2 = 4 + 10 + 0 + 10 = 24
In words

the norm of y squared equals 2 squared plus the absolute value of 1 plus 3 i squared plus 0 squared plus the absolute value of 1 minus 3 i squared equals 4 plus 10 plus 0 plus 10 equals 24

Source: 18.06 Lecture 26 transcript (Prof. Strang), pp. 3–5 (the length; the numbers are our own)

Compare

∥x∥2=1+4+0+1=6\|x\|^2 = 1 + 4 + 0 + 1 = 6, and 24=4⋅624 = 4 \cdot 6. That is no accident: the columns of F4F_4 are orthogonal with length squared 44, so F4HF4=4IF_4^HF_4 = 4I and

Lengths under F4
∥F4x∥2=xHF4HF4x=4 xHx=4∥x∥2\|F_4x\|^2 = x^HF_4^HF_4x = 4\,x^Hx = 4\|x\|^2
In words

the norm of F four x squared equals x^ capital H F four ^ capital H F four x equals 4 x^ capital H x equals 4 the norm of x squared

Source: 18.06 Lecture 26 transcript (Prof. Strang), p. 14 (orthogonal columns; the length rule is our own)

Check

The same rule with x=(1,0,0,0)x = (1, 0, 0, 0) gives y=(1,1,1,1)y = (1, 1, 1, 1), of length squared 4=4⋅14 = 4 \cdot 1.

(c)3 points

Which vector xx has F4x=(0,2,0,2)F_4x = (0, 2, 0, 2)?

Hint

Do not solve four equations: use the inverse F4−1=14F4HF_4^{-1} = \frac14F_4^H. Since F4F_4 is symmetric, F4HF_4^H is simply F4F_4 with every entry conjugated.

Solution

The idea. The inverse of F4F_4 is its conjugate transpose divided by 44.

Apply the inverse

Only components 1 and 3 of the right-hand side are nonzero, so xx is 24\frac24 times the sum of columns 1 and 3 of Fˉ4\bar F_4, which are (1,−i,−1,i)(1, -i, -1, i) and (1,i,−1,−i)(1, i, -1, -i):

The inverse transform
x=14F4H(0202)=24[(1−i−1i)+(1i−1−i)]=(10−10)x = \tfrac14F_4^H\begin{pmatrix} 0 \\ 2 \\ 0 \\ 2 \end{pmatrix} = \tfrac24\left[\begin{pmatrix} 1 \\ -i \\ -1 \\ i \end{pmatrix} + \begin{pmatrix} 1 \\ i \\ -1 \\ -i \end{pmatrix}\right] = \begin{pmatrix} 1 \\ 0 \\ -1 \\ 0 \end{pmatrix}
In words

x equals one quarter F four ^ capital H 0; 2; 0; 2 equals two quarters the quantity 1; minus i; minus 1; i plus 1; i; minus 1; minus i, equals 1; 0; minus 1; 0

Source: 18.06 Lecture 26 transcript (Prof. Strang), p. 14 (the inverse; the numbers are our own)

Check

Forward again: F4(1,0,−1,0)F_4(1, 0, -1, 0) is column 0 minus column 2 of F4F_4, (1,1,1,1)−(1,−1,1,−1)=(0,2,0,2)(1, 1, 1, 1) - (1, -1, 1, -1) = (0, 2, 0, 2). Lengths agree with part (b): ∥(0,2,0,2)∥2=8=4⋅2\|(0, 2, 0, 2)\|^2 = 8 = 4 \cdot 2. The vector (0.5,0,−0.5,0)(0.5, 0, -0.5, 0) would give half the right-hand side.

(d)3 points

Show that the columns of FnF_n are orthogonal for every nn: for two different columns kk and ll (both between 00 and n−1n - 1), the inner product of column kk with column ll is zero. Show also that every column has length squared nn.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

WW lies on the unit circle, so its conjugate is 1/W1/W. Write the inner product as one sum of powers of a single number.

Hint

That sum is a geometric series. What is WnW^n?

Solution

The idea. With conjugates, the inner product of two columns is a geometric series of a root of unity, and such a series adds up to zero.

One sum

Column kk has entries WjkW^{jk} for j=0,…,n−1j = 0, \dots, n - 1. Since ∣W∣=1|W| = 1, Wˉ=W−1\bar W = W^{-1}, and the inner product of column kk with column ll is

Inner product of two columns
∑j=0n−1Wjk‾ Wjl=∑j=0n−1(Wl−k)j\sum_{j=0}^{n-1}\overline{W^{jk}}\,W^{jl} = \sum_{j=0}^{n-1}\left(W^{l-k}\right)^j
In words

the sum over j equals 0 of to the power n minus 1, end of power, W to the power j k bar W to the power j l equals the sum over j equals 0 of to the power n minus 1, end of power, (W to the power l minus k, end of power, ) to the power j

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 2(d) (our own solution)

The geometric series

Put q=Wl−kq = W^{l-k}. For k≠lk \neq l the exponent l−kl - k lies between −(n−1)-(n - 1) and n−1n - 1 and is not zero, so q≠1q \neq 1 (WW goes once round the circle in nn steps). And qn=(Wn)l−k=1q^n = (W^n)^{l-k} = 1. So

The series adds to zero
∑j=0n−1qj=qn−1q−1=1−1q−1=0\sum_{j=0}^{n-1}q^j = \frac{q^n - 1}{q - 1} = \frac{1 - 1}{q - 1} = 0
In words

the sum over j equals 0 of to the power n minus 1, end of power, q to the power j equals the quantity q to the power n minus 1, all over the quantity q minus 1, equals the quantity 1 minus 1, all over the quantity q minus 1, equals 0

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 2(d) (our own solution)

For k=lk = l every term is qj=1q^j = 1, and the sum is nn: every column has length squared nn.

Check

For n=4n = 4, columns 1 and 3 give q=i2=−1q = i^2 = -1 and the sum 1−1+1−1=01 - 1 + 1 - 1 = 0, as the lecture found for those two columns (Lecture 26 transcript, pp. 13–14). Together the two results say FnHFn=nIF_n^HF_n = nI, so Fn−1=FnH/nF_n^{-1} = F_n^H/n.

Problem 3#

Problem

Counting the fast Fourier transform

12 points

(a)4 points

For n=8n = 8, the root is W8=e2πi/8W_8 = e^{2\pi i/8}. Which number is W82W_8^2? And what is the real part of W83W_8^3, the last entry of the diagonal DD that builds F8F_8 from two copies of F4F_4?

Hint

Squaring a number on the unit circle doubles its angle. W8W_8 is at the angle 2π/82\pi/8.

Solution

The idea. Powers of W8W_8 walk round the unit circle in steps of 45°45°.

The square

W82=e4πi/8=eiπ/2=iW_8^2 = e^{4\pi i/8} = e^{i\pi/2} = i, which is W4W_4: the rule W2m2=WmW_{2m}^2 = W_m with m=4m = 4 (Lecture 26 transcript, p. 15).

The cube

The third power of W8
W83=e6πi/8=cos⁡135°+isin⁡135°=−22+i 22W_8^3 = e^{6\pi i/8} = \cos 135° + i\sin 135° = -\frac{\sqrt2}{2} + i\,\frac{\sqrt2}{2}
In words

W eight cubed equals e to the power 6 pi i over 8, end of power, equals cos 135° plus i sine 135° equals minus the square root of 2 over 2 plus i the square root of 2 over 2

Source: 18.06 Lecture 26 transcript (Prof. Strang), p. 10 (the polar form; the numbers are our own)

The real part is −2/2≈−0.7071-\sqrt2/2 \approx -0.7071. The diagonal is D=diag⁡(1,W8,W82,W83)D = \operatorname{diag}(1, W_8, W_8^2, W_8^3).

Check

W88=e2πi=1W_8^8 = e^{2\pi i} = 1, and W84=eiπ=−1W_8^4 = e^{i\pi} = -1: the second half of the circle repeats the first with a minus sign, which is why the FFT step needs DD and −D-D only.

(b)4 points

Do one step of the fast Fourier transform by hand for F4F_4 and the vector x=(1,2,0,−1)x = (1, 2, 0, -1) of Problem 2. Here D=diag⁡(1,i)D = \operatorname{diag}(1, i) and F2=(111−1)F_2 = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}. First split xx into its even part (x0,x2)(x_0, x_2) and its odd part (x1,x3)(x_1, x_3), and apply F2F_2 to each. Give the second entry of F2(x1,x3)F_2(x_1, x_3). Then show that the factorisation gives the same yy as Problem 2(a) (this last step has no box).

Hint

F2F_2 adds and subtracts: F2(p,q)=(p+q,p−q)F_2(p, q) = (p + q, p - q).

Hint

Call the two results g=F2(x0,x2)g = F_2(x_0, x_2) and h=F2(x1,x3)h = F_2(x_1, x_3). The fix-up gives the top half as g+Dhg + Dh and the bottom half as g−Dhg - Dh.

Solution

The idea. The permutation sorts the components, two half-size transforms do most of the work, and the diagonal DD glues them.

The two half transforms

The even part is (1,0)(1, 0) and the odd part (2,−1)(2, -1):

Two half transforms
g=F2(10)=(11),h=F2(2−1)=(13)g = F_2\begin{pmatrix} 1 \\ 0 \end{pmatrix} = \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \qquad h = F_2\begin{pmatrix} 2 \\ -1 \end{pmatrix} = \begin{pmatrix} 1 \\ 3 \end{pmatrix}
In words

g equals F two 1; 0 equals 1; 1, h equals F two 2; minus 1 equals 1; 3

Source: 18.06 Lecture 26 transcript (Prof. Strang), pp. 15–16 (the split; the numbers are our own)

The fix-up

Dh=(1⋅1,i⋅3)=(1,3i)Dh = (1 \cdot 1, i \cdot 3) = (1, 3i). The top half is g+Dh=(2,1+3i)g + Dh = (2, 1 + 3i) and the bottom half g−Dh=(0,1−3i)g - Dh = (0, 1 - 3i). Together:

The assembled transform
y=(g+Dhg−Dh)=(21+3i01−3i)y = \begin{pmatrix} g + Dh \\ g - Dh \end{pmatrix} = \begin{pmatrix} 2 \\ 1 + 3i \\ 0 \\ 1 - 3i \end{pmatrix}
In words

y equals g plus capital D h; g minus capital D h equals 2; 1 plus 3 i; 0; 1 minus 3 i

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 3(b) (our own solution)

This is the yy of Problem 2(a).

Check

The count: the two F2F_2's take 2⋅22=82 \cdot 2^2 = 8 multiplications if done as full matrices, and DD takes 22, so 8+2=108 + 2 = 10 in all, against 42=164^2 = 16 for F4F_4 directly. (Multiplying by 11 or by ii is free in practice; the count is the one of the lecture.)

(c)4 points

Let n=2kn = 2^k. With the FFT, multiplying by FnF_n costs 12nlog⁡2n\frac12n\log_2n multiplications. Write this count as a formula in kk. Then find how many times fewer multiplications the FFT needs than the plain n2n^2 for n=216n = 2^{16}.

Hint

log⁡22k=k\log_2 2^k = k. There are kk levels of splitting, and each level costs the multiplications by its diagonals.

Solution

The idea. Put n=2kn = 2^k into the lecture's count and divide.

The count in k

FFT count for n=2kn = 2^k
12 nlog⁡2n=12⋅2k⋅k=k 2k−1\tfrac12\,n\log_2n = \tfrac12 \cdot 2^k \cdot k = k\,2^{k-1}
In words

one half n log sub 2 n equals one half times 2 to the power k times k equals k 2 to the power k minus 1, end of power

Source: 18.06 Lecture 26 transcript (Prof. Strang), pp. 18–19 (the count; the form in k is our own)

The ratio

Saving for n=216n = 2^{16}
n212nlog⁡2n=2nlog⁡2n=21716=213=8192\frac{n^2}{\frac12n\log_2n} = \frac{2n}{\log_2n} = \frac{2^{17}}{16} = 2^{13} = 8192
In words

n squared over the quantity one half n log sub 2 n, equals 2 n over the quantity log sub 2 n, equals 2 to the power 17 over 16 equals 2 to the power 13 equals 8192

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 3(c) (our own solution)

In numbers: n2=4 294 967 296n^2 = 4\,294\,967\,296 and 16⋅215=524 28816 \cdot 2^{15} = 524\,288.

Check

The lecture's case k=10k = 10 gives 10⋅29=5⋅102410 \cdot 2^9 = 5 \cdot 1024, as Strang found (Lecture 26 transcript, p. 19), and the ratio 211/10≈2052^{11}/10 \approx 205, Strang's "factor of 200".

Problem 4#

Problem

Two similar matrices

14 points

Take

A matrix and a change of basis
A=(3122),M=(1011)A = \begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}, \qquad M = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}
In words

capital A equals 3 1; 2 2, capital M equals 1 0; 1 1

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 4 (our own problem)

(a)5 points

Find B=M−1AMB = M^{-1}AM, entry by entry.

Hint

The inverse of MM just changes the sign of the entry below the diagonal. Compute AMAM first, then multiply by M−1M^{-1} on the left.

Solution

The idea. Multiply the three matrices; M−1M^{-1} is easy to write down.

The product

M−1=(10−11)M^{-1} = \begin{pmatrix} 1 & 0 \\ -1 & 1 \end{pmatrix}, and AM=(3+112+22)=(4142)AM = \begin{pmatrix} 3 + 1 & 1 \\ 2 + 2 & 2 \end{pmatrix} = \begin{pmatrix} 4 & 1 \\ 4 & 2 \end{pmatrix}. Then

The similar matrix
B=M−1AM=(10−11)(4142)=(4101)B = M^{-1}AM = \begin{pmatrix} 1 & 0 \\ -1 & 1 \end{pmatrix}\begin{pmatrix} 4 & 1 \\ 4 & 2 \end{pmatrix} = \begin{pmatrix} 4 & 1 \\ 0 & 1 \end{pmatrix}
In words

capital B equals capital M to the power minus 1 capital A capital M equals 1 0; minus 1 1 4 1; 4 2 equals 4 1; 0 1

Source: 18.06 Lecture 28 transcript (Prof. Strang), pp. 6–8 (similar matrices; the numbers are our own)

Check

BB is triangular, so its eigenvalues are its diagonal entries 44 and 11. AA has trace 55 and determinant 6−2=46 - 2 = 4, so λ2−5λ+4=0\lambda^2 - 5\lambda + 4 = 0 and its eigenvalues are also 44 and 11: similar matrices share their eigenvalues.

(b)3 points

x=(1,1)x = (1, 1) is an eigenvector of AA. Which vector is an eigenvector of BB for the same eigenvalue?

Hint

First find the eigenvalue from AxAx. Then start from Ax=λxAx = \lambda x, put MM−1MM^{-1} between AA and xx, and multiply on the left by M−1M^{-1}.

Solution

The idea. The eigenvalue stays and the eigenvector moves to M−1xM^{-1}x.

Move the eigenvector

The moved eigenvector
B(M−1x)=λ(M−1x),M−1x=(10−11)(11)=(10)B(M^{-1}x) = \lambda(M^{-1}x), \qquad M^{-1}x = \begin{pmatrix} 1 & 0 \\ -1 & 1 \end{pmatrix}\begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 1 \\ 0 \end{pmatrix}
In words

capital B ( capital M to the power minus 1 x) equals lambda ( capital M to the power minus 1 x), capital M to the power minus 1 x equals 1 0; minus 1 1 1; 1 equals 1; 0

Source: 18.06 Lecture 28 transcript (Prof. Strang), p. 11 (the rule; the numbers are our own)

Check

B(1,0)=(4,0)=4(1,0)B(1, 0) = (4, 0) = 4(1, 0). The vector (1,2)=Mx(1, 2) = Mx uses MM instead of M−1M^{-1}, and (1,1)(1, 1) is the eigenvector of AA itself: B(1,1)=(5,1)B(1, 1) = (5, 1), not a multiple of (1,1)(1, 1).

(c)3 points

Is each of these matrices similar to AA?

Three candidates
C1=(5−220),C2=(4111),C3=(1074)C_1 = \begin{pmatrix} 5 & -2 \\ 2 & 0 \end{pmatrix}, \qquad C_2 = \begin{pmatrix} 4 & 1 \\ 1 & 1 \end{pmatrix}, \qquad C_3 = \begin{pmatrix} 1 & 0 \\ 7 & 4 \end{pmatrix}
In words

capital C one equals 5 minus 2; 2 0, capital C two equals 4 1; 1 1, capital C three equals 1 0; 7 4

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 4(c) (our own problem)
Hint

Compare eigenvalues through the trace and the determinant. When the two eigenvalues are different, both matrices are similar to the same diagonal matrix.

Solution

The idea. With distinct eigenvalues the family of AA is every matrix with those eigenvalues; a different eigenvalue rules a matrix out.

Trace and determinant

C1C_1: trace 55, determinant 0+4=40 + 4 = 4, eigenvalues 44 and 11. C2C_2: trace 55 but determinant 4−1=34 - 1 = 3, so its eigenvalues (5±13)/2(5 \pm \sqrt{13})/2 differ from those of AA. C3C_3 is triangular with diagonal 1,41, 4.

The family

AA, C1C_1 and C3C_3 have the distinct eigenvalues 44 and 11, so each has two independent eigenvectors and is similar to Λ=diag⁡(4,1)\Lambda = \operatorname{diag}(4, 1): S1−1C1S1=Λ=S−1ASS_1^{-1}C_1S_1 = \Lambda = S^{-1}AS gives C1=(SS1−1)−1A (SS1−1)C_1 = (SS_1^{-1})^{-1}A\,(SS_1^{-1}). The same holds for C3C_3. So C1C_1 and C3C_3 are similar to AA, and C2C_2 is not, because similar matrices have the same eigenvalues (Lecture 28 transcript, pp. 7–10).

Check

The lecture's own example is the same: every matrix with eigenvalues 33 and 11 is in the family of (2112)\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} (Lecture 28 transcript, p. 10).

(d)3 points

Show that any two similar matrices have the same determinant and the same characteristic polynomial det⁡(A−λI)\det(A - \lambda I), and so the same trace.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

The determinant of a product is the product of the determinants, and det⁡M−1=1/det⁡M\det M^{-1} = 1/\det M. Write B−λIB - \lambda I as M−1(something)MM^{-1}(\text{something})M.

Solution

The idea. λI\lambda I commutes with MM, so B−λIB - \lambda I is similar to A−λIA - \lambda I by the same MM.

The determinant

det⁡B=det⁡M−1 det⁡A det⁡M=det⁡A\det B = \det M^{-1}\,\det A\,\det M = \det A, since det⁡M−1det⁡M=det⁡I=1\det M^{-1}\det M = \det I = 1.

The characteristic polynomial

Since M−1(λI)M=λIM^{-1}(\lambda I)M = \lambda I,

Same characteristic polynomial
det⁡(B−λI)=det⁡ ⁣(M−1(A−λI)M)=det⁡(A−λI)\det(B - \lambda I) = \det\!\left(M^{-1}(A - \lambda I)M\right) = \det(A - \lambda I)
In words

the determinant of the quantity capital B minus lambda capital I, equals the determinant of ( capital M to the power minus 1 the quantity capital A minus lambda capital I, capital M ) equals the determinant of the quantity capital A minus lambda capital I

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 4(d) (our own solution)

For an n×nn \times n matrix the coefficient of λn−1\lambda^{n-1} in this polynomial is (−1)n−1(-1)^{n-1} times the trace, so the traces agree as well.

Check

In part (a): det⁡A=4=4⋅1=det⁡B\det A = 4 = 4 \cdot 1 = \det B, and both traces are 55.

Problem 5#

Problem

Jordan blocks

16 points

Take

A matrix with a repeated eigenvalue
A=(2−114)A = \begin{pmatrix} 2 & -1 \\ 1 & 4 \end{pmatrix}
In words

capital A equals 2 minus 1; 1 4

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 5 (our own problem)

(a)5 points

Find the eigenvalue of AA (it is repeated), the number of independent eigenvectors, and the Jordan form JJ of AA.

Hint

The trace and the determinant give the characteristic polynomial. Then find the rank of A−λIA - \lambda I.

Solution

The idea. A repeated eigenvalue with only one eigenvector means one 2×22 \times 2 Jordan block.

The eigenvalue

The trace is 66 and the determinant 8+1=98 + 1 = 9, so λ2−6λ+9=(λ−3)2=0\lambda^2 - 6\lambda + 9 = (\lambda - 3)^2 = 0: λ=3\lambda = 3 twice.

The eigenvectors

A−3I=(−1−111)A - 3I = \begin{pmatrix} -1 & -1 \\ 1 & 1 \end{pmatrix} has rank 1, so its nullspace is a line: one independent eigenvector, x1=(1,−1)x_1 = (1, -1).

The Jordan form

AA is not 3I3I, the only matrix in its own family (Lecture 28 transcript, p. 14). So it is in the other family, whose best member is the Jordan block:

The Jordan form of A
J=(3103)J = \begin{pmatrix} 3 & 1 \\ 0 & 3 \end{pmatrix}
In words

capital J equals 3 1; 0 3

Source: 18.06 Lecture 28 transcript (Prof. Strang), pp. 13–15 (the two families; the numbers are our own)

Check

One block for one eigenvector, as in Jordan's theorem. The matrix (−310−3)\begin{pmatrix} -3 & 1 \\ 0 & -3 \end{pmatrix} has the right determinant but the wrong trace, and (2104)\begin{pmatrix} 2 & 1 \\ 0 & 4 \end{pmatrix} the right trace but determinant 88.

(b)4 points

Jordan's theorem promises an invertible MM with AM=MJAM = MJ. Its first column is an eigenvector x1x_1 of AA: take the one whose first entry is 11. Its second column x2x_2 must satisfy Ax2=λx2+x1Ax_2 = \lambda x_2 + x_1, that is (A−λI)x2=x1(A - \lambda I)x_2 = x_1, with λ\lambda the eigenvalue of part (a). Find the solution of the form x2=(p,0)x_2 = (p, 0): give pp.

Hint

Find x1x_1 from the nullspace of A−λIA - \lambda I. Then write out the first row of (A−λI)x2=x1(A - \lambda I)x_2 = x_1 with x2=(p,0)x_2 = (p, 0), and check the second row.

Solution

The idea. With λ=3\lambda = 3 and x1=(1,−1)x_1 = (1, -1) from part (a), the columns of AM=MJAM = MJ say Ax1=3x1Ax_1 = 3x_1 and Ax2=x1+3x2Ax_2 = x_1 + 3x_2: the one above the diagonal of JJ links the second column to the first.

Solve

The second column
(A−3I)(p0)=(−1−111)(p0)=(−pp)=(1−1)(A - 3I)\begin{pmatrix} p \\ 0 \end{pmatrix} = \begin{pmatrix} -1 & -1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} p \\ 0 \end{pmatrix} = \begin{pmatrix} -p \\ p \end{pmatrix} = \begin{pmatrix} 1 \\ -1 \end{pmatrix}
In words

the quantity capital A minus 3 capital I, p; 0 equals minus 1 minus 1; 1 1 p; 0 equals minus p; p equals 1; minus 1

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 5(b) (our own solution)

Both rows give p=−1p = -1, so x2=(−1,0)x_2 = (-1, 0).

Check

With M=(1−1−10)M = \begin{pmatrix} 1 & -1 \\ -1 & 0 \end{pmatrix} (determinant −1-1, so invertible): AM=(2+1−2+01−4−1+0)=(3−2−3−1)AM = \begin{pmatrix} 2 + 1 & -2 + 0 \\ 1 - 4 & -1 + 0 \end{pmatrix} = \begin{pmatrix} 3 & -2 \\ -3 & -1 \end{pmatrix} and MJ=(31−3−3−1+0)=(3−2−3−1)MJ = \begin{pmatrix} 3 & 1 - 3 \\ -3 & -1 + 0 \end{pmatrix} = \begin{pmatrix} 3 & -2 \\ -3 & -1 \end{pmatrix} too. So M−1AM=JM^{-1}AM = J. Computing JJ is not part of the lecture (Lecture 28 transcript, p. 20); here it takes one small system.

(c)4 points

Three 3×33 \times 3 matrices all have the eigenvalue 77 three times:

Three Jordan matrices
K1=(710070007),K2=(700071007),K3=(710071007)K_1 = \begin{pmatrix} 7 & 1 & 0 \\ 0 & 7 & 0 \\ 0 & 0 & 7 \end{pmatrix}, \qquad K_2 = \begin{pmatrix} 7 & 0 & 0 \\ 0 & 7 & 1 \\ 0 & 0 & 7 \end{pmatrix}, \qquad K_3 = \begin{pmatrix} 7 & 1 & 0 \\ 0 & 7 & 1 \\ 0 & 0 & 7 \end{pmatrix}
In words

capital K one equals 7 1 0; 0 7 0; 0 0 7, capital K two equals 7 0 0; 0 7 1; 0 0 7, capital K three equals 7 1 0; 0 7 1; 0 0 7

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 5(c) (our own problem)

How many independent eigenvectors do K1K_1 and K3K_3 have? Which of the three are similar to each other?

Hint

The eigenvectors fill the nullspace of K−7IK - 7I. Its dimension is 33 minus the rank.

Hint

Similar matrices have the same number of independent eigenvectors. Two matrices made of the same Jordan blocks, in another order, are similar: a permutation matrix MM reorders the blocks.

Solution

The idea. Count blocks: each Jordan block brings one eigenvector.

Ranks

K1−7IK_1 - 7I and K2−7IK_2 - 7I each have a single one, so rank 1 and a nullspace of dimension 3−1=23 - 1 = 2: two eigenvectors each. K3−7IK_3 - 7I has two ones in different rows and columns, rank 2, and a nullspace of dimension 1: one eigenvector, (1,0,0)(1, 0, 0).

Blocks

K1K_1 is a 2×22 \times 2 block followed by a 1×11 \times 1 block; K2K_2 is a 1×11 \times 1 block followed by a 2×22 \times 2 block; K3K_3 is one 3×33 \times 3 block. Reordering the basis vectors as (e2,e3,e1)(e_2, e_3, e_1), with the permutation matrix MM whose columns are e2e_2, e3e_3, e1e_1, turns K2K_2 into K1K_1: M−1K2M=K1M^{-1}K_2M = K_1. K3K_3 has a different number of eigenvectors from both, so it is similar to neither.

Check

This is the lecture's warning on a smaller scale: eigenvalues alone do not decide similarity. For the 4×44 \times 4 matrices of the lecture even the number of eigenvectors was not enough, and the block sizes (3+13 + 1 against 2+22 + 2) decided (Lecture 28 transcript, pp. 17–20). Here the block sizes 2+12 + 1 and 1+21 + 2 are the same, and 33 is different.

(d)3 points

Now change one entry of a Jordan block by a small amount ε>0\varepsilon > 0:

A nearby matrix
Aε=(51ε5)A_\varepsilon = \begin{pmatrix} 5 & 1 \\ \varepsilon & 5 \end{pmatrix}
In words

capital A epsilon equals 5 1; epsilon 5

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 5(d) (our own problem)

Find its larger eigenvalue as a formula in ε\varepsilon, and decide whether AεA_\varepsilon is diagonalisable for ε=10−6\varepsilon = 10^{-6}.

Hint

Write out det⁡(Aε−λI)=0\det(A_\varepsilon - \lambda I) = 0 and solve for λ−5\lambda - 5.

Solution

The idea. A small change in one entry splits the repeated eigenvalue, and two different eigenvalues mean two eigenvectors.

The eigenvalues

Eigenvalues of the nearby matrix
det⁡(Aε−λI)=(5−λ)2−ε=0,λ=5±ε\det(A_\varepsilon - \lambda I) = (5 - \lambda)^2 - \varepsilon = 0, \qquad \lambda = 5 \pm \sqrt\varepsilon
In words

the determinant of the quantity capital A epsilon minus lambda capital I, equals the quantity 5 minus lambda, all squared minus epsilon equals 0, lambda equals 5 plus or minus the square root of epsilon

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 5(d) (our own solution)

Diagonalisable

For ε=10−6\varepsilon = 10^{-6} the eigenvalues are 5.0015.001 and 4.9994.999. They are different, so AεA_\varepsilon has two independent eigenvectors and its Jordan form is the diagonal diag⁡(5.001,4.999)\operatorname{diag}(5.001, 4.999), not a Jordan block. A change of one part in a million in one entry changed JJ completely: this is why Strang calls the Jordan form numerically not a good thing (Lecture 28 transcript, p. 15).

Check

At ε=0\varepsilon = 0 the formula gives 55 twice, the Jordan block back. The eigenvalues still add to the trace 1010, and their product 25−ε25 - \varepsilon is the determinant.

Problem 6#

Problem

The SVD of a square matrix

16 points

Find the singular value decomposition of

A square matrix
A=(62−76)A = \begin{pmatrix} 6 & 2 \\ -7 & 6 \end{pmatrix}
In words

capital A equals 6 2; minus 7 6

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 6 (our own problem)

(a)6 points

Compute ATAA^TA and find the singular values σ1≥σ2\sigma_1 \geq \sigma_2.

Hint

The entries of ATAA^TA are the inner products of the columns of AA with each other.

Hint

The eigenvalues of ATAA^TA come from its trace and its determinant. The singular values are their positive square roots.

Solution

The idea. ATA=VΣTΣVTA^TA = V\Sigma^T\Sigma V^T: the eigenvalues of ATAA^TA are the σ2\sigma^2's.

AᵀA

The columns of AA are (6,−7)(6, -7) and (2,6)(2, 6), so

AᵀA for this matrix
ATA=(36+4912−4212−424+36)=(85−30−3040)A^TA = \begin{pmatrix} 36 + 49 & 12 - 42 \\ 12 - 42 & 4 + 36 \end{pmatrix} = \begin{pmatrix} 85 & -30 \\ -30 & 40 \end{pmatrix}
In words

capital A ^ capital T capital A equals 36 plus 49 12 minus 42; 12 minus 42 4 plus 36 equals 85 minus 30; minus 30 40

Source: 18.06 Lecture 29 transcript (Prof. Strang), pp. 6–8 (the method; the numbers are our own)

Its eigenvalues

The trace is 125125 and the determinant 3400−900=25003400 - 900 = 2500, so λ2−125λ+2500=0\lambda^2 - 125\lambda + 2500 = 0 and λ=(125±75)/2=100\lambda = (125 \pm 75)/2 = 100 or 2525. The singular values are σ1=100=10\sigma_1 = \sqrt{100} = 10 and σ2=25=5\sigma_2 = \sqrt{25} = 5.

Check

100+25=125100 + 25 = 125 and 100⋅25=2500100 \cdot 25 = 2500. Part (d) gives one more check through det⁡A\det A.

(b)5 points

Find the unit eigenvector v1v_1 of ATAA^TA for σ12\sigma_1^2 (take its second entry positive), and then u1u_1.

Hint

v1v_1 is in the nullspace of ATA−σ12IA^TA - \sigma_1^2I.

Hint

The sign of an eigenvector of AATAA^T is not fixed by that matrix. Get u1u_1 from v1v_1 instead, so that the two signs fit together.

Solution

The idea. The vv's are eigenvectors of ATAA^TA, and Av1=σ1u1Av_1 = \sigma_1u_1 gives u1u_1 with the right sign.

v₁ and v₂

ATA−100I=(−15−30−30−60)A^TA - 100I = \begin{pmatrix} -15 & -30 \\ -30 & -60 \end{pmatrix}: its rows say v1v_1 is a multiple of (2,−1)(2, -1); with its second entry positive, v1=(−2,1)/5v_1 = (-2, 1)/\sqrt5. The other eigenvector is perpendicular: v2=(1,2)/5v_2 = (1, 2)/\sqrt5, and indeed ATA(1,2)=(85−60,−30+80)=(25,50)=25(1,2)A^TA(1, 2) = (85 - 60, -30 + 80) = (25, 50) = 25(1, 2).

u₁ and u₂

The u's from the v's
u1=Av1σ1=1105(−12+214+6)=15(−12),u2=Av2σ2=155(105)=15(21)u_1 = \frac{Av_1}{\sigma_1} = \frac{1}{10\sqrt5}\begin{pmatrix} -12 + 2 \\ 14 + 6 \end{pmatrix} = \frac{1}{\sqrt5}\begin{pmatrix} -1 \\ 2 \end{pmatrix}, \qquad u_2 = \frac{Av_2}{\sigma_2} = \frac{1}{5\sqrt5}\begin{pmatrix} 10 \\ 5 \end{pmatrix} = \frac{1}{\sqrt5}\begin{pmatrix} 2 \\ 1 \end{pmatrix}
In words

u one equals capital A v one over sigma one equals 1 over the quantity 10 the square root of 5, minus 12 plus 2; 14 plus 6 equals 1 over the square root of 5 minus 1; 2, u two equals capital A v two over sigma two equals 1 over the quantity 5 the square root of 5, 10; 5 equals 1 over the square root of 5 2; 1

Source: 18.06 Lecture 29 transcript (Prof. Strang), pp. 3–4 (Av = σu; the numbers are our own)

Check

u1u_1 and u2u_2 are perpendicular unit vectors, and they are eigenvectors of AATAA^T (part (c)). But (1,−2)/5(1, -2)/\sqrt5, the opposite of u1u_1, is an eigenvector of AATAA^T just as well: taking it with this v1v_1 would give the wrong sign in UΣVTU\Sigma V^T, Strang's puzzle in the lecture (Lecture 29 transcript, pp. 12–13). Finally UΣVT=10u1v1T+5u2v2T=2(2−1−42)+(2412)=(62−76)=AU\Sigma V^T = 10u_1v_1^T + 5u_2v_2^T = 2\begin{pmatrix} 2 & -1 \\ -4 & 2 \end{pmatrix} + \begin{pmatrix} 2 & 4 \\ 1 & 2 \end{pmatrix} = \begin{pmatrix} 6 & 2 \\ -7 & 6 \end{pmatrix} = A.

(c)2 points

What is the larger eigenvalue of AATAA^T?

Hint

AAT=UΣΣTUTAA^T = U\Sigma\Sigma^TU^T. You may also compute AATAA^T from the rows of AA.

Solution

The idea. AATAA^T and ATAA^TA have the same nonzero eigenvalues, the σ2\sigma^2's.

The eigenvalue

AAᵀ for this matrix
AAT=(36+4−42+12−42+1249+36)=(40−30−3085)=UΣΣTUTAA^T = \begin{pmatrix} 36 + 4 & -42 + 12 \\ -42 + 12 & 49 + 36 \end{pmatrix} = \begin{pmatrix} 40 & -30 \\ -30 & 85 \end{pmatrix} = U\Sigma\Sigma^TU^T
In words

capital A capital A ^ capital T equals 36 plus 4 minus 42 plus 12; minus 42 plus 12 49 plus 36 equals 40 minus 30; minus 30 85 equals capital U capital sigma capital sigma ^ capital T capital U ^ capital T

Source: 18.06 Lecture 29 transcript (Prof. Strang), p. 10 (AAᵀ removes V; the numbers are our own)

Its trace is 125125 and its determinant 3400−900=25003400 - 900 = 2500, the same as for ATAA^TA, so its eigenvalues are again 100100 and 2525. The larger is σ12=100\sigma_1^2 = 100.

Check

AATu1=15(−40−60,30+170)=15(−100,200)=100 u1AA^Tu_1 = \frac{1}{\sqrt5}(-40 - 60, 30 + 170) = \frac{1}{\sqrt5}(-100, 200) = 100\,u_1.

(d)3 points

Show that for every 2×22 \times 2 matrix, σ1σ2=∣det⁡A∣\sigma_1\sigma_2 = |\det A|, and check it for this AA.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

Take determinants of both sides of A=UΣVTA = U\Sigma V^T. What can the determinant of an orthogonal matrix be?

Solution

The idea. Orthogonal factors have determinant ±1\pm 1, so only Σ\Sigma changes the size of the determinant.

The determinants

From QTQ=IQ^TQ = I, (det⁡Q)2=1(\det Q)^2 = 1 for any orthogonal QQ, so det⁡U=±1\det U = \pm 1 and det⁡VT=±1\det V^T = \pm 1. Then

Determinant from the SVD
∣det⁡A∣=∣det⁡U∣ ∣det⁡Σ∣ ∣det⁡VT∣=σ1σ2|\det A| = |\det U|\,|\det\Sigma|\,|\det V^T| = \sigma_1\sigma_2
In words

the absolute value of the determinant of capital A equals the absolute value of the determinant of capital U the absolute value of the determinant of capital sigma the absolute value of the determinant of capital V ^ capital T equals sigma one sigma two

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 6(d) (our own solution)

Check for this A

det⁡A=36+14=50\det A = 36 + 14 = 50 and σ1σ2=10⋅5=50\sigma_1\sigma_2 = 10 \cdot 5 = 50. (Here det⁡U=15(−1−4)=−1\det U = \frac15(-1 - 4) = -1 and det⁡VT=15(−4−1)=−1\det V^T = \frac15(-4 - 1) = -1, whose product +1+1 fits det⁡A=+50\det A = +50.)

Problem 7#

Problem

The SVD of a rectangular matrix of rank one

12 points

For a real number c>0c > 0, take the 2×32 \times 3 matrix

A rank-one matrix
A=(122c2c2c)A = \begin{pmatrix} 1 & 2 & 2 \\ c & 2c & 2c \end{pmatrix}
In words

capital A equals 1 2 2; c 2 c 2 c

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 7 (our own problem)

(a)4 points

Find its only nonzero singular value σ1\sigma_1 as a formula in cc.

Hint

Every row is a multiple of (1,2,2)(1, 2, 2) and every column a multiple of (1,c)(1, c): AA is one column times one row. What are v1v_1 and u1u_1?

Hint

Compute Av1Av_1 for the unit vector v1v_1 along (1,2,2)(1, 2, 2), and take its length.

Solution

The idea. For a matrix that is one column times one row, the bases are forced: v1v_1 along the row, u1u_1 along the column.

One column times one row

A=(1c)(122)A = \begin{pmatrix} 1 \\ c \end{pmatrix}\begin{pmatrix} 1 & 2 & 2 \end{pmatrix}. The row space is the line through (1,2,2)(1, 2, 2), of length 33, so v1=(1,2,2)/3v_1 = (1, 2, 2)/3. Then

The singular value
Av1=1+4+43(1c)=3(1c)=31+c2  u1,u1=(1,c)1+c2Av_1 = \frac{1 + 4 + 4}{3}\begin{pmatrix} 1 \\ c \end{pmatrix} = 3\begin{pmatrix} 1 \\ c \end{pmatrix} = 3\sqrt{1 + c^2}\;u_1, \qquad u_1 = \frac{(1, c)}{\sqrt{1 + c^2}}
In words

capital A v one equals the quantity 1 plus 4 plus 4, all over 3 1; c equals 3 1; c equals 3 the square root of 1 plus c squared, end of root, u one, u one equals (1, c) over the square root of 1 plus c squared, end of root

Source: 18.06 Lecture 29 transcript (Prof. Strang), pp. 13–16 (a rank-one example; the numbers are our own)

So σ1=31+c2\sigma_1 = 3\sqrt{1 + c^2}.

Check

ATA=(1+c2)(122244244)A^TA = (1 + c^2)\begin{pmatrix} 1 & 2 & 2 \\ 2 & 4 & 4 \\ 2 & 4 & 4 \end{pmatrix} has rank one, so its only nonzero eigenvalue is its trace, 9(1+c2)=σ129(1 + c^2) = \sigma_1^2. For c=2c = 2, σ1=35≈6.708\sigma_1 = 3\sqrt5 \approx 6.708.

(b)3 points

Now take c=2c = 2. What are the dimensions of the nullspace of AA and of the left nullspace (the nullspace of ATA^T)?

Hint

AA is 2×32 \times 3 with rank r=1r = 1. The SVD gives n−rn - r vectors vv for one nullspace and m−rm - r vectors uu for the other.

Solution

The idea. The four subspaces have dimensions rr, rr, n−rn - r and m−rm - r, and the SVD gives an orthonormal basis of each.

Count

Here m=2m = 2, n=3n = 3 and r=1r = 1. The nullspace (in R3\mathbf{R}^3) has dimension 3−1=23 - 1 = 2, filled by v2v_2 and v3v_3; the left nullspace (in R2\mathbf{R}^2) has dimension 2−1=12 - 1 = 1, filled by u2u_2 (Lecture 29 transcript, pp. 17–18).

Check

u2u_2 must be perpendicular to u1=(1,2)/5u_1 = (1, 2)/\sqrt5, so u2=(2,−1)/5u_2 = (2, -1)/\sqrt5, and indeed ATu2=15(2−2,4−4,4−4)=0A^Tu_2 = \frac{1}{\sqrt5}(2 - 2, 4 - 4, 4 - 4) = 0. The two dimensions in each space add up: 1+2=31 + 2 = 3 and 1+1=21 + 1 = 2.

(c)3 points

Which pair of vectors could be v2v_2 and v3v_3 in the SVD of AA for c=2c = 2?

Hint

v2v_2 and v3v_3 must each be perpendicular to the row space, and also perpendicular to each other, with length one.

Solution

The idea. Test each pair: both vectors perpendicular to (1,2,2)(1, 2, 2), perpendicular to each other, and of length one.

The tests

The right pair
(1,2,2)⋅(2,−1,0)=0,(1,2,2)⋅(2,4,−5)=2+8−10=0,(2,−1,0)⋅(2,4,−5)=4−4=0(1, 2, 2) \cdot (2, -1, 0) = 0, \quad (1, 2, 2) \cdot (2, 4, -5) = 2 + 8 - 10 = 0, \quad (2, -1, 0) \cdot (2, 4, -5) = 4 - 4 = 0
In words

(1, 2, 2) times (2, minus 1, 0) equals 0, (1, 2, 2) times (2, 4, minus 5) equals 2 plus 8 minus 10 equals 0, (2, minus 1, 0) times (2, 4, minus 5) equals 4 minus 4 equals 0

Source: MIT 18.06 Lecture 29: Singular value decomposition, Problem 7(c) (our own solution)

The lengths are 5\sqrt5 and 4+16+25=45\sqrt{4 + 16 + 25} = \sqrt{45}, so the scaled vectors are unit vectors. In the other pairs: (−2,−2,3)(-2, -2, 3) is in the nullspace but has inner product −4+2=−2-4 + 2 = -2 with (2,−1,0)(2, -1, 0); (1,2,2)/3(1, 2, 2)/3 is v1v_1 itself, in the row space; and (0,1,−1)(0, 1, -1) is in the nullspace but has inner product −1-1 with (2,−1,0)(2, -1, 0).

Check

The third vector of an orthonormal basis of R3\mathbf{R}^3 is the cross product of the other two: (1,2,2)×(2,−1,0)=(0+2,4−0,−1−4)=(2,4,−5)(1, 2, 2) \times (2, -1, 0) = (0 + 2, 4 - 0, -1 - 4) = (2, 4, -5).

(d)2 points

For c=2c = 2, is the 3×33 \times 3 matrix ATAA^TA positive definite?

Hint

Positive definite needs xTATAx=∥Ax∥2>0x^TA^TAx = \|Ax\|^2 > 0 for every nonzero xx. Use part (b): is that so here?

Solution

The idea. ATAA^TA is positive definite exactly when the columns of AA are independent (rank nn).

The test

The rank is 1<3=n1 < 3 = n, so the columns of AA are dependent. For x=(2,−1,0)x = (2, -1, 0), Ax=0Ax = 0 and xTATAx=∥Ax∥2=0x^TA^TAx = \|Ax\|^2 = 0 with x≠0x \neq 0. So ATAA^TA is only positive semidefinite (Lecture 28 transcript, pp. 4–5).

Check

The eigenvalues of ATAA^TA are σ12=45\sigma_1^2 = 45, 00 and 00: two zeros. A symmetric matrix with positive diagonal entries need not be positive definite.

Symbols on this page

Show the 103 symbols used here
ε\varepsilon epsilon.
A small positive number added below the diagonal of a Jordan block (Problem 5(d)). Say it: “epsilon”.
λ\lambda lambda.
An eigenvalue. Say it: “lambda”.
Λ\Lambda capital lambda.
The diagonal matrix of the eigenvalues of A. Say it: “capital lambda”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
σ\sigma sigma.
A singular value: the stretching factor in Av = σu. Say it: “sigma”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∑\sum sum.
Sum: add up the terms over the range written below and above. Say it: “the sum of”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
log⁡\log logarithm.
Logarithm; log₁₀ is the base-10 logarithm. Say it: “log”.
ρˉ\bar\rho bar.
A mean (average) value, such as ρ̄; in 8.902 also a smoothed field (δ̄). Say it: “bar”.
aa a.
A real number: the top-left entry of the Hermitian matrix A of Problem 1. Say it: “a”.
HH H.
As a superscript: the conjugate transpose (transpose and take complex conjugates), after Hermite. Say it: “capital H”.
zz z.
In Problem 1, the complex vector (1 + 2i, 2 − i); in “What you need”, any complex vector in Cⁿ. Say it: “z”.
cc c.
A positive real number in the matrix of Problem 7: its second row is c times the first. Say it: “c”.
kk k.
A column index of the Fourier matrix, from 0 to n − 1; in Problem 3(c), the exponent in n = 2^k, the number of levels of the FFT. Say it: “k”.
TT T.
As a superscript: the transpose. Say it: “capital T”.
Σ\Sigma capital sigma.
The diagonal matrix of singular values σ₁, σ₂, … (then zeros) in A = UΣVᵀ. Say it: “capital sigma”.
xx x.
A vector: in yᴴx, any complex vector; in Ax = λx, an eigenvector; in Problems 2 and 3, the vector (1, 2, 0, −1) to be transformed (or the vector with F₄x = (0, 2, 0, 2)); in Problem 1(c), any complex vector; in Problem 7, a vector in the nullspace. Say it: “x”.
yy y.
In Problem 1, the complex vector (i, 1); in Problems 2 and 3, the transform y = F₄x; in “What you need”, any complex vector in yᴴx. Say it: “y”.
ii i.
The imaginary unit, i² = −1; as a subscript (vᵢ, uᵢ, σᵢ), an index. Say it: “i”.
jj j.
A row index of the Fourier matrix, from 0 to n − 1; also the index of the sum in Problem 2(d). Say it: “j”.
nn n.
The size of a square matrix (F_n is n × n); for a rectangular A, the number of columns. Say it: “n”.
ee e.
Euler's number, 2.718… Say it: “e”.
mm m.
The half size in the FFT step (F_2m from two F_m); for a rectangular A, the number of rows. Say it: “m”.
gg g.
In Problem 3(b), F₂ applied to the even part (x₀, x₂). Say it: “g”.
vv v.
A right singular vector (a column of V). Say it: “v”.
rr r.
The rank of A: the number of nonzero singular values. Say it: “r”.
PP P.
The even–odd permutation of the FFT step: even-numbered components first, then the odd ones. Say it: “capital P”.
QQ Q.
An orthogonal matrix, QᵀQ = I. Say it: “capital Q”.
DD D.
The diagonal matrix of the FFT step, with entries 1, W, …, W^(m−1); for F₄, diag(1, i); for F₈, diag(1, W₈, W₈², W₈³). Say it: “capital D”.
AA A.
The matrix of each problem, given in its statement; in 1(c), any Hermitian matrix; in 4(d), 6(d) and “What you need”, any matrix of the kind named there. Say it: “capital A”.
BB B.
A matrix similar to A, B = M⁻¹AM; in Problem 4, the one with M the matrix with rows (1, 0), (1, 1). Say it: “capital B”.
qq q.
In Problem 2(d), the ratio W^(l−k) of the geometric series; in hints, the imaginary part of p + qi (Problem 1) or the second entry in F₂(p, q) (Problem 3). Say it: “q”.
hh h.
In Problem 3(b), F₂ applied to the odd part (x₁, x₃). Say it: “h”.
pp p.
In hints, the real part of p + qi (Problem 1) or the first entry in F₂(p, q) (Problem 3); in Problem 5(b), the first entry of x₂ = (p, 0). Say it: “p”.
MM M.
An invertible matrix: in B = M⁻¹AM (Problem 4, rows (1, 0) and (1, 1)), and in A = MJM⁻¹ (Problem 5, with columns x₁ and x₂; in 5(c), the matrix of the solution). Say it: “capital M”.
SS S.
The eigenvector matrix of A, with S⁻¹AS = Λ. Say it: “S”.
x0x_{0} x nought.
The component of x numbered 0 (counting from zero). Say it: “x nought”.
y0y_{0} y nought.
The component of y = F₄x numbered 0. Say it: “y nought”.
S1S_{1} S one.
An eigenvector matrix in the solution of Problem 4(c). Say it: “S one”.
F2F_{2} F two.
The 2 × 2 Fourier matrix, with rows (1, 1) and (1, −1). Say it: “F two”.
uu u.
A left singular vector (a column of U). Say it: “u”.
viv_{i} initial velocity.
The i-th right singular vector. Say it: “v sub i”.
x1x_{1} x 1.
The component of x numbered 1 (in “What you need”, the first component); in Problem 5, the eigenvector of A that is the first column of M. Say it: “x one”.
x2x_{2} x 2.
The component of x numbered 2; in Problem 5(b), the second column of M, a vector with (A − λI)x₂ = x₁. Say it: “x two”.
y1y_{1} y 1.
The component of y numbered 1 (in “What you need”, the first component). Say it: “y one”.
y2y_{2} y 2.
The component of y = F₄x numbered 2. Say it: “y two”.
UU U.
The orthogonal matrix of the SVD whose columns are the left singular vectors u₁, u₂, …. Say it: “capital U”.
VV V.
The orthogonal matrix of the SVD whose columns are the right singular vectors v₁, v₂, …. Say it: “capital V”.
ll l.
A second column index of the Fourier matrix (Problem 2(d)), different from k. Say it: “l”.
JJ J.
The Jordan matrix (form) of A; in Problem 5, the Jordan form of the 2 × 2 matrix A. Say it: “capital J”.
WW W.
The primitive n-th root of one, W = e^(2πi/n), the entry of the Fourier matrix; in the FFT step, W of size 2m. Say it: “W”.
KK K.
Any one of the Jordan matrices K₁, K₂, K₃ of Problem 5(c). Say it: “capital K”.
xnx_{n} x n.
The last component of a complex vector x. Say it: “x sub n”.
x3x_{3} x three.
The component of x numbered 3. Say it: “x three”.
y3y_{3} y three.
The component of y = F₄x numbered 3. Say it: “y three”.
v1v_{1} v one.
The first right singular vector: a unit vector in the row space (in Problem 6(b), taken with its second entry positive). Say it: “v one”.
v2v_{2} v two.
The second right singular vector (in Problem 7, a unit vector in the nullspace). Say it: “v two”.
II I.
The identity matrix. Say it: “capital I”.
v3v_{3} v 3.
The third right singular vector (in Problem 7, a unit vector in the nullspace). Say it: “v three”.
u1u_{1} u one.
The first left singular vector: a unit vector in the column space, u₁ = Av₁/σ₁. Say it: “u one”.
u2u_{2} u two.
The second left singular vector (in Problem 7, a unit vector in the left nullspace). Say it: “u two”.
yny_{n} y n.
The last component of a complex vector y. Say it: “y sub n”.
C1C_{1} C 1.
The first candidate matrix of Problem 4(c), with rows (5, −2), (2, 0). Say it: “capital C one”.
C2C_{2} C 2.
The second candidate matrix of Problem 4(c), with rows (4, 1), (1, 1). Say it: “capital C two”.
C3C_{3} C 3.
The third candidate matrix of Problem 4(c), with rows (1, 0), (7, 4). Say it: “capital C three”.
FnF_{n} F n.
The n × n Fourier matrix, with entries W^(jk). Say it: “F sub n”.
uiu_{i} u sub i.
The i-th left singular vector, uᵢ = Avᵢ/σᵢ. Say it: “u sub i”.
z1z_{1} z sub 1.
The first component of a complex vector z. Say it: “z sub 1”.
σ1\sigma_{1} sigma one.
The first (largest) singular value. Say it: “sigma one”.
σ2\sigma_{2} sigma two.
The second singular value. Say it: “sigma two”.
e1e_{1} e one.
The first standard basis vector of R³, (1, 0, 0). Say it: “e one”.
e2e_{2} e two.
The second standard basis vector of R³, (0, 1, 0). Say it: “e two”.
e3e_{3} e three.
The third standard basis vector of R³, (0, 0, 1). Say it: “e three”.
znz_{n} z n.
The last component of a complex vector z. Say it: “z sub n”.
F4F_{4} F 4.
The 4 × 4 Fourier matrix, built from W = i. Say it: “F four”.
F8F_{8} F 8.
The 8 × 8 Fourier matrix. Say it: “F eight”.
FmF_{m} F m.
A Fourier matrix of half the size, m × m. Say it: “F sub m”.
F2mF_{2m} F 2m.
A Fourier matrix of size 2m. Say it: “F sub 2 m”.
J1J_{1} J 1.
The first Jordan block of J. Say it: “capital J one”.
JdJ_{d} J d.
The last Jordan block of J (one block per independent eigenvector). Say it: “capital J sub d”.
σi\sigma_{i} sigma i.
The i-th singular value. Say it: “sigma sub i”.
yjy_{j} y j.
The component of y = F₄x numbered j. Say it: “y sub j”.
W2mW_{2m} W 2m.
The root W = e^(2πi/(2m)) of the Fourier matrix of size 2m. Say it: “W sub 2 m”.
WmW_{m} W m.
The root e^(2πi/m) of the Fourier matrix of size m; W_2m² = W_m. Say it: “W sub m”.
W8W_{8} W 8.
The root e^(2πi/8) of the 8 × 8 Fourier matrix. Say it: “W eight”.
W4W_{4} W 4.
The root e^(2πi/4) of the 4 × 4 Fourier matrix. Say it: “W four”.
K1K_{1} K 1.
The first 3 × 3 matrix of Problem 5(c), with the eigenvalue 7 three times. Say it: “capital K one”.
K2K_{2} K 2.
The second 3 × 3 matrix of Problem 5(c), with the eigenvalue 7 three times. Say it: “capital K two”.
K3K_{3} K 3.
The third 3 × 3 matrix of Problem 5(c), with the eigenvalue 7 three times. Say it: “capital K three”.
AεA_{\varepsilon} A epsilon.
The Jordan block with 5, 5 on the diagonal and ε put below it (Problem 5(d)). Say it: “capital A epsilon”.
b11b_{11} b one one.
The entry of B in row 1, column 1. Say it: “b one one”.
b12b_{12} b one two.
The entry of B in row 1, column 2. Say it: “b one two”.
b21b_{21} b two one.
The entry of B in row 2, column 1. Say it: “b two one”.
b22b_{22} b two two.
The entry of B in row 2, column 2. Say it: “b two two”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 62 words used here

Also used

matrix.
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.
fast Fourier transform.
A fast method for multiplying by the Fourier matrix, splitting the work in halves again and again, so n log n steps replace n². Explained in Complex matrices and the fast Fourier transform.
Jordan form.
The simplest matrix similar to a given one: Jordan blocks along the diagonal, one block for each independent eigenvector. Explained in Similar matrices and the Jordan form.
singular value decomposition.
Writing any matrix as A = UΣVᵀ: a rotation (perhaps with a reflection), a stretching along perpendicular axes, and another rotation. Explained in Singular value decomposition.
positive definite.
Of a symmetric matrix or quadratic form: always giving a positive value for any nonzero input; equivalently, all its eigenvalues are positive. Explained in Symmetric matrices and positive definiteness.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
real part.
For a complex number a + bi, the ordinary number a. Explained in Differential equations and exp(At).
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
singular value.
One of the stretching factors of a matrix in its singular value decomposition; the square roots of the eigenvalues of AᵀA.
Fourier matrix.
The square matrix whose entries are powers of a complex root of one, used to change a signal into its frequencies and back. Explained in Complex matrices and the fast Fourier transform.
vector.
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.
inner product.
A rule that gives a number from two vectors, generalising the dot product, from which lengths and angles are defined. Explained in Complex matrices and the fast Fourier transform.
Hermitian.
Of a matrix or operator: equal to its own conjugate transpose, which makes all its eigenvalues real numbers. Explained in Normalization, Hermitian operators and the probability current.
diagonal.
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.
eigenvector.
A non-zero vector that a matrix only stretches or shrinks without turning: multiplying it by the matrix gives a number times the same vector. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
permutation.
A rearrangement of a list of things into a new order. Explained in Elimination with matrices.
invertible.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
Jordan block.
A square matrix with one eigenvalue repeated down its diagonal, ones just above the diagonal and zeros elsewhere; it has only one eigenvector. Explained in Similar matrices and the Jordan form.
SVD.
Short for singular value decomposition, which writes any matrix as a rotation, a stretching and another rotation (reflections allowed).
orthonormal.
Of a set of vectors: each has length one and each is at right angles to all the others. Explained in Projection matrices and least squares.
orthonormal basis.
A set of basis vectors that are all at right angles to each other and all of length one. Explained in Basis vectors, the metric and 4-momentum.
row space.
All the vectors that can be made by combining the rows of a matrix; it is the column space of its transpose. Explained in Matrix multiplication and inverse matrices.
column space.
All the vectors made by combining the columns of a matrix; Ax = b can be solved exactly when b lies in it. Explained in Matrix multiplication and inverse matrices.
nullspace.
All the vectors x that a matrix sends to zero, that is, all solutions of Ax = 0. Explained in Column space and nullspace.
left nullspace.
The nullspace of the transpose of a matrix: all the combinations of its rows that give zero. Explained in The four fundamental subspaces.
transpose.
The matrix made by writing the rows of a matrix as columns, flipping it across its main diagonal. Explained in Planes through three points, and matrices.
determinant.
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.
orthogonal.
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.
inverse.
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.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
unit circle.
The circle of radius 1 centred at the origin; the point at angle θ on it is (cos θ, sin θ). Explained in Angles, radians and trigonometry.
geometric series.
A series where each term is x times the one before; for x between −1 and 1 the total is 1/(1 − x).
FFT.
Short for fast Fourier transform, a quick method for computing a discrete Fourier transform.
factorization.
Writing something, such as a number, a matrix or an operator, as a product of simpler pieces. Explained in Factorization into A = LU.
triangular matrix.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
characteristic polynomial.
The polynomial whose roots are the eigenvalues of a matrix, found as the determinant of the matrix minus λ times the identity. Explained in Diagonalisation and powers of A.
commute.
Of two operations or matrices: to give the same result whichever is done first. Explained in Symmetry and infinitely many oscillators.
rank.
The number of independent columns of a matrix, which always equals the number of independent rows. Explained in Similar matrices and the Jordan form.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
permutation matrix.
A matrix made by reordering the rows of the identity matrix; multiplying by it reorders the rows of another matrix the same way. Explained in Elimination with matrices.
basis.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
diagonalise.
To rewrite a matrix in a basis of its eigenvectors, where it becomes diagonal, with its eigenvalues down the diagonal. Explained in Diagonalisation and powers of A.
unit vector.
A vector of length one, used only to point in a direction. Explained in Newton's law of gravitation.
orthogonal matrix.
A square matrix whose columns are perpendicular unit vectors; it rotates or reflects without changing lengths, and its inverse is its transpose. Explained in Orthogonal matrices and Gram–Schmidt.
rank one.
Of a matrix: having rank exactly one, so it is a column times a row and every column is a multiple of one column. Explained in Matrix spaces, rank one and small-world graphs.
subspace.
A set of vectors inside a larger space that is a space itself: sums and multiples of its vectors stay inside it. Explained in Transposes, permutations and vector spaces.
cross product.
A way of multiplying two vectors that gives a third vector, at right angles to both, as long as the area of their parallelogram. Explained in Torque and the cross product.
positive semidefinite.
Of a symmetric matrix: xᵀAx is never negative; all its eigenvalues are positive or zero. Explained in Positive definite matrices and minima.

Academic

problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
citation.
A note saying exactly where a statement, number or formula comes from, so readers can check it.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
significant.
Large enough to matter or to be noticed; in statistics, too large to put down to chance.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
no accident.
Not a matter of chance: there is a deeper reason why it happens.
by hand.
Worked out with pen and paper, without a computer; or put in deliberately rather than following from the theory.
in practice.
In reality, as things are actually done or measured, rather than in theory.
satisfy.
To make an equation or condition true.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.

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).