The characteristic polynomial of a Matrix is equivalent to solving the following formula:

Where I is the Identity matrix.