Ingiza mlinganyo au tatizo
Ingizo la kamera haitambuliki!

Characteristic polynomial calculator

Makokotoa

Characteristic polynomial calculator

Jifunze zaidi na Tiger

The characteristic polynomial of a square matrix A is defined as p(λ) = det(A − λI), where I is the identity matrix and λ is a scalar variable. The roots of this polynomial are the eigenvalues of A.

How to Compute It

  1. Form the matrix A − λI by subtracting λ from each diagonal entry.
  2. Compute the determinant of A − λI (expand by cofactors or use row operations).
  3. The resulting polynomial in λ is the characteristic polynomial.

Key Properties

  • An n×n matrix always has a characteristic polynomial of degree n
  • The constant term equals det(A)
  • The sum of the eigenvalues, counted with algebraic multiplicity, equals trace(A)
  • By the Cayley–Hamilton theorem, every matrix satisfies its own characteristic polynomial: p(A) = 0

Example

For A = [[2, 1], [1, 2]]:

det(A − λI) = (2−λ)(2−λ) − 1 = λ² − 4λ + 3 = (λ−1)(λ−3).

Eigenvalues: λ = 1 and λ = 3.

Why It Matters

  • Gateway to eigenvalue problems used in stability analysis, vibrations, and quantum mechanics
  • The Cayley–Hamilton theorem has applications in control theory and matrix functions
  • Understanding matrix polynomials is essential for advanced linear algebra

Try It

Enter a matrix like [[2,1],[1,2]] to compute its characteristic polynomial and find the eigenvalues. As a visual check, lay out A − λI as a matrix diagram before expanding the determinant so every diagonal subtraction remains visible.