Rank and Nullity

Last Updated : 23 Aug, 2025

Rank and Nullity are essential concepts in linear algebra, particularly in the context of matrices and linear transformations. They help describe the number of linearly independent vectors and the dimension of the kernel of a linear mapping.

  • Rank of a Matrix is defined as the number of linearly independent row or column vectors of a matrix. It represents the number of non-zero eigenvalues of the matrix. The rank of a matrix is denoted as ρ(A).
  • Nullity of a Matrix is the dimension of its kernel, which is the number of independent solutions of the equation Ax = 0. It represents the number of zero eigenvalues of the matrix. The nullity of a matrix is denoted as N(A). For any matrix A of order (6×6), its rank and nullity are given below,

Rank-and-Nullity

Properties of Rank

  • 0 ≤ rank(A) ≤ min⁡(m,n), A ∈ Rm×n
  • If rank(A) = min⁡(m,n), the matrix is said to have full rank.
  • For any matrix A, row rank = column rank = rank(A)
  • A square matrix A is invertible   ⟺  rank(A) = n, the rank of an invertible matrix is equal to the order of the matrix.
  • rank(AB) ≤ min⁡( rank(A), rank(B)).
  • rank(A) = rank(A).
  • rank(A+B) ≤ rank(A) + rank(B).
  • rank(AA) = rank(A)
  • Row operations do not change rank.

Properties of Nullity

  • 0 ≤ nullity(A) ≤ n
  • If rank(A)=n, then nullity(A)=0
  • A square matrix A is invertible   ⟺  nullity(A)=0
  • If nullity > 0, then Ax=0 has infinitely many nontrivial solutions.
  • If nullity = 0, the only solution is the trivial one (x=0).

Nullspace

Nullspace of any matrix is defined as the solution associated with the system of homogenous equation AX = O where A is any real matrix of order, m × n.

Nullspace of A = { x ∈ Rn | Ax = O}. Then the nullity of A is the dimension of the Nullspace of A.

Calculating Rank and Nullity

The rank and nullity of a matrix can be calculated using the following steps:

  • Row Reduction: Reduce the matrix to its row-reduced echelon form (RREF) using elementary row operations.
  • Counting Linearly Independent Vectors: Rank of a matrix is the number of linearly independent row or column vectors in the RREF.
  • Calculating Nullity: Nullity of a matrix is calculated by subtracting its rank from the total number of columns in the matrix.

Rank-Nullity Theorem

Rank-Nullity Theorem is a theorem in linear algebra that states that for a matrix M with x rows and y columns over a field, the rank of M and the nullity (the dimension of the kernel) of M sum to y.

For a matrix A of order n × n:

Rank of A + Nullity of A = Number of Columns in A = n

This can be generalized further to linear maps: if T: V → W is a linear map, then the dimension of the image of T plus the dimension of the kernel of T is equal to the dimension of V.

The theorem is useful in calculating either one by calculating the other instead, which is useful as it is often much easier to find the rank than the nullity (or vice versa).

There are several proofs of the rank-nullity theorem available; here is one such proof.

Rank-Nullity Theorem Proof

Statement: Let U and V be vector spaces over the field F and let T be a Linear Transformation (L.T.) from U into V. Suppose that U is finite-dimensional. Then, rank (T) + nullity (T) = dim U.

Proof:

Let N be a null space of T, then N is a subspace of U. Since U is finite-dimensional. Therefore, N is finite-dimensional.

Let dim N = nullity(T) = K and let {α1, α2,....., αk} be a basis for N

∵ {α1, α2,....., αk} is a linearly independent subset of U

∴ We can extend it to form a basis of U

Let dim U = n and let {α1, α2,....., αk, αk+1, αk+2,......, αn} be a basis of U

Vectors T(α1),...., T(αk), T(αk+1), T(αk+2),......., T(αn) are in the range of T

We shall show that {T(αk+1), T(αk+2),...., T(αn)} is a basis for the range of T

(I) First, we shall prove that the vectors T(αk+1), T(αk+2),....., T(αn) span the range of T

Let β ∈ range of T, then ∃ α ∈ U such that T(α) = β

Now α ∈ U ⇒ ∃ a1, a2,......, an ∈ F such that

α = a1α1 + a2α2+......+ anαn

⇒ T(α) = T(a1α1+a2α2+......+anαn)

⇒ T(α) = T(a1α1+a2α2+......+akαk+ak+1αk+1+......+anαn)

⇒ β = a1 T(α1)+......+ak T(αk)+ ak+1 T(αk+1)+......+ an T(αn)

⇒ β = ak+1 T(αk+1) + ak+2 T(αk+2) +.....+ an T(αn)

[∵ α1, α2,....., αk ∈ N ⇒ T(α1) = 0,...., T(αk) = 0]

∴ the vectors T(αk+1), T(αk+2),......, T(αn) span the range of T.

(II) Now we shall show that the vectors T(αk+1), T(αk+2),......, T(αn) are L.I.

Let ck+1, ck+2,..., cn ∈ F such that

ck+1T(αk+1) + ck+2T(αk+2) +.....+ cnT(αn) = 0

⇒ T(ck+1αk+1 + ck+2αk+2 +......+ cnαn) = 0

⇒ ck+1αk+1, ck+2αk+2,....., cnαn ∈ null space of T, i.e., N

⇒ ck+1αk+1 + ck+2αk+2 +.......+ cnαn = b1α1 + b2α2 +...+ bkαk

