Diagonalization
What You’ll Learn
Section titled “What You’ll Learn”Diagonalization lets you simplify a complicated matrix into a much easier form. Once diagonalized, hard problems like computing become trivial.
The Concept
Section titled “The Concept”Imagine you have a complicated matrix that mixes up all the components of a vector when you multiply. Diagonalization rewrites in a form where the transformation becomes simple: just scaling along independent directions.
What It Means
Section titled “What It Means”A square matrix is diagonalizable if it can be written as:
where:
- is a matrix whose columns are the eigenvectors of
- is a diagonal matrix with the eigenvalues on the diagonal
- is the inverse of
Think of it as a three-step process for applying to any vector:
- : convert the vector into the eigenvector coordinate system
- : scale each eigenvector direction independently (this is the easy part)
- : convert back to the original coordinate system
How to Diagonalize a Matrix
Section titled “How to Diagonalize a Matrix”- Find the eigenvalues by solving
- For each eigenvalue, find the corresponding eigenvector
- Check that you have enough linearly independent eigenvectors (one per eigenvalue)
- Form by placing the eigenvectors as columns
- Form by placing the eigenvalues on the diagonal (in the same order as the eigenvectors in )
- Verify:
Why This Is Powerful
Section titled “Why This Is Powerful”If , then raising to a power becomes:
Since is diagonal, is trivial: just raise each diagonal entry to the th power. No repeated matrix multiplication needed. Computing takes the same effort as computing .
The diagram shows the decomposition: the original matrix breaks into three pieces. (eigenvector columns) converts to the eigenvector basis, (eigenvalues on diagonal) does simple scaling, and converts back. Computing becomes easy because just raises each eigenvalue to the th power.
Worked Examples
Section titled “Worked Examples”Example 1: Diagonalizing a 2x2 Matrix
Eigenvalues: ,
Eigenvectors: (for ), (for )
Form with eigenvectors as columns:
Then .
Here converts a vector from the standard basis into the eigenvector basis (so can do its simple scaling), and converts back. For this example:
The process is: translates into eigenvector coordinates, scales each eigenvector direction independently, then translates back to standard coordinates.
Example 2: Computing
Instead of multiplying five times:
Then . Two matrix multiplications instead of five.
Example 3: When Diagonalization Fails
If a matrix doesn’t have enough linearly independent eigenvectors, it can’t be diagonalized. For example, has (repeated) but only one independent eigenvector. This is called a defective matrix.
Real-World Application
Section titled “Real-World Application”Diagonalization shows up in:
- Game development: efficiently computing repeated transformations (exponential decay, smooth rotation interpolation)
- Physics: solving systems of differential equations (coupled oscillators, vibration modes)
- Machine learning: PCA and SVD are closely related to diagonalization
- Engineering: stability analysis, signal processing
Example: In a game, if a character’s velocity decays exponentially each frame, the engine can use diagonalization to compute the velocity after 1000 frames in one step instead of iterating 1000 times.
Retrying will remove your ✅ checkmark until you pass again.