The characteristic polynomial of a square matrix is . Subtract from every diagonal entry, take the determinant and expand: the result is a polynomial of degree whose roots are the eigenvalues.
| Step | On | |
|---|---|---|
| 1 | Check that the matrix is square. Only an matrix has a characteristic polynomial; its degree is . | , so has degree |
| 2 | Subtract down the diagonal. Only the diagonal entries change; the off-diagonal entries stay as they are. | |
| 3 | Take the determinant. For , multiply the diagonal and subtract the product of the off-diagonal entries. For , expand along the row or column with the most zeros. | |
| 4 | Expand and check the coefficients. Collect powers of . Check: the coefficient is and the constant term is . | ; , ✓ |