★ Unit 3 checkpoint

Final Exam


The comprehensive final covers the whole course — all three units, sessions 1 through 32. Nine multi-part problems span the four fundamental subspaces, inverses and triangular matrices, rank of block matrices, least squares and projections, Gram-Schmidt and QR, eigenvalues of permutation matrices, symmetric positive definite matrices and the Rayleigh quotient, the SVD, and determinants by cofactors with a recursive formula.

Taking this exam

This is the comprehensive final: it draws on everything from sessions 1 through 32 — elimination and the four fundamental subspaces from Unit 1, least squares, projections, orthogonality, and determinants from Unit 2, and eigenvalues, positive definiteness, and the SVD from Unit 3. Attempt it closed-book under exam conditions before revealing any solutions. If you want a warm-up or a debrief, Strang’s final course review video (linked above) works through problems of exactly this kind.

Problems

Problem 1 Final exam

Suppose AA is 3 by 4, and Ax=0A\mathbf{x} = \mathbf{0} has exactly 2 special solutions:

x1=[1110]andx2=[2101]\mathbf{x}_1 = \begin{bmatrix} 1 \\ 1 \\ 1 \\ 0 \end{bmatrix} \qquad \text{and} \qquad \mathbf{x}_2 = \begin{bmatrix} -2 \\ -1 \\ 0 \\ 1 \end{bmatrix}

(a) Remembering that AA is 3 by 4, find its row reduced echelon form RR.

(b) Find the dimensions of all four fundamental subspaces C(A)C(A), N(A)N(A), C(AT)C(A^T), N(AT)N(A^T). You have enough information to find bases for one or more of these subspaces — find those bases.

Show solution

(a) Each special solution tells us the solution to Rx=0R\mathbf{x} = \mathbf{0} when we set one free variable =1= 1 and the others =0= 0. Here, the third and fourth variables must be the two free variables, and the other two are the pivots:

R=[10010000]R = \begin{bmatrix} 1 & 0 & * & * \\ 0 & 1 & * & * \\ 0 & 0 & 0 & 0 \end{bmatrix}

Now multiply out Rx1=0R\mathbf{x}_1 = \mathbf{0} and Rx2=0R\mathbf{x}_2 = \mathbf{0} to find the *‘s:

R=[101201110000]R = \begin{bmatrix} 1 & 0 & -1 & 2 \\ 0 & 1 & -1 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}

(The *‘s are just the negatives of the special solutions’ pivot entries.)

(b) We know the nullspace N(A)N(A) has nr=42=2n - r = 4 - 2 = 2 dimensions: the special solutions x1,x2\mathbf{x}_1, \mathbf{x}_2 form a basis.

The row space C(AT)C(A^T) has r=2r = 2 dimensions. It’s orthogonal to N(A)N(A), so just pick two linearly independent vectors orthogonal to x1\mathbf{x}_1 and x2\mathbf{x}_2 to form a basis: for example,

x3=[1012],x4=[0111].\mathbf{x}_3 = \begin{bmatrix} 1 \\ 0 \\ -1 \\ 2 \end{bmatrix}, \qquad \mathbf{x}_4 = \begin{bmatrix} 0 \\ 1 \\ -1 \\ 1 \end{bmatrix}.

(Or: C(AT)=C(RT)C(A^T) = C(R^T) is just the row space of RR, so the first two rows are a basis. Same thing!)

The column space C(A)C(A) has r=2r = 2 dimensions (same as C(AT)C(A^T)). We can’t write down a basis because we don’t know what AA is, but we can say that the first two columns of AA are a basis.

The left nullspace N(AT)N(A^T) has mr=32=1m - r = 3 - 2 = 1 dimension; it’s orthogonal to C(A)C(A), so any vector orthogonal to the first two columns of AA (whatever they are) will be a basis.

Problem 2 Final exam

