6. Column Space and Nullspace
Overview
Gilbert Strang introduces vector spaces and subspaces, then explains the column space and nullspace of a matrix through a 4-by-3 example. He connects the column space to which right-hand sides make Ax=b solvable, shows that the example’s columns span a two-dimensional subspace of R^4, and identifies its nullspace as a line in R^3.
Key takeaways
- A set of vectors is a subspace only if it contains zero and is closed under addition and scalar multiplication; a plane or line in R^3 must pass through the origin.
- The intersection of any two subspaces is a subspace, but their union generally is not because combining vectors from different parts can leave the union.
- For any matrix A, Ax=b is solvable exactly when b belongs to the column space of A, since Ax is a linear combination of A’s columns.
- In the example with columns (1,2,3,4), (1,1,1,1), and (2,3,4,5), the third column is the sum of the first two, making the column space two-dimensional in R^4.
- The nullspace consists of all coefficient vectors x satisfying Ax=0; in the example it is the line of vectors c(1,1,-1) in R^3.
- Solutions to Ax=0 always form a subspace, whereas solutions to Ax=b for nonzero b generally form a shifted set that excludes zero.
Chapters
- A vector space is closed under vector addition and multiplication by any scalar, so it contains every linear combination of its vectors.
- In R^3, the whole space, any plane through the origin, and any line through the origin are subspaces.
- Every subspace must contain the zero vector, since multiplying any vector by zero must stay inside the space.
- The union of a plane P and a line L is generally not a subspace: adding a vector from each can produce a vector outside both.
- For the illustrated plane and line, P intersect L contains only the zero vector, which is itself a subspace.
- For any subspaces S and T, their intersection is closed under addition and scalar multiplication because vectors in the intersection belong to both spaces.
- Strang uses the matrix with columns (1,2,3,4), (1,1,1,1), and (2,3,4,5), so its column space is a subspace of R^4.
- The column space consists of all linear combinations of the matrix’s columns, not just the three columns themselves.
- Because the matrix has only three columns in R^4, their combinations do not fill all of R^4.
- For the 4-by-3 example, Ax=b is a system of four equations with three unknowns, so an arbitrary b in R^4 need not be reachable.
- The right-hand side b is solvable exactly when it is a linear combination of the columns, equivalently when b belongs to the column space.
- For b=(1,2,3,4), x=(1,0,0) is a solution because b is the first column; for b=(1,1,1,1), x=(0,1,0) works.
- The third column (2,3,4,5) equals the sum of the first two columns, so it adds no new direction to the column space.
- Strang calls the first independent columns pivot columns and keeps the first two under his convention.
- The example’s column space is therefore a two-dimensional subspace of R^4.
- The nullspace N(A) is the set of all vectors x satisfying Ax=0, so its elements are coefficient vectors rather than right-hand sides.
- For an m-by-n matrix, the column space lies in R^m while the nullspace lies in R^n; here those spaces are in R^4 and R^3, respectively.
- The zero vector is always in N(A), because multiplying any matrix by the zero vector gives zero.
- For the 4-by-3 matrix, the coefficients (1,1,-1) give a zero combination: column 1 plus column 2 minus column 3 equals zero.
- All nullspace vectors have the form (c,c,-c), or c(1,1,-1), for any scalar c.
- Those vectors form a line through the origin in R^3, including zero when c=0.
- If Av=0 and Aw=0, then A(v+w)=Av+Aw=0, so the sum of two nullspace vectors remains in N(A).
- If Av=0, then A(12v)=12Av=0; the same scalar-multiplication argument works for any scalar.
- The distributive and scalar laws for matrix multiplication establish closure, so solutions to Ax=0 always form a subspace.
- For b=(1,2,3,4), both (1,0,0) and (0,-1,1) solve Ax=b, but the solution set is not a subspace because it does not contain the zero vector.
- The solutions to Ax=b can form a shifted line or plane that does not pass through the origin, unlike the nullspace solutions to Ax=0.
- Strang presents two ways to specify subspaces: generate them from vectors using linear combinations, or define them as solutions satisfying homogeneous equations.
Transcript excerpt
0:09 Okay. This is lecture six in linear algebra, and we're at the start of this new chapter, chapter three in the text, which is really getting to the center of linear algebra. And I had time to make a first start on it at the end of lecture five. But now is lecture six is officially the lecture on vector spaces and subspaces. And then especially -- there are two subspaces that we're specially interested in. One is the column space of a matrix, the other is the null space of the matrix. So, I got to tell you what those are.
0:59 Okay. So, first to remember from lecture five, what is a vector space? It's a bunch of vectors that -- where I'm allowed -- where I can add -- I can add any two vectors in the space and the answer stays in the space. Or I can multiply any vector in the space by any constant and the result stays in the space. So that's -- in fact if I combine those two into one, you can see that -- if I can add and I can multiply by numbers, that really means that I can take linear combinations. So the quick way to say it is that all linear combinations,
1:50 C -- any multiple of V plus any multiple of W stay in the space. So, can I give you examples that are vector spaces and also some examples that are not, to make that point clear? So, suppose I'm in three dimensions. Then one way to get us one space is the whole three dimensional space. So the whole space R^3, three dimensional space, would be a vector space, because if I have a couple of vectors I can add them and I'm certainly okay and they follow all
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
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, MIT OpenCourseWare.