for some b1,b2,....., bk ∈ F.

[∵ Each vector in N can be expressed as a linear combination of the vectors α1,......, αn forming a basis of N]

⇒ b1α1 + b2α2 +.....+ bkαk - ck+1αk+1 - ck+2αk+2 -.......- cnαn = 0

⇒ b1 = b2 = ...... = bk = ck+1 = ck+2 = ....... = cn = 0

[∵ α1, α2,...., αk, αk+1,......, αn are linearly independent being basis of U]

⇒ Vectors T(αk+1), T(αk+2),....., T(αn) are linearly independent.

∴ vectors T(αk+1), T(αk+2), ...., T(αn) form a basis of the range of a T.

∴ Rank T = Dim range of T = n - k

Hence proved

Applications of Rank and Nullity

The rank and nullity of a matrix have various applications in linear algebra, including:

  • Solving Systems of Linear Equations: The rank and nullity of a matrix are used to determine the dimension of the kernel of a linear transformation, which in turn helps in solving systems of linear equations.
  • Determining Dimension of Image and Kernel of a Linear Transformation: These concepts are essential for finding the dimensions of the image and kernel of a linear transformation, which is crucial in understanding the properties of the transformation.
  • Matrix Theory: The rank and nullity of a matrix are fundamental in matrix theory, providing insights into the properties of the matrix, such as invertibility and eigenvalues.

Examples on Rank and Nullity

Some examples on rank and nullity are,

Example 1: Given Matrix

B = \begin{pmatrix} 1 & 1 & 0 & -2\\2 & 0 & 2 & 2 \\4 & 1 & 3 & 1 \\ \end{pmatrix}

Find the rank and nullity of B.

Solution:

B = \begin{pmatrix} 1 & 1 & 0 & -2\\2 & 0 & 2 & 2 \\4 & 1 & 3 & 1 \\ \end{pmatrix}

Using Row Transformation in matrix B,

R2 → R3 - 2R2

B = \begin{pmatrix} 1 & 1 & 0 & -2\\0 & 1 & -1 & -3 \\4 & 1 & 3 & 1 \\ \end{pmatrix}

Now, R3 → R3 - 4R1

B = \begin{pmatrix} 1 & 1 & 0 & -2\\0 & 1 & -1 & -3 \\0 & -3 & 3 & 9 \\ \end{pmatrix}

Now, R3 → 3R2 + R3

B = \begin{pmatrix} 1 & 1 & 0 & -2\\0 & 1 & -1 & -3 \\0 & 0 & 0 & 0 \\ \end{pmatrix}

∴ r (B) = 2.

n (B) = n (columns) - r (B) = 4 - 2 = 2.

∴ Rank of matrix B is 2 and the nullity of matrix B is 2.

Example 2: Given Matrix

A = \begin{pmatrix} 1 & -2 & 0 & 4\\3 & 1 & 1 & 0 \\-1 & -5 & -1 & 8 \\ \end{pmatrix}

Find the rank of matrix A.

Solution:

A = \begin{pmatrix} 1 & -2 & 0 & 4\\3 & 1 & 1 & 0 \\-1 & -5 & -1 & 8 \\ \end{pmatrix}

Using Row Transformation in matrix A,

R3 → R3 + R1

A = \begin{pmatrix} 1 & -2 & 0 & 4\\3 & 1 & 1 & 0 \\0 & -7 & -1 & 12 \\ \end{pmatrix}

Now, R2 → R2 - 3R1

A = \begin{pmatrix} 1 & -2 & 0 & 4\\0 & 7 & 1 & -12 \\0 & -7 & -1 & 12 \\ \end{pmatrix}

Now, R3 → R3 + R2

A = \begin{pmatrix} 1 & -2 & 0 & 4\\0 & 7 & 1 & -12 \\0 & 0 & 0 & 0 \\ \end{pmatrix}

r (A) = 2

∴ Rank of matrix A is 2.

Example 3: Given Matrix

D = \begin{pmatrix} 1 & 3\\0 & -2 \\5 & -1 \\-2 & 3 \\ \end{pmatrix}

Find the nullity of matrix D.

Solution:

D = \begin{pmatrix} 1 & 3\\0 & -2 \\5 & -1 \\-2 & 3 \\ \end{pmatrix}

Using Row Transformation in matrix D,

R3 → R3 - 5R1

D = \begin{pmatrix} 1 & 3\\0 & -2 \\0 & -16 \\-2 & 3 \\ \end{pmatrix}

Now, R4 → 2R1 + R4

D = \begin{pmatrix} 1 & 3\\0 & -2 \\0 & -16 \\0 & 9 \\ \end{pmatrix}

Now, R3 → -8R2 + R3

D = \begin{pmatrix} 1 & 3\\0 & -2 \\0 & 0 \\0 & 9 \\ \end{pmatrix}

Now, R4 → 9R2 + 2R4

D = \begin{pmatrix} 1 & 3\\0 & -2 \\0 & 0 \\0 & 0 \\ \end{pmatrix}

Now, R2 → -1/2 R2

D = \begin{pmatrix} 1 & 3\\0 & 1 \\0 & 0 \\0 & 0 \\ \end{pmatrix}

r (D) = 2

n (D) = n (columns) - r (D) = 2 - 2 = 0.

∴ Nullity of matrix D is 0.

Comment

Explore