★ Unit 3 checkpoint

Exam 3


The Unit 3 exam covers sessions 25 through 32 — symmetric matrices and their real eigenvalues, positive definite and semidefinite matrices, similar matrices, the singular value decomposition, and linear transformations. Three multi-part problems test classifying matrices by their SVD, diagonalizing and taking powers and exponentials of a matrix, and solving equations by expanding in an orthonormal eigenvector basis.

Taking this exam

This exam covers all of Unit 3 (sessions 25–32): symmetric matrices, positive definite matrices and their tests, similar matrices and diagonalization, the singular value decomposition A=UΣVTA = U\Sigma V^T, and linear transformations. Attempt it closed-book under exam conditions before revealing any solutions — every problem here rewards thinking about eigenvalues and matrix classes rather than brute computation. If you get stuck, or once you’re done, watch the unit review video linked above, where a course TA works through problems of exactly this kind.

Problems

Problem 1 Exam 3

(a) If a square matrix AA has all nn of its singular values equal to 11 in the SVD, what basic classes of matrices does AA belong to? (Singular, symmetric, orthogonal, positive definite or semidefinite, diagonal)

(b) Suppose the (orthonormal) columns of HH are eigenvectors of BB:

H=12[1111111111111111]H1=HTH = \frac{1}{2} \begin{bmatrix} 1 & 1 & -1 & -1 \\ 1 & -1 & -1 & 1 \\ 1 & 1 & 1 & 1 \\ 1 & -1 & 1 & -1 \end{bmatrix} \qquad H^{-1} = H^T

The eigenvalues of BB are λ=0,1,2,3\lambda = 0, 1, 2, 3. Write BB as the product of 3 specific matrices. Write C=(B+I)1C = (B + I)^{-1} as the product of 3 matrices.

(c) Using the list in question (a), which basic classes of matrices do BB and CC belong to? (Separate question for BB and CC)

Show solution

(a) If Σ=I\Sigma = I then A=UΣVT=UVTA = U\Sigma V^T = UV^T = product of orthogonal matrices = orthogonal matrix.

Second proof: all σi=1\sigma_i = 1 implies ATA=IA^TA = I. So AA is orthogonal.

(AA is never singular, and it won’t always be symmetric — take U=[0110]U = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} and V=IV = I, for example. This also shows it can’t be diagonal, or positive definite or semidefinite.)

(b) Diagonalization with the orthonormal eigenvector matrix HH:

B=HΛH1withΛ=[0123]B = H \Lambda H^{-1} \quad \text{with} \quad \Lambda = \begin{bmatrix} 0 & & & \\ & 1 & & \\ & & 2 & \\ & & & 3 \end{bmatrix}

For CC, adding II shifts every eigenvalue by 11 and keeps the same eigenvectors, and inverting reciprocates them:

(B+I)1=H(Λ+I)1H1with(Λ+I)1=[11/21/31/4](B + I)^{-1} = H (\Lambda + I)^{-1} H^{-1} \quad \text{with} \quad (\Lambda + I)^{-1} = \begin{bmatrix} 1 & & & \\ & 1/2 & & \\ & & 1/3 & \\ & & & 1/4 \end{bmatrix}

(c) BB is singular, symmetric, positive semidefinite (its eigenvalues 0,1,2,30, 1, 2, 3 are real and nonnegative, with one zero, and it has orthonormal eigenvectors).

CC is symmetric positive definite (its eigenvalues 1,12,13,141, \tfrac{1}{2}, \tfrac{1}{3}, \tfrac{1}{4} are all positive).

Problem 2 Exam 3

(a) Find three eigenvalues of AA, and an eigenvector matrix SS:

A=[124005001]A = \begin{bmatrix} -1 & 2 & 4 \\ 0 & 0 & 5 \\ 0 & 0 & 1 \end{bmatrix}

(b) Explain why A1001=AA^{1001} = A. Is A1000=IA^{1000} = I? Find the three diagonal entries of eAte^{At}.

(c) The matrix ATAA^TA (for the same AA) is

ATA=[1242484842].A^TA = \begin{bmatrix} 1 & -2 & -4 \\ -2 & 4 & 8 \\ -4 & 8 & 42 \end{bmatrix}.

How many eigenvalues of ATAA^TA are positive? zero? negative? (Don’t compute them but explain your answer.) Does ATAA^TA have the same eigenvectors as AA?

Show solution

(a) The eigenvalues are 1,0,1-1, 0, 1 since AA is triangular (they sit on the diagonal).

λ=1 has x=[100],λ=0 has x=[210],λ=1 has x=[751].\lambda = -1 \text{ has } \mathbf{x} = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \qquad \lambda = 0 \text{ has } \mathbf{x} = \begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix}, \qquad \lambda = 1 \text{ has } \mathbf{x} = \begin{bmatrix} 7 \\ 5 \\ 1 \end{bmatrix}.

Those vectors x\mathbf{x} are the columns of SS (upper triangular!):

S=[127015001]S = \begin{bmatrix} 1 & 2 & 7 \\ 0 & 1 & 5 \\ 0 & 0 & 1 \end{bmatrix}

(b) A=SΛS1A = S\Lambda S^{-1} and A1001=SΛ1001S1A^{1001} = S\Lambda^{1001}S^{-1}. Notice Λ1001=Λ\Lambda^{1001} = \Lambda, since (1)1001=1(-1)^{1001} = -1, 01001=00^{1001} = 0, and 11001=11^{1001} = 1 — so A1001=SΛS1=AA^{1001} = S\Lambda S^{-1} = A.

