Nilpotent Matrix Checker
Check whether repeatedly multiplying a square matrix by itself eventually produces the all-zero matrix.
Check whether repeatedly multiplying a square matrix by itself eventually produces the all-zero matrix.
How Nilpotent Matrix Checker Works
The calculator repeatedly multiplies the matrix by itself — A, A², A³, and so on — checking after each step whether the result has become the all-zero matrix. By a result called the Cayley-Hamilton theorem, an n×n nilpotent matrix is guaranteed to reach zero by at most the n-th power, so the calculator stops looking beyond that point.
See It In Action
Who Uses Nilpotent Matrix Checker and Why
- Checking whether a strictly triangular matrix (zeros on and above/below the diagonal) actually reduces to zero under repeated multiplication, as expected.
- Verifying a matrix used in a Jordan form or eigenvalue exercise is nilpotent as part of confirming its eigenvalues are all zero.
- Confirming a matrix constructed for a linear algebra proof or homework problem genuinely satisfies the nilpotent definition rather than just looking sparse.
Mistakes to Avoid
- Assuming a matrix with several non-zero entries can't be nilpotent — plenty of non-zero entries are allowed; what matters is that some power of the whole matrix eventually becomes exactly zero.
- Expecting an invertible matrix to ever qualify — a nilpotent matrix's determinant is always zero (since some power of it equals the zero matrix, whose determinant is zero), so nilpotent and invertible are mutually exclusive.
- Not realizing the check needs to test successive powers (A, A², A³, ...) rather than just A itself — a matrix can look nowhere near zero at first power and still be nilpotent.
Tips for Best Results
- By the Cayley-Hamilton theorem, an n×n nilpotent matrix is guaranteed to reach the zero matrix by at most the n-th power, so there's a hard upper bound on how far the check needs to look.
- Strictly triangular matrices (zero on the diagonal too, not just above or below it) are always nilpotent — a fast mental check if you already know a matrix has that shape.
Fixing Common Problems
My matrix never reaches zero no matter how many powers I check. — If it hasn't reached zero by the n-th power for an n×n matrix, it isn't nilpotent — the Cayley-Hamilton theorem guarantees any genuinely nilpotent matrix reaches zero within that many steps.
Terms Explained
Nilpotency index: The smallest power k for which a nilpotent matrix Aᵏ equals the zero matrix.
Cayley-Hamilton theorem: A result guaranteeing that an n×n nilpotent matrix reaches the zero matrix by at most its n-th power, giving a natural stopping point for the check.