Free Characteristic Polynomial Calculator
Characteristic Polynomial
Select a matrix size, enter all entries, then click Calculate
The characteristic polynomial is a fundamental construct in linear algebra, linking a square matrix to its eigenvalues. With the Characteristic Polynomial Calculator (a free online matrix polynomial solver), you can instantly find the characteristic polynomial for 2×2, 3×3, and 4×4 matrices, saving the tedious manual expansion. In this article, we will revisit the definition, provide step‑by‑step formulas for various sizes, and discuss key properties — all while demonstrating how the solver makes the process effortless.
Definition of the Characteristic Polynomial
For an matrix , the characteristic polynomial in variable is defined as:
where is the identity matrix of size and denotes the determinant. Because the roots of are precisely the eigenvalues of , this polynomial is also referred to as the eigenvalue polynomial. Some textbooks adopt instead; this alternative version equals . Consequently, the two polynomials are identical when is even, and have opposite signs for all coefficients when is odd. Importantly, the eigenvalues remain unaffected by the sign convention.
How to Find the Characteristic Polynomial with the Solver
Using this calculator is straightforward:
- Choose the matrix size: 2×2, 3×3, or 4×4.
- Enter the entries of the matrix row by row into the input fields.
- The calculator displays the polynomial immediately.
- Optionally, toggle between the and conventions by changing the "definition variant" setting.
This eliminates the need to memorize complex formulas, especially for larger matrices.
Characteristic Polynomial of a 2×2 Matrix
For a general matrix , the characteristic polynomial expands to:
It can be written compactly as , where and .
Example: Take . Then and . Hence the characteristic polynomial is . Direct expansion using gives the same result, confirming the formula.
Characteristic Polynomial of a 3×3 Matrix
For a matrix, expansion can be performed using the Rule of Sarrus or cofactor expansions. Consider the matrix:
Compute :
Applying the Rule of Sarrus yields:
which simplifies to:
In general, for a 3×3 matrix with entries , the characteristic polynomial can be expressed as:
The coefficient of is the trace, and the constant term is the determinant.
General Formula for Matrices
For an matrix, the characteristic polynomial takes the form:
where is the sum of all principal minors of . In particular, and . For matrices larger than 3×3, calculating these sums by hand becomes quickly impractical, making a characteristic polynomial solver invaluable.
Important Properties of the Characteristic Polynomial
- Invertibility: A matrix is invertible if and only if the constant term of its characteristic polynomial (i.e., ) is non‑zero. This is equivalent to .
- Algebraic Multiplicity: The multiplicity of an eigenvalue as a root of is called its algebraic multiplicity.
- Transpose: and its transpose share the same characteristic polynomial.
- Similarity: Similar matrices have identical characteristic polynomials, but the converse is not true. For example, the matrices and both have characteristic polynomial , yet they are not similar because the first is not diagonalizable while the second is diagonal.
- Cayley‑Hamilton Theorem: Every square matrix satisfies its own characteristic equation. That is, if you substitute for in (interpreting the constant term as ), you obtain the zero matrix.
Illustration of Cayley‑Hamilton: For the earlier 2×2 matrix with characteristic polynomial , we have
Therefore,
confirming the theorem.
FAQ
1. What is the characteristic polynomial of a matrix?
The characteristic polynomial of an n×n matrix A is defined as p(λ)=det(A−λI). Its roots are the eigenvalues of A.
2. How do I find the characteristic polynomial of a 2x2 matrix?
For a 2x2 matrix [[a,b],[c,d]], the polynomial is λ²−(a+d)λ+(ad−bc), which equals λ²−tr(A)λ+det(A). Example: if A=[[2,3],[4,3]], the polynomial is λ²−5λ−6.
3. How do I find the characteristic polynomial of a 3x3 matrix?
You can compute det(A−λI) using the Rule of Sarrus or cofactor expansion. For example, using Sarrus on a 3x3 matrix yields a cubic polynomial. The calculator automates this process.
4. Does it matter which definition I use? (p(λ)=det(A−λI) vs det(λI−A))
Both definitions are common. They differ by a factor of (−1)^n, so the polynomials are identical for even n and have opposite signs for odd n. The eigenvalues (roots) are the same regardless of the sign convention.
5. What are the key properties of the characteristic polynomial?
Key properties: invertibility (matrix invertible iff constant term non-zero), algebraic multiplicity, transpose and similarity invariance, and the Cayley‑Hamilton theorem (a matrix satisfies its own polynomial).
How to Use
- Select the matrix size: 2x2, 3x3, or 4x4.
- Enter all the matrix entries in the grid of input fields.
- Click Calculate to see the characteristic polynomial and eigenvalues.