How the Characteristic Polynomial Calculator works
For any square matrix A, the characteristic polynomial is defined as p(λ) = det(A − λI), where λ (lambda) is a variable, I is the identity matrix of the same size as A, and det denotes the determinant. Setting p(λ) = 0 and solving for λ gives the eigenvalues of A — the scalars for which A behaves like simple scaling along certain directions (eigenvectors).
The formula for a 2×2 matrix
This calculator works with a general 2×2 matrix A = [[a₁₁, a₁₂], [a₂₁, a₂₂]]. Subtracting λ from each diagonal entry and expanding the determinant gives:
- Characteristic polynomial: p(λ) = λ² − tr(A)λ + det(A)
- Trace: tr(A) = a₁₁ + a₂₂ (sum of the diagonal entries)
- Determinant: det(A) = a₁₁a₂₂ − a₁₂a₂₁
Because p(λ) is quadratic in λ, its roots — the eigenvalues — come from the ordinary quadratic formula: λ = [tr(A) ± √(tr(A)² − 4·det(A))] / 2. The quantity under the square root, tr(A)² − 4·det(A), is the discriminant of the characteristic polynomial.
Understanding the output
- Two distinct real eigenvalues: occurs when the discriminant is positive. This is the most common case for matrices without special symmetry.
- One repeated eigenvalue: occurs when the discriminant is exactly 0, so λ₁ = λ₂. The matrix may or may not be diagonalizable in this case.
- Complex-conjugate eigenvalues: occurs when the discriminant is negative. The eigenvalues take the form a ± bi, where i = √(−1). This is typical of rotation matrices.
- Check your answer: the trace should always equal the sum of the two eigenvalues, and the determinant should always equal their product — a quick way to verify any result by hand.
Common uses
Characteristic polynomials and the eigenvalues they produce are used to analyze the stability of dynamical systems and differential equations, determine whether a matrix is diagonalizable, study long-run behavior of Markov chains, and compute normal modes in physics and engineering. The 2×2 case shown here is also the standard first example taught in linear algebra courses because every step can be verified by hand.