Linear Algebra for Engineers lecture 19: Rank Theorem and Fundamental Subspaces
Overview
Alex Townsend defines matrix rank as the dimension of the column space, connects it to row space through rank(A) = rank(Aᵀ), and explains rank-nullity and the factorization A = CR. Examples show how low rank supports image compression and recommendation systems, before Townsend organizes the four fundamental subspaces by their dimensions and orthogonality; the lecture ends by posing, but not proving, the orthogonality relationships.
Key takeaways
- For any matrix A, rank(A) = rank(Aᵀ), so the dimension of the column space equals the dimension of the row space.
- An m by n matrix of rank r can be written as A = CR, with C sized m by r and R sized r by n, requiring r(m+n) entries rather than mn.
- For an n by n matrix, the factorization A = CR uses fewer entries than storing A directly when r < n/2.
- The four fundamental subspaces have dimensions r, r, n-r, and m-r: Col(A), Col(Aᵀ), Null(A), and Null(Aᵀ), respectively.
- The nullspace Null(A) captures all homogeneous solutions that can be added to a solution of Ax = b, while Col(A) determines which right-hand sides b are solvable.
- Low-rank structure can compress images and uncover correlations in incomplete customer-movie ratings, but practical video compression uses additional techniques beyond a single low-rank factorization.
Chapters
- Townsend introduces rank as the dimension of the space spanned by a matrix’s columns.
- For an m by n matrix, rank(A) equals rank(Aᵀ), so column space and row space have the same dimension.
- Rank-nullity gives rank(A) + dim Null(A) = n, with pivot columns and free variables accounting for the two terms.
- When rank(A) = r, Townsend chooses r basis vectors for the column space and places them in C.
- Each column of R contains the coefficients needed to express the corresponding column of A using the columns of C.
- The product C R reconstructs A while exposing the matrix’s rank and column dependencies.
- A 3 by 3 example has rank 2: its columns are not all multiples of one another, but a dependency rules out rank 3.
- Transposing the matrix makes the dependency easier to spot because two columns of Aᵀ, equivalently two rows of A, are multiples.
- The equality rank(A) = rank(Aᵀ) lets you choose whichever view, rows or columns, makes a rank argument clearer.
- Townsend represents a color bear image using separate red, green, and blue matrices, then shows a best rank-one approximation.
- A rank-one matrix repeats one column pattern across the image with different scalar weights, producing visible horizontal and vertical smearing.
- The Austrian flag serves as a simple rank-one example because its columns repeat the same pattern.
- An m by n matrix takes mn entries to store, while a rank-r factorization takes r(m+n); for square matrices, it saves entries when r < n/2.
- Townsend compares a 355 by 512 image with a rank-35 approximation, which retains recognizable detail using far fewer factor entries.
- Image and video compression use related ideas, though Townsend notes that JPEG and MPEG involve more than taking one global matrix rank.
- A customer-by-movie ratings matrix can use low-rank correlations to infer missing preferences and recommend movies; the same dimensionality-reduction idea can reveal important patterns in medical data.
- The four spaces are Col(A), Col(Aᵀ), Null(A), and Null(Aᵀ).
- For an m by n matrix, Col(A) lies in R^m and describes which right-hand sides b allow Ax = b to have a solution.
- Null(A) lies in R^n and describes solutions that can be added to a solution of Ax = b without changing the result.
- Townsend recalls using Null(Aᵀ) to analyze short circuits in a graph’s incidence-matrix model.
- If rank(A) = r, then dim Col(A) = r and dim Col(Aᵀ) = r.
- Rank-nullity gives dim Null(A) = n-r and dim Null(Aᵀ) = m-r.
- The four spaces live in the appropriate ambient spaces: Col(A) and Null(Aᵀ) in R^m, Col(Aᵀ) and Null(A) in R^n.
- Townsend states that every vector in Col(Aᵀ) is perpendicular to every vector in Null(A).
- Likewise, Col(A) is perpendicular to Null(Aᵀ), completing the geometric connections in the four-subspace diagram.
- The lecture ends by challenging students to prove these orthogonality facts algebraically, without providing the proof.
Transcript excerpt
0:00 understand any Harry Potter references. It didn't matter. The I just did that for my own amusement, I guess. I don't think it changed all the questions. I could have just got rid of those rid of the references and all the questions mostly stay the same. Yeah, I'm sorry about the Quidditch ball. I need to reread Harry Potter as you can tell. So I lose a point on the Harry Potter references. Come on guys, I don't think it was that bad. We'll see. We'll see. I predict the the mean median will will be better than you think it is. Anyway, it's it's doable. We can work with it. [laughter]
0:53 Okay, good. Yeah, I'm pleased. Okay, so by the way, I'm going to try to keep the Harry Potter theme throughout all the exams. And as the exams go on, I'll get better at writing Harry Potter questions. I'm already working on the semifinals. So anyway, [clears throat] so let's just keep it a little bit chilled out today, hopefully, and do a little bit but not too much. So lecture 19 section 4.6 this is about rank. And so I'm just assuming I have some matrix, some rectangular matrix or square. We know the column space of A is the the space that can be explored by doing
1:42 linear combinations of the columns of A. And the rank of A is the dimension of that space that can be explored. So it's the dimension of the column space of A, also known as the rank of A. Now we have this fact in lecture 18 that the space that can be explored by doing linear combinations of the columns has the same dimension as the linear as the linear as Okay, let me say that again. The space
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Alex Townsend.