Rank of a Matrix
High school
Consider a matrix $A$ and its reduced row echelon form. The rank of $A$ is the number of nonzero rows of the reduced row echelon form, which is the number of its leading entries.
Undergraduate
Consider a matrix and its column space, the span of its columns. The rank of the matrix is the dimension of its column space: the maximum number of linearly independent columns.
Examples
Worked examples
-
Value:
$\rank{I} = 3$
The $3 \times 3$ identity matrix has rank $3$, because its columns are linearly independent. -
Value:
$\rank{A} = 2$
The matrix \(\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\) has rank $2$, because its echelon form has two nonzero rows. -
Value:
$\rank{A} = 2$
The matrix \(\begin{bmatrix} 1 & 3 & 5 \\ 0 & 2 & 4 \end{bmatrix}\) has rank $2$, because it is in echelon form and has two nonzero rows. -
Value:
$1$
The rank of the $3 \times 4$ matrix of ones is $1$, because every row is $(1, 1, 1, 1)$. The $3 \times 4$ matrix of ones has matrix rank $1$, because all of its columns are equal, so only one is linearly independent. -
Value:
$\rank{A} = 1$
The matrix \(\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\) has rank $1$, because its second column is twice its first column. -
Value:
$\rank{0} = 0$
The $2 \times 2$ zero matrix has rank $0$, because its column space is $\setdef{0}$.
Properties
- The rank of an $m \times n$ matrix $A$ is the rank of the linear map $x \mapsto A x$ from $\reals^n$ to $\reals^m$, because the column space of $A$ is the range of that map.
- If $A$ is the matrix of a linear map $T$ relative to some pair of bases, then $\rank{A} = \rank{T}$.
- The rank also equals the maximum number of linearly independent rows (row rank equals column rank).
- For an $m \times n$ matrix $A$, the rank plus the nullity (the dimension of the null space) of $A$ is $n$ (the rank–nullity theorem).
Distinctions involving this term
- Rank vs. Nullity: The rank and the nullity of a matrix count two complementary kinds of directions, so the two numbers are easy to mix up. The rank of a matrix $A$ is the dimension of its column space: the number of independent directions that $A x$ can reach. The nullity of $A$ is the dimension of its kernel: the number of independent directions that $A$ sends to $0$. In the reduced row echelon form of $A$, the rank counts the columns with a leading entry and the nullity counts the columns without one, so for an $m \times n$ matrix, $\rank{A} + \nullity{A} = n$ (the rank–nullity theorem).
All definitions · All distinctions · All examples · Notation