Characteristic Polynomial Calculator
Calculate the characteristic polynomial of a square matrix using the determinant expression det(λI − A). The roots of this polynomial are the matrix's eigenvalues, making it a central concept in eigenvalue analysis and matrix diagonalization.
A
Learn About Characteristic Polynomial
In linear algebra, the characteristic polynomial of a square matrix $\mathbf{A} \in \mathbb{R}^{n \times n}$ encodes its fundamental spectral properties. The roots of this polynomial are the eigenvalues of $\mathbf{A}$, which describe how the linear transformation scales space along its invariant eigenspaces.
Formal Definition
The characteristic polynomial $p(\lambda)$ is defined as the determinant of the characteristic matrix $\lambda \mathbf{I} - \mathbf{A}$:
where $\mathbf{I}_n$ is the $n \times n$ identity matrix and $\lambda$ is a scalar variable.
Expanding this determinant yields an $n$-th degree monic polynomial:
Key Coefficient Relationships
The coefficients of $p(\lambda)$ are invariant under similarity transformations ($\mathbf{P}^{-1}\mathbf{A}\mathbf{P}$):
- Leading Coefficient: Strictly $+1$ (monic under the $\det(\lambda\mathbf{I} - \mathbf{A})$ definition).
- Sub-Leading Coefficient ($\lambda^{n-1}$): Always the negative trace of $\mathbf{A}$:
- Constant Term: Evaluated at $\lambda = 0$:
For a $2 \times 2$ matrix, this simplifies to:
For a $3 \times 3$ matrix:
where $M$ is the sum of the three $2 \times 2$ principal minors ($M_{11} + M_{22} + M_{33}$).
The Cayley-Hamilton Theorem
Every square matrix satisfies its own characteristic polynomial equation:
This identity enables expressing high matrix powers and computing $\mathbf{A}^{-1}$ as polynomial combinations of lower powers.
Worked Numerical Example
Find the characteristic polynomial of:
- Construct the Characteristic Matrix:
- Evaluate the Determinant:
- Verify with Invariants:
- $\operatorname{tr}(\mathbf{A}) = 4 + 3 = 7$
- $\det(\mathbf{A}) = (4)(3) - (2)(1) = 10$
- Formula: $p(\lambda) = \lambda^2 - 7\lambda + 10$ (Matches).
- Eigenvalues: Factoring $(\lambda - 5)(\lambda - 2) = 0$ yields eigenvalues $\lambda_1 = 5$ and $\lambda_2 = 2$.
What is the difference between $\det(\lambda\mathbf{I} - \mathbf{A})$ and $\det(\mathbf{A} - \lambda\mathbf{I})$?
Both definitions share the exact same roots (eigenvalues), differing only by a sign factor of $(-1)^n$: $\det(\lambda\mathbf{I} - \mathbf{A}) = (-1)^n \det(\mathbf{A} - \lambda\mathbf{I})$. Modern numerical software uses $\det(\lambda\mathbf{I} - \mathbf{A})$ because it ensures the polynomial is always monic (leading coefficient $+1$), regardless of whether dimension $n$ is even or odd.
Why do similar matrices have identical characteristic polynomials?
Similar matrices satisfy $\mathbf{B} = \mathbf{P}^{-1}\mathbf{A}\mathbf{P}$ for an invertible $\mathbf{P}$. Taking the determinant of $\lambda\mathbf{I} - \mathbf{B} = \mathbf{P}^{-1}(\lambda\mathbf{I} - \mathbf{A})\mathbf{P}$ yields $\det(\mathbf{P}^{-1})\det(\lambda\mathbf{I} - \mathbf{A})\det(\mathbf{P}) = \det(\lambda\mathbf{I} - \mathbf{A})$. Because similarity represents a change of basis, intrinsic eigenvalues remain unchanged.
Can a real matrix have complex roots in its characteristic polynomial?
Yes. If a real matrix is non-symmetric, its characteristic polynomial can produce complex conjugate root pairs $\lambda = a \pm bi$. These eigenvalues represent plane rotations. In contrast, real symmetric matrices ($\mathbf{A} = \mathbf{A}^T$) are guaranteed to have purely real eigenvalues.
How does the characteristic polynomial differ from the minimal polynomial?
The characteristic polynomial $p(\lambda)$ has degree $n$ and satisfies $p(\mathbf{A}) = \mathbf{0}$. The minimal polynomial $m(\lambda)$ is the unique monic polynomial of lowest degree such that $m(\mathbf{A}) = \mathbf{0}$. It divides $p(\lambda)$ and shares the exact same distinct roots, but root multiplicities in $m(\lambda)$ may be smaller.
- Abel-Ruffini Barrier: By the Abel-Ruffini theorem, general polynomial equations of degree five or higher have no algebraic solution in radicals. Therefore, numerical algorithms (such as QR iteration) compute eigenvalues directly from matrices without explicitly expanding the characteristic polynomial.
- Frobenius Companion Matrix: Every monic polynomial $p(\lambda) = \lambda^n + a_{n-1}\lambda^{n-1} + \dots + a_0$ is the exact characteristic polynomial of a canonical Frobenius companion matrix. This establishes an exact bidirectional equivalence between polynomial root-finding and matrix eigenvalue problems.