Lemma: If A is an nxn matrix and p(x) is any polynomial, then the eigenvalues of p(A) are p(lambda), where lambda is an eigenvalue of A. The proof is not hard, but we will try to justify the lemma with an example instead.


  Clear[A];
  A={{5,-6,-6},{-1,4,2},{3,-6,-4}};
  MatrixForm[A]
  Eigenvalues[A]

Let p(x)=x^3-4x^2-7


  p[x_]:=x^3-4 x^2-7

p(A)=A^3-4A^2-7I


  pA=A.A.A-4 A.A -7 IdentityMatrix[3];
  MatrixForm[pA]
  Eigenvalues[pA]


  Eigenvalues[A]
  p[Eigenvalues[A]]
  Eigenvalues[pA]

Did it work?

Up to Jordan Form and Minimal Polynomials