Characteristic Polynomial Calculator

Characteristic Polynomial Calculator

Find the characteristic polynomial of a 2x2 or 3x3 matrix and see the key quantities that determine its eigenvalues.

Last updated: 2026-06-09T06:07:06.677Z
Characteristic Polynomial
det(λI - A) =
λ² - 6λ + 8
Trace6
Determinant8
Eigenvaluesλ = 4, 2

Matrix entries must be valid numbers, including integers, decimals, and negatives.

What Is a Characteristic Polynomial?

For a square matrix A, the characteristic polynomial is built by subtracting a scalar multiple of the identity matrix and taking the determinant. In this calculator, the convention is det(?I - A), which is one of the standard ways to write it.

The roots of that polynomial are the eigenvalues of the matrix. If you have seen the alternative form det(A - ?I), that is the same information with the signs arranged differently.

Why It Matters

The characteristic polynomial gives you a direct route from a matrix to its eigenvalues. That is useful in linear algebra, but it also shows up in stability questions, differential equations, and diagonalization problems.

The key idea is that the polynomial packages a lot of matrix behavior into one expression, and the zeros of that expression tell you which values make the matrix act in a special way.

How to Use the Calculator

1

Choose the matrix size

Pick 2x2 or 3x3 depending on the matrix you want to analyze. The calculator resets to a matching example so the layout stays aligned with the selected size.

2

Enter the matrix entries

Type the entries row by row. The calculator rejects invalid values so the determinant and coefficients stay tied to the matrix you actually entered.

3

Read the polynomial and summary values

The result panel shows the characteristic polynomial, plus the trace and determinant so you can check the coefficient pattern quickly.

2x2 Matrices

For a 2x2 matrix, the characteristic polynomial has the form ?� - tr(A)? + det(A). That means the trace appears in the middle coefficient and the determinant appears as the constant term.

This is why the calculator shows those values alongside the polynomial. They make it easy to check whether the result has the right shape without expanding everything by hand.

3x3 Matrices

For a 3x3 matrix, the pattern becomes ?� - tr(A)?� + S? - det(A), where S is the sum of the 2x2 principal minors. The middle coefficient is the part that usually takes the most work to compute by hand.

That is one reason the calculator is helpful: it handles the coefficient pattern for you and presents the polynomial in a form that is easy to compare with the matrix summary values.

Worked Example

Matrix A = [[4, 1, 0], [1, 3, 1], [0, 1, 2]]

Trace = 4 + 3 + 2 = 9

Determinant = 18

Sum of principal minors = 24

Characteristic polynomial = ?� - 9?� + 24? - 18

The calculator reaches the same shape by using the matrix entries directly, then collecting the trace, determinant, and principal-minor information into the final polynomial.

Frequently Asked Questions

Why can the roots be complex?

A real matrix can still have complex eigenvalues, so the polynomial does not always factor into real linear terms.

Why does the sign convention matter?

Some books use det(A - ?I) instead of det(?I - A). The coefficients change sign depending on the choice, but the roots stay the same.

Does the calculator support non-square matrices?

No. Characteristic polynomials are only defined for square matrices.

What do the trace and determinant tell me?

They give quick checkpoints for the coefficient pattern, and they help you verify that the polynomial matches the matrix.

Related Tools