2.7 Diagonalization of Matrices
2.7 Diagonalization of Matrices
Detailed Theory: Diagonalization of Matrices
1. Introduction to Diagonalization
1.1 What is Diagonalization?
Diagonalization is the process of transforming a square matrix into a diagonal matrix using similarity transformation.
A square matrix A is diagonalizable if there exists an invertible matrix P and a diagonal matrix D such that:
or equivalently:
1.2 Why Diagonalize?
Diagonalization simplifies matrix operations:
Easy powers: An=PDnP−1
Easy exponentials: eA=PeDP−1
System analysis: Simplifies solving systems of differential equations
Matrix functions: Easy computation of functions of matrices
2. Conditions for Diagonalization
2.1 Theorem: Diagonalizability Criterion
An n×n matrix A is diagonalizable if and only if it has n linearly independent eigenvectors.
Equivalently: A is diagonalizable if and only if the sum of dimensions of its eigenspaces equals n.
2.2 Important Cases
a) Sufficient Condition
If A has n distinct eigenvalues, then A is diagonalizable.
Proof: Eigenvectors corresponding to distinct eigenvalues are linearly independent.
Example:
has eigenvalues 2 and 3 (distinct), so diagonalizable.
b) Necessary but Not Sufficient Condition
If A is diagonalizable, then its eigenvalues are the diagonal entries of D.
c) Special Cases:
Real symmetric matrices are always diagonalizable
Normal matrices (AA∗=A∗A) are diagonalizable
All matrices are diagonalizable over complex numbers if we allow complex entries
3. Steps for Diagonalization
3.1 The Diagonalization Process
To diagonalize an n×n matrix A:
Step 1: Find the eigenvalues λ1,λ2,…,λn of A
Step 2: For each eigenvalue λi, find a basis for its eigenspace Eλi
Step 3: If the total number of independent eigenvectors equals n, then:
P = matrix with eigenvectors as columns
D = diagonal matrix with eigenvalues on diagonal
3.2 Detailed Example
Diagonalize A=[42−11]
Step 1: Find eigenvalues
Characteristic equation: det(A−λI)=0
Eigenvalues: λ1=2, λ2=3
Step 2: Find eigenvectors
For λ1=2: Solve (A−2I)X=O
Equation: 2x−y=0⇒y=2x
Eigenvector: v1=[12] or any multiple
For λ2=3: Solve (A−3I)X=O
Equation: x−y=0⇒y=x
Eigenvector: v2=[11] or any multiple
Step 3: Form P and D
(columns are eigenvectors)
(diagonal entries are eigenvalues)
Verification: Check P−1AP=D
First find P−1:
Check:
First compute AP:
Now P−1(AP):
4. Diagonalization of Symmetric Matrices
4.1 Spectral Theorem for Real Symmetric Matrices
If A is a real symmetric matrix (A=AT), then:
All eigenvalues of A are real
A is orthogonally diagonalizable
There exists an orthogonal matrix Q such that:
where Q−1=QT
4.2 Orthogonal Diagonalization Process
For symmetric matrix A:
Step 1: Find eigenvalues (all real)
Step 2: For each eigenvalue, find eigenvectors
Step 3: Apply Gram-Schmidt process if needed to get orthonormal eigenvectors
Step 4: Form Q with orthonormal eigenvectors as columns
Example: Diagonalize A=[1221] (symmetric)
Step 1: Eigenvalues:
Eigenvalues: λ1=3, λ2=−1
Step 2: Eigenvectors:
For λ1=3:
Eigenvector: v1=[11]
For λ2=−1:
Eigenvector: v2=[1−1]
Step 3: Normalize eigenvectors:
Step 4: Form Q and D:
Verification:
5. Non-Diagonalizable Matrices (Defective Matrices)
5.1 Definition
A matrix is defective if it does not have enough eigenvectors to form a basis of Rn (or Cn).
Example: A=[1011]
Eigenvalues: λ=1 (double root)
Characteristic polynomial: (λ−1)2=0
Eigenvectors: Solve (A−I)X=O
Only one independent eigenvector: [10]
So A is not diagonalizable.
5.2 Jordan Canonical Form
For non-diagonalizable matrices, we can use Jordan form, which is "almost" diagonal.
Jordan Block: For eigenvalue λ with algebraic multiplicity m but geometric multiplicity < m:
6. Applications of Diagonalization
6.1 Computing Powers of Matrices
If A=PDP−1, then:
Since Dn is easy to compute (just raise diagonal elements to power n).
Example: Compute A10 for A=[42−11]
From previous example: A=PDP−1 with
First multiply:
Then:
So
6.2 Solving Systems of Differential Equations
System: dtdx=Ax
Solution: x(t)=eAtx(0)
If A=PDP−1, then:
where eDt=eλ1t0⋮00eλ2t⋮0⋯⋯⋱⋯00⋮eλnt
6.3 Quadratic Forms
A quadratic form: Q(x)=xTAx
If A is symmetric, diagonalize: A=QDQT
Let y=QTx, then:
This is called principal axes transformation.
7. Properties and Theorems
7.1 Similarity Invariants
If A and B are similar (B=P−1AP), then they share:
Same eigenvalues
Same determinant
Same trace
Same characteristic polynomial
Same minimal polynomial (for advanced study)
Same rank
7.2 Geometric vs Algebraic Multiplicity
Algebraic multiplicity: Number of times λ appears as root of characteristic polynomial
Geometric multiplicity: Dimension of eigenspace Eλ
Theorem: For diagonalizable matrix:
7.3 Cayley-Hamilton Theorem
Every square matrix satisfies its own characteristic equation.
If p(λ)=det(A−λI) is characteristic polynomial, then:
Example: For A=[1324]:
Characteristic polynomial: λ2−5λ−2=0
Cayley-Hamilton says: A2−5A−2I=O
Verify:
8. Special Cases and Examples
8.1 Diagonalization of 3×3 Matrix
Diagonalize A=210021003
Step 1: Eigenvalues (triangular matrix):
Eigenvalues = diagonal entries: λ1=2, λ2=2, λ3=3
Step 2: Eigenvectors:
For λ=2 (multiplicity 2): Solve (A−2I)X=O
Equations: x=0, y+z=0⇒z=−y
Eigenvectors: 01−1 (only one!)
For λ=3: Solve (A−3I)X=O
Equations: −x=0⇒x=0, x−y=0⇒y=0, y=0, z free
Eigenvector: 001
Conclusion: Only 2 independent eigenvectors, so A is NOT diagonalizable.
8.2 Orthogonal Diagonalization Example
Orthogonally diagonalize A=[2112]
Step 1: Eigenvalues:
Eigenvalues: λ1=1, λ2=3
Step 2: Eigenvectors:
For λ=1:
Eigenvector: v1=[1−1]
For λ=3:
Eigenvector: v2=[11]
Step 3: Normalize:
Step 4: Form matrices:
9. Criteria for Diagonalization
9.1 Necessary and Sufficient Conditions
n×n matrix A is diagonalizable if and only if:
The characteristic polynomial factors completely into linear factors
For each eigenvalue λ, algebraic multiplicity = geometric multiplicity
9.2 Test for Diagonalizability
Find all eigenvalues
For each eigenvalue, find dimension of eigenspace (solve (A−λI)X=O)
Sum of dimensions of all eigenspaces = n
9.3 Quick Tests
Yes: n distinct eigenvalues
Yes: Symmetric/Hermitian matrix
No: Number of independent eigenvectors < n
Maybe: Check algebraic = geometric multiplicity for repeated eigenvalues
10. Important Theorems
10.1 Spectral Theorem
For complex case: Normal matrix (AA∗=A∗A) is unitarily diagonalizable.
For real case: Symmetric matrix is orthogonally diagonalizable.
10.2 Schur's Lemma
Every square matrix is unitarily similar to an upper triangular matrix.
10.3 Jordan's Theorem
Every square matrix is similar to a Jordan canonical form (almost diagonal).
11. Computational Aspects
11.1 Numerical Stability
Diagonalization algorithms can be numerically unstable for:
Nearly defective matrices
Matrices with closely spaced eigenvalues
Ill-conditioned matrices
11.2 Algorithms
QR algorithm: For finding eigenvalues and eigenvectors
Power method: For dominant eigenvalue
Jacobi method: For symmetric matrices
11.3 Software Tools
MATLAB/Octave:
eig(A)Python:
numpy.linalg.eig(A)Mathematica:
Eigenvalues[A],Eigenvectors[A]
12. Practice Problems
Problem 1:
Determine if A=[1021] is diagonalizable.
Solution: Eigenvalues: λ=1 (double root)
Solve (A−I)X=O:
Only one independent eigenvector: [10]
So NOT diagonalizable.
Problem 2:
Diagonalize A=[54−2−1]
Solution: Characteristic equation:
Eigenvalues: λ=1,3
For λ=1:
Eigenvector: v1=[12]
For λ=3:
Eigenvector: v2=[11]
13. Exam Tips
13.1 Common Mistakes
Assuming diagonalizable when eigenvalues are repeated
Forgetting to check linear independence of eigenvectors
Wrong order in P and D (eigenvectors in P must match eigenvalues in D)
Not verifying P−1AP=D
13.2 Problem-Solving Strategy
Step 1: Find characteristic polynomial and eigenvalues
Step 2: For each eigenvalue, find eigenvectors
Step 3: Check if enough independent eigenvectors
Step 4: Form P and D
Step 5: Verify if asked
13.3 Quick Checks
Distinct eigenvalues ⇒ Diagonalizable
Symmetric matrix ⇒ Orthogonally diagonalizable
Number of eigenvectors < n ⇒ Not diagonalizable
Algebraic multiplicity > geometric multiplicity for any eigenvalue ⇒ Not diagonalizable
This comprehensive theory covers all aspects of matrix diagonalization with detailed explanations and examples, providing complete preparation for the entrance examination.