Column space, row space, null space and left null space, the definition and computation of rank, the rank–nullity theorem, rank inequalities for sums and products, rank of special matrices (outer products, Gram matrices), full-rank matrices and the invertible matrix theorem.
They pair up as orthogonal complements: N(A)=C(A⊤)⊥ in Rn and N(A⊤)=C(A)⊥ in Rm.
A maps the row space one-to-one onto the column space and sends the null space to zero.
Rank
The rank of A is the number of pivots after elimination, equivalently:
the dimension of the column space (column rank) = the dimension of the row space (row rank);
the maximum number of linearly independent columns (or rows);
the size of the largest non-zero minor (largest square sub-matrix with non-zero determinant);
the number of non-zero singular values.
Computing rank: row-reduce and count non-zero rows. To find a basis of C(A), take the original columns of A in the pivot positions; for C(A⊤), take the non-zero rows of the echelon form.
The rank–nullity theorem
rank(A)+nullity(A)=n(number of columns).
Interpretation: of the n input dimensions, r survive (map to the column space) and n−r are crushed to zero. For a linear map T:V→W, dimrangeT+dimkerT=dimV.
Rank inequalities
Result
Statement
Bounds
0≤rankA≤min(m,n)
Transpose
rankA⊤=rankA
Product
rank(AB)≤min(rankA,rankB)
Sylvester
rank(AB)≥rankA+rankB−n (n = inner dimension)
Invertible factor
rank(PA)=rank(AQ)=rankA for invertible P,Q
Sum
rank(A+B)≤rankA+rankB
Gram matrices
rank(A⊤A)=rank(AA⊤)=rankA
Outer product
rank(uv⊤)=1 for non-zero u,v
Diagonalisable
rank = number of non-zero eigenvalues
Full rank and the invertible matrix theorem
Full column rank (r=n≤m): columns independent, N(A)={0}, A⊤A invertible, Ax=b has at most one solution. Needed for the least-squares formula.
Full row rank (r=m≤n): rows independent, C(A)=Rm, Ax=b always solvable.
For square A (n×n), the following are equivalent: A is invertible; rankA=n; N(A)={0}; the columns form a basis of Rn; detA=0; 0 is not an eigenvalue; Ax=b has a unique solution for every b; A⊤ is invertible; all singular values are positive.
Rank in data science
A data matrix with n samples and p features has rank ≤min(n,p); perfectly collinear features reduce rank and make X⊤X singular (the reason for ridge regression).
Low-rank approximation (truncated SVD) compresses data and is the basis of PCA and recommender systems.
Quick revision
Practice questions
GATE-style questions: 5 one-mark and 4 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
Q1NAT1 mark
A 4×6 matrix A has rank 3. The nullity of A (dimension of {x:Ax=0}) is ______.
Q2MCQ1 mark
For matrices A (m×n) and B (n×p), which inequality always holds?
Q3NAT1 mark
The rank of 123246369 is ______.
Q4MSQ2 marks
A is a real m×n matrix with m=n. Which statements are always true?
One or more options are correct.
Q5NAT2 marks
A is the 5×5 matrix with entries aij=i+j. The rank of A is ______.
Q6NAT2 marks
A 5×3 matrix A has rank 2. The dimension of the left null space {y:A⊤y=0} is ______.
Q7MCQ2 marks
A is a non-zero 3×3 matrix with A2=0. Then rank(A) is
Q8NAT1 mark
The rank of 123247 is ______.
Q9MSQ1 mark
For an n×n matrix A, which conditions are equivalent to "A is invertible"?