Linear Algebra & DE · Unit 1 · Topic 01

Rank of a matrix: how many rows really count.

Short answer

The rank \(\rho(A)\) is the order of the largest non-zero minor of \(A\). In practice, reduce \(A\) to row echelon form and count the non-zero rows.

\[\begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \end{bmatrix} \xrightarrow{R_2 - 2R_1} \begin{bmatrix} 1 & 2 & 3 \\ 0 & 0 & 0 \end{bmatrix}, \quad \rho = 1\]

Engineering MathsB Tech / BEBSc
01

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.

Definition

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.

02

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\).

Row echelon form

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.

03

How to find the rank

  1. Square matrix? Try the determinant first. If \(|A| \ne 0\), the rank is the order of the matrix and you are done.
  2. 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.
  3. Count the non-zero rows in the echelon form.
  4. 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.

04

Solved examples

Example 1: Rank from the determinant

Easy

Find the rank of \(A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\).

  1. \(|A| = 1(0 - 24) - 2(0 - 20) + 3(0 - 5) = -24 + 40 - 15 = 1\).
  2. \(|A| \ne 0\), so the only 3×3 minor is non-zero.

Answer\(\rho(A) = 3\)

Example 2: Rows that are multiples

Easy

Find the rank of \(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 3 & 6 & 9 \end{bmatrix}\).

  1. \(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}\).
  2. 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

Medium

Find the rank of \(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{bmatrix}\) using minors.

  1. \(|A| = 1(15 - 16) - 2(10 - 12) + 3(8 - 9) = -1 + 4 - 3 = 0\). So \(\rho(A) < 3\).
  2. 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

Medium

Find the rank of \[A = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 2 & 4 & 7 & 9 \\ 3 & 6 & 10 & 13 \end{bmatrix}\]

  1. \(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}\]
  2. \(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}\]
  3. 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

Medium

Find the rank of \[A = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 1 & 2 & 3 & 4 \\ 2 & 3 & 5 & 6 \end{bmatrix}\]

  1. \(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}\]
  2. \(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}\]
  3. 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 level

Reduce \(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 3 & 4 \\ 3 & 4 & 5 \end{bmatrix}\) to normal form and state its rank.

  1. \(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}\]
  2. \(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}\]
  3. 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}\]
  4. \(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 level

For 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?

  1. \(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}\]
  2. The third row vanishes only when \(k = 4\). (Check: \(|A| = k - 4\).)
  3. 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 level

Find \(k\) so that \[A = \begin{bmatrix} 1 & 1 & -1 & 1 \\ 1 & -1 & k & -1 \\ 3 & 1 & 0 & 1 \end{bmatrix}\] has rank 2.

  1. \(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}\]
  2. \(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}\]
  3. 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.

Vipul Sir's tip

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?"

05

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\).

06

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.

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

07

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.

Related lessons

← All 12 Linear Algebra & DE topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Linear Algebra and Differential Equations

Get Linear Algebra & DE right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