Professional Documents
Culture Documents
MAT3005 - Applied Numerical Methods
MAT3005 - Applied Numerical Methods
MAT3005 - Applied Numerical Methods
anala.subramanyamreddy@gmail.com
subramanyam.a@vit.ac.in
Symmetric matrix eigenvalues
1
I We know that if A is symmetric matrix then its eigenvalues are real and
its eigenvectors (of distinct eigenvalues) are orthogonal.
I This property of symmetric matrices can be useful in diagonalizing the
matrix A.
I Diagnalization is the process of converting a given square matrix into a
diagonal matrix in which the diagonal entries are nothing but the
eigenvalues of A.
I For diagonalizing a matrix A we find a matrix P such that
D = P−1 AP.
−1 cos θ sin θ aii aij cos θ − sin θ
S AS =
− sin θ cos θ aji ajj sin θ cos θ
a cos2 θ + ajj sin2 θ + aij sin 2θ aij cos 2θ + 21 (ajj − aii ) sin 2θ
= ii
aji cos 2θ + 21 (ajj − aii ) sin 2θ aii sin2 θ + ajj cos2 θ − aij sin 2θ
This matrix reduces to diagonal matrix if
1
aij cos 2θ + (ajj − aii ) sin 2θ = 0
2
i.e.,
2aij 1 2aij
tan 2θ = =⇒ θ = tan−1
aii − ajj 2 aii − ajj
1. Start with the given symmetric matrix A. Find the largest off-diagonal
element (in magnitude) of A, find the θ and obtain the Givens
(orthogonal) rotation matrix P1 .
2. Compute A1 = P−1 T
1 AP1 = P1 AP1 .
3. Next for the matrix A1 , find the largest off-diagonal element (in
magnitude), find the θ and obtain the Givens (orthogonal) rotation
matrix P2 .
4. Compute A2 = P−1 T
2 A 1 P2 = P2 A 1 P2 .
5. Repeat the above steps until at the nth step we obtain a matrix An ,
which is a diagonal matrix.
6. The diagonal elements of the matrix An are the eigenvalues of A.
7. The corresponding eigenvectors are nothing the columns of the matrix
P = P1 P2 . . . Pn .
Problem
Find
all the eigenvalues
√ and eigenvectors of the matrix
√ 1 2 √2
A = 2 √3 2 using Jacobi’s method.
2 2 1
Iteration #1: The largest off-diagonal entry is: a13 = 2 = a31 . Here,
a11 = 1 = a33 . So, θ = π4 = 0.7854.
Orthogonal rotation matrix is
cos θ 0 − sin θ 0.7071 0 −0.7071
P1 = 0 1 0 = 0 1 0
sin θ 0 cos θ 0.7071 0 0.7071
Iteration #2: The largest off-diagonal entry is: a12 = 2 = a21 . Here,
a11 = 3 = a22 . So, θ = π4 = 0.7854.
Orthogonal rotation matrix is
cos θ − sin θ 0 0.7071 −0.7071 0
P2 = sin θ cos θ 0 = 0.7071 0.7071 0
0 0 1 0 0 1
Problem
2 −3 2
Find all the eigenvalues and eigenvectors of the matrix A = −3 1 2
2 2 2
using Jacobi’s method.
Problem
Find
all the eigenvalues
and eigenvectors of the matrix
1 2 −3
A= 2 1 −1 using Jacobi’s method.
−3 −1 2