(a) Find the inverse of a 3 by 3 upper triangular matrix UU, with nonzero entries a,b,c,d,e,fa, b, c, d, e, f. You could use cofactors and the formula for the inverse. Or possibly Gauss-Jordan elimination.

Find the inverse of U=[abc0de00f].\text{Find the inverse of } \quad U = \begin{bmatrix} a & b & c \\ 0 & d & e \\ 0 & 0 & f \end{bmatrix}.

(b) Suppose the columns of UU are eigenvectors of a matrix AA. Show that AA is also upper triangular.

(c) Explain why this UU cannot be the same matrix as the first factor in the Singular Value Decomposition A=UΣVTA = U\Sigma V^T.

Show solution

(a) By elimination: keep track of the elimination matrix EE on one side, and the product EUEU on the other. When EU=IEU = I, then E=U1E = U^{-1}:

[abc1000de01000f001][1b/ac/a1/a0001e/d01/d0001001/f]\left[\begin{array}{ccc|ccc} a & b & c & 1 & 0 & 0 \\ 0 & d & e & 0 & 1 & 0 \\ 0 & 0 & f & 0 & 0 & 1 \end{array}\right] \rightsquigarrow \left[\begin{array}{ccc|ccc} 1 & b/a & c/a & 1/a & 0 & 0 \\ 0 & 1 & e/d & 0 & 1/d & 0 \\ 0 & 0 & 1 & 0 & 0 & 1/f \end{array}\right][1001/ab/ad(becd)/adf01001/de/df001001/f]=[IU1]\rightsquigarrow \left[\begin{array}{ccc|ccc} 1 & 0 & 0 & 1/a & -b/ad & (be-cd)/adf \\ 0 & 1 & 0 & 0 & 1/d & -e/df \\ 0 & 0 & 1 & 0 & 0 & 1/f \end{array}\right] = \begin{bmatrix} I & U^{-1} \end{bmatrix}

By cofactors: take the minors, then “checkerboard” the signs to get the cofactor matrix, then transpose and divide by det(U)=adf\det(U) = adf:

[abc0de00f][df00bfaf0becdaead][df00bfaf0becdaead][dfbfbecd0afae00ad]\begin{bmatrix} a & b & c \\ 0 & d & e \\ 0 & 0 & f \end{bmatrix} \rightsquigarrow \begin{bmatrix} df & 0 & 0 \\ bf & af & 0 \\ be-cd & ae & ad \end{bmatrix} \rightsquigarrow \begin{bmatrix} df & 0 & 0 \\ -bf & af & 0 \\ be-cd & -ae & ad \end{bmatrix} \rightsquigarrow \begin{bmatrix} df & -bf & be-cd \\ 0 & af & -ae \\ 0 & 0 & ad \end{bmatrix}

and dividing by adfadf gives

U1=[1/ab/ad(becd)/adf01/de/df001/f].U^{-1} = \begin{bmatrix} 1/a & -b/ad & (be-cd)/adf \\ 0 & 1/d & -e/df \\ 0 & 0 & 1/f \end{bmatrix}.

(b) We have a complete set of eigenvectors for AA, so we can diagonalize: A=UΛU1A = U\Lambda U^{-1}. We know UU is upper triangular, and so is the diagonal matrix Λ\Lambda, and we’ve just shown that U1U^{-1} is upper triangular too. So their product AA is also upper triangular.

(c) The columns aren’t orthogonal! (For example, the product u1Tu2\mathbf{u}_1^T\mathbf{u}_2 of the first two columns is ab+0d+00=abab + 0 \cdot d + 0 \cdot 0 = ab, which is nonzero because we’re assuming all the entries are nonzero.)

Problem 3 Final exam

(a) AA and BB are any matrices with the same number of rows. What can you say (and explain why it is true) about the comparison of

rank of Arank of the block matrix [AB]\text{rank of } A \qquad \qquad \text{rank of the block matrix } \begin{bmatrix} A & B \end{bmatrix}

