Diagonalization of a 2×2 Matrix
Place independent eigenvectors in P and matching eigenvalues in D, then verify AP = PD.
Assemble P and D
The two independent eigenvector columns make P invertible. Put 2 and 5 in the matching columns of D and verify AP = PD.
diagonalize([[4, 1], [2, 3]])Use an identity eigenbasis
A diagonal matrix already has its eigenvalues on the diagonal. Standard basis vectors give P = I and an immediate factorization.
diagonalize([[2, 0], [0, 3]])Distinguish scalar from defective
The scalar matrix 3I has a repeated eigenvalue but every vector is an eigenvector. Two independent columns still exist, so it diagonalizes.
diagonalize([[3, 0], [0, 3]])Practice
Practice: problems like this one, made and checked in your browser.
Recap
- P contains independent eigenvector columns.
- D lists eigenvalues in the same column order.
- The identity AP = PD checks the complete factorization.