Through the use of matrix A, which has the elements [1,3],[4,5]; 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^2-6*x-7