What the rank of a matrix measures
Before you start: you need to be able to expand a 2×2 and a 3×3 determinant, as in Class 12.
A matrix can have many rows and still carry very little information. In \(\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\) the second row is just twice the first. The rank counts how many rows are genuinely different, in the sense that none of them can be built from the others.
A minor of order \(r\) is the determinant of an \(r\times r\) submatrix, made by keeping any \(r\) rows and any \(r\) columns.
The rank \(\rho(A)\) of a matrix \(A\) is \(r\) if
- at least one minor of order \(r\) is non-zero, and
- every minor of order \(r + 1\) (if there are any) is zero.
Facts worth memorising
For an \(m\times n\) matrix, \(\rho(A) \le \min(m, n)\). A square matrix of order \(n\) has \(\rho(A) = n\) exactly when \(|A| \ne 0\). \(\rho(A^T) = \rho(A)\). Only the zero matrix has rank 0.
The definition is fine for a 3×3 matrix: work out \(|A|\), and if it is zero look for one non-zero 2×2 minor. For a 3×4 matrix there are four 3×3 minors to check, and for a 4×4 matrix the work explodes. That is why the usual method is row reduction.
Elementary transformations and echelon form
Three operations on rows, called elementary row transformations, never change the rank:
- \(R_i \leftrightarrow R_j\): swap two rows.
- \(R_i \to kR_i\) with \(k \ne 0\): multiply a row by a non-zero number.
- \(R_i \to R_i + kR_j\): add a multiple of another row.
The same three operations on columns (\(C_i\)) are elementary column transformations, and they don't change the rank either. Matrices that differ only by such operations are called equivalent, written \(A \sim B\).
A matrix is in row echelon form when any zero rows are at the bottom, and the first non-zero entry of each row is to the right of the first non-zero entry of the row above.
\[\rho(A) = \text{number of non-zero rows in an echelon form of } A\]
Normal (canonical) form
Using row and column operations, every matrix of rank \(r\) can be reduced to \[\begin{bmatrix} I_r & 0 \\ 0 & 0 \end{bmatrix}\] where \(I_r\) is the \(r\times r\) identity. The size of that identity block is the rank.
Why does this work? Each row operation replaces a row with a combination of rows, so it can't create new information or destroy what is there. Once the matrix is in echelon form, the non-zero rows clearly can't be built from one another, because each starts in a column where the rows below it have zeros.
How to find the rank
- Square matrix? Try the determinant first. If \(|A| \ne 0\), the rank is the order of the matrix and you are done.
- Otherwise row-reduce. Use the first row to make zeros below the first entry, then the second row to make zeros below its leading entry, and so on.
- Count the non-zero rows in the echelon form.
- For a parameter question, reduce with the letter in place, then ask which value makes a row vanish.
Write the operation next to every step, such as \(R_2 \to R_2 - 2R_1\). It shows the examiner your method, and it lets you find an arithmetic slip quickly.
Solved examples
Example 1: Rank from the determinant
EasyFind the rank of \(A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\).
- \(|A| = 1(0 - 24) - 2(0 - 20) + 3(0 - 5) = -24 + 40 - 15 = 1\).
- \(|A| \ne 0\), so the only 3×3 minor is non-zero.
Answer\(\rho(A) = 3\)
Example 2: Rows that are multiples
EasyFind the rank of \(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 3 & 6 & 9 \end{bmatrix}\).
- \(R_2 \to R_2 - 2R_1\) and \(R_3 \to R_3 - 3R_1\) give \(\begin{bmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}\).
- One non-zero row is left. (Every 2×2 minor is zero, while the 1×1 minor \(1\) is not.)
Answer\(\rho(A) = 1\)
Example 3: Rank 2 by minors
MediumFind the rank of \(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{bmatrix}\) using minors.
- \(|A| = 1(15 - 16) - 2(10 - 12) + 3(8 - 9) = -1 + 4 - 3 = 0\). So \(\rho(A) < 3\).
- Take the 2×2 minor from the top-left corner: \(\begin{vmatrix} 1 & 2 \\ 2 & 3 \end{vmatrix} = 3 - 4 = -1 \ne 0\).
Answer\(\rho(A) = 2\)
Example 4: A 3×4 matrix
MediumFind the rank of \[A = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 2 & 4 & 7 & 9 \\ 3 & 6 & 10 & 13 \end{bmatrix}\]
- \(R_2 \to R_2 - 2R_1\), \(R_3 \to R_3 - 3R_1\): \[A \sim \begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 1 & 1 \end{bmatrix}\]
- \(R_3 \to R_3 - R_2\): \[A \sim \begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}\]
- This is echelon form with two non-zero rows. Notice the second row's leading entry sits in column 3, not column 2. That is allowed.
Answer\(\rho(A) = 2\)
Example 5: A 3×4 matrix of full rank
MediumFind the rank of \[A = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & 2 & 3 & 4 \\ 2 & 3 & 5 & 6 \end{bmatrix}\]
- \(R_2 \to R_2 - R_1\), \(R_3 \to R_3 - 2R_1\): \[A \sim \begin{bmatrix} 1 & 1 & 1 & 1 \\ 0 & 1 & 2 & 3 \\ 0 & 1 & 3 & 4 \end{bmatrix}\]
- \(R_3 \to R_3 - R_2\): \[A \sim \begin{bmatrix} 1 & 1 & 1 & 1 \\ 0 & 1 & 2 & 3 \\ 0 & 0 & 1 & 1 \end{bmatrix}\]
- Three non-zero rows, and a 3×4 matrix can't have rank more than 3.
Answer\(\rho(A) = 3\)
Example 6: Reducing to normal form
Exam levelReduce \(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{bmatrix}\) to normal form and state its rank.
- \(R_2 \to R_2 - 2R_1\), \(R_3 \to R_3 - 3R_1\): \[A \sim \begin{bmatrix} 1 & 2 & 3 \\ 0 & -1 & -2 \\ 0 & -2 & -4 \end{bmatrix}\]
- \(R_3 \to R_3 - 2R_2\), then \(R_2 \to -R_2\): \[A \sim \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \end{bmatrix}\]
- Now columns. \(C_2 \to C_2 - 2C_1\), \(C_3 \to C_3 - 3C_1\): \[A \sim \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \end{bmatrix}\]
- \(C_3 \to C_3 - 2C_2\): \[A \sim \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{bmatrix} = \begin{bmatrix} I_2 & 0 \\ 0 & 0 \end{bmatrix}\]
AnswerNormal form \(\begin{bmatrix} I_2 & 0 \\ 0 & 0 \end{bmatrix}\), so \(\rho(A) = 2\), matching Example 3.
Example 7: Rank with a parameter
Exam levelFor what value of \(k\) is the rank of \(A = \begin{bmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \\ 2 & 3 & k \end{bmatrix}\) equal to 2?
- \(R_2 \to R_2 - R_1\), \(R_3 \to R_3 - 2R_1\), then \(R_3 \to R_3 - R_2\): \[A \sim \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & k - 4 \end{bmatrix}\]
- The third row vanishes only when \(k = 4\). (Check: \(|A| = k - 4\).)
- The rank can't drop to 1 for any \(k\), because the first two rows stay non-zero and are not multiples of each other.
Answer\(k = 4\). For every other \(k\), \(\rho(A) = 3\).
Example 8: A 3×4 parameter question
Exam levelFind \(k\) so that \[A = \begin{bmatrix} 1 & 1 & -1 & 1 \\ 1 & -1 & k & -1 \\ 3 & 1 & 0 & 1 \end{bmatrix}\] has rank 2.
- \(R_2 \to R_2 - R_1\), \(R_3 \to R_3 - 3R_1\): \[A \sim \begin{bmatrix} 1 & 1 & -1 & 1 \\ 0 & -2 & k + 1 & -2 \\ 0 & -2 & 3 & -2 \end{bmatrix}\]
- \(R_3 \to R_3 - R_2\): \[A \sim \begin{bmatrix} 1 & 1 & -1 & 1 \\ 0 & -2 & k + 1 & -2 \\ 0 & 0 & 2 - k & 0 \end{bmatrix}\]
- For rank 2 the third row must be all zeros, so \(2 - k = 0\).
Answer\(k = 2\); for any other \(k\) the rank is 3.
In parameter questions, keep the letter as far down and to the right as you can. Choose your pivot rows so that \(k\) ends up alone in the last row. Then the answer is just "which \(k\) makes that row zero?"
Common mistakes
1. Stopping at \(|A| = 0\)
\(|A| = 0\) only tells you \(\rho(A) < 3\) for a 3×3 matrix. The rank could still be 2 or 1. In Example 3 it is 2; in Example 2 it is 1.
2. Counting rows before the reduction is finished
\(\begin{bmatrix} 1 & 2 \\ 2 & 4 \\ 0 & 1 \end{bmatrix}\) has three non-zero rows but rank 2. Only count once the matrix is in echelon form.
3. Using an operation that changes the rank
\(R_2 \to 0\cdot R_2\) is not allowed, and neither is \(R_2 \to R_1 - R_1\). Multiply only by non-zero numbers, and always keep the row you are changing in the new row: \(R_2 \to R_2 + kR_1\), not \(R_2 \to R_1\).
Practice questions
Try each one on paper before you open the answer.
Q1Find the rank of \(\begin{bmatrix} 2 & 4 \\ 3 & 6 \end{bmatrix}\).
The determinant is \(12 - 12 = 0\) and the matrix is not zero, so the rank is 1.
Q2Find the rank of \(\begin{bmatrix} 1 & 2 & 3 \\ 3 & 4 & 5 \\ 4 & 5 & 6 \end{bmatrix}\).
\(|A| = 1(24 - 25) - 2(18 - 20) + 3(15 - 16) = 0\). The minor \(\begin{vmatrix} 1 & 2 \\ 3 & 4 \end{vmatrix} = -2 \ne 0\). Rank 2.
Q3Find the rank of \(\begin{bmatrix} 1 & 0 & 2 \\ 0 & 1 & 3 \\ 2 & 1 & 0 \end{bmatrix}\).
\(|A| = 1(0 - 3) - 0 + 2(0 - 2) = -7 \ne 0\). Rank 3.
Q4Find the rank of \(\begin{bmatrix} 1 & 2 & 3 & 0 \\ 2 & 4 & 3 & 2 \\ 3 & 2 & 1 & 3 \end{bmatrix}\).
\(R_2 - 2R_1\) and \(R_3 - 3R_1\) give rows \((0, 0, -3, 2)\) and \((0, -4, -8, 3)\). Swap them: the matrix is in echelon form with three non-zero rows. Rank 3.
Q5Find the rank of \(\begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & k \\ 3 & 6 & 9 \end{bmatrix}\) for every value of \(k\).
\(R_2 - 2R_1 = (0, 0, k - 6)\) and \(R_3 - 3R_1 = (0, 0, 0)\). If \(k = 6\) the rank is 1; otherwise it is 2. It is never 3.
Q6Find the rank of \(\begin{bmatrix} 1 & 2 & 3 & 4 \\ 2 & 3 & 4 & 5 \\ 3 & 4 & 5 & 6 \\ 4 & 5 & 6 & 7 \end{bmatrix}\).
\(R_2 - 2R_1\), \(R_3 - 3R_1\), \(R_4 - 4R_1\) give \((0, -1, -2, -3)\), \((0, -2, -4, -6)\), \((0, -3, -6, -9)\). The last two are multiples of the first, so they reduce to zero. Rank 2.
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is the rank of a matrix in simple words?
It is the number of rows (or columns) that are genuinely independent, that is, the number of non-zero rows left after row reduction. Formally it is the order of the largest non-zero minor.
Can the rank be more than the number of rows or columns?
No. For an \(m\times n\) matrix, \(\rho(A) \le \min(m, n)\). A 3×4 matrix has rank at most 3.
Do column operations change the rank?
No. Row rank and column rank are always equal, so elementary column operations are allowed too. For an echelon form, use row operations only; for the normal form you need both.
What is the rank used for?
Mainly for deciding whether a system of linear equations has a solution, and how many. That is the next lesson: systems of linear equations. It also tests whether vectors are linearly independent.