Linear Algebra
7.315 min read

The Characteristic Polynomial

When you expand det(AλI)\det(A - \lambda I) for an n×nn \times n matrix, you get a polynomial of degree nn in λ\lambda. This is called the characteristic polynomial of AA. The eigenvalues are exactly its roots. For a 2×22 \times 2 matrix A=(abcd)A = \begin{pmatrix}a & b \\ c & d\end{pmatrix}, the characteristic polynomial simplifies to a familiar quadratic: λ2tr(A)λ+det(A)=0\lambda^2 - \text{tr}(A)\,\lambda + \det(A) = 0, where tr(A)=a+d\text{tr}(A) = a + d is the trace (sum of diagonal entries).

The quadratic formula gives λ=tr(A)±Δ2\lambda = \frac{\text{tr}(A) \pm \sqrt{\Delta}}{2} where the discriminant is Δ=tr(A)24det(A)\Delta = \text{tr}(A)^2 - 4\det(A). Three cases: Δ>0\Delta > 0 means two distinct real eigenvalues; Δ=0\Delta = 0 means one repeated real eigenvalue; Δ<0\Delta < 0 means two complex conjugate eigenvalues (no real eigenvectors — the transformation rotates every direction).

Use the interactive diagram to build intuition. Set the matrix entries and watch how the characteristic polynomial and its roots change. Try to find a matrix with one positive and one negative eigenvalue, or push the discriminant negative to create a rotation. Notice how the trace equals λ1+λ2\lambda_1 + \lambda_2 and the determinant equals λ1λ2\lambda_1 \cdot \lambda_2.

Formal View

Definition 7.5 — Characteristic Polynomial
The characteristic polynomial of an n×nn \times n matrix AA is p(λ)=det(AλI)p(\lambda) = \det(A - \lambda I). The characteristic equation is p(λ)=0p(\lambda) = 0. The eigenvalues of AA are exactly the roots of p(λ)p(\lambda).
Theorem 7.6 — Characteristic Polynomial of a 2×2 Matrix
For A=(abcd)A = \begin{pmatrix}a & b \\ c & d\end{pmatrix}, the characteristic polynomial is
p(λ)=λ2tr(A)λ+det(A)p(\lambda) = \lambda^2 - \text{tr}(A)\,\lambda + \det(A)
where tr(A)=a+d\text{tr}(A) = a + d. The eigenvalues satisfy λ1+λ2=tr(A)\lambda_1 + \lambda_2 = \text{tr}(A) and λ1λ2=det(A)\lambda_1 \cdot \lambda_2 = \det(A).

These trace-determinant relations hold for any n×nn \times n matrix: the trace equals the sum of all eigenvalues and the determinant equals their product.

Interactive Visualization

Characteristic Polynomial

Why This Matters

The characteristic polynomial encodes all eigenvalue information in a single algebraic object.

  • The Cayley–Hamilton theorem says every matrix satisfies its own characteristic equation: p(A)=0p(A) = 0
  • The trace and determinant identities let engineers quickly estimate eigenvalue behavior without full computation
  • Checking whether a matrix is positive definite (all eigenvalues positive) is often done via its characteristic polynomial
  • Spectral analysis in signal processing uses characteristic polynomials of filter coefficient matrices

Quiz

Question 1

What is the characteristic polynomial of A=(4123)A = \begin{pmatrix}4 & 1 \\ 2 & 3\end{pmatrix}?

Question 2

The eigenvalues of A=(4123)A = \begin{pmatrix}4 & 1 \\ 2 & 3\end{pmatrix} are:

Question 3

Every 2×22 \times 2 real matrix has two real eigenvalues.

Common Mistakes

  • Computing det(Aλ)\det(A - \lambda) instead of det(AλI)\det(A - \lambda I) — you must subtract a matrix, not a scalar.
  • Forgetting the minus sign: the characteristic polynomial is λ2tr(A)λ+det(A)\lambda^2 - \text{tr}(A)\lambda + \det(A), not +tr(A)λ+\text{tr}(A)\lambda.
  • Assuming the characteristic polynomial factors into real linear factors — complex roots are possible and common for rotation-like matrices.