The characteristic polynomial of a matrix A is the polynomial satisfies the equation

The roots of this function will be the eigenvalues of the matrix.
Example[]
Given the matrix

The characteristic polynomial will be


The eigenvalues of A will be -1 and 3.