Compute all eigenvalues and eigenvectors of any square matrix (2x2 to 5x5) with algebraic and geometric multiplicities, full characteristic polynomial, and RREF-based null space computation.
Characteristic polynomial: $p(\lambda) = \det(A - \lambda I) = 0$. The roots are the eigenvalues.
Algebraic multiplicity (AM): The multiplicity of $\lambda$ as a root of $p(\lambda)$. Geometric multiplicity (GM): The dimension of the null space of $(A - \lambda I)$ = number of linearly independent eigenvectors for $\lambda$.
Always: $1 \leq \text{GM}(\lambda) \leq \text{AM}(\lambda)$.
Diagonalisable: A matrix is diagonalisable if and only if GM = AM for every eigenvalue, i.e. the total number of linearly independent eigenvectors = n.
Eigenvalues and eigenvectors: the method
The eigenvalues λ of a square matrix A are the roots of the characteristic equation det(A − λI) = 0. For each λ, the eigenvectors are the non-zero solutions of (A − λI)v = 0. The sum of the eigenvalues equals the trace of A and their product equals det(A). Eigenvectors belonging to distinct eigenvalues are linearly independent.
Common questions
Can a real matrix have complex eigenvalues?
Yes. For a real matrix they appear in conjugate pairs.
When is a matrix diagonalisable?
When, for every eigenvalue, the number of independent eigenvectors equals its multiplicity as a root of the characteristic polynomial.