Matrix Powers via
Diagonalization
Learn how to compute \(A^n\) efficiently by decomposing a matrix into its eigenvalues and eigenvectors: the key technique that turns repeated multiplication into simple exponentiation.
What Is Diagonalization?
Diagonalization is the process of finding an invertible matrix \(P\) and a diagonal matrix \(D\) such that a square matrix \(A\) can be written as:
Why Compute Matrix Powers?
Computing \(A^n\) arises in many real-world applications. Multiplying \(A\) by itself \(n\) times is slow: it costs \(O(n \cdot d^3)\) operations. Diagonalization reduces this to a single matrix multiply plus raising scalars to powers.
The Key Insight: Powers Simplify
When \(A = PDP^{-1}\), multiplying \(A\) by itself causes the inner terms to cancel. Watch what happens with \(A^2\):
The Diagonalization Theorem
Diagonalizable vs. Not Diagonalizable
| Diagonalizable | Not Diagonalizable | |
|---|---|---|
| Eigenvectors | \(n\) linearly independent | Fewer than \(n\) independent |
| Eigenvalues | Distinct (sufficient) | Repeated with deficient eigenspaces |
| Example | \(\begin{pmatrix}2&0\\0&3\end{pmatrix}\) | \(\begin{pmatrix}2&1\\0&2\end{pmatrix}\) |
| Computing \(A^n\) | \(PD^nP^{-1}\) | Use Jordan form or other methods |
How to Compute \(A^n\): Step by Step
Example 1: Find \(A^n\) for a \(2 \times 2\) Matrix
Let \(A = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix}\). We want to find a general formula for \(A^n\).
Example 1: Assembling the Result
Example 2: Fibonacci Matrix
The Fibonacci recurrence \(F_{n+1} = F_n + F_{n-1}\) can be written as a matrix equation:
Example 3: A Specific Power
Compute \(A^4\) for \(A = \begin{pmatrix}5&4\\1&2\end{pmatrix}\).
Visualizing the Decomposition
Properties of \(D^n\)
Since \(D\) is diagonal, its powers are trivially computed. Each entry is independent:
When Can You Diagonalize?
Common Mistakes to Avoid
Summary: The Full Pipeline
| Step | Operation | Result |
|---|---|---|
| 1 | \(\det(A - \lambda I) = 0\) | Eigenvalues \(\lambda_1, \dots, \lambda_n\) |
| 2 | \((A - \lambda_i I)\mathbf{v} = \mathbf{0}\) | Eigenvectors \(\mathbf{v}_1, \dots, \mathbf{v}_n\) |
| 3 | Form \(P\) and \(D\) | \(P = [\mathbf{v}_1 | \cdots | \mathbf{v}_n]\), \(D = \text{diag}(\lambda_i)\) |
| 4 | Invert \(P\) | \(P^{-1}\) |
| 5 | Multiply | \(A^n = PD^nP^{-1}\) |
Question 1 of 5
If \(A = PDP^{-1}\), which expression correctly gives \(A^3\)?
Question 2 of 5
A \(3 \times 3\) matrix has eigenvalues \(\lambda_1 = 2\), \(\lambda_2 = -1\), \(\lambda_3 = 4\). What is \(D^5\)?
Question 3 of 5
Which matrix is not diagonalizable?
Question 4 of 5
For \(A = \begin{pmatrix}2&1\\0&3\end{pmatrix}\), what is \(A^3\)?
Question 5 of 5
A diagonalizable matrix \(A\) has eigenvalues \(\lambda_1 = 0.5\) and \(\lambda_2 = 0.8\). What happens to \(A^n\) as \(n \to \infty\)?