Diagonalization (Changing to the Eigenbasis)
Factoring a matrix into its core components: its eigenvalues and eigenvectors.
We've just learned how to find the "soul" of a matrix—its eigenvalues (`λ`) and eigenvectors (`v`). We discovered that these eigenvectors form the special, invariant axes of the transformation.
This leads to a groundbreaking idea: What if we changed our entire coordinate system to align with these special axes? What if we wrote all our vectors not in terms of the standard `i` and `j`, but in terms of the matrix's own eigenvectors?
This change of basis is the key to diagonalization. Diagonalization is a matrix decomposition—a way of factoring a matrix `A` into the product of three simpler matrices. It is arguably the most important decomposition for understanding dynamic systems.
A=PDP−1 Let's break down the cast of characters in this remarkable equation:
- `A` is the original matrix we want to understand.
- `D` is a simple **diagonal matrix**. Its diagonal entries are the **eigenvalues** of `A`.
- `P` is a matrix whose columns are the corresponding **eigenvectors** of `A`.
- `P⁻¹` is the inverse of `P`.
The "How": Constructing P and D
Let's use our result from the last lesson. For the matrix `A = [3 -1; 2 0]`, we found:
- `λ₁ = 1` with eigenvector `v₁ = [1, 2]`
- `λ₂ = 2` with eigenvector `v₂ = [1, 1]`
Step 1: Construct the Eigenvalue Matrix `D`
A diagonal matrix with eigenvalues on the diagonal.
D=[1002] Step 2: Construct the Eigenvector Matrix `P`
Place the eigenvectors as columns, in the same order as `D`.
P=[1211] Step 3: Find the Inverse `P⁻¹`
For a 2x2 matrix `[a b; c d]`, the inverse is `1/(ad-bc) * [d -b; -c a]`.
`det(P) = (1)(1) - (1)(2) = -1`
P−1=−11[1−2−11]=[−121−1] Step 4: Verify the Decomposition
Check if `PDP⁻¹` equals `A`.
First, `PD`:
PD=[1211][1002]=[1222] Now, `(PD)P⁻¹`:
(PD)P−1=[1222][−121−1]=[32−10]=A It works perfectly! We have successfully decomposed `A` into its fundamental components.