Idempotent Matrix: Definition, Properties & Examples

#Algebra
TL;DR
An idempotent matrix is a square matrix that stays the same when you multiply it by itself, so A2=AA^2 = A. The only invertible idempotent matrix is the identity matrix; every other one is singular, with a determinant of 0 and eigenvalues that can only be 0 or 1. These matrices are the algebra behind projections, which is why they turn up in statistics, computer graphics, and machine learning.
MV
Madhukar VLast updated on September 6, 202612 min read

What Is An Idempotent Matrix?

An idempotent matrix is a square matrix that equals its own square, meaning A2=AA^2 = A. The word breaks into two Latin roots, idem (same) and potent (power), so an idempotent matrix keeps the same value no matter how many times you raise it to a power: A2=AA^2 = A, and therefore A3=AA^3 = A, and so on.

Two conditions sit inside that one line. The matrix has to be square, because a matrix can only be multiplied by itself when its columns match its rows. And the product A×AA \times A has to return the original grid, entry for entry.

The simplest members of the family are ones you already know. The identity matrix II satisfies I2=II^2 = I, and the zero matrix satisfies O2=OO^2 = O. Both pass the test without any work.

Throughout this article we use one running example of order 2 × 2:

A=[2−2 1−1]A = \begin{bmatrix} 2 & -2 \ 1 & -1 \end{bmatrix}

It does not look special, yet squaring it gives back exactly what we started with. The next section shows that step by step.

How Do You Verify That A Matrix Is Idempotent?

To check whether a matrix is idempotent, multiply it by itself and compare the result to the original. If every entry matches, the matrix is idempotent; if a single entry differs, it is not.

Example 1: Test whether A=[2−2 1−1]A = \begin{bmatrix} 2 & -2 \ 1 & -1 \end{bmatrix} is idempotent.

Multiply AA by AA using the row-by-column rule, one entry at a time:

A2=[2−2 1−1][2−2 1−1]=[(2)(2)+(−2)(1)(2)(−2)+(−2)(−1) (1)(2)+(−1)(1)(1)(−2)+(−1)(−1)]A^2 = \begin{bmatrix} 2 & -2 \ 1 & -1 \end{bmatrix}\begin{bmatrix} 2 & -2 \ 1 & -1 \end{bmatrix} = \begin{bmatrix} (2)(2)+(-2)(1) & (2)(-2)+(-2)(-1) \ (1)(2)+(-1)(1) & (1)(-2)+(-1)(-1) \end{bmatrix}

Work each entry:

A2=[4−2−4+2 2−1−2+1]=[2−2 1−1]A^2 = \begin{bmatrix} 4-2 & -4+2 \ 2-1 & -2+1 \end{bmatrix} = \begin{bmatrix} 2 & -2 \ 1 & -1 \end{bmatrix}

The result is identical to AA, so A2=AA^2 = A.

Final answer: AA is idempotent.

There is also a shortcut for the 2 × 2 case. A matrix [ab cd]\begin{bmatrix} a & b \ c & d \end{bmatrix} is idempotent exactly when d=1−ad = 1 - a and bc=a−a2bc = a - a^2. Check the running example: a=2a = 2, so d=1−2=−1d = 1 - 2 = -1, and bc=(−2)(1)=−2bc = (-2)(1) = -2 matches a−a2=2−4=−2a - a^2 = 2 - 4 = -2. Both conditions hold, which confirms the full multiplication above.

Which Matrices Are Idempotent?

Idempotent matrices come in more shapes than the identity. Any of the following passes the A2=AA^2 = A test.

  • The identity matrix. I2=II^2 = I for every size, so the identity is idempotent at every order.

  • The zero matrix. O2=OO^2 = O, the trivial case that is easy to overlook.

  • Projection matrices. A matrix that projects a vector onto a line or plane is idempotent, because projecting an already-projected vector leaves it where it is. The 2 × 2 matrix [10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix} flattens every point onto the x-axis, and squaring it returns itself.

  • Diagonal matrices with 0 or 1 on the diagonal. A diagonal matrix is idempotent only when each diagonal entry is 0 or 1, since d2=dd^2 = d forces d=0d = 0 or d=1d = 1.

