The Rank of a Matrix is a fundamental concept in linear algebra that measures the number of linearly independent rows or columns in a matrix. It essentially determines the dimensionality of the vector space formed by the rows or columns of the matrix.
It helps determine:
- If a system of linear equations has solutions.
- The "usefulness" of rows or columns contributes to the matrix's information.
Rank and Nullity of a Matrix
The rank of a matrix is denoted using ρ(A), where A is any matrix. Thus, the number of rows of a matrix is a limit on the rank of the matrix, which means the rank of the matrix cannot exceed the total number of rows in a matrix.
For example, if a matrix is of the order 3×3, then the maximum rank of a matrix can be 3.
Note: If a matrix has all rows with zero elements, then the rank of a matrix is said to be zero.
Nullity of Matrix
In a given matrix, the number of vectors in the null space is called the nullity of the matrix, or it can also be defined as the dimension of the null space of the given matrix.
Total columns in a matrix = Rank + Nullity
Also check
Rank Nullity Theorem.
3 methods can be used to get the rank of any given matrix. These methods are as follows:
- Minor Method
- Using Elementary Operations
Using Minor Method
To find the rank of a matrix using the minor method, the following steps are followed:
- Calculate the determinant of the matrix (say A). If det(A) ≠ 0, then the rank of matrix A = order of matrix A.
- If det(A) = 0, then the rank of the matrix is equal to the order of the maximum possible nonzero minor of the matrix.
Let us understand how to find the rank of a matrix using the minor method.
Example: Find the rank of a matrix \begin{bmatrix}1 & 2 & 3\\4 & 5 & 6 \\ 7 & 8 & 7\end{bmatrix} using the minor method.
Given A = \begin{bmatrix}1 & 2 & 3\\4 & 5 & 6 \\ 7 & 8 & 7\end{bmatrix}
- Step 1: Calculate the determinant of A
det(A) = 1 (35 - 48) - 2 (28 - 42) + 3 (32 - 35)
det(A) = -13 + 28 - 9 = 6
- As det(A) ≠ 0,
ρ(A) = order of A = 3
Elementary operations are reversible transformations that preserve rank. They come in three types
- Row/Column Swap (Ri ↔ Rj)
- Row/Column Scaling (Ri → kRi, k≠0)
- Row/Column Replacement (Ri → Ri + kRj)
We use these elementary row operations to convert the matrix into either:
- Row/column Echelon Form or Reduced Row/column Echelon Form
- Normal Form
The following steps are followed to calculate the rank of a matrix using the Echelon form:
- Locate the leftmost non-zero column (this is the pivot column) of the matrix.
- If needed, swap rows to bring a non-zero entry to the top of this column.
- Use row replacement to make all entries below the pivot zero.
- Move to the next row and next column (diagonally down-right).
- Repeat these steps until no more pivots can be formed.
- Count the non-zero rows → that’s the rank.
Also Check
Triangular Matrix
Let us understand how to find the rank of a matrix using the minor method.
Example 1: Find the rank of a matrix \begin{bmatrix}1 & 2 & 3\\4 & 5 & 6 \\ 7 & 8 & 9\end{bmatrix}using the Elementary Operations.
Given A = \begin{bmatrix}1 & 2 & 3\\4 & 5 & 6 \\ 7 & 8 & 9\end{bmatrix}
- Convert A to echelon form
Apply R2 = R2 - 4R1
Apply R3 = R3 - 7R1
A = \begin{bmatrix}1 & 2 & 3\\0 & -3 & -6 \\ 0 & -6 & -12\end{bmatrix}
Apply R3 = R3 - 2R2
A = \begin{bmatrix}1 & 2 & 3\\0 & -3 & -6 \\ 0 & 0 & 0\end{bmatrix}
As matrix A is now in lower triangular form, it is in Echelon Form.
- Number of non-zero rows in A = 2.
Thus ρ(A) = 2
Example 2: Find the rank of a matrix \begin{bmatrix}1 & 2 & 3\\2 & 4 & 6 \\ 1 & 1 & 1\end{bmatrix}using the Elementary Operations.
Given \begin{bmatrix}1 & 2 & 3\\2 & 4 & 6 \\ 1 & 1 & 1\end{bmatrix}
- Convert A to echelon form
Apply R2 = R2 - 2R1
Apply R3 = R3 - R1
A = \begin{bmatrix}1 & 2 & 3\\0 & 0 & 0 \\ 0 & -1 & -2\end{bmatrix}
Swap R3 and R2
A = \begin{bmatrix}1 & 2 & 3\\0 & -1 & -2 \\ 0 & 0 & 0\end{bmatrix}
As matrix A is in Echelon Form.
- Number of non-zero rows in A = 2.
Thus ρ(A) = 2
Example 3: Find the rank of a matrix \begin{bmatrix}2 & 4 & -2\\4 & 9 & -3 \\ -2 & -3 & 7\end{bmatrix}using the Elementary Operations.
Given A =\begin{bmatrix}2 & 4 & -2\\4 & 9 & -3 \\ -2 & -3 & 7\end{bmatrix}
- Convert A to echelon form
Apply R2 = R2 - 2R1
Apply R3 = R3 - R1
A = \begin{bmatrix}2 & 4 & -2\\0 & 1 & 1 \\ 0 & 1 & 5\end{bmatrix}
R3 = R3 - R2
A = \begin{bmatrix}2 & 4 & -2\\0 & 1 & 1 \\ 0 & 0 & 4\end{bmatrix}
As matrix A is in Echelon Form.
- Number of non-zero rows in A = 3.
Thus ρ(A) = 3
A matrix is said to be in normal form if it can be reduced to the form \begin{bmatrix} I_r & 0\\ 0 & 0\\ \end{bmatrix} . Here, Ir represents the identity matrix of order r. If a matrix can be converted to its normal form, then the rank of the matrix is said to be r.
Let us understand how to find the rank of a matrix using the minor method.
Example: Find the rank of a matrix \bold{\begin{bmatrix}1 & 2 & 1 & 2\\1 & 3 & 2 & 2 \\ 2 & 4 & 3 & 4 \\3 & 7 & 4 & 6\end{bmatrix}}using the normal form method.
Solution:
Given A = \begin{bmatrix}1 & 2 & 1 & 2\\1 & 3 & 2 & 2 \\ 2 & 4 & 3 & 4 \\3 & 7 & 4 & 6\end{bmatrix}
Apply R2 = R2 - R1 , R3 = R3 - 2R1 and R4 = R4 - 3R1
A = \begin{bmatrix}1 & 2 & 1 & 2\\0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 0 \\0 & 1 & 1 & 0\end{bmatrix}
Apply R1 = R1 - 2R2 and R4 = R4 - R2
A = \begin{bmatrix}1 & 0 & -1 & 2\\0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Apply R1 = R1 + R3 and R2 = R2 - R3
A = \begin{bmatrix}1 & 0 & 0 & 2\\0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Apply C4 → C4 - 2C1
A = \begin{bmatrix}1 & 0 & 0 & 0\\0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Thus A can be written as \begin{bmatrix} I_3 & 0\\ 0 & 0\\ \end{bmatrix} .
Thus, ρ(A) = 3
Properties of Rank of a Matrix
The properties of the rank of a matrix are as follows:
- The rank of a matrix is equal to the order of the matrix if it is a non-singular matrix.
- The rank of a matrix is equal to the number of non-zero rows if it is in Echelon Form.
- The rank of a matrix is equal to the order of the identity matrix in it if it is in normal form.
- Rank of matrix < Order of matrix if it is a singular matrix.
- Rank of matrix < minimum {m, n} if it is a rectangular matrix of order m x n.
- The rank of the identity matrix is equal to the order of the identity matrix.
- The rank of a zero matrix or a null matrix is zero.
Related Articles
Solved Examples on Rank of a Matrix
Example 1: Find the rank of a matrix \bold{\begin{bmatrix}-1 & -2 & -3\\-4 & -5 & -6 \\ -7 & -8 & -7\end{bmatrix}}using the minor method.
Solution:
Given A = \begin{bmatrix}-1 & -2 & -3\\-4 & -5 & -6 \\ -7 & -8 & -7\end{bmatrix}
Step 1: Calculate the determinant of A
det(A) = -1 (35 - 48) + 2 (28 - 42) - 3 (32 - 35)
det(A) = 13 - 28 - 9 = -24
As det(A) ≠ 0, ρ(A) = order of A = 3
Example 2: Find the rank of a matrix \bold{\begin{bmatrix}2 & 4 & 6\\8 & 10 & 12 \\ 14 & 16 & 0\end{bmatrix}}using the minor method.
Solution:
Given A = \begin{bmatrix}2 & 4 & 6\\8 & 10 & 12 \\ 14 & 16 & 0\end{bmatrix}
Step 1: Calculate the determinant of A
det(A) = 2(0-192) - 4(0-168) + 6(128-140)
det(A) = -384 + 672 - 72 = 216
As det(A) ≠ 0, ρ(A) = order of A = 3
Example 3: Find the rank of a matrix \bold{\begin{bmatrix}-1 & -2 & -3\\-4 & -5 & -6 \\ -7 & -8 & -9\end{bmatrix}}using the Echelon form method.
Solution:
Given A = \begin{bmatrix}-1 & -2 & -3\\-4 & -5 & -6 \\ -7 & -8 & -9\end{bmatrix}
Step 1: Convert A to echelon form
Apply R2 = R2 - 4R1
Apply R3 = R3 - 7R1
A = \begin{bmatrix}-1 & -2 & -3\\0 & 3 & 6 \\ 0 & 6 & 12\end{bmatrix}
Apply R3 = R3 - 2R2
A = \begin{bmatrix}-1 & -2 & -3\\0 & 3 & 6 \\ 0 & 0 & 0\end{bmatrix}
As matrix A is now in lower triangular form, it is in Echelon Form.
Step 2: Number of non-zero rows in A = 2.
Thus ρ(A) = 2
Example 4: Find the rank of a matrix \bold{\begin{bmatrix}2 & 4 & 6\\8 & 10 & 12 \\ 14 & 16 & 18\end{bmatrix}}using the Echelon form method.
Solution:
Given A = \begin{bmatrix}2 & 4 & 6\\8 & 10 & 12 \\ 14 & 16 & 18\end{bmatrix}
Step 1: Convert A to echelon form
Apply R2 = R2 - 4R1
Apply R3 = R3 - 7R1
A = \begin{bmatrix}2 & 4 & 6\\0 & -6 & -12 \\ 0 & -12 & -24\end{bmatrix}
Apply R3 = R3 - 2R2
A = \begin{bmatrix}2 & 4 & 6\\0 & -6 & -12 \\ 0 & 0 & 0\end{bmatrix}
As matrix A is now in lower triangular form, it is in Echelon Form.
Step 2: Number of non-zero rows in A = 2.
Thus ρ(A) = 2
Example 5: Find the rank of a matrix \bold{\begin{bmatrix}2 & 4 & 2 & 4\\2 & 6 & 4 & 4 \\ 4 & 8 & 6 & 8 \\6 & 14 & 8 & 12\end{bmatrix}}using the normal form method.
Solution:
Given A = \begin{bmatrix}2 & 4 & 2 & 4\\2 & 6 & 4 & 4 \\ 4 & 8 & 6 & 8 \\6 & 14 & 8 & 12\end{bmatrix}
Apply R2 = R2 - R1 , R3 = R3 - 2R1 and R4 = R4 - 3R1
A = \begin{bmatrix}2 & 4 & 2 & 4\\0 & 2 & 2 & 0 \\ 0 & 0 & 2 & 0 \\0 & 2 & 2 & 0\end{bmatrix}
Apply R1 = R1 - 2R2 and R4 = R4 - R2
A = \begin{bmatrix}2 & 0 & -2 & 4\\0 & 2 & 2 & 0 \\ 0 & 0 & 2 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Apply R1 = R1 + R3 and R2 = R2 - R3
A = \begin{bmatrix}2 & 0 & 0 & 4\\0 & 2 & 0 & 0 \\ 0 & 0 & 2 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Apply C4 → C4 - 2C1
A = \begin{bmatrix}2 & 0 & 0 & 0\\0 & 2 & 0 & 0 \\ 0 & 0 & 2 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Apply R1 = R1/2, R2 = R2/2, R3 = R3/2
A = \begin{bmatrix}1 & 0 & 0 & 0\\0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\0 & 0 & 0 & 0\end{bmatrix}
Thus A can be written as \begin{bmatrix} I_3 & 0\\ 0 & 0\\ \end{bmatrix}
Thus, ρ(A) = 3
What is the Rank of a Matrix? Formula and Examples
What is the Rank of a Matrix? Formula and Examples
Rank of a Matrix: Definition, Properties, and Formula
Explore
Maths
5 min read
Basic Arithmetic
Algebra
Geometry
Trigonometry & Vector Algebra
Calculus
Probability and Statistics
Practice