Linear Algebra for Engineers lecture 18: Rank and Low-Rank Factorization
Overview
Alex Townsend defines matrix rank as the dimension of the column space, equivalently the number of pivot columns, then uses flag matrices to show how rank-r matrices can be stored as products of smaller factors. He develops the factorization A = CR, explains why rank(A) equals rank(Aᵀ), and derives the rank theorem: rank(A) plus nullity(A) equals the number of columns.
Key takeaways
- Matrix rank is the dimension of the column space and equals the number of pivot columns, so it measures independent column directions rather than matrix size.
- A rank-1 6 × 8 flag matrix can be stored with 14 factor entries instead of 48 by writing it as a 6 × 1 matrix times a 1 × 8 matrix.
- An m × n rank-r matrix can be factored into dimensions m × r and r × n, using mr + rn entries instead of mn when that factor representation is smaller.
- The 9 × 11 Greece flag example has rank 3 and takes 60 factor entries versus 99 original entries, showing that low rank can help even when compression is modest.
- A matrix and its transpose have equal rank because transposing a rank-r factorization reverses the factor order while preserving the inner dimension r.
- The rank theorem states rank(A) + nullity(A) = n: pivot columns and free-variable columns partition the n columns of an m × n matrix.
Chapters
- A basis for Rⁿ provides unique coordinates for every vector through spanning and linear independence.
- The change-of-basis matrix P_B maps coordinates in basis B to standard coordinates; its inverse maps standard coordinates back to B.
- Alex Townsend connects useful coordinate systems to earlier examples involving a jumping spider and a crystalline lattice.
- Rank(A) is defined as the dimension of A’s column space, the span of its columns.
- The rank equals the number of pivot columns, since pivot columns form a basis for the column space.
- A matrix with two independent spanning columns has rank 2, regardless of how many dependent columns it also contains.
- Townsend represents a simple Austrian flag as a 6 × 8 pixel matrix with 48 entries.
- All eight columns repeat the same nonzero vector, so the column space is the span of one vector in R⁶.
- The matrix has rank 1 because it has one independent column direction.
- The 6 × 8 England flag matrix has two distinct, linearly independent columns, giving it rank 2.
- The 9 × 11 Greece flag matrix has three distinct independent columns; its other columns repeat those directions, so its rank is 3.
- These examples show that rank reflects the dimension of the column space, not the total number of columns or pixels.
- Townsend factors the 6 × 8 Austrian flag matrix into a 6 × 1 column and a 1 × 8 row.
- The two factors store 6 + 8 = 14 entries instead of the original 48, and their product reconstructs the flag.
- The example illustrates how low rank can reduce storage, with greater potential savings for larger images.
- For the rank-2 England matrix, a 6 × 2 basis factor and a 2 × 8 coefficient factor use 28 entries rather than 48.
- Each column of the coefficient factor records the linear combination of the two basis columns needed to recover the corresponding image column.
- For the rank-3, 9 × 11 Greece matrix, the factors require 27 + 33 = 60 entries rather than 99, a smaller but still positive saving.
- An m × n matrix of rank r can be written as A = CR, where C is m × r and R is r × n.
- The columns of C form a basis for the column space of A; each column of R stores coefficients for reconstructing one column of A.
- The factorization uses mr + rn entries rather than mn, though it may not compress matrices whose rank is high.
- Transposing A = CR gives Aᵀ = RᵀCᵀ, with the same inner dimension r in the factorization.
- Because the factors provide rank-r representations in both directions, rank(A) equals rank(Aᵀ).
- Townsend also relates this equality to the matching counts of pivot columns and pivot rows, and identifies the row space as the column space of Aᵀ.
- For an m × n matrix A, rank(A) + dim(null space of A) = n, the number of columns.
- Rank counts pivot columns, while nullity counts free variables, equivalently non-pivot columns.
- Every column is either a pivot column or a non-pivot column, explaining why the two counts sum to n even though the column space and null space lie in different ambient spaces.
Transcript excerpt
0:00 Okay. There's there's always work. Work is a never ending uh never ending. You finish one job and another job enters. Uh work always expands to the time available. I can't remember who said that, but it's kind of true. Um if you have two hours to do something, you will take two hours to do it. If you have an hour, you'll take an hour. Anyway, let's go to uh So, lecture uh 18 uh is corresponding to section 4.6 of the book. Now, 4.6 of the book is really small. It's on rank. It's uh only like three pages because since the book has been written over the last you know five editions,
0:49 the concept of rank has become really important. Uh so while the book didn't give much space to it, I'm going to give more space to those pages then uh it fills because of the importance of the concept of rank uh in your future uh at Courant. So, I'm going to expand on the chapter a little bit. So, why has rank become important? You as you'll see, the the concept of rank allows you to compress very large matrices and uh and databases to uh to be able to store them more efficiently. Uh so that's one of the reasons. Other reasons is just as matrices get bigger, you need to exploit some more structure of those matrices and the word the
1:37 concept of rank has become an important structure to exploit to do that compression. So, anyway, uh you'll see what I mean by all that. Okay, so uh if I Let's just recap. If I give you a basis B for RN, right? RN is a vector space. It's of dimension N. It's a vector space because I can do linear
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.