MatricesTopic #12 of 30

Matrix Rank

Definition of rank, rank-nullity theorem, and applications to linear systems.

Overview

The rank of a matrix is the dimension of its column space (or row space). It measures the number of linearly independent rows or columns.

Definition

For matrix AA:

rank(A)=dim(Col(A))=dim(Row(A))\text{rank}(A) = \dim(\text{Col}(A)) = \dim(\text{Row}(A))

This equals:

  • Number of pivot positions in echelon form
  • Number of linearly independent columns
  • Number of linearly independent rows

Finding Rank

Method 1: Row Reduction

  1. Row reduce AA to echelon form
  2. Count the number of pivot positions (leading 1s)

Example

A=[123456789]RREF[120001000]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} \xrightarrow{\text{RREF}} \begin{bmatrix} 1 & 2 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{bmatrix}

rank(A)=2\text{rank}(A) = 2 (two pivots)

Key Properties

PropertyFormula
Maximumrank(A)min(m,n)\text{rank}(A) \leq \min(m, n) for m×nm \times n matrix
Transposerank(A)=rank(AT)\text{rank}(A) = \text{rank}(A^T)
Sumrank(A+B)rank(A)+rank(B)\text{rank}(A + B) \leq \text{rank}(A) + \text{rank}(B)
Productrank(AB)min(rank(A),rank(B))\text{rank}(AB) \leq \min(\text{rank}(A), \text{rank}(B))
InverseIf AA is invertible, rank(A)=n\text{rank}(A) = n

Full Rank

Full Column Rank

rank(A)=n\text{rank}(A) = n (number of columns)

  • Columns are linearly independent
  • Ax=0A\mathbf{x} = \mathbf{0} has only the trivial solution
  • Ax=bA\mathbf{x} = \mathbf{b} has at most one solution

Full Row Rank

rank(A)=m\text{rank}(A) = m (number of rows)

  • Rows are linearly independent
  • Ax=bA\mathbf{x} = \mathbf{b} has at least one solution for every b\mathbf{b}

Full Rank (Square Matrix)

rank(A)=m=n\text{rank}(A) = m = n

  • AA is invertible
  • Ax=bA\mathbf{x} = \mathbf{b} has a unique solution for every b\mathbf{b}

Rank-Nullity Theorem

For an m×nm \times n matrix AA:

rank(A)+nullity(A)=n\text{rank}(A) + \text{nullity}(A) = n

where nullity(A)=dim(Null(A))\text{nullity}(A) = \dim(\text{Null}(A)) = number of free variables.

Example

For a 3×53 \times 5 matrix with rank 2:

nullity=52=3\text{nullity} = 5 - 2 = 3

The null space has dimension 3.

Rank and Systems of Equations

For the system Ax=bA\mathbf{x} = \mathbf{b} (AA is m×nm \times n):

ConditionSolutions
rank(A)<rank([Ab])\text{rank}(A) < \text{rank}([A \mid \mathbf{b}])No solution
rank(A)=rank([Ab])=n\text{rank}(A) = \text{rank}([A \mid \mathbf{b}]) = nUnique solution
rank(A)=rank([Ab])<n\text{rank}(A) = \text{rank}([A \mid \mathbf{b}]) < nInfinitely many solutions

Examples

Example 1: Find Rank

A=[121243364]A = \begin{bmatrix} 1 & 2 & 1 \\ 2 & 4 & 3 \\ 3 & 6 & 4 \end{bmatrix}

Row reduce:

[121243364][121001001][120001000]\begin{bmatrix} 1 & 2 & 1 \\ 2 & 4 & 3 \\ 3 & 6 & 4 \end{bmatrix} \to \begin{bmatrix} 1 & 2 & 1 \\ 0 & 0 & 1 \\ 0 & 0 & 1 \end{bmatrix} \to \begin{bmatrix} 1 & 2 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{bmatrix}

rank(A)=2\text{rank}(A) = 2

Example 2: Apply Rank-Nullity

Matrix AA is 4×64 \times 6 with rank 3.

nullity(A)=63=3\text{nullity}(A) = 6 - 3 = 3

Ax=0A\mathbf{x} = \mathbf{0} has a 3-dimensional solution space.

Example 3: Check Solvability

For Ax=bA\mathbf{x} = \mathbf{b} with AA (3×33 \times 3) having rank 2:

[123b1246b2123b3][123b1000b22b1000b3b1]\left[\begin{array}{ccc|c} 1 & 2 & 3 & b_1 \\ 2 & 4 & 6 & b_2 \\ 1 & 2 & 3 & b_3 \end{array}\right] \to \left[\begin{array}{ccc|c} 1 & 2 & 3 & b_1 \\ 0 & 0 & 0 & b_2 - 2b_1 \\ 0 & 0 & 0 & b_3 - b_1 \end{array}\right]

For solution: b2=2b1b_2 = 2b_1 and b3=b1b_3 = b_1

Otherwise: no solution

Rank and Determinant

For an n×nn \times n matrix AA:

  • rank(A)=ndet(A)0\text{rank}(A) = n \Leftrightarrow \det(A) \neq 0
  • rank(A)<ndet(A)=0\text{rank}(A) < n \Leftrightarrow \det(A) = 0