How to Tell if a Matrix is Diagonalizable
Understanding how to tell if a matrix is diagonalizable is a fundamental milestone in linear algebra. Diagonalization is more than just a mathematical trick; it is a powerful tool that simplifies complex operations, such as raising a matrix to a high power or solving systems of linear differential equations. In essence, a matrix is diagonalizable if it can be transformed into a diagonal matrix—one where all entries outside the main diagonal are zero—via a similarity transformation. This process reveals the "skeleton" of the linear transformation, making it far easier to analyze the behavior of the system it represents And that's really what it comes down to..
Introduction to Diagonalizability
At its core, a square matrix $A$ is said to be diagonalizable if there exists an invertible matrix $P$ and a diagonal matrix $D$ such that:
$A = PDP^{-1}$
When this condition is met, we say that $A$ is similar to $D$. The beauty of this relationship is that $D$ contains the eigenvalues of $A$ along its diagonal, while $P$ consists of the corresponding eigenvectors.
But not every square matrix can be diagonalized. Some matrices are "defective," meaning they lack enough linearly independent eigenvectors to form the matrix $P$. To determine whether a matrix is diagonalizable, we must look at the relationship between its eigenvalues and their multiplicities.
The Core Requirements for Diagonalization
To determine if a matrix is diagonalizable, you need to evaluate two primary types of multiplicity: Algebraic Multiplicity (AM) and Geometric Multiplicity (GM).
1. Algebraic Multiplicity (AM)
The algebraic multiplicity of an eigenvalue is the number of times that specific eigenvalue appears as a root of the characteristic equation That's the whole idea..
To find the eigenvalues, you solve the characteristic equation: $\det(A - \lambda I) = 0$ If the resulting polynomial is $(\lambda - 3)^2 (\lambda - 5) = 0$, the eigenvalue $\lambda = 3$ has an AM of 2, and $\lambda = 5$ has an AM of 1.
Not obvious, but once you see it — you'll see it everywhere That's the part that actually makes a difference..
2. Geometric Multiplicity (GM)
The geometric multiplicity is the dimension of the eigenspace associated with a specific eigenvalue. In simpler terms, it is the number of linearly independent eigenvectors associated with that eigenvalue.
To find the GM, you solve the system: $(A - \lambda I)\mathbf{v} = 0$ The number of free variables in the resulting system (the nullity of the matrix $A - \lambda I$) is the geometric multiplicity And that's really what it comes down to..
Step-by-Step Guide to Checking Diagonalizability
If you are handed a square matrix and asked whether it is diagonalizable, follow these logical steps:
Step 1: Find the Eigenvalues
Start by solving the characteristic equation $\det(A - \lambda I) = 0$. This will give you a set of eigenvalues.
- The "Quick Win" Rule: If an $n \times n$ matrix has $n$ distinct real eigenvalues, it is automatically diagonalizable. This is because eigenvectors corresponding to distinct eigenvalues are always linearly independent. If you find $n$ different values for $\lambda$, you can stop right there—the matrix is diagonalizable.
Step 2: Analyze Repeated Eigenvalues
If you find that some eigenvalues are repeated (i.e., the AM is greater than 1), you must investigate further. A matrix is diagonalizable if and only if, for every eigenvalue, the Algebraic Multiplicity equals the Geometric Multiplicity.
- Condition: $AM(\lambda_i) = GM(\lambda_i)$ for all $i$.
If even one eigenvalue has a $GM < AM$, the matrix is considered defective and cannot be diagonalized.
Step 3: Calculate the Eigenspace Dimension
For each eigenvalue with $AM > 1$, find the basis for the null space of $(A - \lambda I)$.
- Subtract $\lambda$ from the diagonal of $A$.
- Perform Gaussian elimination (row reduction) to find the row-echelon form.
- Count the number of free variables. This count is your GM.
If the number of linearly independent eigenvectors equals the power to which the factor appeared in the characteristic polynomial, the requirement is satisfied.
Scientific Explanation: Why Does This Work?
The reason we focus on linearly independent eigenvectors is that the matrix $P$ (the modal matrix) must be invertible. Consider this: for a matrix to be invertible, its columns must be linearly independent. Since the columns of $P$ are the eigenvectors of $A$, we need a full set of $n$ linearly independent eigenvectors to span the space $\mathbb{R}^n$ That alone is useful..
If a matrix is defective, it means the linear transformation "collapses" some dimensions in a way that cannot be undone by a simple change of basis. In geometric terms, the transformation doesn't have enough "directions" along which it simply scales vectors; it involves some "shearing" motion that prevents it from being represented as a pure diagonal scaling And that's really what it comes down to..
It sounds simple, but the gap is usually here.
The Role of the Minimal Polynomial
For advanced students, another way to check diagonalizability is through the minimal polynomial $m(t)$. A matrix is diagonalizable if and only if its minimal polynomial is a product of distinct linear factors. If the minimal polynomial contains any squared or cubed terms (e.g., $(t-2)^2$), the matrix is not diagonalizable.
Summary Table: Quick Reference
| Scenario | Status | Reason |
|---|---|---|
| $n$ distinct eigenvalues | Diagonalizable | Guaranteed $n$ independent eigenvectors. |
| $AM = GM$ for all $\lambda$ | Diagonalizable | Sufficient eigenvectors to form $P$. Worth adding: |
| $GM < AM$ for any $\lambda$ | Not Diagonalizable | Matrix is "defective. " |
| Symmetric Matrix ($A = A^T$) | Always Diagonalizable | Spectral Theorem guarantees orthogonality. |
Frequently Asked Questions (FAQ)
Q1: Is every square matrix diagonalizable?
No. While every square matrix has eigenvalues (possibly complex), not every matrix has enough linearly independent eigenvectors. A classic example is the shear matrix $\begin{pmatrix} 1 & 1 \ 0 & 1 \end{pmatrix}$, which has $\lambda = 1$ with $AM=2$ but $GM=1$ Worth knowing..
Q2: What happens if the eigenvalues are complex?
If the eigenvalues are complex, the matrix is not diagonalizable over the field of real numbers ($\mathbb{R}$), but it may be diagonalizable over the field of complex numbers ($\mathbb{C}$). The same rules regarding AM and GM still apply.
Q3: What is the difference between a diagonalizable matrix and an invertible matrix?
These are two completely different concepts.
- Invertibility depends on whether the determinant is non-zero (no eigenvalue is 0).
- Diagonalizability depends on whether there are enough eigenvectors. A matrix can be invertible but not diagonalizable, or diagonalizable but not invertible (if one of the eigenvalues is 0).
Q4: Why is the Spectral Theorem important here?
The Spectral Theorem is a shortcut. It states that any real symmetric matrix is always diagonalizable. On top of that, it can be diagonalized by an orthogonal matrix, meaning the eigenvectors are not just independent, but perpendicular to each other Turns out it matters..
Conclusion
Telling if a matrix is diagonalizable is a process of elimination. Practically speaking, first, check for distinct eigenvalues. Even so, if they are all different, you are done. If there are repeats, you must dive deeper into the eigenspaces to ensure the geometric multiplicity matches the algebraic multiplicity.
Short version: it depends. Long version — keep reading.
Mastering this process allows you to simplify complex matrix exponentiation—since $A^k = PD^kP^{-1}$—turning a potentially grueling calculation into a simple task of raising diagonal elements to a power. Whether you are studying physics, data science (via PCA), or pure mathematics, understanding the conditions of diagonalizability is key to unlocking the deeper structure of linear operators.