Larger idempotent matrices work the same way. This 3 × 3 example is idempotent, and its off-diagonal entries are far from zero:

M=[2−2−4 −134 1−2−3],M2=MM = \begin{bmatrix} 2 & -2 & -4 \ -1 & 3 & 4 \ 1 & -2 & -3 \end{bmatrix}, \qquad M^2 = M

Squaring MM reproduces all nine entries, which you can confirm with the same row-by-column method used above.

What Are The Properties Of An Idempotent Matrix?

Every idempotent matrix carries a fixed set of properties that follow directly from A2=AA^2 = A. They are worth memorising, because most exam questions test one of them rather than the definition itself.

Table: The defining properties of an idempotent matrix.

Property

What it says

Definition

A2=AA^2 = A, and AA must be square

Eigenvalues

Every eigenvalue is 0 or 1

Determinant

det⁡(A)\det(A) is 0 or 1

Invertibility

Only the identity is invertible; all others are singular

Trace and rank

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

Complement

I−AI - A is also idempotent

Three of these deserve a short proof, because seeing why they are true is the fastest way to remember them.

Eigenvalues are 0 or 1. Suppose Av=λvAv = \lambda v for a non-zero vector vv. Multiply by AA again: A2v=λ2vA^2 v = \lambda^2 v. But A2=AA^2 = A, so A2v=Av=λvA^2 v = Av = \lambda v. That forces λ2=λ\lambda^2 = \lambda, whose only solutions are λ=0\lambda = 0 and λ=1\lambda = 1.

The determinant is 0 or 1. Taking determinants of A2=AA^2 = A gives det⁡(A)2=det⁡(A)\det(A)^2 = \det(A), so det⁡(A)\det(A) is 0 or 1. When the determinant equals 1 the matrix is non-singular, and the only idempotent matrix that reaches it is the identity. Every other idempotent matrix has determinant 0.

I−AI - A is idempotent too. Expand the square: (I−A)2=I−2A+A2=I−2A+A=I−A(I - A)^2 = I - 2A + A^2 = I - 2A + A = I - A. So the complement of an idempotent matrix is itself idempotent, a fact projections rely on. The trace then counts the eigenvalues equal to 1, which is exactly the rank, so the trace and the rank always agree.

How Is An Idempotent Matrix Different From Nilpotent And Involutory Matrices?

Idempotent matrices are one of three families defined by what happens when you raise the matrix to a power, and students routinely mix them up. A nilpotent matrix collapses to zero after enough multiplications, while an involutory matrix undoes itself in two.

Table: How idempotent, nilpotent, and involutory matrices compare.

Type

Defining rule

Eigenvalues

Example

Idempotent

A2=AA^2 = A

0 or 1

[10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix}

Nilpotent

Ak=OA^k = O for some positive integer kk

all 0

[01 00]\begin{bmatrix} 0 & 1 \ 0 & 0 \end{bmatrix}

Involutory

A2=IA^2 = I

+1+1 or −1-1

[10 0−1]\begin{bmatrix} 1 & 0 \ 0 & -1 \end{bmatrix}

A nilpotent matrix satisfies Ak=OA^k = O for some power kk; the example above squares straight to the zero matrix. An involutory matrix satisfies A2=IA^2 = I, so it is its own inverse; the example is a reflection that returns to the start after two applications.

The three families meet in one place. The identity matrix is the single matrix that is both idempotent and involutory, since I2=II^2 = I and I2=II^2 = I describe the same thing. There is also a clean bridge: if AA is idempotent, then 2A−I2A - I is involutory, because (2A−I)2=4A2−4A+I=I(2A - I)^2 = 4A^2 - 4A + I = I.

Why Does A² = A Matter?

The equation A2=AA^2 = A is not a curiosity invented for exams. It is the exact algebraic signature of a projection, and that single idea is why idempotent matrices appear across so many fields.