(b) Suppose B=A2B = A^2. How do those ranks compare? Explain your reasoning.

(c) If AA is mm by nn of rank rr, what are the dimensions of these nullspaces?

Nullspace of ANullspace of [AA]\text{Nullspace of } A \qquad \qquad \text{Nullspace of } \begin{bmatrix} A & A \end{bmatrix}
Show solution

(a) All you can say is that rankArank[AB]\operatorname{rank} A \leq \operatorname{rank} \begin{bmatrix} A & B \end{bmatrix}. (AA can have any number rr of pivot columns, and these will all be pivot columns for [AB]\begin{bmatrix} A & B \end{bmatrix}; but there could be more pivot columns among the columns of BB.)

(b) Now rankA=rank[AA2]\operatorname{rank} A = \operatorname{rank} \begin{bmatrix} A & A^2 \end{bmatrix}. (Every column of A2A^2 is a linear combination of columns of AA. For instance, if we call AA‘s first column a1\mathbf{a}_1, then Aa1A\mathbf{a}_1 is the first column of A2A^2. So there are no new pivot columns in the A2A^2 part of [AA2]\begin{bmatrix} A & A^2 \end{bmatrix}.)

(c) The nullspace N(A)N(A) has dimension nrn - r, as always. Since [AA]\begin{bmatrix} A & A \end{bmatrix} only has rr pivot columns — the nn columns we added are all duplicates — [AA]\begin{bmatrix} A & A \end{bmatrix} is an mm-by-2n2n matrix of rank rr, and its nullspace N([AA])N\left(\begin{bmatrix} A & A \end{bmatrix}\right) has dimension 2nr2n - r.

Problem 4 Final exam

Suppose AA is a 5 by 3 matrix and AxA\mathbf{x} is never zero (except when x\mathbf{x} is the zero vector).

(a) What can you say about the columns of AA?

(b) Show that ATAxA^TA\mathbf{x} is also never zero (except when x=0\mathbf{x} = \mathbf{0}) by explaining this key step:

If ATAx=0A^TA\mathbf{x} = \mathbf{0} then obviously xTATAx=0\mathbf{x}^TA^TA\mathbf{x} = 0 and then (WHY?) Ax=0A\mathbf{x} = \mathbf{0}.

(c) We now know that ATAA^TA is invertible. Explain why B=(ATA)1ATB = (A^TA)^{-1}A^T is a one-sided inverse of AA (which side of AA?). BB is NOT a 2-sided inverse of AA (explain why not).

Show solution

(a) N(A)={0}N(A) = \lbrace \mathbf{0} \rbrace so AA has full column rank r=n=3r = n = 3: the columns are linearly independent.

(b) xTATAx=(Ax)TAx\mathbf{x}^TA^TA\mathbf{x} = (A\mathbf{x})^T A\mathbf{x} is the squared length of AxA\mathbf{x}. The only way it can be zero is if AxA\mathbf{x} has zero length (meaning Ax=0A\mathbf{x} = \mathbf{0}).

(c) BB is a left inverse of AA, since BA=(ATA)1ATA=IBA = (A^TA)^{-1}A^TA = I is the (3-by-3) identity matrix. BB is not a right inverse of AA, because ABAB is a 5-by-5 matrix but can only have rank 3. (In fact, AB=A(ATA)1ATAB = A(A^TA)^{-1}A^T is the projection onto the (3-dimensional) column space of AA.)

Problem 5 Final exam

If AA is 3 by 3 symmetric positive definite, then Aqi=λiqiA\mathbf{q}_i = \lambda_i \mathbf{q}_i with positive eigenvalues and orthonormal eigenvectors qi\mathbf{q}_i.

Suppose x=c1q1+c2q2+c3q3\mathbf{x} = c_1\mathbf{q}_1 + c_2\mathbf{q}_2 + c_3\mathbf{q}_3.

