Characteristic Polynomial Calculator — 2×2 Matrix Eigenvalues
Enter the four entries of a 2×2 matrix to compute its characteristic polynomial det(A − λI) = 0 and eigenvalues. The calculator shows the trace, determinant, discriminant, and the full derivation step by step.
Compute the trace
Compute the determinant
Write the characteristic polynomial det(A − λI) = 0
Discriminant Δ = tr² − 4·det
Eigenvalues λ = (tr ± √Δ) / 2
How does this calculator work?
For a 2×2 matrix [[a,b],[c,d]], the characteristic polynomial is λ² − (a+d)λ + (ad−bc) = 0. Eigenvalues are λ = ((a+d) ± √((a+d)² − 4(ad−bc))) / 2. Real eigenvalues exist when the discriminant ≥ 0; negative discriminant gives a complex conjugate pair. The trace = sum of eigenvalues and det = product of eigenvalues.
Formula
How this is calculated
The characteristic polynomial of a matrix A is defined as p(λ) = det(A − λI), where I is the identity matrix and λ is the eigenvalue parameter. Setting this equal to zero gives the eigenvalue equation. For a 2×2 matrix [[a, b], [c, d]], subtracting λ from each diagonal entry gives [[a−λ, b], [c, d−λ]], and its determinant expands to (a−λ)(d−λ) − bc = λ² − (a+d)λ + (ad−bc). The coefficient of λ is the negative trace and the constant term is the determinant, so the polynomial is always: λ² − tr(A)·λ + det(A) = 0.
Solving the quadratic with the quadratic formula gives eigenvalues λ = (tr ± √Δ) / 2 where Δ = tr² − 4·det is the discriminant. If Δ > 0 the matrix has two distinct real eigenvalues; if Δ = 0 there is one repeated real eigenvalue; if Δ < 0 the eigenvalues form a complex conjugate pair a ± bi where a = tr/2 and b = √(−Δ)/2. Eigenvalues encode important geometric properties: the trace equals their sum, the determinant equals their product, and the sign of the determinant reveals whether the transformation preserves or reverses orientation.
The grid animation shows the linear transformation defined by A: the unit square (dashed) is mapped to the shaded parallelogram, whose area equals |det(A)|. When det(A) > 0 orientation is preserved; when det(A) < 0 it is reversed (the parallelogram flips). This calculator covers only 2×2 matrices; for 3×3 and larger, the characteristic polynomial is a cubic or higher and requires more advanced solvers.
Frequently asked questions
Eigenvalues appear throughout science and engineering: they describe the axes and scaling of ellipses/ellipsoids (principal component analysis), the stability of differential equation systems (the real part determines growth or decay), natural frequencies of vibrating structures, Page Rank in graph theory, and quantum energy levels in physics. The characteristic polynomial is the primary tool for finding them analytically.
A negative discriminant means the matrix has no real eigenvalues — instead it has a complex conjugate pair. Geometrically, the transformation has a rotational component: no real vector is simply scaled without changing direction. This is common in rotation matrices and in the companion matrices of oscillating differential equations.
Expanding det(A − λI) = (a−λ)(d−λ) − bc = λ² − (a+d)λ + (ad−bc). The coefficient of λ is −(a+d) = −tr(A), and the constant term is ad−bc = det(A). These relationships between coefficients and eigenvalues are particular cases of Vieta's formulas: for p(λ) = (λ−λ₁)(λ−λ₂), the sum of roots is tr(A) and the product is det(A).
TG we-Calculate Editorial Team. (2026). Characteristic Polynomial Calculator — 2×2 Matrix Eigenvalues [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/characteristic-polynomial-calculator
TG we-Calculate Editorial Team. "Characteristic Polynomial Calculator — 2×2 Matrix Eigenvalues." TG we-Calculate. 2026. https://we-calculate.com/calculator/characteristic-polynomial-calculator.
TG we-Calculate Editorial Team, "Characteristic Polynomial Calculator — 2×2 Matrix Eigenvalues," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/characteristic-polynomial-calculator
@misc{wecalculate_characteristic_polynomial_calculator, title = {Characteristic Polynomial Calculator — 2×2 Matrix Eigenvalues}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/characteristic-polynomial-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
