It is known that the eigenvalues of a 3-order square matrix are 2, - 1,0. Find the eigenvalues and B of the matrix B = 2A ^ 3-5a ^ 2 + 3E (knowledge of eigenvalues and eigenvectors of matrices)

It is known that the eigenvalues of a 3-order square matrix are 2, - 1,0. Find the eigenvalues and B of the matrix B = 2A ^ 3-5a ^ 2 + 3E (knowledge of eigenvalues and eigenvectors of matrices)

The eigenvalues of a square matrix of order 3 are 2, - 1,0
The eigenvalues of 3-order square matrix B = 2A ^ 3-5a ^ 2 + 3E are
2*2^3-5*2^2+3=-1,2*(-1)^3-5*(-1)^2+3=-4,2*0^3-5*0^2+3=3,
|B| = (-1)(-4)3 = 12