Characteristic Polynomial Calculator

Enter your square matrix values and matrix size to compute the characteristic polynomial of any 2×2 or 3×3 matrix. Specify the matrix entries and this tool returns the polynomial p(λ) = det(A − λI), along with the polynomial coefficients displayed clearly. Perfect for linear algebra students working with eigenvalues and diagonalization.

Select the size of your square matrix.

Only used for 3×3 matrix.

Only used for 3×3 matrix.

Only used for 3×3 matrix.

Only used for 3×3 matrix.

Only used for 3×3 matrix.

Results

Characteristic Polynomial p(λ)

--

Trace of Matrix (sum of diagonal)

--

Determinant of Matrix

--

Coefficient of λ² (for 3×3: λ³ leading = 1)

--

Coefficient of λ (middle term)

--

Constant Term (det A)

--

Polynomial Coefficient Breakdown

Results Table

Frequently Asked Questions

What is a characteristic polynomial?

The characteristic polynomial of a square matrix A is defined as p(λ) = det(A − λI), where I is the identity matrix of the same size and det denotes the determinant. It is a polynomial in λ whose degree equals the size of the matrix. The roots of this polynomial are the eigenvalues of A.

How do you find the characteristic polynomial of a 2×2 matrix?

For a 2×2 matrix [[a, b], [c, d]], subtract λ from each diagonal entry to get [[a−λ, b], [c, d−λ]], then take the determinant: p(λ) = (a−λ)(d−λ) − bc = λ² − (a+d)λ + (ad−bc). This simplifies to λ² − trace(A)·λ + det(A).

How do you find the characteristic polynomial of a 3×3 matrix?

For a 3×3 matrix, form the matrix (A − λI) by subtracting λ from each diagonal entry, then compute its determinant using cofactor expansion. The result is a cubic polynomial: p(λ) = −λ³ + trace(A)λ² − (sum of 2×2 principal minors)λ + det(A). This calculator handles the expansion automatically.

What is the relationship between the characteristic polynomial and eigenvalues?

The eigenvalues of a matrix are exactly the roots (zeros) of its characteristic polynomial p(λ). Setting p(λ) = 0 and solving for λ gives you all eigenvalues. For example, a 2×2 matrix has at most 2 eigenvalues, and a 3×3 matrix has at most 3 (counting multiplicity).

Why does the characteristic polynomial always have degree equal to the matrix size?

When you compute det(A − λI), expanding the determinant always produces a term (−λ)ⁿ from the diagonal entries, making the polynomial degree exactly n for an n×n matrix. All other terms have degree less than n, so the leading term always determines the degree.

What do the coefficients of the characteristic polynomial represent?

For a 2×2 matrix, the coefficient of λ is −trace(A) and the constant term is det(A). In general, the coefficients are related to elementary symmetric polynomials of the eigenvalues. The constant term is always det(A) (up to sign) and the coefficient of λⁿ⁻¹ is always −trace(A).

Is the characteristic polynomial the same as the minimal polynomial?

Not always. The minimal polynomial of a matrix divides the characteristic polynomial and has the same roots, but may have lower degree. For example, the identity matrix has characteristic polynomial (λ−1)ⁿ but minimal polynomial (λ−1). The minimal polynomial is the smallest-degree polynomial that the matrix satisfies.

Can the characteristic polynomial have complex coefficients?

If your matrix entries are all real numbers, the characteristic polynomial will always have real coefficients. However, the roots (eigenvalues) may be complex. If matrix entries are complex, the polynomial coefficients will also generally be complex.

More Math Tools