Symbolic Matrix Analyzer
Characteristic polynomial, spectrum and exact diagonalization
Input Matrix
Symbols
Results
Enter a symbolic or numeric matrix in the panel
and press Analyze to view the step-by-step development.
Characteristic polynomial, spectrum and exact diagonalization
Symbols
Enter a symbolic or numeric matrix in the panel
and press Analyze to view the step-by-step development.
A square matrix of order n is an n × n array of numbers (or symbolic expressions) that represents a linear transformation on a vector space. Each column indicates where the corresponding canonical basis vector gets mapped to.
Analytical Rigor: This analyzer uses exact symbolic algebra (SymPy engine), not floating-point numerical approximations. Eigenvalues and eigenvectors are expressed in closed form — fractions, radicals, and complex numbers included — with zero rounding error.
The determinant encodes the volumetric behavior of the transformation, while the trace (sum of the diagonal) equals the sum of all eigenvalues. Both are invariant under change of basis.
2×2 Determinant
Trace
Eigenvalues are the scalars λ for which the transformation (A − λI) collapses the space (det = 0). They are the roots of the degree-n characteristic polynomial:
The full set of eigenvalues is called the spectrum of the matrix. By the Cayley-Hamilton Theorem, every matrix satisfies its own characteristic polynomial: p(A) = 0.
An eigenvector v associated with eigenvalue λ is a nonzero vector that the transformation only scales — never rotates:
A matrix is diagonalizable if and only if it has n linearly independent eigenvectors. In that case the spectral decomposition exists:
where P holds the eigenvectors as columns and D is diagonal with the eigenvalues. This enables computing matrix powers in linear time:
Matrices with repeated eigenvalues may or may not be diagonalizable. When they are not, their canonical form is the Jordan normal form, with Jordan blocks along the diagonal.
Identity: λ = 1 (×n)
90° Rotation: λ = ±i
Symmetric: λ ∈ ℝ always
Nilpotent: λ = 0 (×n)
σ₁: λ = ±1
σ₂: λ = ±1
σ₃: λ = ±1
Basis of su(2) algebra