How to Find the Rank of a Matrix A with A² = A
At a glance
- 1. Recognize idempotence
The equation A² = A says that applying A twice has the same effect as applying it once.
- 2. Use the image and kernel
The vector space splits into the image of A and its kernel, so rank plus nullity equals the matrix size.
- 3. Determine the rank
The equation alone does not specify a numerical rank; use the matrix entries or its trace to find it.
A matrix satisfying is idempotent: applying the corresponding linear transformation twice has the same effect as applying it once. This condition gives useful structure, but it does not by itself determine a single numerical rank. For an matrix, the rank may be any integer from through .
The equation does imply that, over the real or complex numbers, the rank equals the trace. If you have the entries of , you can also find the rank directly by row reduction.
Why the equation does not determine one rank
For any , both the zero matrix and the identity matrix satisfy the condition:
Their ranks are and , respectively. More generally, for each integer between and , the diagonal matrix
(where the zero block has size ) satisfies and has rank . So without additional information, there is no unique rank to report.
The image and kernel split the space
Think of as a linear map from an -dimensional vector space to itself. Every vector can be written as a sum of a vector in the image of and a vector in its kernel:
The first term is in the image. The second is in the kernel because
Moreover, the image and kernel intersect only in the zero vector. If is in the image, then for some , and idempotence gives . If is also in the kernel, then , so .
Thus the whole space is the direct sum of the image and kernel. The rank-nullity theorem then gives
In a basis formed first from a basis of the image and then from a basis of the kernel, the transformation has matrix , where . This explains why the rank can be any integer from to .
Why rank equals trace over R or C
In the basis just described, the matrix has diagonal entries equal to and the rest equal to . Its trace is therefore , its rank. Trace is unchanged by a change of basis, so the original matrix has the same trace. Consequently, for a real or complex idempotent matrix,
This is a quick way to find the rank when the entries are known. For example, let
Then
so is idempotent. Its trace is , and its rank is ; indeed, its two columns are and , so they span a one-dimensional space.
Finding the rank from a specific matrix
If the problem provides the entries of , either count the nonzero diagonal entries only after establishing a suitable diagonal form, or use standard row reduction:
- Form the matrix from the given entries.
- Reduce it to row-echelon form.
- Count the pivot positions. That count is .
- As a check over or , add the diagonal entries of the original matrix. The sum should equal the rank.
The trace shortcut is convenient, but row reduction also works and does not rely on first using the idempotence property. If the matrix is already diagonal with entries only and , its rank is simply the number of s.
Common mistakes
- Claiming the rank must be 1. Idempotence does not force rank 1; the rank may be any value from to .
- Treating as enough to calculate a number. You need the entries of or some other information, such as its trace or the dimension of its image.
- Using the diagonal entries as the rank in any basis. Rank is not generally the number of nonzero diagonal entries of the matrix as written. The trace shortcut works because trace is invariant under change of basis and an idempotent map has a basis in which its matrix is .
- Ignoring the number system. The identity is stated here over the real or complex numbers. In positive characteristic, the trace is interpreted in that field and can fail to distinguish ranks as ordinary integers.
References
- Linear Algebra, 5th Edition — Stephen H. Friedberg, Arnold J. Insel, and Lawrence E. Spence
- Linear Algebra Done Right, 3rd Edition — Sheldon Axler
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.