∑GATE DA Atlas

Rank, Nullity and the Four Fundamental Subspaces

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.

Section 29 practice questions

The four fundamental subspaces

For A∈Rm×nA \in \mathbb R^{m\times n} with rank rr:

SubspaceDefinitionLives inDimension
Column space C(A)C(A){Ax}\{A\mathbf x\} — span of the columnsRm\mathbb R^mrr
Row space C(A⊤)C(A^\top)span of the rowsRn\mathbb R^nrr
Null space N(A)N(A){x:Ax=0}\{\mathbf x : A\mathbf x = \mathbf 0\}Rn\mathbb R^nn−rn - r
Left null space N(A⊤)N(A^\top){y:A⊤y=0}\{\mathbf y : A^\top\mathbf y = \mathbf 0\}Rm\mathbb R^mm−rm - r

They pair up as orthogonal complements: N(A)=C(A⊤)⊥N(A) = C(A^\top)^\perp in Rn\mathbb R^n and N(A⊤)=C(A)⊥N(A^\top) = C(A)^\perp in Rm\mathbb R^m.

ℝⁿ (inputs) row space C(Aᵀ)dim r null space N(A)dim n − r ℝᵐ (outputs) column space C(A)dim r left null space N(Aᵀ)dim m − r A (one-to-one here) → 0 orthogonal complements in ℝⁿorthogonal complements in ℝᵐ
A maps the row space one-to-one onto the column space and sends the null space to zero.

Rank

The rank of AA 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)C(A), take the original columns of AA in the pivot positions; for C(A⊤)C(A^\top), take the non-zero rows of the echelon form.

The rank–nullity theorem

rank⁡(A)+nullity⁡(A)=n (number of columns).\operatorname{rank}(A) + \operatorname{nullity}(A) = n\ (\text{number of columns}).

Interpretation: of the nn input dimensions, rr survive (map to the column space) and n−rn - r are crushed to zero. For a linear map T:V→WT: V \to W, dim⁡range⁡T+dim⁡ker⁡T=dim⁡V\dim\operatorname{range}T + \dim\ker T = \dim V.

Rank inequalities

ResultStatement
Bounds0≤rank⁡A≤min⁡(m,n)0 \le \operatorname{rank}A \le \min(m, n)
Transposerank⁡A⊤=rank⁡A\operatorname{rank}A^\top = \operatorname{rank}A
Productrank⁡(AB)≤min⁡(rank⁡A,rank⁡B)\operatorname{rank}(AB) \le \min(\operatorname{rank}A, \operatorname{rank}B)
Sylvesterrank⁡(AB)≥rank⁡A+rank⁡B−n\operatorname{rank}(AB) \ge \operatorname{rank}A + \operatorname{rank}B - n (nn = inner dimension)
Invertible factorrank⁡(PA)=rank⁡(AQ)=rank⁡A\operatorname{rank}(PA) = \operatorname{rank}(AQ) = \operatorname{rank}A for invertible P,QP, Q
Sumrank⁡(A+B)≤rank⁡A+rank⁡B\operatorname{rank}(A + B) \le \operatorname{rank}A + \operatorname{rank}B
Gram matricesrank⁡(A⊤A)=rank⁡(AA⊤)=rank⁡A\operatorname{rank}(A^\top A) = \operatorname{rank}(AA^\top) = \operatorname{rank}A
Outer productrank⁡(uv⊤)=1\operatorname{rank}(\mathbf u\mathbf v^\top) = 1 for non-zero u,v\mathbf u, \mathbf v
Diagonalisablerank = number of non-zero eigenvalues

Full rank and the invertible matrix theorem

  • Full column rank (r=n≤mr = n \le m): columns independent, N(A)={0}N(A) = \{\mathbf 0\}, A⊤AA^\top A invertible, Ax=bA\mathbf x = \mathbf b has at most one solution. Needed for the least-squares formula.
  • Full row rank (r=m≤nr = m \le n): rows independent, C(A)=RmC(A) = \mathbb R^m, Ax=bA\mathbf x = \mathbf b always solvable.

For square AA (n×nn \times n), the following are equivalent: AA is invertible; rank⁡A=n\operatorname{rank}A = n; N(A)={0}N(A) = \{\mathbf 0\}; the columns form a basis of Rn\mathbb R^n; det⁡A≠0\det A \ne 0; 0 is not an eigenvalue; Ax=bA\mathbf x = \mathbf b has a unique solution for every b\mathbf b; A⊤A^\top is invertible; all singular values are positive.

Rank in data science

  • A data matrix with nn samples and pp features has rank ≤min⁡(n,p)\le \min(n, p); perfectly collinear features reduce rank and make X⊤XX^\top 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×64 \times 6 matrix AA has rank 3. The nullity of AA (dimension of {x:Ax=0}\{\mathbf x : A\mathbf x = \mathbf 0\}) is ______.

Q2MCQ1 mark

For matrices AA (m×nm\times n) and BB (n×pn \times p), which inequality always holds?

Q3NAT1 mark

The rank of (123246369)\begin{pmatrix}1&2&3\\2&4&6\\3&6&9\end{pmatrix} is ______.

Q4MSQ2 marks

AA is a real m×nm \times n matrix with m≠nm \ne n. Which statements are always true?

One or more options are correct.

Q5NAT2 marks

AA is the 5×55\times 5 matrix with entries aij=i+ja_{ij} = i + j. The rank of AA is ______.

Q6NAT2 marks

A 5×35 \times 3 matrix AA has rank 2. The dimension of the left null space {y:A⊤y=0}\{\mathbf y : A^\top\mathbf y = \mathbf 0\} is ______.

Q7MCQ2 marks

AA is a non-zero 3×33\times 3 matrix with A2=0A^2 = 0. Then rank⁡(A)\operatorname{rank}(A) is

Q8NAT1 mark

The rank of (122437)\begin{pmatrix}1&2\\2&4\\3&7\end{pmatrix} is ______.

Q9MSQ1 mark

For an n×nn\times n matrix AA, which conditions are equivalent to "AA is invertible"?

One or more options are correct.