Module-2 4
Module-2 4
a1x b1 y c1z d1
a2 x b2 y c2 z d 2 (1)
a3 x b3 y c3 z d3
is said to be diagonally dominant if
a1 b1 c1
b2 a2 c2
c3 a3 b3
The process of iteration in solving the system of equations (1) will converge
quickly if the system is diagonally dominated.
a1x b1 y c1z d1
a2 x b2 y c2 z d 2 (1)
a3 x b3 y c3 z d3
is diagonally dominant, then (1) can be written as
1
x d b y c1z
a1 1 1
----------------------------- (2)
1
y d2 a2 x c2 z ----------------------------- (3)
b2
1
z d3 a3 x b3 y ----------------------------- (4)
c3
First iteration:
y 1
b
1
2
d 2 a2 x
1
Taking x x1 and y y1 in (4), we get
z 1
1
c
d a x b y
3
3 3
1
3
1
Second iteration:
y 1 d2 a2 x 2 c2 z 1
2
b2
2 1 d a x 2 b y 2
z 3 3 3
c3
Continue this process till to get two successive iterations are very close to each
other.
6 x 15 y 2 z 72 ;
x y 54 z 110 ;
27 x 6 y z 85 .
27 x 6 y z 85
6 x 15 y 2 z 72 (1)
x y 54 z 110
Now, system (1) is diagonally dominant. Therefore, from (1) we have
1
x
27
85 6 y z ----------------------------- (2)
1
y 72 6 x 2 z ----------------------------- (3)
15
1
z 110 x y ----------------------------- (4)
54
First iteration:
y 1 3.5408
Taking x x1 3.1481 and y y1 3.5408 in (4), we get
z 1 1.9132 .
Second iteration:
y 3.572
2
z
2 1.9258
Third iteration:
y 3.5729
3
z
3 1.926
Fourth iteration:
y 3.573
4
z
4 1.926
The Values of x, y, z in the third and fourth iterations are very close to each other.
(i) 10 x 2 y z 9 ; x 10 y z 22 ; 2 x 3 y 10 z 22 .
(ii) 28x 4 y z 32 ; x 3 y 10 z 24 ; 2 x 17 y 4 z 35 .
LU decomposition method (Crout’s method):
x y z 9 ; 2 x 3 y 4 z 13 ; 3x 4 y 5z 40 .
Solution: The given system of equations can be written as
AX B -------------------- (1)
1 1 1 x 9
where A 2 3 4 , X y , B 13
3 4 5 z 40
Let A LU ---------------------------------------------------------------------- (2)
12
l11 1, l21 2, l31 3, l22 5, l32 1, l33
5
2
and u12 1, u13 1, u23 . .
5
1 0 0 1 1 1
2
Therefore L 2 5 0 and U 0 1 .
5
12 0
3 1 0 1
5
Now substituting A LU in (1) we get LU X B ----------------------- (3)
r
Let U X B1 where B1 s say.
t
which gives r 9, s 1, t 5 .
1 1 1
9 x 9
2
Therefore, B1 1 . Now, U X B1 0 1 y 1
5
5 0 0 z 5
1
2
which implies that x y z 9, y z 1, z 5 .
5
Hence the required solution of the given system is x 1, y 3, z 5 .
(i) 2 x 6 y 8z 24 ; 5x 4 y 3z 2 ; 3x y 2 z 16 .
(ii) x y 2 ; 2x 3 y 5 .
(iii) x 5 y z 21 ; 2 x y 3z 20 ; 3x y 4 z 26 .
a11 a12 0 0 x1 d1
x d
a21 a22 a23 0 2 2
0 a32 a33 a34 x3 d3
0 0 a43 a44 x4 d 4
1 1 0 0 x1 1
x
0 1 2 0 2 2 ---------------------- (3)
0 0 1 3 x3 3
0 0 0 1 x4 4
ci
where 1
c1
and i , i 2 , 3.
b1 bi ai i 1
d d a
1 1 and i i i i 1 , i 2 , 3,4.
b1 bi ai i 1
x1 x2 3 ;
x1 2 x2 x3 6 ;
3x2 2 x3 12
Solution: The given system of equations can be written as
1 1 0 x1 3
1 2 1 x2 6 -------------------- (1)
0 3 2 x 12
3
b1 c1 0 x1 d1
a2 b2 c2 x2 d 2 --------------------- (2)
0 b3 x3 d3
a3
here b1 1, b2 2, b3 2, c1 1, c2 1, c3 0, a1 0, a2 1, a3 3, d1 3, d2 6, d3 12 .
Note: To find the numerically smallest eigen value of A , first obtain the largest eigen value of
A . Let B A I and 1 be the numerically largest eigen value of B . Then the numerically
smallest value of A is 1 .
1. Determine the largest eigen value and the corresponding eigen vector of the matrix
1 2 3
A 0 4 2 and hence find the remaining eigenvalues of A .
0 0 7
0
Solution: Let X 0 0 be the initial eigen vector of A .
1
1 2 3 0 3 0.43
Then AX 0 0 4 2 0 2 7 0.29 .
0 0 7 1 7 1
0.56
Let X 6 0.18 . Since X 6 is very close to X 5 , the largest eigen value is 7 and the
1
0.56
corresponding eigen vector is 0.18 .
1
1 2 3 7 0 0 6 2 3
Now, let B A I 0 4 2 0 7 0 0 11 2 .
0 0 7 0 0 7 0 0 0
1
Let Y0 0 be the initial eigenvector of B.
0
6 2 3 1 6 1 1
Then BY0 0 11 2 0 0 6 0 . Let Y1 0 . Since Y1 Y0 , numerically largest
0 0 0 0 0 0 0
eigenvalue of B is 1 6 .
Therefor numerically smallest eigen value of A is 1 7 6 1 .
Let 2 be the other eigenvalue of A .
We know that the sum of the eigenvalues of A is equal to trace of A and hence
7 1 2 trace of A which implies that 2 4 .
Therefore the eigenvalues of A are 4, 1, 7.
2. Determine the largest eigen value and the corresponding eigen vector of the matrix
1 3 1
A 3 2 4
1 4 10
0
Solution: Let X 0 0 be the initial eigen vector of A .
1
1 3 1 0 1 0.1
Then AX 0 3 2 4 0 4 10 0.4 .
1 4 10 1 10 1
0.025
Let X 6 0.421 . Since X 6 is very close to X 5 , the largest eigenvalue is 11.66 and the
1
0.025
corresponding eigen vector is 0.421 .
1
1. Find the largest eigenvalues and corresponding eigen vectors of the following matrices
using Power method.
1 6 1 1 3 2
1 2
(i) A (ii) A 1 2 0 (iii) A 4 4 1 .
3 4 0 0 3 6 3 5
Let the eigenvalues of a real symmetric matrix A can be obtained by finding a real
orthogonal matrix P such that P-1AP=D , where D is a diagonal matrix.
a ii a ij
Let us consider A=
a ji a jj
cos -sin
We proceed to find an orthogonal matrix of the form S= such that
sin cos
S-1AS is a diagonal matrix.
1
a ii cos a jj sin aij sin 2 a ij cos 2 (a jj aii )sin 2
2 2
= 2
a ii sin a jj cos aij sin 2
1
a ji cos 2 2 (a jj aii )sin 2
2 2
This matrix reduces to diagonal form if
-
Note: We normally choose satisfying (1) in the range .
4 4
1 2 2
1. Find all eigenvalues and eigenvectors of the matrix A= 2 3 2 using Jacobi’s
2 2 1
method.
Solution: The largest off diagonal element is a13 2 a31 and also a11 1 a33 . Therefore =
4
cos 0 sin 1/ 2 0 1/ 2
and hence the rotational matrix is S1 0 1 0 0 1 0 .
sin 0 cos 1/ 2
0 1/ 2
1/ 2 0 1/ 2 1 2 2 1/ 2 0 1/ 2
Therefore A1 S11 AS1 0 1 0 2 3 2 0 1 0
1/ 2 0 1/ 2 2 2 1 1/ 2 0 1/ 2
3 2 0
2 3 0
0 0 1
Now the largest off diagonal element is a12 2 a21 and also a11 3 a22 . Therefore =
4
cos sin 0 1/ 2 1/ 2 0
and hence the rotational matrix is S2 sin cos 0 1/ 2 1/ 2 0 .
0
0 1 0 0 1
1/ 2 1/ 2 0 3 2 0 1/ 2 1/ 2 0
Therefore A 2 =S2 1 A1S2 1/ 2 1/ 2 0 2 3 0 1/ 2 1/ 2 0
0 0 1 0 0 1 0 0 1
5 0 0
0 1 0 D, a diagonal matrix.
0 0 1
Hence the eigenvalues of the given matrix are 5, 1, -1 and the corresponding eigenvectors are
respectively the columns of the matrix
1/ 2 0 1/ 2 1/ 2 1/ 2 0 1/ 2 1/ 2 1/ 2
S=S1S2 0 1 0 1/ 2 1/ 2 0 1/ 2 1/ 2 0 .
1/ 2 0 1/ 2 0 0 1 1/ 2 1/ 2 1/ 2
2 0 1
2. Find all eigenvalues and eigenvectors of the matrix A= 0 2 0 using Jacobi’s
1 0 2
method.
2 3 1
3. Find all eigenvalues and eigenvectors of the matrix A= 3 2 2 using Jacobi’s
1 2 1
method.
2 1
4. Find all eigenvalues and eigenvectors of the matrix A= using Jacobi’s method.
1 2
1 2 2
5. Find all eigenvalues and eigenvectors of the matrix A= 2 3 2 using Jacobi’s
2 2 1
method.