(a) Compute xTx\mathbf{x}^T\mathbf{x} and also xTAx\mathbf{x}^TA\mathbf{x} in terms of the cc‘s and λ\lambda‘s.

(b) Looking at the ratio of xTAx\mathbf{x}^TA\mathbf{x} in part (a) divided by xTx\mathbf{x}^T\mathbf{x} in part (a), what cc‘s would make that ratio as large as possible? You can assume λ1<λ2<<λn\lambda_1 < \lambda_2 < \ldots < \lambda_n. Conclusion: the ratio xTAx/xTx\mathbf{x}^TA\mathbf{x}/\mathbf{x}^T\mathbf{x} is a maximum when x\mathbf{x} is ______.

Show solution

(a) Using orthonormality (qiTqj=0\mathbf{q}_i^T\mathbf{q}_j = 0 for iji \neq j and qiTqi=1\mathbf{q}_i^T\mathbf{q}_i = 1):

xTx=(c1q1T+c2q2T+c3q3T)(c1q1+c2q2+c3q3)=c12q1Tq1+c1c2q1Tq2++c3c2q3Tq2+c32q3Tq3=c12+c22+c32.\begin{aligned} \mathbf{x}^T\mathbf{x} &= (c_1\mathbf{q}_1^T + c_2\mathbf{q}_2^T + c_3\mathbf{q}_3^T)(c_1\mathbf{q}_1 + c_2\mathbf{q}_2 + c_3\mathbf{q}_3) \\ &= c_1^2\mathbf{q}_1^T\mathbf{q}_1 + c_1c_2\mathbf{q}_1^T\mathbf{q}_2 + \cdots + c_3c_2\mathbf{q}_3^T\mathbf{q}_2 + c_3^2\mathbf{q}_3^T\mathbf{q}_3 \\ &= c_1^2 + c_2^2 + c_3^2. \end{aligned}xTAx=(c1q1T+c2q2T+c3q3T)(c1Aq1+c2Aq2+c3Aq3)=(c1q1T+c2q2T+c3q3T)(c1λ1q1+c2λ2q2+c3λ3q3)=c12λ1q1Tq1+c1c2λ2q1Tq2++c3c2λ2q3Tq2+c32λ3q3Tq3=c12λ1+c22λ2+c32λ3.\begin{aligned} \mathbf{x}^TA\mathbf{x} &= (c_1\mathbf{q}_1^T + c_2\mathbf{q}_2^T + c_3\mathbf{q}_3^T)(c_1A\mathbf{q}_1 + c_2A\mathbf{q}_2 + c_3A\mathbf{q}_3) \\ &= (c_1\mathbf{q}_1^T + c_2\mathbf{q}_2^T + c_3\mathbf{q}_3^T)(c_1\lambda_1\mathbf{q}_1 + c_2\lambda_2\mathbf{q}_2 + c_3\lambda_3\mathbf{q}_3) \\ &= c_1^2\lambda_1\mathbf{q}_1^T\mathbf{q}_1 + c_1c_2\lambda_2\mathbf{q}_1^T\mathbf{q}_2 + \cdots + c_3c_2\lambda_2\mathbf{q}_3^T\mathbf{q}_2 + c_3^2\lambda_3\mathbf{q}_3^T\mathbf{q}_3 \\ &= c_1^2\lambda_1 + c_2^2\lambda_2 + c_3^2\lambda_3. \end{aligned}

(b) We maximize (c12λ1+c22λ2+c32λ3)/(c12+c22+c32)(c_1^2\lambda_1 + c_2^2\lambda_2 + c_3^2\lambda_3)/(c_1^2 + c_2^2 + c_3^2) when c1=c2=0c_1 = c_2 = 0, so x=c3q3\mathbf{x} = c_3\mathbf{q}_3 is a multiple of the eigenvector q3\mathbf{q}_3 with the largest eigenvalue λ3\lambda_3.

