Characteristic Polynomial Calculator
Find the characteristic polynomial of a square matrix. Enter your matrix to calculate det(λI − A), display the polynomial coefficients, and explore how the characteristic equation relates to eigenvalues.
Calculate the Characteristic Polynomial
Enter a square matrix, with one row per line. Separate entries with spaces or commas. The example is ready to calculate.
What Is a Characteristic Polynomial?
The characteristic polynomial of a square matrix A is the polynomial obtained by taking the determinant of λI − A, where λ is a variable and I is the identity matrix of the same size:
For an n × n matrix, the characteristic polynomial has degree n and leading coefficient 1. Its roots are the eigenvalues of the matrix, counted with their algebraic multiplicities.
Example for a 2 × 2 Matrix
Consider the matrix:
Then:
Its determinant is:
p(λ) = λ² − 5λ − 2
Therefore, the characteristic polynomial is λ² − 5λ − 2.
How to Use This Calculator
- Enter a square matrix using one line per row.
- Separate matrix entries with spaces or commas.
- Click Calculate Characteristic Polynomial.
- Read the polynomial, coefficients, and calculation details in the results.
Why Is the Characteristic Polynomial Useful?
- Eigenvalues: Roots of the characteristic polynomial give the eigenvalues.
- Determinant: Under this convention, the constant term is det(−A), equal to (−1)n det(A).
- Trace: The coefficient of λn−1 is −trace(A).
- Linear algebra: The polynomial helps analyze matrix behavior, diagonalization, and linear systems.
Related Matrix Calculators
Frequently Asked Questions
What is the characteristic polynomial formula?
The formula used here is p(λ) = det(λI − A), where A is a square matrix, I is the identity matrix, and λ is a variable.
How is the characteristic polynomial related to eigenvalues?
The eigenvalues are the roots of the characteristic equation p(λ) = 0, counted with algebraic multiplicity.
Why must the matrix be square?
The determinant is defined for square matrices, so λI − A must be square to calculate its characteristic polynomial.
Why might the coefficients be approximate?
The calculator uses floating-point arithmetic. Rounding can affect results, especially for matrices with large entries or coefficients close to zero.
What is the coefficient of the highest power of λ?
With the convention det(λI − A), the leading coefficient is always 1. The polynomial is monic.