Diagonalization Calculator
Enter a square matrix to write it as PDP⁻¹.
A 2 by 2 or 3 by 3 matrix, rows separated by semicolons, like 4, 1; 2, 3.
Result
You entered
Check
Show the work
Characteristic polynomial
An eigenvalue is a number for which is singular, so its determinant is 0. Expanding that determinant gives the characteristic polynomial.
Eigenvalues from the roots
Setting the polynomial equal to 0 and factoring gives the eigenvalues, listed here from smallest to largest.
Eigenvectors for an eigenvalue
For , an eigenvector satisfies , so it lies in the null space of . Scaled to whole numbers with no common factor and a positive first non-zero entry, it is below.
Eigenvectors for an eigenvalue
For , an eigenvector satisfies , so it lies in the null space of . Scaled to whole numbers with no common factor and a positive first non-zero entry, it is below.
Eigenvectors for an eigenvalue
For , an eigenvector satisfies , so it lies in the null space of . Scaled to whole numbers with no common factor and a positive first non-zero entry, it is below.
Diagonalization
Put the eigenvectors in the columns of and the matching eigenvalues on the diagonal of , in the same order. Because there are enough independent eigenvectors, is invertible and is similar to the diagonal matrix .
Using
Check
Multiplying back together should give .
Result
So with .