(Also notice that the maximum value of this “Rayleigh quotient” xTAx/xTx\mathbf{x}^TA\mathbf{x}/\mathbf{x}^T\mathbf{x} is the largest eigenvalue itself. This is another way of finding eigenvectors: maximize xTAx/xTx\mathbf{x}^TA\mathbf{x}/\mathbf{x}^T\mathbf{x} numerically.)

Problem 6 Final exam

(a) Find a linear combination w\mathbf{w} of the linearly independent vectors v\mathbf{v} and u\mathbf{u} that is perpendicular to u\mathbf{u}.

(b) For the 2-column matrix A=[uv]A = \begin{bmatrix} \mathbf{u} & \mathbf{v} \end{bmatrix}, find QQ (orthonormal columns) and RR (2 by 2 upper triangular) so that A=QRA = QR.

(c) In terms of QQ only, using A=QRA = QR, find the projection matrix PP onto the plane spanned by u\mathbf{u} and v\mathbf{v}.

Show solution

(a) You could just write down w=0u+0v=0\mathbf{w} = 0\mathbf{u} + 0\mathbf{v} = \mathbf{0} — that’s perpendicular to everything! But a more useful choice is to subtract off just enough u\mathbf{u} so that w=vcu\mathbf{w} = \mathbf{v} - c\mathbf{u} is perpendicular to u\mathbf{u}. That means 0=wTu=vTucuTu0 = \mathbf{w}^T\mathbf{u} = \mathbf{v}^T\mathbf{u} - c\,\mathbf{u}^T\mathbf{u}, so c=(vTu)/(uTu)c = (\mathbf{v}^T\mathbf{u})/(\mathbf{u}^T\mathbf{u}) and

w=v(vTuuTu)u.\mathbf{w} = \mathbf{v} - \left(\frac{\mathbf{v}^T\mathbf{u}}{\mathbf{u}^T\mathbf{u}}\right)\mathbf{u}.

(b) We already know u\mathbf{u} and w\mathbf{w} are orthogonal; just normalize them! Take q1=u/u\mathbf{q}_1 = \mathbf{u}/|\mathbf{u}| and q2=w/w\mathbf{q}_2 = \mathbf{w}/|\mathbf{w}|. Then solve for the columns r1,r2\mathbf{r}_1, \mathbf{r}_2 of RR: Qr1=uQ\mathbf{r}_1 = \mathbf{u} gives

r1=[u0],\mathbf{r}_1 = \begin{bmatrix} |\mathbf{u}| \\ 0 \end{bmatrix},

and Qr2=vQ\mathbf{r}_2 = \mathbf{v} gives

r2=[cuw]\mathbf{r}_2 = \begin{bmatrix} c\,|\mathbf{u}| \\ |\mathbf{w}| \end{bmatrix}

(where c=(vTu)/(uTu)c = (\mathbf{v}^T\mathbf{u})/(\mathbf{u}^T\mathbf{u}) as before). Then Q=[q1q2]Q = \begin{bmatrix} \mathbf{q}_1 & \mathbf{q}_2 \end{bmatrix} and R=[r1r2]R = \begin{bmatrix} \mathbf{r}_1 & \mathbf{r}_2 \end{bmatrix}.

(c) Substituting A=QRA = QR into the projection formula and using QTQ=IQ^TQ = I:

P=A(ATA)1AT=(QR)(RTQTQR)1(RTQT)=(QR)(R1RTRTQT)=QQT.P = A(A^TA)^{-1}A^T = (QR)(R^TQ^TQR)^{-1}(R^TQ^T) = (QR)(R^{-1}R^{-T}R^TQ^T) = QQ^T.
Problem 7 Final exam

(a) Find the eigenvalues of

C=[0001100001000010]andC2=[0010000110000100].C = \begin{bmatrix} 0 & 0 & 0 & 1 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \end{bmatrix} \qquad \text{and} \qquad C^2 = \begin{bmatrix} 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \end{bmatrix}.

(b) Those are both permutation matrices. What are their inverses C1C^{-1} and (C2)1(C^2)^{-1}?

(c) Find the determinants of CC and C+IC + I and C+2IC + 2I.

Show solution

(a) Take the determinant of CλIC - \lambda I (expanded by cofactors): λ41=0\lambda^4 - 1 = 0. The roots of this “characteristic equation” are the eigenvalues: +1,1,i,i+1, -1, i, -i.

The eigenvalues of C2C^2 are just λ2=±1\lambda^2 = \pm 1 (two of each).

(Here’s a “guessing” approach. Since C4=IC^4 = I, all the eigenvalues λ4\lambda^4 of C4C^4 are 1: so λ=1,1,i,i\lambda = 1, -1, i, -i are the only possibilities. Just check to see which ones work. Then the eigenvalues of C2C^2 must be ±1\pm 1.)

(b) For any permutation matrix, C1=CTC^{-1} = C^T: so

C1=[0100001000011000]C^{-1} = \begin{bmatrix} 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \\ 1 & 0 & 0 & 0 \end{bmatrix}

and (C2)1=C2(C^2)^{-1} = C^2 is itself.

(c) The determinant of CC is the product of its eigenvalues: 1(1)i(i)=11 \cdot (-1) \cdot i \cdot (-i) = -1.

Add 1 to every eigenvalue to get the eigenvalues of C+IC + I (if C=SΛS1C = S\Lambda S^{-1}, then C+I=S(Λ+I)S1C + I = S(\Lambda + I)S^{-1}): det(C+I)=20(1+i)(1i)=0\det(C + I) = 2 \cdot 0 \cdot (1+i)(1-i) = 0. (Or let λ=1\lambda = -1 in the characteristic equation det(CλI)\det(C - \lambda I).)

Add 2 to get the eigenvalues of C+2IC + 2I (or let λ=2\lambda = -2): det(C+2I)=31(2+i)(2i)=15\det(C + 2I) = 3 \cdot 1 \cdot (2+i)(2-i) = 15.

Problem 8 Final exam

Suppose a rectangular matrix AA has independent columns.

(a) How do you find the best least squares solution x^\hat{\mathbf{x}} to Ax=bA\mathbf{x} = \mathbf{b}? By taking those steps, give me a formula (letters not numbers) for x^\hat{\mathbf{x}} and also for p=Ax^\mathbf{p} = A\hat{\mathbf{x}}.

(b) The projection p\mathbf{p} is in which fundamental subspace associated with AA? The error vector e=bp\mathbf{e} = \mathbf{b} - \mathbf{p} is in which fundamental subspace?

(c) Find by any method the projection matrix PP onto the column space of AA:

A=[10300103].A = \begin{bmatrix} 1 & 0 \\ 3 & 0 \\ 0 & -1 \\ 0 & -3 \end{bmatrix}.
Show solution

(a) Multiply both sides of Ax=bA\mathbf{x} = \mathbf{b} by ATA^T to get the normal equations:

ATAx^=ATb.A^TA\hat{\mathbf{x}} = A^T\mathbf{b}.

Since the columns of AA are independent, ATAA^TA is invertible, so

x^=(ATA)1ATbandp=Ax^=A(ATA)1ATb.\hat{\mathbf{x}} = (A^TA)^{-1}A^T\mathbf{b} \qquad \text{and} \qquad \mathbf{p} = A\hat{\mathbf{x}} = A(A^TA)^{-1}A^T\mathbf{b}.

(b) p=Ax^\mathbf{p} = A\hat{\mathbf{x}} is a linear combination of columns of AA, so it’s in the column space C(A)C(A). The error e=bp\mathbf{e} = \mathbf{b} - \mathbf{p} is orthogonal to this space, so it’s in the left nullspace N(AT)N(A^T).

(c) Use P=A(ATA)1ATP = A(A^TA)^{-1}A^T. Since

