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
Suppose is 3 by 4, and has exactly 2 special solutions:
(a) Remembering that is 3 by 4, find its row reduced echelon form .
(b) Find the dimensions of all four fundamental subspaces , , , . 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 when we set one free variable and the others . Here, the third and fourth variables must be the two free variables, and the other two are the pivots:
Now multiply out and to find the ‘s:
(The ‘s are just the negatives of the special solutions’ pivot entries.)
(b) We know the nullspace has dimensions: the special solutions form a basis.
The row space has dimensions. It’s orthogonal to , so just pick two linearly independent vectors orthogonal to and to form a basis: for example,
(Or: is just the row space of , so the first two rows are a basis. Same thing!)
The column space has dimensions (same as ). We can’t write down a basis because we don’t know what is, but we can say that the first two columns of are a basis.
The left nullspace has dimension; it’s orthogonal to , so any vector orthogonal to the first two columns of (whatever they are) will be a basis.
(a) Find the inverse of a 3 by 3 upper triangular matrix , with nonzero entries . You could use cofactors and the formula for the inverse. Or possibly Gauss-Jordan elimination.
(b) Suppose the columns of are eigenvectors of a matrix . Show that is also upper triangular.
(c) Explain why this cannot be the same matrix as the first factor in the Singular Value Decomposition .
Show solution
(a) By elimination: keep track of the elimination matrix on one side, and the product on the other. When , then :
By cofactors: take the minors, then “checkerboard” the signs to get the cofactor matrix, then transpose and divide by :
and dividing by gives
(b) We have a complete set of eigenvectors for , so we can diagonalize: . We know is upper triangular, and so is the diagonal matrix , and we’ve just shown that is upper triangular too. So their product is also upper triangular.
(c) The columns aren’t orthogonal! (For example, the product of the first two columns is , which is nonzero because we’re assuming all the entries are nonzero.)
(a) and are any matrices with the same number of rows. What can you say (and explain why it is true) about the comparison of
(b) Suppose . How do those ranks compare? Explain your reasoning.
(c) If is by of rank , what are the dimensions of these nullspaces?
Show solution
(a) All you can say is that . ( can have any number of pivot columns, and these will all be pivot columns for ; but there could be more pivot columns among the columns of .)
(b) Now . (Every column of is a linear combination of columns of . For instance, if we call ‘s first column , then is the first column of . So there are no new pivot columns in the part of .)
(c) The nullspace has dimension , as always. Since only has pivot columns — the columns we added are all duplicates — is an -by- matrix of rank , and its nullspace has dimension .
Suppose is a 5 by 3 matrix and is never zero (except when is the zero vector).
(a) What can you say about the columns of ?
(b) Show that is also never zero (except when ) by explaining this key step:
If then obviously and then (WHY?) .
(c) We now know that is invertible. Explain why is a one-sided inverse of (which side of ?). is NOT a 2-sided inverse of (explain why not).
Show solution
(a) so has full column rank : the columns are linearly independent.
(b) is the squared length of . The only way it can be zero is if has zero length (meaning ).
(c) is a left inverse of , since is the (3-by-3) identity matrix. is not a right inverse of , because is a 5-by-5 matrix but can only have rank 3. (In fact, is the projection onto the (3-dimensional) column space of .)
If is 3 by 3 symmetric positive definite, then with positive eigenvalues and orthonormal eigenvectors .
Suppose .
(a) Compute and also in terms of the ‘s and ‘s.
(b) Looking at the ratio of in part (a) divided by in part (a), what ‘s would make that ratio as large as possible? You can assume . Conclusion: the ratio is a maximum when is ______.
Show solution
(a) Using orthonormality ( for and ):
(b) We maximize when , so is a multiple of the eigenvector with the largest eigenvalue .
(Also notice that the maximum value of this “Rayleigh quotient” is the largest eigenvalue itself. This is another way of finding eigenvectors: maximize numerically.)
(a) Find a linear combination of the linearly independent vectors and that is perpendicular to .
(b) For the 2-column matrix , find (orthonormal columns) and (2 by 2 upper triangular) so that .
(c) In terms of only, using , find the projection matrix onto the plane spanned by and .
Show solution
(a) You could just write down — that’s perpendicular to everything! But a more useful choice is to subtract off just enough so that is perpendicular to . That means , so and
(b) We already know and are orthogonal; just normalize them! Take and . Then solve for the columns of : gives
and gives
(where as before). Then and .
(c) Substituting into the projection formula and using :
(a) Find the eigenvalues of
(b) Those are both permutation matrices. What are their inverses and ?
(c) Find the determinants of and and .
Show solution
(a) Take the determinant of (expanded by cofactors): . The roots of this “characteristic equation” are the eigenvalues: .
The eigenvalues of are just (two of each).
(Here’s a “guessing” approach. Since , all the eigenvalues of are 1: so are the only possibilities. Just check to see which ones work. Then the eigenvalues of must be .)
(b) For any permutation matrix, : so
and is itself.
(c) The determinant of is the product of its eigenvalues: .
Add 1 to every eigenvalue to get the eigenvalues of (if , then ): . (Or let in the characteristic equation .)
Add 2 to get the eigenvalues of (or let ): .
Suppose a rectangular matrix has independent columns.
(a) How do you find the best least squares solution to ? By taking those steps, give me a formula (letters not numbers) for and also for .
(b) The projection is in which fundamental subspace associated with ? The error vector is in which fundamental subspace?
(c) Find by any method the projection matrix onto the column space of :
Show solution
(a) Multiply both sides of by to get the normal equations:
Since the columns of are independent, is invertible, so
(b) is a linear combination of columns of , so it’s in the column space . The error is orthogonal to this space, so it’s in the left nullspace .
(c) Use . Since
and
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.
(a) What are the determinants of and ?
(b) The determinant of is . Use cofactors of row 1 and column 1 to find the numbers and in the recursive formula for :
(c) This equation is the same as
From the eigenvalues of that matrix, how fast do the determinants grow? (If you didn’t find and , say how you would answer part (c) for any and .) For 1 point, find .
Show solution
(a) and .
(b) Expanding by cofactors along row 1: the entry 3 multiplies the determinant 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 . So
that is, and .
(c) The trace of that matrix is , and the determinant is . So the characteristic equation is , which has roots (the eigenvalues)
grows at the same rate as the largest eigenvalue power: .
The final point: .