Put and . Direct matrix multiplication gives the two-dimensional Cayley-Hamilton theorem identity . If , determinant multiplicativity gives , hence . The identity then says . If , its trace is zero; otherwise a nonzero entry forces . Thus and .
Conversely, those two scalar relations give , so the same Cayley-Hamilton theorem identity implies . Therefore
This is the square-zero criterion for a two-by-two matrix. If , determinant multiplicativity first gives , hence . Now and . Either , or a nonzero entry gives and hence ; in both cases . The converse follows by multiplying by . Consequently . A nonzero nilpotent matrix of this size therefore has nilpotency index two.