ATA=[100010],(ATA)1=[1/10001/10]=110I,A^TA = \begin{bmatrix} 10 & 0 \\ 0 & 10 \end{bmatrix}, \qquad (A^TA)^{-1} = \begin{bmatrix} 1/10 & 0 \\ 0 & 1/10 \end{bmatrix} = \tfrac{1}{10}I,

and

P=110[1300390000130039].P = \frac{1}{10}\begin{bmatrix} 1 & 3 & 0 & 0 \\ 3 & 9 & 0 & 0 \\ 0 & 0 & 1 & 3 \\ 0 & 0 & 3 & 9 \end{bmatrix}.
Problem 9 Final exam

This question is about the matrices with 3’s on the main diagonal, 2’s on the diagonal above, 1’s on the diagonal below.

A1=[3]A2=[3213]A3=[320132013]An=[3200132001300]A_1 = \begin{bmatrix} 3 \end{bmatrix} \quad A_2 = \begin{bmatrix} 3 & 2 \\ 1 & 3 \end{bmatrix} \quad A_3 = \begin{bmatrix} 3 & 2 & 0 \\ 1 & 3 & 2 \\ 0 & 1 & 3 \end{bmatrix} \quad A_n = \begin{bmatrix} 3 & 2 & 0 & 0 \\ 1 & 3 & 2 & 0 \\ 0 & 1 & 3 & \cdot \\ 0 & 0 & \cdot & \cdot \end{bmatrix}

(a) What are the determinants of A2A_2 and A3A_3?

(b) The determinant of AnA_n is DnD_n. Use cofactors of row 1 and column 1 to find the numbers aa and bb in the recursive formula for DnD_n:

()Dn=aDn1+bDn2.(*) \qquad D_n = a\,D_{n-1} + b\,D_{n-2}.

(c) This equation ()(*) is the same as

[DnDn1]=[ab10][Dn1Dn2].\begin{bmatrix} D_n \\ D_{n-1} \end{bmatrix} = \begin{bmatrix} a & b \\ 1 & 0 \end{bmatrix} \begin{bmatrix} D_{n-1} \\ D_{n-2} \end{bmatrix}.

From the eigenvalues of that matrix, how fast do the determinants DnD_n grow? (If you didn’t find aa and bb, say how you would answer part (c) for any aa and bb.) For 1 point, find D5D_5.

Show solution

(a) det(A2)=3312=7\det(A_2) = 3 \cdot 3 - 1 \cdot 2 = 7 and det(A3)=3det(A2)213=15\det(A_3) = 3\det(A_2) - 2 \cdot 1 \cdot 3 = 15.

(b) Expanding by cofactors along row 1: the entry 3 multiplies the determinant Dn1D_{n-1} of the same tridiagonal matrix one size smaller, and the entry 2 multiplies a cofactor whose first column has the single entry 1 — expanding that cofactor down its first column leaves Dn2D_{n-2}. So

Dn=3Dn1+(2)Dn2,D_n = 3D_{n-1} + (-2)D_{n-2},

that is, a=3a = 3 and b=2b = -2.

(c) The trace of that matrix is a=3a = 3, and the determinant is b=2-b = 2. So the characteristic equation is λ2aλb=0\lambda^2 - a\lambda - b = 0, which has roots (the eigenvalues)

λ±=a±a24(b)2=3±12=1 or 2.\lambda_\pm = \frac{a \pm \sqrt{a^2 - 4(-b)}}{2} = \frac{3 \pm 1}{2} = 1 \text{ or } 2.

DnD_n grows at the same rate as the largest eigenvalue power: λ+n=2n\lambda_+^n = 2^n.

The final point: D5=3D4+2D3=3(3D3+2D2)+2D3=11D3+6D2=1115+67=207D_5 = 3D_4 + 2D_3 = 3(3D_3 + 2D_2) + 2D_3 = 11D_3 + 6D_2 = 11 \cdot 15 + 6 \cdot 7 = 207.