Think about what a projection does. A projection sends every point to its shadow on a line, a plane, or some larger subspace. The key feature is that once a point is already on that subspace, projecting it a second time does nothing.

  • Projecting twice equals projecting once. If PP is the matrix that performs the projection, then applying it twice is the same as applying it once, which is precisely P2=PP^2 = P.

  • The image is fixed. Points already living in the target subspace are left exactly where they are, so PP acts as the identity on its own output.

  • The complement splits the space. Since I−PI - P is also idempotent, it projects onto the leftover directions, and every vector breaks cleanly into a projected part plus a remainder.

That is the whole reason A2=AA^2 = A shows up so often. Any operation that keeps its own result unchanged when repeated is idempotent, and projection is the most common operation of that kind.

The Mathematicians Behind The Idempotent Matrix

The word "idempotent" is younger than the matrices it describes. It entered mathematics in the nineteenth century, when algebra was shifting from solving single equations toward describing whole systems of objects and the operations on them.

Two other figures shaped the surrounding story:

  • George Boole (1815–1864, England) used the idempotent property in logic, where his equation x2=xx^2 = x captured the idea that "the class of the class" is just the class, the algebraic seed of modern computing.

  • Arthur Cayley (1821–1895, England) built the algebra of matrices themselves in 1858, defining how to multiply and invert them, which is the ground on which the idempotent property stands.

Where Are Idempotent Matrices Used In The Real World?

Idempotent matrices run quietly under any process that projects data onto a smaller space and then leaves it there.

  • Statistics and regression. The hat matrix in least-squares regression is idempotent; it projects the observed data onto the line of best fit, and projecting the fitted values again returns the same fit.

  • Computer graphics. Casting a 3D scene onto a 2D screen, or a shape onto its shadow, is a projection, so the transformation matrix satisfies A2=AA^2 = A.

  • Machine learning. Dimensionality-reduction methods project high-dimensional data onto a handful of directions, and the projection step is idempotent by construction.

  • Signal processing. Filters that isolate one component of a signal act as projections, keeping that component fixed once it has been extracted.

One equation, A2=AA^2 = A, connects a statistician's regression, an artist's shadow, and a learning algorithm's compression. The same structure keeps reappearing wherever a system needs to hold on to part of the information and discard the rest.

What Are The Most Common Idempotent Matrix Mistakes?

These four errors account for most lost marks on idempotent matrices, and each comes from collapsing the definition into something it only resembles.

Confusing An Idempotent Matrix With The Identity Matrix.

Where it slips in:

A student reads "multiplying by itself gives itself" and pictures only the identity, concluding that every idempotent matrix must be II.

Don't do this:

Do not assume idempotent means identity. The identity is the only invertible idempotent matrix, but singular ones like [10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix} are idempotent as well.

The correct way:

Test the actual definition, A2=AA^2 = A. Most idempotent matrices have determinant 0 and are nowhere near the identity.

Confusing Idempotent With Involutory.

Where it slips in:

A student blurs A2=AA^2 = A with A2=IA^2 = I, treating "squares to something simple" as one rule.

Don't do this:

Do not swap the right-hand side. A2=AA^2 = A defines idempotent; A2=IA^2 = I defines involutory, and they describe different matrices with different eigenvalues.

The correct way:

Read the right-hand side carefully. Idempotent returns the matrix itself, so its eigenvalues are 0 or 1; involutory returns the identity, so its eigenvalues are +1+1 or −1-1.

Assuming Every Diagonal Matrix Is Idempotent.

Where it slips in:

A student sees that diagonal matrices are easy to square and decides they must all be idempotent.

Don't do this:

Do not generalise from the identity. A diagonal matrix like [20 00]\begin{bmatrix} 2 & 0 \ 0 & 0 \end{bmatrix} squares to [40 00]\begin{bmatrix} 4 & 0 \ 0 & 0 \end{bmatrix}, which is not the original.

The correct way:

Square each diagonal entry. A diagonal matrix is idempotent only when every diagonal entry is 0 or 1, since those are the only numbers that satisfy d2=dd^2 = d.

An Arithmetic Slip When Squaring The Matrix.

Where it slips in:

A student multiplies matching positions instead of rows against columns, so the "square" is wrong before the idempotency test even begins.

Don't do this:

Do not multiply entry by entry. Matrix multiplication is never element-wise, so A2A^2 is not the matrix of squared entries.

The correct way:

Use the row-by-column rule for every entry of A2A^2, then compare with AA. One mis-multiplied term is enough to label an idempotent matrix as non-idempotent by accident.

Practice Problems On Idempotent Matrices

Work each one, then check the answer that follows.

  1. Verify that [10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix} is idempotent.
    (Answer: squaring it gives [10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix}, so A2=AA^2 = A. Idempotent.)

  2. Is [11 01]\begin{bmatrix} 1 & 1 \ 0 & 1 \end{bmatrix} idempotent?
    (Answer: its square is [12 01]\begin{bmatrix} 1 & 2 \ 0 & 1 \end{bmatrix}, which differs from the original. Not idempotent.)

  3. Show that [3−6 1−2]\begin{bmatrix} 3 & -6 \ 1 & -2 \end{bmatrix} is idempotent.
    (Answer: d=1−ad = 1 - a gives −2=1−3-2 = 1 - 3, and bc=−6=a−a2=3−9bc = -6 = a - a^2 = 3 - 9. Both hold, and direct multiplication confirms A2=AA^2 = A.)

  4. For A=[2−2 1−1]A = \begin{bmatrix} 2 & -2 \ 1 & -1 \end{bmatrix}, find the trace and state the rank.
    (Answer: trace=2+(−1)=1\text{trace} = 2 + (-1) = 1, so the rank is also 1.)

  5. Confirm that I−AI - A is idempotent when A=[10 00]A = \begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix}.
    (Answer: I−A=[00 01]I - A = \begin{bmatrix} 0 & 0 \ 0 & 1 \end{bmatrix}, and its square is itself. Idempotent.)

  6. What values can the determinant of any idempotent matrix take?
    (Answer: only 0 or 1, because det⁡(A)2=det⁡(A)\det(A)^2 = \det(A).)

Where Should You Go Next After Idempotent Matrices?

Idempotent matrices open onto the parts of linear algebra that explain why they behave the way they do, and a few natural doors lead outward from here.

  1. Eigenvalues. The 0-or-1 rule is an eigenvalue fact, so the eigenvalue toolkit is where the property comes alive.

  2. Rank Of A Matrix. The trace-equals-rank result ties idempotent matrices to how much of the space a projection actually keeps.

  3. Matrices And Determinants. The determinant test that separated the identity from every other idempotent matrix generalises here.

If your child is building these foundations, a live Bhanzu trainer teaches idempotent matrices through the projection idea they were built to model, in the Bhanzu algebra program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is an idempotent matrix in simple terms?
An idempotent matrix is a square matrix that gives back itself when multiplied by itself, so A2=AA^2 = A. Doing the operation twice lands you exactly where doing it once did.
Is the identity matrix an idempotent matrix?
Yes. The identity matrix satisfies I2=II^2 = I, and it is the only idempotent matrix that is also invertible. Every other idempotent matrix is singular.
Can a non-square matrix be idempotent?
No. A matrix can only be multiplied by itself when it is square, so idempotency is defined only for square matrices.
What is the difference between an idempotent and a nilpotent matrix?
An idempotent matrix satisfies A2=AA^2 = A and has eigenvalues of 0 or 1. A nilpotent matrix satisfies Ak=OA^k = O for some power kk and has every eigenvalue equal to 0, so it collapses to the zero matrix instead of returning itself.
Why are the eigenvalues of an idempotent matrix only 0 or 1?
Because A2=AA^2 = A forces each eigenvalue to satisfy λ2=λ\lambda^2 = \lambda. The only numbers equal to their own square are 0 and 1, so no other eigenvalue is possible.
How do I check if a matrix is idempotent quickly?
Square the matrix with the row-by-column rule and compare it to the original. For a 2 × 2 matrix you can shortcut the check with d=1−ad = 1 - a and bc=a−a2bc = a - a^2.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →