Nilpotent Matrix Checker
Test whether a square matrix satisfies \(A^k = 0\) for some positive integer \(k\). Computes the nilpotency index and displays all intermediate power matrices.
What is a Nilpotent Matrix?
A matrix \(N\) is called nilpotent if raising it to some positive integer power \(k\) results in the zero matrix:
\(N^k = 0 \quad \text{for some integer } 1 \le k \le n\)
The smallest such integer \(k\) is the nilpotency index. An \(n \times n\) matrix cannot have index greater than \(n\).Key Properties of Nilpotent Matrices
- Zero Eigenvalues: If \(N^k = 0\) and \(N v = \lambda v\), then \(N^k v = \lambda^k v = 0 \implies \lambda = 0\). Every eigenvalue must be zero.
- Zero Determinant and Trace: \(\det(N) = \prod \lambda_i = 0\) and \(\text{Tr}(N) = \sum \lambda_i = 0\).
- Triangular Matrices: Any strictly upper triangular matrix (zeros along and below the main diagonal) or strictly lower triangular matrix is always nilpotent.
- Matrix Exponential: In differential equations, the matrix exponential \(e^{Nt}\) terminates as a finite polynomial rather than an infinite series: \(e^{Nt} = I + Nt + \frac{N^2 t^2}{2!} + \dots + \frac{N^{k-1} t^{k-1}}{(k-1)!}\).
Solved Examples: Nilpotent vs. Non-Nilpotent
Check if \(N = \begin{bmatrix} 0 & 3 \\ 0 & 0 \end{bmatrix}\) is nilpotent:
Compute \(N^2\):
\(N^2 = \begin{bmatrix} 0 & 3 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & 3 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} (0)(0) + (3)(0) & (0)(3) + (3)(0) \\ (0)(0) + (0)(0) & (0)(3) + (0)(0) \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = 0\)
Since \(N^2 = 0\), matrix \(N\) is nilpotent with nilpotency index \(k = 2\).
Verdict: YES — Matrix is nilpotent (\(k = 2\)).
Check if \(B = \begin{bmatrix} 1 & 2 \\ 0 & 0 \end{bmatrix}\) is nilpotent:
Compute \(B^2\):
\(B^2 = \begin{bmatrix} 1 & 2 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 1 & 2 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 0 & 0 \end{bmatrix} = B\)
Higher powers satisfy \(B^k = B \neq 0\). The diagonal contains \(b_{11} = 1\), giving \(\text{Tr}(B) = 1 \neq 0\). Nilpotent matrices must have trace 0.
Verdict: NO — Matrix is not nilpotent.
Matrix Determinants & Nilpotency
Learn why nilpotent matrices always have determinant zero and how they appear in Jordan canonical forms.
Read our beginner guide: What is a Determinant? →