where det is the determinant operation and λ is a scalar element of the base ring. Since the entries of the matrix are (linear or constant) polynomials in λ, the determinant is also an n-th order monic polynomial in λ. The Cayley–Hamilton theorem states that substituting the matrix A for λ in this polynomial results in the zero matrix,
p(A)= 0.