Module-5-Linear Algebra
Module-5-Linear Algebra
Definition:
A set of mn elements (real or complex) written in rectangular array of ' m ' rows and ' n '
columns is called as m n matrix and m n matrix can be written as
a 11 a 12 a13 a 1n
a a a a2 4
21 2 2 2 3
a a a m n
m1 m 2 am 3
Elementary operations:
Let ' A ' be the given matrix, then the following are called row operation on ' A '
i) Interchange of any two rows i.e., R i R j .
ii) Multiplication of the elements of a row by a non-zero constant i.e., R i k R i .
iii) Addition of the elements of a row with k times the corresponding elements of
any other row i.e., R i R i k R j .
Equivalent matrices:
Two matrices ' A ' and ' B ' of the same order are said to be equivalent if one of the matrix
can be obtained from the other by successive elementary operations. It is denoted by
A B.
iii) The zero rows must appear below the non-zero row.
iv) The number of zeroes appearing before the leading entry in each row is greater
than that appears in its previous row.
Rank of a matrix:
Let ' A ' be a non-zero matrix then a positive integer ' r ' is said to be a rank of ' A ' if the
following conditions are satisfied.
i) There exist atleast one minor of order ' r ' of matrix ' A ' which doesn’t vanish.
ii) All minors of the order r 1 must vanish.
(Or)
The rank of a matrix ' A ' is equal to number of non-zero rows in the matrix. It is denoted
by A .
Remark:
i) If ' A ' is null matrix, then A 0 .
ii) If ' A ' is not a null matrix, then A 1.
iii) If ' A ' is matrix of order m n then A min m, n .
iv) If ' A ' is a square matrix of order ' n ' then A n .
v) For a singular matrix ' A ' , A n .
vi) For a non-singular matrix ' A ' of order ' n ' , A n .
vii) Rank and order remain same when elementary transformations are applied.
Problems:
Using elementary transformations reduce the following matrix to the echelon form and
also find the rank of the matrix
1 3 2
1. 2 1 4
1 11 14
1 3 2
Solution: Let A = 2 1 4
1 11 14
1 3 2
R2 R2 2 R1 0 7 8
R3 R3 R1
1 14 16
1 3 2
R3 R3 2R2 0 7 8
1 0 0
A 2
4 0 2 1
2 1 3 4
2.
2 3 4 7
2 3 1 4
4 0 2 1
2 1 3 4
Solution: Let A =
2 3 4 7
2 3 1 4
2 1 3 4
4 0 2 1
R1 R2
2 3 4 7
2 3 1 4
2 1 3 4
R2 R2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99
91 92 93 94 95
92 93 94 95 96
Solution: Let A = 93 94 95 96 97
94 95 96 97 98
95 96 97 98 99
91 92 93 94 95
R5 R5 R4 1 1 1 1 1
R4 R4 R3
1 1 1 1 1
R3 R3 R2
R2 R2 R1 1 1 1 1 1
1 1 1 1 1
91 92 93 94 95
R5 R5 R2 1 1 1 1 1
R4 R4 R2 0 0 0 0 0
R3 R3 R2 0 0 0 0 0
0 0 0 0 0
1 1 1 1 1
91 92 93 94 95
R1 R2 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
1 1 1 1 1
0 2 3 4 5
R2 R2 91R1 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
A 2
Here x1 , x2 , x3 ......... xn are unknowns and ' a ' s and ' b ' s are known as real constants.
Solution: A set of values of x1 , x2 , x3 ......... xn that satisfies all the equation of the system 1
is called solution.
If x1 x2 x3 xn 0 satisfies the system of equation then the solution is called
Trivial solution. A solution which is not trivial solution is called non-trivial solution.
NOTE
n number of variables
m number of equations
r rank of the matrix
Problems:
Solve the following system of equations.
1. x 2 y 3z 0
3x 4 y 4 z 0
7 x 10 y 12 z 0
1 2 3
Solution: A 3 4 4
7 10 12
1 2 3
R2 R2 3R1
~ 0 2 5
R3 R3 7 R1
0 4 9
1 2 3
R3 R3 2R2 ~ 0 2 5
0 0 1
A 3 r
Number of variables n 3
r n The system has trivial solution
x y z 0
2. 2 x y 3z 0
3x 2 y z 0
x 4 y 5z 0
2 1 3
Solution: A 3 2 1
1 4 5
1 4 5
R1 R3 ~ 3 2 1
2 1 3
1 4 5
R2 R2 3R1
~ 0 14 14
R3 R3 2 R1
0 7 7
R2 2
R 1 4 5
14
~ 0 1 1
R
R3 3
0 1 1
7
1 4 5
R3 R3 R2 ~ 0 1 1
0 0 0
A 2 r
Number of variables n 3
r n The system has non-trivial solution
Consider the equations based on matrix in Echelon form
x 4 y 5z 0 1
yz0 2
Consider n r 3 2 1variableasconstant.
If z k
2 y k 0 y k
1 x 4k 5k 0 x k
x k , y k , z k
Matrix form A X B .
a 11 a 12 a 13 .... a 1n x1 b 1
a a 22 a 23 .... a 2 n x b
21 2 = 2
.... .... .... .... .... ... ...
am 1 a m 2 am 3 .... am n xn bm
a 11 a 12 a 13 .... a 1n
a a 22 a 23 .... a 2 n
where A is m n matrix called as co-efficient matrix
21
x1
x
X 2 is a column vector of order n 1
...
xn
b 1
b
B 2 is a column vector of order m 1
...
bm
Augumented Matrix: Suppose the given equation is non homogenous than the co-
efficient matrix ' A ' and extra column consisting of the element ' B ' can be written as
a 11 a 12 a 13 .... a 1n : b1
a a 22 a 23 .... a 2 n : b2
A : B .... .... .... .... .... : ...
21
am1 am 2 am 3 .... am n : bm
This is m n 1 matrix is called augumented matrix. This is also denoted by
A , B or A / B .
Consistency & Inconsistency: The system of equation is said to be consistent if it
possess a solution and inconsistent if it doesn’t possess a solution. 1
Working rule:
Problems:
1) Show that the system of equations
x y z 3 ; 3x y 2 z 2 ; 2 x 4 y 7 z 7 is not consistent
Solution: Given x y z 3 ; 3x y 2 z 2 ; 2 x 4 y 7 z 7
1 1 1 3 x
Let A 3 1 2 ; B 2 & X y
2 4 7 7 z
1 1 : 3
1
A : B 3 1 2 : 2
2 4 7 : 7
1 1 1 : 3
R2 R2 3R1 0 2 5 : 7
R3 R3 2 R1
0 2 5 : 13
1 1 1 : 3
R3 R3 R2 0 2 5 : 7
0 0 0 : 20
A 2& A : B 3
2) Show that the following system of equations does not possess any solution
5 x 3 y 7 z 5 ; 3x 26 y 2 z 9 ; 7 x 2 y 10 z 5
Solution: Given 5 x 3 y 7 z 5 ; 3x 26 y 2 z 9 ; 7 x 2 y 10 z 5
5 3 5 4 x
Let A 3 26 2 ; B 9 & X y
7 2 10 5 z
5 37 : 5
A : B 3 26 2 : 9
7 2 10 : 5
3 5 5
R2 R2 R1 3 7 :
5 0 121 11 : 30
7 5 5 5
R3 R3 R1 0
5 11 1 : 10
5 5 5
5 3 7 4 :
R2 5R2 0 121 11 : 30
R3 5R3
0 11 1 : 10
5 3 7 : 4
R
R3 R3 2 0 11 1 : 30
11
0 0 0 : 80
11
A 2& A : B 3
2 3 4 : 11
A : B 1 5 7 : 15
3 11 13 : 25
1 7 : 15
5
R1 R2 2 3 4 : 11
3 11 13 : 25
1 5 7 :15
R2 R2 2 R1 0 7 10 : 19
R3 R3 3R1
0 4 8 : 20
1 5 7 : 15
R3 3
R 0 7 10 : 19
4
0 1 2 : 5
1 5 : 15
7
0 1 2 : 5
R2 R3
0 7 10 : 19
1 5 15
7 :
R3 R3 7R2 0 1 2 : 5
0 0 4 : 16
Substituting in ii
ii y 2 4 5
y 58
y 3
Substituting y & z in i
i x 5 y 7 z 15
x 5 3 7 4 15
x 15 15 28
x2
2
X 3 X 2 3 4
T
Or
4
4) Show that the following system of equations is consistent and solve them
x 2 y 2 z 1 ; 2 x y z 2 ; 3x 2 y 2 z 3 ; y z 0
Solution: Given x 2 y 2 z 1 ; 2 x y z 2 ; 3x 2 y 2 z 3 ; y z 0
1 2 2 1
2 2 x
; B & X y
1 1
Let A
3 2 2 3
z
0 1 1 0
1 2 2 : 1
2 1 1 : 2
A : B
3 2 2 : 3
0 1 1 : 0
1 2 2 : 1
R2 R2 2 R1 0 3 3 : 0
R3 R3 3R1 0 4 4 : 0
0 1 1 : 0
R2 3
R2 1
0
2 2 : 1
1 1 : 0
0 1 1 : 0
R3 3
R
4
0 1 1 : 0
1 2 2 : 1
R3 R3 R2 0 1 1 : 0
R4 R4 R2 0 0 0 : 0
0 0 0 : 0
Substituting z k in ii
ii y k 0
y k
y k
Substituting y & z in i
i x 2 y 2z 1
x 2 k 2 k 1
x 1
1
X k X 1 k k
T
Or
k
5 3 7 4 x
Let A 3 26 2 ; B 9 & X y
7 2 10 5 z
5 3 7 : 4
A : B 3 26 2 : 9
7 2 10 : 5
3 5 4
R2 R2 R1 3 7 :
5 0 121 11 : 33
7 5 5 5
R3 R3 R1 0
5 11 1 : 3
5 5 5
5 5 3 7 : 4
R2 R2 0
11 11 1 : 3
R3 5 R3 0 11 1 : 3
5 3 7 : 4
R3 R2 R3 0 11 1 : 3
0 0 0 : 0
Substituting z k in ii
ii 11 y z 3
11 y k 3
11 y 3 k
3 k
y
11
Substituting y & z in i
i 5x 3 y 7 z 4
3 k
5x 3 7k 4
11
9 3k
5x 7k 4
11 11
9 80k
5x 4
11 11
9 80k
5x 4
11 11
9 80k
5x 4
11 11
35 80k
5x
11 11
35 80k
x
55 55
T
35 80k 3 k
X k
55 55 11
1 1 1 6
Let A 1 2 3 ; B 10
1 2
1 1 6
1 :
A : B 1 2 3 : 10
1 2 :
1 1 1 6
:
R2 R2 R1
0 1 2 : 4
R3 R3 R1
0 1 1 : 6
1 1 1 :
6
R3 R3 R2 0 1 2 : 4
0 0 3 : 10
a)Unique solution
If A A : B there is a solution and n we will have unique solution.
Here if A A : B 3 and n 3
b) Infinite solution
If A A : B there is a solution and n we will have infinite solution.
Here if A A : B 2 & n 3
c)No solution
If A A : B there is a no solution.
Here if A 2 ; A : B 3
Solution: Given x y z 1 ; x 2 y 4 z k ; x 2 y 10 z k 2
1 1 1 1 x
Let A 1 2 4 ; Bk ; X y
1 4 10 k 2 z
1 1 1
1 :
A : B 1 2 4 : k
1 4 10 : k
2
1 1 1
1 :
R2 R2 R1 0 1 3 : k 1
R3 R3 R1
0 3 9 : k 1
2
1 1 1 : 1
R3 R3 3R2 0 1 3 : k 1 1
0 0 0 : k 3k 2
2
A 2, A : B 2 & n 3
Let us write down the reduced form of system of equations, to find the unknowns
x y z 1 i
y 3z 0 ii
n i.e 3 2 , let us choose 3 2 1 arbitrary constant, i.e., let z k 1
Substituting z k 1 in ii
ii y 3 k 1 0
y 3k 1
y 3k 1
Substituting y & z in i
i x y z 1
x 3k1 k1 1
x 1 2k1
1 2k1
X 3k1 X 1 2k1 3k1 k1
T
Or
k1
Case2: when k 2 in 1
Let us write down the reduced form of system of equations, to find the unknowns
x y z 1 i
y 3z 1 ii
n i.e 3 2 , let us choose 3 2 1 arbitrary constant, i.e., let z k 2
Substituting z k 2 in ii
ii y 3 k 2 1
y 1 3k 2
y 1 3k 2
Substituting y & z in i
i x y z 1
x 1 3k2 k2 1
x 2k2
2k2
X 1 3k2 X 2k2 1 3k2 k2
T
Or
k2
Note:
Gauss elimination method is very much similar to the method we employed in reducing a
system of equations by testing its consistency.
Problems:
1) Solve by Gauss elimination method
2 x y 4 z 12 ; 4 x 11y z 33 ; 8 x 3 y 2 z 20
Solution: Given 2 x y 4 z 12 ; 4 x 11y z 33 ; 8 x 3 y 2 z 20
2 1 4 12 x
Let A 4 11 1 ; B 33 & X y
8 3 2 20 z
2 1 4 : 12
A : B 4 11 1 : 33
8 3 2 : 20
2 1 4 12 :
R2 R2 2 R1 0 9 9 : 9
R3 R3 4 R1
0 7 14 : 28
R2
R2 2 1 4 : 12
9 0 1 1 : 1
R
R3 3 0 1 2 : 4
7
2 4 : 12
1
R3 R3 R2 0 1 1 : 1
0 0 3 : 3
Let us write down the reduced form of system of equations, to find the unknowns
2 x y 4 z 12 i
y z 1 ii
3z 3 z 1 iii
Substituting iii in ii
ii y z 1
y 1 1
y2
Substituting y & z in i
i 2 x y 4 z 12
2 x 2 4 1 12
2 x 12 2 4
2x 6
x3
3
X 2 X 3 2 1
T
Or
1
1 4 1 : 5
A : B 1 1 6 : 12
3 1 1 : 4
1 4 1 : 5
R2 R2 R1 0 3 5 : 12
R3 R3 3R1
0 13 2 : 4
1 4 1 5 :
R3 R3 4R2 0 3 5 : 12
0 1 22 : 47
1 4 1 : 5
0 47
R3 R2
1 22 :
0 3 5 : 7
1 4 1 : 5
R3 R3 3R2 0 1 22 : 47
0 0 71 : 148
Let us write down the reduced form of system of equations, to find the unknowns
x 4 y z 5 i
y 22 z 47 ii
148
71z 148 z iii
71
Substituting iii in ii
ii y 22 z 47
148
y 22 47
71
81
y
71
Substituting y & z in i
i x 4 y z 5
81 148
x 4 5
71 71
117
x
71
117
71
81 81 148
T
117
X X
71
Or
71 71 71
148
71
1 2 1 : 3
A : B 2 3 2 : 5
3 5 5 : 2
1 2 1 : 3
R2 R2 2 R1 0 1 0 : 1
R3 R3 3R1
0 11 2 : 7
1 2 1 : 3
R3 R3 11R2 0 1 0 : 1
0 0 2 : 4
Let us write down the reduced form of system of equations, to find the unknowns
x 2y z 3 i
y 1 y 1 ii
2z 4 z 2 iii
Substituting y & z in i
i x 2y z 3
x 2 1 2 3
x 1
1
X 1 X 1 1 2
T
Or
2
1 2 2 : 2
R2 R2 0 8 7 : 1
R3 R3 R2
0 1 6 : 7
R4
R4
0 1 2 : 1
2
1 2 2 : 2
0 1 6 : 7
R2 R3
0 8 7 : 1
0 1 2 : 1
1 2 2 : 2
R3 R3 8 R2 0 1 6 : 7
R3 R3 R2 0 0 55 : 55
0 0 8 : 8
R3 1 2 2 : 2
R3 0 1
55 6 : 7
R 0 0 1 : 1
R4 4
8 0 0 1 : 1
1 2 2 : 2
0 1 6 : 7
R4 R4 R3
0 0 1 : 1
0 0 0 : 0
Let us write down the reduced form of system of equations, to find the unknowns
x 2 y 2z 2 i
y 6 z 7 ii
z 1 iii
Substituting iii in ii
ii y 6 z 7
y 6 1 7
y 1
Substituting y & z in i
i x 2 y 2z 2
x 2 1 2 1 2
x2
2
X 1 X 2 1 1
T
Or
1
1 1 1 : 9
A : B 2 3 4 : 13
3 4 5 : 40
1 1 1 : 9
R2 R2 2 R1 0 5 2 : 5
R3 R3 3R1
0 1 2 : 13
1 1 1 : 9
R2 R3 0 1 2 : 13
0 5 2 : 5
1 1 9
1 :
R3 R3 5 R2 0 1 2 : 13
0 0 12 : 60
1 1 1 : 9
R
R3 3 0 1 2 : 13
12
0 0 1 : 5
1 1 0 : 4
R1 R1 R3 0 1 0 : 3
R2 R2 2 R3
0 0 1 : 5
1 0 0 : 1
R1 R1 R2 0 1 0 : 3
0 0 1 : 5
1
X 3 X 1 3 5
T
Or
5
2 3 1 5 x
Let A 4 4 3 ; B 3 & X y
2 3 2 2 z
2 3 1 : 5
A : B 4 4 3 : 3
2 3 2 : 2
2 3 1 : 5
R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3x3 1 ; 4x1 4x2 7 x3 1 ; 2 x1 5x2 9 x3 3
Solution: Given 2x1 x2 3x3 1 ; 4x1 4x2 7 x3 1 ; 2 x1 5x2 9 x3 3
2 1 3 1 x1
Let A 4 4 7 ; B 1 & X x2
2 5 9 3 x3
2 1 3 : 1
A : B 4 4 7 : 1
2 5 9 : 3
2 1 3 : 1
R2 R2 2 R1 0 2 1 : 1
R3 R3 R1
0 4 6 : 2
2 1 3 : 1
R 3 R 3 2 R 2 0 2 1 : 1
0 0 4 : 4
2 1 3 : 1
R 0 2 1 : 1
R3 3
4
0 0 1 : 1
2 5 0 : 4
R1 R1 3R3 0 2 0 : 2
R2 R2 R3
0 0 1 : 1
2 5 0 : 4
R 0
R2 2 1 0 : 1
2
0 0 1 : 1
2 0 0 : 1
R1 R1 5R2 0 1 0 : 1
0 0 1 : 1
1 0 0 : 1
R 2
R1 1 0 1 0 : 1
2
0 0 1 : 1
1
2 T
X 1 Or X 1 1 1
2
1
2 1 1 : 10
A : B 3 2 3 : 18
1 4 9 : 16
1 4 9 : 16
R1 R3 3 2 3 : 18
2 1 1 : 10
1 4 9 : 16
R2 R2 3R1 0 10 24 : 30
R3 R3 2 R1
0 7 17 : 22
R 2 R2
2 1 4 9 : 16
0 5 12 : 15
R3 R 3 0 7 17 : 22
1 4 9 : 16
7
R3 R3 R2 0 5 12 : 15
5
0 0 15 : 5 5
1 4 9 : 16
R3 5R3 0 5 12 : 15
0 0 1 : 5
1 4 0 : 29
R1 R1 9 R3 0 5 0 : 45
R2 R2 12 R3
0 0 1 : 5
1 4 0 : 29
R 0 1 0 : 9
R2 2
5
0 0 1 : 5
1 0 0 : 7
R1 R1 4 R2 0 1 0 : 9
0 0 1 : 5
7
X 9 X 7 9 5
T
Or
5
Numerical Methods
Numerical method provides various techniques to find approximate solution to
difficult problems using simple operations.
Iterative method
By iteration process we are finding the approximate solution of the given system of
equation. In this process in each step the result of previous step is used and the process is
carried out till we get the result to desired accuracy. The value obtained in each step is
always better than the previous.
a1 x b1 y c1 z d1
a2 x b2 y c2 z d 2
a3 x b3 y c3 z d3
Let us consider x , y & z are the unknowns. Here the diagonal co-efficient
a1 , b2 & c3 should not be equal to zero and
a1 b1 c1 ; b2 a2 c2 ; c3 a3 b3 then this system of equations is said to
be diagonally dominant.
Working Rule
Step1: From the given system of equations
1
x d1 b1 y c1 z
a1
1
y d 2 a 2 x c2 z
b2
1
z d3 a3 x b3 y
c3
Step2: Consider Initial values x0 , y0 , z0
Step3: First iteration is
1
x1 d1 b1 y0 c1 z0
a1
1
y1 d 2 a2 x1 c2 z0
b2
1
z1 d3 a3 x1 b3 y1
c3
Step4: Second iteration is
1
x2 d1 b1 y1 c1 z1
a1
1
y2 d 2 a2 x2 c2 z1
b2
1
z2 d3 a3 x2 b3 y2
c3
Step4: Third iteration is
1
x2 d1 b1 y1 c1 z1
a1
1
y2 d 2 a2 x2 c2 z1
b2
1
z2 d3 a3 x2 b3 y2
c3
Step5: Fourth iteration is
1
x4 d1 b1 y3 c1 z3
a1
1
y4 d 2 a2 x4 c2 z3
b2
1
z4 d3 a3 x4 b3 y4
c3
Step5: Fifth iteration is
1
x5 d1 b1 y4 c1 z4
a1
1
y5 d 2 a2 x5 c2 z4
b2
1
z5 d3 a3 x5 b3 y4
c3
Problems:
1. Employing the Gauss Siedel method, solve the system of equations:
10 x y z 12 ; 2 x 10 y z 13 ; 2 x 2 y 10 z 14
Solution:The given equations may be rewritten as
1
10 x y z 12 x 12 y z
10
1
2 x 10 y z 13 y 13 z 2 x
10
1
2 x 2 y 10 z 14 z 14 2 x 2 y
10
0
Let the initial approximations be x 0 ; y 0 0 ; z 0 0
First iteration
x
1 1
10
0 0
12 y z 12 0 0 1.2
1
10
y 1
1
10
13 z 0 2 x 1 13 0 2 1.2 1.06
1
10
z 1
1
10
14 2 x1 2 y 1 14 2 1.2 2 1.06 0.948
1
10
Second iteration
x
2 1
10
1 1
12 y z 12 1.06 0.948 0.9992
1
10
y 2
1
10
13 z 1 2 x 2 13 0.948 2 0.9992 1.0054
1
10
z 2
1
10
14 2 x 2 2 y 2 14 2 0.9992 2 1.0054 0.9991
1
10
Third iteration
x
3 1
10
2
12 y z 12 1.0054 0.9991 0.9996
2 1
10
y 3
1
10
13 z 2 2 x 3 13 0.9991 2 0.9996 1.0002
1
10
z 3
1
10
14 2 x 3 2 y 3 14 2 0.9996 2 1.0002 1.000
1
10
2. Using the Gauss Siedel method, solve the equations:
2 x 3 y 20 z 25 ; 20 x y 2 z 17 ; 3x 20 y z 18
Solution:The given equations are not diagonally dominant, so rearranging it
20 x y 2 z 17
3x 20 y z 18
2 x 3 y 20 z 25
1
10 x y z 12 x 12 y z
10
1
2 x 10 y z 13 y 13 z 2 x
10
1
2 x 2 y 10 z 14 z 14 2 x 2 y
10
0
Let the initial approximations be x 0 ; y 0 0 ; z 0 0
First iteration
x
1 1
10
0 0
12 y z 12 0 0 1.2
1
10
y 1
1
10
13 z 0 2 x 1 13 0 2 1.2 1.06
1
10
z 1
1
10
14 2 x1 2 y 1 14 2 1.2 2 1.06 0.948
1
10
Second iteration
x
2 1
10
1
12 y z 12 1.06 0.948 0.9992
1 1
10
y 2
1
10
13 z 1 2 x 2 13 0.948 2 0.9992 1.0054
1
10
z 2
1
10
14 2 x 2 2 y 2 14 2 0.9992 2 1.0054 0.9991
1
10
Third iteration
x
3 1
10
2
12 y z 12 1.0054 0.9991 0.9996
2 1
10
y 3
1
10
13 z 2 2 x 3 13 0.9991 2 0.9996 1.0002
1
10
z 3
1
10
14 2 x 3 2 y 3 14 2 0.9996 2 1.0002 1.000
1
10
3. Apply Gauss Siedel method, solve the system of equations:
5 x 2 y z 12 ; x 4 y 2 z 15 ; x 2 y 5 z 20
Carryout 4 iterations, taking the initial approximation to the solution as
1, 0,3
Solution:The given equations may be rewritten as
1
5 x 2 y z 12 x 12 2 y z
5
1
x 4 y 2 z 15 y 15 2 z x
4
1
x 2 y 5 z 20 z 20 x 2 y
5
0
Given the initial approximations to the solution is x 1 ; y 0 0 ; z 0 3
First iteration
x
1 1
5
0
12 2 y z 12 2 0 3 1.8
0 1
5
1
4
y 1 15 2 z 0 x 1 15 2 3 1.8 1.8
1
4
1
5
1 1
z 20 x 2 y 20 1.8 2 1.8 2.92
1 1
5
Second approximation
x
2 1
5
1
12 2 y z 12 2 1.8 2.92 1.096
1 1
5
1
4
y 2 15 2 z 1 x 2 15 2 2.92 1.096 2.016
1
4
2
5
2
z 20 x 2 y 20 1.096 2 2.016 2.9744
1 2 1
5
Third approximation
x
3 1
5
2
12 2 y z 12 2 2.016 2.9744 0.9987
2 1
5
1
4
y 3 15 2 z 2 x 3 15 2 2.9744 0.9987 2.0131
1
4
3
5
3
z 20 x 2 y 20 0.9987 2 2.0131 2.9950
1 3 1
5
Fourth approximation
x
4 1
5
3
12 2 y z 12 2 2.0131 2.9950 0.9958
3 1
5
1
4
y 4 15 2 z 3 x 4 15 2 2.9950 0.9958 2.0036
1
4
4
5
4
z 20 x 2 y 20 0.9958 2 2.0036 2.9994
1 4 1
5
A I X 0
This represents a system of ' n ' homogenous equation in variables ' n ' variables
x1 , x2 , x3 .............xn . This system of equation has non trivial solution if the co-efficient
matrix A I is singular.
i.e., A I 0
a 11 a 12 a13 a 1n
a21 a2 2 a 2 3 a2 4
0
am1 a m2 am 3 am n
Property:
1. Sum of the eigen values of a square matrix is equal to the sum of the principle
diagonal elements.
2. Product of the eigen values of a square matrix is equal to the determinant of the
matrix.
Problems:
Find the eigen value and eigen vector of the following matrices
1. 5 4
1 2
5 4
Solution: Let A
1 2
Characteristic equation is given by A I 0
5 4
0
1 2
5 2 4 0
10 5 2 2 4 0
2 7 6 0
6 1 0
1 , 6
Consider A I X 0
5 4 x 0
0
1 2 y
5 x 4 y 0
1
x 2 y 0
4 x 4 y 0
1
x y 0
x y 0
x y
x y
1 1
X 1 1
T
x 4 y 0
1
x 4 y 0
x 4y 0
x 4y
x y
4 1
X 4 1
T
8 6 2
2. 6 7 4
2 4 3
8 6 2
A 6 7 4
Solution: Let
2 4 3
Characteristic equation is given by A I 0
3 d 2 m d A 0
7 4 8 2 8 6
3 8 7 3 2 0 0
4 3 2 3 6 7
3 18 2 21 16 24 4 56 36 0
3 18 2 5 20 20 0
3 18 2 45 0
2 18 45 0
2 3 15 45 0
3 15 3 0
3 15 0
0,3,15
The roots of the characteristic equation are 1 0 , 2 3 & 3 15 .
Consider A I X 0
8 6 2 x 0
6 7 4 y 0
2 4 3 z 0
8 x 6 y 2 z 0
6 x 7 y 4 z 0 1
2x 4 y 3 z 0
x y z
From i & ii
6 2 8 2 8 6
7 4 6 4 6 7
x y z
24 14 32 12 56 36
x y z
10 20 20
x y z
1 2 2
Case 2: If 2 3 in equation 1 then
5 x 6 y 2z 0 i
1 6 x 4 y 4 z 0 ii
2x 4 y 0z 0 iii
x y z
From ii & iii
4 4 6 4 6 4
4 0 2 0 2 4
x y z
0 16 0 8 24 8
x y z
16 8 16
x y z
2 1 2
7 x 6 y 2 z 0 i
1 6 x 8 y 4 z 0 ii
2 x 4 y 12 z 0 iii
x y z
From i & ii
6 2 7 2 7 6
8 4 6 4 6 8
x y z
24 16 28 12 56 36
x y z
40 40 20
x y z
2 2 1
6 2 2
3. 2 3 1
2 1 3
6 2 2
A 2 3 1
Solution: Let
2 1 3
Characteristic equation is given by A I 0
3 d 2 m d A 0
3 1 6 2 6 2
3 6 3 3 2 32 0
1 3 2 3 2 3
3 12 2 9 1 18 4 18 4 32 0
3 12 2 8 14 14 32 0
3 12 2 36 32 0
2 , 2 , 8
The roots of the characteristic equation are 1 2 2 & 3 8.
Consider A I X 0
6 2 2 x 0
2 3 1 y 0
2 1 3 z 0
6 x 2 y 2z 0
2 x 3 y z 0 1
2x y 3 z 0
4 x 2 y 2z 0 i
1 2 x y z 0 ii
2x y z 0 iii
From i , ii & iii the equations are linearly dependent. 2 x y z 0 gives an infinite
4 2 2 : 0
solution. Here augumented matrix is A : B 2 1 1 : 0
2 1 1 : 0
k2 k1
z k1 & y k2 then from 2 x y z 0 x
2
k k
T
For 2, X 2 1 k2 k1
2
x y z
From i & ii
2 2 2 2 2 2
5 1 2 1 2 5
x y z
2 10 2 4 10 4
x y z
12 6 6
x y z
2 1 1
For 2 , X 2 1 1
T
1 1 2
4. 0 2 2
1 1 3
1 1 2
A 0 2 2
Solution: Let
1 1 3
Characteristic equation is given by A I 0
3 d 2 m d A 0
2 2 1 2 1 1
3 1 2 3 2 6 0
1 3 1 3 0 1
3 6 2 6 2 3 2 1 0 6 0
3 6 2 4 5 1 6 0
3 6 2 10 6 0
1 , 2 , 3
The roots of the characteristic equation are 1 1 , 2 2 & 3 3.
Consider A I X 0
1 1 2 x 0
0 2 2 y 0
1 1 3 z 0
1 x y 2 z 0
0x 2 y 2 z 0 1
x y 3 z 0
Since i , iii are linearly dependent, let us choose i , ii for cross multiplication
x y z
From i & iii
1 2 1 2 1 1
0 2 0 2 0 0
x y z
2 0 2 0 0 0
x y z
2 2 0
x y z
1 1 0
For 2 , X 1 1 0
T
2 x y 2 z 0 i
1 0x y 2 z 0 ii
x y 0z 0 iii
x y z
From i & ii
1 2 2 2 2 1
1 2 0 2 0 1
x y z
2 2 4 0 2 0
x y z
4 4 2
x y z
2 2 1
For 3 , X 2 2 1
T
2 2 3
5. 2 1 6
1 2 0
2 2 3
A 2 1 6
Solution: Let
1 2 0
Characteristic equation is given by A I 0
3 d 2 m d A 0
1 6 2 3 2 2
3 2 1 0 2 45 0
2 0 1 0 2 1
1 0 12 0 3 2 4 45 0
3 2
3 2 12 3 6 45 0
3 2 21 45 0
5 , 3 , 3
The roots of the characteristic equation are 2 3 3 & 1 5.
Consider A I X 0
2 2 3 x 0
2 1 6 y 0
1 2 0 z 0
2 x 2 y 3 z 0
2 x 1 y 6 z 0 1
x 2 y 0 z 0
7 x 2 y 3z 0 i
1 2x 4 y 6z 0 ii
x 2 y 5z 0 iii
x y z
From i & ii
2 3 7 3 7 2
4 6 2 6 2 4
x y z
12 12 42 6 28 4
x y z
24 48 24
x y z
1 2 1
For 5 , X 1 2 1
T
From i , ii & iii the equations are linearly dependent. x 2 y 3z 0 gives an infinite
1 2 3 : 0
solution. Here augumented matrix is A : B 2 4 6 : 0
1 2 3 : 0
Problems:
1. Find the largest eigen value and corresponding eigen vector by power method
25 1 2
1 3 0
2 0 4
25 1 2 1
A 1 3 0 X 0 0
Solution: Let
&
2 0 4 0
25 1 2 1 25 1
A X0 1 3 0 0 1 25 0.04 1 X 1
2 0 4 0 2 0.08
25 1 2 1 25.2 1
A X1 1 3
0 0.04 1.12 25.2 0.0444 2 X 2
2 0 4 0.08 1.68 0.0666
25 1 2 1 25.1776 1
A X2 1 3 0 0.0444 1.1332 25.1776 0.0450 3 X 3
2 0 4 0.0666 1.7336 0.0689
25 1 2 1 25.1828 1
A X3 1 3 0 0.0450 1.135 25.1828 0.0451 4 X 4
2 0 4 0.0689 1.7244 0.0685
25 1 2 1 25.1828 1
A X4 1 3 0 0.0450 1.135 25.1821 0.0451 5 X 5
2 0 4 0.0689 1.7244
0.0685
The largest eigen value is 25.1821 and the corresponding eigen vector is
1
0.0451 or 1 0.0451 0.0685 T .
0.0685
2. Find the largest eigen value and corresponding eigen vector by taking the initial
4 1 1
approximation to the eigen vector as1 0.8 0.8 T .Perform 5 iterations
2 3 1
.
2 1 5
4 1 1 1
A 2 3 1 X 0 0.8
Solution: Given
&
2 1 5 0.8
4 1 1 1 5.6 0.8235
A X0 2 3
1 0.8 6.8 6.8 1 1 X 1
2 1 5 0.8 5.2 0.7647
4 1 1 0.8235 5.0587 0.9348
A X1 2 3 1 1 5.4117 5.4117 1 2 X 2
2 1 5 0.7647 4.4705 0.8261
4 1 1 0.9348 5.5653 0.9771
A X2 2 3 1 1 5.6957 5.6957 1 3 X 3
2 1 5 0.8261 5.0001 0.8838
4 1 1 0.9771
A X3 2 3 1 1 4 X 4
2 1 5 0.8838
4 1 1
A X4 2 3 1 5 X 5
2 1 5
The largest eigen value is 25.1821 and the corresponding eigen vector is
1
0.0451 or 1 0.0451 0.0685 T .
0.0685
3. Find the largest eigen value and corresponding eigen vector corrected to 3 decimal
2 1 0
places by taking the initial eigen vector as1 1 1 T where
A 1 2 1
0 1 2
2 1 0 1
A 1 2 1 X 0 1
Solution: Given
&
0 1 2 1
2 1 0 1 1 1
A X 0 1 2 1 1 0 1 0 1 X 1
0 1 2 1 1 1
2 1 0 1 2 1
A X 1 1 2 1 0 2 2 1 2 X 2
0 1 2 1 2 1
2 1 0 1 3 0.75
A X 2 1 2 1 1 4 4 1 3 X 3
0 1 2 1 3 0.75
2 1 0 0.75 2.5 0.7143
A X 3 1 2 1 1 3.5 3.5 1 4 X 4
0 1 2 0.75 2.5 0.7143
2 1 0 0.7143 2.4286 0.7085
A X 4 1 2 1 1 3.428 3.428 1 5 X 5
0 1 2 0.7143 2.4286 0.7085
2 1 0 0.7085 2.417 0.7073
A X 5 1 2 1 1 3.417 3.417 1 6 X 6
0 1 2 0.7085 2.417 0.7073
2 1 0 0.7073 2.4146 0.7071
A X 6 1 2 1 1 3.4146 3.4146 1 7 X 7
0 1 2 0.7073 2.4146 0.7071
The largest eigen value is 3.4142 and the corresponding eigen vector is
0.7071
1 or 0.7071 1 0.7071 T .
0.7071
Property:
' A' of order ' n ' has n linearly independent eigen vectors, then a matrix ' P ' can be
If a square matrix
1
found such that P A P D is a diagonal matrix.
Where D = diagonal matrix also known as spectral matrix
P = matrix which transform ' A' to diagonal form is known as modal matrix
Note:
1. The transformation of a square matrix ' A' to P 1 A P is known as similarity transformation.
2. The diagonal matrix has the eigen values of ' A ' as its diagonal elements.
3. The matrix ' P ' which diagonalise the square matrix, constitute the eigen vector.
D P 1 A P
D P 1 A P
D 2 P 1 A P P 1 A P
D 2 P 1 A PP 1 A P
D 2 P 1 A I A P
D 2 P 1 A 2 P
Pre multiplying by P and post multiplying by P 1
PD 2 P 1 PP 1 A 2 PP 1
PD 2 P 1 I A 2 I
PD 2 P 1 A 2
PD 3 P 1 A 3
1
In general PD P
n
An
Note:
a b 1 1 d b
If A
A c a
then its inverse is given by A .
c d
Problems:
1 3
0
2 4
1 4 6 0
4 4 2 6 0
2 3 2 0
2 1 0
1 , 2
The roots of the characteristic equation are 11 & 2 2 .
Consider A I X 0
1 3 x 0
0
2 4 y
1 x 4 y 0
1
x 4 y 0
2 x 3 y 0
1
2 x 3 y 0
2x 3y 0
2x 3y
x y
3 2
X 3 2
T
3x 3 y 0
1
2 x 2 y 0
x y 0
x y
x y
1 1
X 1 1
T
The matrix which reduces given matrix to diagonal form is modal matrix
3 1
Modal matrix P
2 1
1 1 1
P 1
2 2 3
1 1 1 1 1 3 3 1
Diagonal matrix D P AP
2 2 3 2 4 2 1
1 0
D P 1 AP
0 2
3 1 1 3 1 1
5 5
1 1
A PD P
5 5
2 1 2
5
4 2 2
5
3
61 93
A5
62 94
19 7
0
42 16
19 16 294 0
2 3 304 294 0
2 3 10 0
2 5 0
2 , 5
The roots of the characteristic equation are 1 2 & 2 5 .
Consider A I X 0
19 7 x 0
0
42 16 y
19 x 7 y 0
1
42 x 16 y 0
21 x 7 y 0
1
42 x 14 y 0
21x 7 y 0
21x 7 y
3x y
x y
1 3
X 1 3
T
14 x 7 y 0
1
42 x 21 y 0
14 x 7 y 0
14 x 7y
2x y
x y
1 2
X 1 2
T
The matrix which reduces given matrix to diagonal form is modal matrix
1 1
Modal matrix P
3 2
2 1 2 1
P 1 1 3 1
3 1
1 2 1 19 7 1 1
Diagonal matrix D P AP 42
3 1 16 3 2
2 0
D P 1 AP
0 5