The Characteristic Polynomial
We can calculate the characteristic polynomial of a matrix with the
syntax A.characteristic_polynomial('t').
If the eigenvalues of A are nice enough, then we can factor the
characteristic polynomial with the
syntax factor(A.characteristic_polynomial('t')).