But A1000IA^{1000} \neq I: AA is singular, and 01000=010^{1000} = 0 \neq 1, so Λ1000I\Lambda^{1000} \neq I.

eAte^{At} has ete^{-t}, e0t=1e^{0t} = 1, ete^{t} on its diagonal. Proof using series: n=0(At)n/n!\sum_{n=0}^{\infty} (At)^n / n! has triangular matrices, so the diagonal entries are (t)n/n!=et\sum (-t)^n/n! = e^{-t}, 0n/n!=1\sum 0^n/n! = 1, and tn/n!=et\sum t^n/n! = e^{t}.

Proof using SΛS1S\Lambda S^{-1}:

eAt=SeΛtS1=[1××01×001][et1et][1××01×001].e^{At} = S e^{\Lambda t} S^{-1} = \begin{bmatrix} 1 & \times & \times \\ 0 & 1 & \times \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} e^{-t} & & \\ & 1 & \\ & & e^{t} \end{bmatrix} \begin{bmatrix} 1 & \times & \times \\ 0 & 1 & \times \\ 0 & 0 & 1 \end{bmatrix}.

All three factors are triangular, so the diagonal of the product is et,1,ete^{-t}, 1, e^{t}.

(c) ATAA^TA has 2 positive eigenvalues (it has rank 2, and eigenvalues of ATAA^TA can never be negative). One eigenvalue is zero because ATAA^TA is singular. And 32=13 - 2 = 1, so none are negative.

(Or: ATAA^TA is symmetric, so the eigenvalues have the same signs as the pivots. Do elimination: the pivots are 11, 00, and 4216=2642 - 16 = 26.)

ATAA^TA does not have the same eigenvectors as AA: since ATAA^TA is symmetric, its eigenvectors are orthogonal, while the eigenvectors of AA (the columns of SS above) are not.

Problem 3 Exam 3

Suppose the nn by nn matrix AA has nn orthonormal eigenvectors q1,,qn\mathbf{q}_1, \ldots, \mathbf{q}_n and nn positive eigenvalues λ1,,λn\lambda_1, \ldots, \lambda_n. Thus Aqj=λjqjA\mathbf{q}_j = \lambda_j \mathbf{q}_j.

(a) What are the eigenvalues and eigenvectors of A1A^{-1}? Prove that your answer is correct.

(b) Any vector b\mathbf{b} is a combination of the eigenvectors:

b=c1q1+c2q2++cnqn.\mathbf{b} = c_1\mathbf{q}_1 + c_2\mathbf{q}_2 + \cdots + c_n\mathbf{q}_n \,.

What is a quick formula for c1c_1 using orthogonality of the q\mathbf{q}‘s?

(c) The solution to Ax=bA\mathbf{x} = \mathbf{b} is also a combination of the eigenvectors:

A1b=d1q1+d2q2++dnqn.A^{-1}\mathbf{b} = d_1\mathbf{q}_1 + d_2\mathbf{q}_2 + \cdots + d_n\mathbf{q}_n \,.

What is a quick formula for d1d_1? You can use the cc‘s even if you didn’t answer part (b).

Show solution

(a) A1A^{-1} has eigenvalues 1λj\dfrac{1}{\lambda_j} with the same eigenvectors qj\mathbf{q}_j. Proof — start from the eigenvalue equation and multiply by A1A^{-1}:

Aqj=λjqj    qj=λjA1qj    A1qj=1λjqj.A\mathbf{q}_j = \lambda_j \mathbf{q}_j \;\longrightarrow\; \mathbf{q}_j = \lambda_j A^{-1}\mathbf{q}_j \;\longrightarrow\; A^{-1}\mathbf{q}_j = \frac{1}{\lambda_j}\,\mathbf{q}_j \,.

(All λj>0\lambda_j > 0, so dividing by λj\lambda_j is legal and A1A^{-1} exists.)

(b) Multiply b=c1q1++cnqn\mathbf{b} = c_1\mathbf{q}_1 + \cdots + c_n\mathbf{q}_n by q1T\mathbf{q}_1^T. Orthogonality kills every term but the first: q1Tb=c1q1Tq1\mathbf{q}_1^T\mathbf{b} = c_1\mathbf{q}_1^T\mathbf{q}_1, so

c1=q1Tbq1Tq1=q1Tbc_1 = \frac{\mathbf{q}_1^T\mathbf{b}}{\mathbf{q}_1^T\mathbf{q}_1} = \mathbf{q}_1^T\mathbf{b}

(the last step because the q\mathbf{q}‘s are orthonormal, so q1Tq1=1\mathbf{q}_1^T\mathbf{q}_1 = 1).

(c) Multiplying b\mathbf{b} by A1A^{-1} multiplies each qi\mathbf{q}_i by 1λi\dfrac{1}{\lambda_i} (part (a)). So each cic_i becomes ci/λic_i/\lambda_i, and

d1=c1λ1(=q1Tbλ1q1Tq1   or   q1Tbλ1).d_1 = \frac{c_1}{\lambda_1} \qquad \left( = \frac{\mathbf{q}_1^T\mathbf{b}}{\lambda_1\,\mathbf{q}_1^T\mathbf{q}_1} \;\text{ or }\; \frac{\mathbf{q}_1^T\mathbf{b}}{\lambda_1} \right).