Diagonalizable Matrix Checker
Test whether a matrix possesses a full basis of linearly independent eigenvectors to be factored as \(P D P^{-1}\) with an instant Yes/No verdict badge.
What Does it Mean for a Matrix to be Diagonalizable?
A matrix \(A\) is diagonalizable if it is similar to a diagonal matrix \(D\). That is, there exists an invertible matrix \(P\) such that:
\(P^{-1} A P = D = \begin{bmatrix} \lambda_1 & 0 & \dots \\ 0 & \lambda_2 & \dots \\ \vdots & \vdots & \ddots \end{bmatrix}\)
The columns of \(P\) are the linearly independent eigenvectors of \(A\), and the diagonal entries of \(D\) are the corresponding eigenvalues.When is a Matrix Diagonalizable?
- Distinct Eigenvalues (Sufficient Condition): If an \(n \times n\) matrix has \(n\) distinct eigenvalues, it is guaranteed to be diagonalizable.
- Multiplicity Equality (Necessary & Sufficient): If eigenvalues repeat, the matrix is diagonalizable if and only if for each eigenvalue \(\lambda_i\), its geometric multiplicity (dimension of the nullspace of \(A - \lambda_i I\)) equals its algebraic multiplicity (multiplicity as a root of the characteristic polynomial).
- Defective Matrices: If any eigenvalue produces fewer eigenvectors than its algebraic multiplicity, the matrix is defective and cannot be diagonalized.
Solved Examples: Diagonalizable vs. Defective
Check if \(A = \begin{bmatrix} 1 & 1 \\ 0 & 2 \end{bmatrix}\) is diagonalizable:
Because \(A\) is upper triangular, its eigenvalues are simply the diagonal entries:
\(\lambda_1 = 1, \quad \lambda_2 = 2\)
Since the \(2 \times 2\) matrix has 2 distinct eigenvalues, their eigenvectors are guaranteed to be linearly independent.
Verdict: YES — Matrix is diagonalizable.
Check if the Jordan block \(B = \begin{bmatrix} 2 & 1 \\ 0 & 2 \end{bmatrix}\) is diagonalizable:
The characteristic equation is \((\lambda - 2)^2 = 0\), so \(\lambda = 2\) is a repeated eigenvalue with algebraic multiplicity 2.
Find the eigenspace by solving \((B - 2I)v = 0\):
\begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies y = 0
Eigenvectors must be of the form \(v = \begin{bmatrix} x \\ 0 \end{bmatrix} = x \begin{bmatrix} 1 \\ 0 \end{bmatrix}\). There is only 1 linearly independent eigenvector! Because geometric multiplicity (\(1\)) < algebraic multiplicity (\(2\)), the matrix is defective.
Verdict: NO — Matrix is defective (not diagonalizable).
Eigenvalues & Eigenvectors Solver
Calculate characteristic polynomials and exact nullspace eigensystems on our dedicated eigenvalue tool.
Explore our step-by-step Eigenvalue & Eigenvector Calculator →