Subspaces, Basis, Dimension, Rank, Column Space and Null Space
From Subspaces to Rank-Nullity
A subspace of Rn is a set that contains the zero vector and is closed under vector addition and scalar multiplication.
A quick way to prove that a set is a subspace is to take arbitrary vectors in it and show that every linear combination remains in it. A set defined by a homogeneous linear equation, such as x1−2x2+x3=0, is a subspace.
Replacing the right side by a nonzero constant removes the zero vector, so the set is not a subspace; it is a translate of one, and checking the origin is the cheapest test available because it needs no arithmetic beyond substitution.
The span of a list of vectors is the collection of all their linear combinations. A basis for a space must do two jobs: span the entire space and be linearly independent.
Because a basis contains no redundant vectors, every basis for the same finite-dimensional space has the same number of vectors, and that number is the dimension.
A spanning list that is too long is not a basis, and an independent list that is too short is not one either; both failures are common and they are opposite failures.
Three vectors drawn from a common point in a plane W. The dashed segments complete a parallelogram: translating c2 to the tip of c1, and c1 to the tip of c2, both land on the tip of c3, which is the geometric statement that c3 is a sum of the other two.
Reading a matrix
For a matrix A, the column space Col(A) is spanned by its columns, while the null space Nul(A) contains all vectors satisfying Ax=0. The two live in different places: if A is m×n, then Col(A)⊆Rm and Nul(A)⊆Rn, so their dimensions answer different questions.
Both are constrained by the column count: rank(A)≤min(m,n) and nullity(A)=n−rank(A)≤n. Row reduction reveals pivot columns and free variables. The number of pivots is the rank, which equals dim(Col(A)). If A has n columns, then
For example, let A=[100111]. Its first two columns are pivot columns, so they form a basis for the column space and the rank is 2. Solving Ax=0 gives x1=−s, x2=−s, and x3=s. Thus the null space has basis {(−1,−1,1)} and dimension 1, confirming rank-nullity because 2+1=3.
What changes when the matrix changes
Rank-nullity is an identity, not a fixed pair of numbers, so both sides move when the matrix does. Two cases are worth separating.
Appending a column that already lies in the column space leaves the rank alone but raises n by one, so the nullity rises by one: the new column contributes a free variable and a new dependency relation.
Appending a column outside the column space raises the rank by one and leaves the nullity unchanged. The chart shows the trade-off line for two different column counts; adding a column shifts the whole line up by one without changing its slope.
Rank-nullity trade-off for two different column counts
A common mistake is to use columns of the reduced matrix as a basis for the original column space. Row operations preserve pivot locations and the null-space solution set, but they generally change the column space. Use the pivot positions to select columns from the original matrix.
A matrix A has 8 columns and rank 2. Three of its eight columns are then changed so that the rank rises to 5; the matrix still has 8 columns. Finally one further column is appended, and that new column is a linear combination of the columns already present. What are the rank and nullity of the resulting matrix?
Let S={(x1,x2,x3)∈R3:x1+x2=1}. Which statement about S is correct?