Professional Documents
Culture Documents
Assignment - 1
Mr. Sukalyan Sarkar
Master of Engineering (Structural Engineering)
1st Semester
2020 - 2022
Roll - 002010402005
Civil Engineering department
Jadavpur University
Kolkata -700032
CONTENTS
SL. NO. ITEM PAGE NO.
1 Solution by Gauss Elimination Method (for 4 X 4 sized coefficient matrix) 1
Solution by LU Decomposition Method / Method of Factorization (for 4 X 4
2 3
sized coefficient matrix)
Solution by Gauss Elimination Method (for 4 X 4 sized coefficient matrix):
5 0 -2 1 x1 9
3 5 1 -1 x2 0
=
0 -3 4 2 x3 0
1 1 1 1 x4 0
5 0 -2 1 x1 9
0 5 2.2 -1.6 x2 -5.4
=
0 -3 4 2 x3 0
1 1 1 1 x4 0
5 0 -2 1 x1 9
0 5 2.2 -1.6 x2 -5.4
=
0 -3 4 2 x3 0
1 1 1 1 x4 0
5 0 -2 1 x1 9
0 5 2.2 -1.6 x2 -5.4
=
0 -3 4 2 x3 0
0 1 1.4 0.8 x4 -1.8
5 0 -2 1 x1 9
0 5 2.2 -1.6 x2 -5.4
=
0 0 5.32 1.04 x3 -3.24
0 1 1.4 0.8 x4 -1.8
5 0 -2 1 x1 9
0 5 2.2 -1.6 x2 -5.4
=
0 0 5.32 1.04 x3 -3.24
0 0 0.96 1.12 x4 -0.72
5 0 -2 1 x1 9
0 5 2.2 -1.6 x2 -5.4
=
0 0 5.32 1.04 x3 -3.24
0 0 0 0.932 x4 -0.135
STEP 2 : BACK SUBSTITUTION:
0.932 x4 = -0.135
x4 = -0.145
5 x1 + 0 x2 + -2 x3 + 1 x4 = 9
5 x1 + 0 X -0.871 + -2 X -0.581 +
1 X -0.145 = 9
5 x1 + 0 + 1.161 + -0.145 = 9
5 x1 = 7.984
x1 = 1.597
Solution is:
x1 = 1.597
x2 = -0.871
x3 = -0.581
x4 = -0.145
Solution by LU Decomposition Method / Method of Factorization (for 4 X 4 sized coefficient matrix):
5 0 -2 1 x1 9
3 5 1 -1 x2 0
=
0 -3 4 2 x3 0
1 1 1 1 x4 0
STEP 1 : LU FACTORIZATION:
5 0 -2 1
3 5 1 -1
0 -3 4 2
1 1 1 1
So, Ax = B
=> LUx = B
Let Ux = Z
So, LZ = B
1 0 0 0 Z1 9
0.6 1 0 0 Z2 0
=
0 -0.6 1 0 Z3 0
0.2 0.2 0.180 1 Z4 0
1.000 Z1 9.000
Z1 9.000
0.6 Z1+ 1 Z2 = 0
0 Z1 + -0.6 Z2 + 1 Z3 = 0
5 0 -2 1 x1 9.000
0 5 2.2 -1.6 x2 -5.400
=
0 0 5.32 1.04 x3 -3.240
0 0 0 0.932 x4 -0.135
0.932 x4 = -0.135
x4 = -0.145
5 x1 + 0 x2 + -2 x3 + 1 x4 = 9.000
5 x1 + 0 X -0.871 + -2 X -0.581 +
1 X -0.145 = 9
5 x1 + 0 + 1.161 + -0.145 = 9
5 x1 = 7.984
x1 = 1.597
Solution is:
x1 = 1.597
x2 = -0.871
x3 = -0.581
x4 = -0.145