Skip to content
GATEiit

GATE EC · Engineering Mathematics

Rank

Rank of a matrix: independent rows and columns, echelon form and minors, rank inequalities, rank–nullity, rank-one matrices, and how rank decides whether a linear system has no, one or infinitely many solutions.

Before you start

This topic comes before: Eigen values and eigen vectors, Solution of linear equations - existence and uniqueness, Vector space, basis, linear dependence and independence

Concept notes

1. What rank means

The rank of an m×n matrix A, written ρ(A) or r(A), is the maximum number of linearly independent rows. Four definitions give the same number:

  • maximum number of linearly independent rows;
  • maximum number of linearly independent columns (row rank = column rank);
  • the order of the largest non-zero minor (a square submatrix with non-zero determinant);
  • the number of non-zero rows (pivots) in a row echelon form.

Basic facts:

  • 0≤ρ(A)≤min⁡(m,n), and ρ(A)=0 only for the zero matrix.
  • ρ(AT)=ρ(A).
  • An n×n matrix has full rank n exactly when det⁡A≠0, that is, when A is invertible. A singular matrix has rank less than n.
  • If every row is a multiple of one non-zero row, ρ(A)=1.

Geometrically, rank is the dimension of the column space: the number of independent directions the map x↦Ax can reach. A 3×3 matrix of rank 2 squashes all of space onto a plane.

For GATE, rank questions are usually one of three kinds: compute the rank of a given matrix, find a parameter that drops the rank, or use rank to decide the nature of solutions of Ax=b.

2. Finding rank: echelon form and minors

Elementary row operations do not change rank: swapping rows, multiplying a row by a non-zero constant, adding a multiple of one row to another. (The same holds for column operations.)

Echelon method (use for anything bigger than 3×3):

  1. Reduce A to row echelon form: each leading non-zero entry (pivot) is to the right of the one above, and zero rows are at the bottom.
  2. Count the non-zero rows. That count is the rank.

Minor method (quick for small or parametric matrices): ρ(A)=r if some r×r minor is non-zero and every (r+1)×(r+1) minor is zero. For a square matrix with a parameter k, set det⁡A=0 to find the values of k that drop the rank below n; then check a 2×2 minor to see if it drops further.

Shortcuts worth spotting:

  • Two proportional rows, or a row that is a sum of others: the rank drops.
  • A=uvT with non-zero column vectors u,v (an outer product) has rank exactly 1.
  • A matrix with aij=f(i)+g(j) is a sum of two rank-one matrices, so its rank is at most 2.
  • A diagonal or triangular matrix: rank is at least the number of non-zero diagonal entries; for diagonal matrices it is exactly that number.
21304012510003600000pivot in column 1pivot in column 2pivot in column 4zero rowonly zeros below the dashed staircaserank = number of pivots = 3
A row echelon form with three pivots and one zero row: the rank is 3

3. Rank inequalities and rank–nullity

For matrices of compatible sizes:

Result Statement
Product ρ(AB)≤min⁡(ρ(A),ρ(B))
Sum ρ(A+B)≤ρ(A)+ρ(B)
Invertible factor ρ(PA)=ρ(AQ)=ρ(A) if P,Q are invertible
Gram matrix ρ(ATA)=ρ(AAT)=ρ(A) for real A
Sylvester ρ(AB)≥ρ(A)+ρ(B)−n, where n is the inner dimension

Rank–nullity theorem. For an m×n matrix (n columns, that is n unknowns),

ρ(A)+nullity(A)=n

where the nullity is the dimension of the null space {x:Ax=0}, the number of free variables.

Rank and eigenvalues (square A):

  • 0 is an eigenvalue exactly when ρ(A)<n, and the eigenspace of 0 has dimension n−ρ(A).
  • For a diagonalisable matrix (for example any real symmetric matrix), ρ(A) equals the number of non-zero eigenvalues, counted with multiplicity.
  • A rank-one matrix uvT has eigenvalue vTu (its trace) once and 0 repeated n−1 times. So the n×n all-ones matrix has eigenvalues n,0,…,0.

Careful: for a non-diagonalisable matrix the count of non-zero eigenvalues can be less than the rank. has rank 1 but both eigenvalues are 0.

4. Rank and the solutions of linear equations

For a system Ax=b with n unknowns, compare the rank of A with the rank of the augmented matrix [A∣b].

Condition Nature of solution
ρ(A)<ρ([A∣b]) Inconsistent: no solution
ρ(A)=ρ([A∣b])=n Unique solution
ρ(A)=ρ([A∣b])=r<n Infinitely many solutions, with n−r free parameters

Note that ρ([A∣b]) is either ρ(A) or ρ(A)+1.

Homogeneous system Ax=0 is always consistent (x=0 works).

  • ρ(A)=n: only the trivial solution.
  • ρ(A)<n: non-trivial solutions, forming a space of dimension n−ρ(A).
  • For a square A: non-trivial solutions exist exactly when det⁡A=0.

Typical GATE question: a 3×3 system with parameters λ,μ. Find the λ that makes det⁡A=0 (rank drops to 2), then find the μ that keeps [A∣b] at rank 2 (infinitely many solutions); any other μ gives no solution. For any other λ, the solution is unique.

More columns than rows (n>m) means ρ(A)≤m<n, so a consistent system of this shape always has infinitely many solutions.

Formulas to remember

Bounds on rank
0≤ρ(Am×n)≤min⁡(m,n),ρ(AT)=ρ(A)
Rank of a product
ρ(AB)≤min⁡(ρ(A),ρ(B))
Rank of a sum
ρ(A+B)≤ρ(A)+ρ(B)
Sylvester's inequality
ρ(Am×nBn×p)≥ρ(A)+ρ(B)−n
Rank–nullity
ρ(A)+nullity(A)=n (number of columns)
Consistency testUnique if this common rank equals the number of unknowns
Ax=b consistent  ⟺  ρ(A)=ρ([A∣b])
Rank-one matrixFor non-zero vectors u,v
ρ(uvT)=1,λ=vTu,0,…,0

Common mistakes

  • Using the number of rows instead of the number of columns (unknowns) in rank–nullity.
  • Concluding the rank is n − 1 as soon as the determinant is zero; check whether a smaller minor also vanishes.
  • Counting non-zero eigenvalues to get the rank of a matrix that is not diagonalisable.
  • Assuming rank(A + B) equals rank(A) + rank(B); it is only an upper bound.
  • Deciding a system has infinitely many solutions from rank(A) < n alone, without checking that the augmented matrix has the same rank.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Rank of a parametric matrix

numerical

Find the rank of for every real k.

  1. Step 1: Look for proportional rows first.

    Try it on paper first.

Example 2: A matrix of the form f(i) + g(j)

conceptual

The 4×4 matrix A has entries aij=i+j for i,j=1,…,4. Find ρ(A) without full row reduction.

  1. Step 1: Split the entry into two parts.

    Try it on paper first.

Example 3: Rank–nullity on a rectangular matrix

numerical

A 5×7 real matrix A has rank 3. Find (a) the dimension of the solution space of Ax=0, (b) the rank of ATA, and (c) the dimension of the solution space of ATy=0.

  1. Step 1: Apply rank–nullity to $A$ (7 columns).

    Try it on paper first.

Example 4: Choosing a parameter for infinitely many solutions

numerical

For the system x+y+z=6, x+2y+3z=14, 2x+3y+4z=λ, find λ for which the system is consistent, and the number of free parameters then.

  1. Step 1: Find the rank of the coefficient matrix.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.