Idempotent Matrix Checker
Test whether a matrix satisfies \(A^2 = A\) with an instant Yes/No verdict badge, full matrix squaring steps, and red cell highlighting for mismatches.
What is an Idempotent Matrix?
In linear algebra, a matrix \(A\) is called idempotent if multiplying it by itself yields the identical matrix:
\(A^2 = A \iff A \cdot A = A\)
Consequently, all higher powers also equal \(A\): \(A^k = A\) for any integer \(k \ge 1\).The Geometry of Projections
Idempotent matrices represent geometric projections. Imagine projecting a 3D shadow of an object onto a 2D tabletop. If you take that 2D shadow and project it again, it remains exactly where it was.
- Eigenvalues: If \(A v = \lambda v\), then \(A^2 v = \lambda^2 v\). Since \(A^2 = A\), \(\lambda^2 = \lambda \implies \lambda \in \{0, 1\}\).
- Trace equals Rank: \(\text{Tr}(A) = \text{Rank}(A)\), because the trace is the sum of eigenvalues (which are only 0s and 1s).
- Orthogonal Projections: If an idempotent matrix is also symmetric (\(P^2 = P\) and \(P^T = P\)), it is an orthogonal projection matrix.
Solved Examples: Yes vs. No Idempotency
Test if \(A = \begin{bmatrix} 3 & -6 \\ 1 & -2 \end{bmatrix}\) is idempotent:
Compute \(A^2 = A \cdot A\):
- \((A^2)_{11} = (3)(3) + (-6)(1) = 9 - 6 = 3 = a_{11}\) ✓
- \((A^2)_{12} = (3)(-6) + (-6)(-2) = -18 + 12 = -6 = a_{12}\) ✓
- \((A^2)_{21} = (1)(3) + (-2)(1) = 3 - 2 = 1 = a_{21}\) ✓
- \((A^2)_{22} = (1)(-6) + (-2)(-2) = -6 + 4 = -2 = a_{22}\) ✓
\(A^2 = \begin{bmatrix} 3 & -6 \\ 1 & -2 \end{bmatrix} = A\)
Verdict: YES — Matrix is idempotent.
Test if \(B = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}\) is idempotent:
Compute \(B^2\):
\(B^2 = \begin{bmatrix} 4 & 0 \\ 0 & 4 \end{bmatrix} \neq \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}\)
Since \(B^2 \ne B\), scaling by 2 compounds to 4 rather than remaining invariant.
Verdict: NO — Matrix is not idempotent.
Matrix Inverses & Projections
Learn why non-trivial idempotent projection matrices can never be inverted.
Read our student tutorial: How to Find the Inverse of a Matrix →