Canonical Form of a Matrix
What is the Canonical Form?
The canonical form of a matrix is the simplest, most standardized version a matrix can be reduced to — while preserving its essential properties (like eigenvalues).
Think of it this way: two very different-looking matrices can secretly represent the same transformation. The canonical form strips away the cosmetic differences and reveals the underlying structure.
Formally: A matrix is reduced to canonical form via a similarity transformation, meaning we find an invertible matrix such that .
Why does this matter in Data Science?
Canonical forms (especially Jordan form) appear in:
- Financial forecasting (modeling compound growth over time)
- Population models (tracking how populations evolve)
- Epidemic spread models (like COVID-19 compartmental models)
- User behavior modeling (Markov chains, session analysis)
Eigenvalues and Eigenvectors
Definition
If is an matrix, a nonzero vector is called an eigenvector of if multiplying it by just scales it — it doesn’t change direction:
- (a scalar) is the eigenvalue
- (a nonzero vector) is the eigenvector corresponding to
Intuition: An eigenvector is a special direction that the matrix only stretches or compresses (by factor ), never rotates.
The Characteristic Equation
To find eigenvalues, we solve the characteristic equation:
Where:
- is the identity matrix of the same size as
- is the unknown we solve for
This gives a polynomial in , whose roots are the eigenvalues.
Key Terms: Algebraic and Geometric Multiplicity
Before getting into Jordan form, you need to know two important terms:
| Term | Meaning |
|---|---|
| Algebraic Multiplicity (AM) | How many times an eigenvalue appears as a root of the characteristic equation |
| Geometric Multiplicity (GM) | Number of linearly independent eigenvectors for that eigenvalue = dimension of the null space of |
Important rule: always.
- If GM = AM for all eigenvalues → matrix is diagonalizable (nicest case)
- If GM < AM for any eigenvalue → matrix is defective → needs Jordan blocks
Jordan Canonical Form
What is a Jordan Block?
A Jordan block of size for eigenvalue looks like this:
Eigenvalue on the diagonal, 1s on the superdiagonal, zeros everywhere else.
The full Jordan matrix is assembled by placing Jordan blocks along the diagonal.
Six Cases for a Matrix
These cover every possible Jordan structure for a matrix:
Case 1: Three distinct eigenvalues (AM: 1, 1, 1 — GM: 1, 1, 1)
Fully diagonalizable.
Case 2: One repeated eigenvalue (AM = 2, GM = 2) + one distinct
Still diagonalizable — two independent eigenvectors for the repeated one.
Case 3: One repeated eigenvalue (AM = 2, GM = 1) + one distinct — defective
Only one eigenvector for the repeated eigenvalue → needs a Jordan block of size 2.
Case 4: One eigenvalue only (AM = 3, GM = 3)
Fully diagonalizable — three independent eigenvectors.
Case 5: One eigenvalue only (AM = 3, GM = 2)
Two eigenvectors → one Jordan block of size 2 + one block of size 1.
Case 6: One eigenvalue only (AM = 3, GM = 1) — most defective
Only one eigenvector → one single Jordan block of size 3.
Step-by-Step Algorithm: Finding the Jordan Form
Step 1 — Find Eigenvalues
Solve the characteristic equation:
Note each eigenvalue’s algebraic multiplicity (AM) from how many times it appears as a root.
Step 2 — Find Eigenvectors and Geometric Multiplicity
For each eigenvalue , solve the homogeneous system:
The GM = number of free variables = number of independent eigenvectors you get.
Step 3 — Determine Jordan Block Structure
For each eigenvalue, use AM and GM to decide the blocks:
- Number of Jordan blocks = GM
- Total size of all blocks = AM
- If GM = AM → all blocks are → diagonalizable
- If GM < AM → at least one block has size > 1
Step 4 — Find Generalized Eigenvectors (if AM > GM)
When a block has size > 1, you need generalized eigenvectors to complete the basis.
Build a Jordan chain by solving sequentially:
Each equation in the chain uses the previous vector as the right-hand side.
Step 5 — Construct (the Change-of-Basis Matrix)
Arrange all eigenvectors and generalized eigenvectors column by column, in Jordan chain order:
Step 6 — Compute
The result is the Jordan canonical form.
Worked Example (Example 3.1)
Given:
Part (i): Characteristic Equation
Expanding the determinant along the first row (only two nonzero entries: column 1 and column 3):
So the characteristic equation is:
Part (ii): Eigenvalues
From the characteristic equation:
Note that , so this is .
Eigenvalues: (with AM = 2) and (with AM = 1)
Part (iii): Jordan Canonical Form
For (AM = 2):
Row reduce: all three rows reduce to the single equation , i.e. .
Let and (both free):
Two free variables → two independent eigenvectors → GM = 2
Since AM = GM = 2, no Jordan chain needed for this eigenvalue.
For (AM = 1):
From row 1: . Substituting into row 2: .
Let :
One eigenvector → GM = 1 = AM = 1. ✓
Conclusion:
Since GM = AM for both eigenvalues, the matrix is diagonalizable and the Jordan form is simply diagonal:
This is a Case 2 scenario: one repeated eigenvalue with full geometric multiplicity, plus one distinct eigenvalue.
Exercise 3.1
Given:
(i) Write down the characteristic equation.
Answer:
(ii) Find the eigenvalues.
Answer: (AM = 2), (AM = 1)
(iii) Find the Jordan canonical form.
Answer:
This is Case 3: for , AM = 2 but GM = 1 (defective), so a Jordan block appears. For , a block.
Quick Reference Summary
| Situation | AM vs GM | Jordan Form Type |
|---|---|---|
| All eigenvalues distinct | AM = GM = 1 each | Diagonal |
| Repeated λ, enough eigenvectors | AM = GM | Diagonal |
| Repeated λ, too few eigenvectors | GM < AM | Jordan blocks (superdiagonal 1s) |
The rule of thumb: Count eigenvectors. If you have enough (GM = AM for all), you get a diagonal matrix. If you’re short, Jordan blocks fill the gap.