Through the use of matrix A, which has the elements [4,1,4],[3,8,6],[2,7,4]; once the matrix is entered, expand (charpoly (A, x)) is calculated, where A is the name of the matrix, x the polynomial variable, resulting in -x^3+16*x^2-27*x-20