10x-2y-z-u-3
-2x+10y-z-u=15
-x-y+10z-2u=27
-x-y-2z+10u=-9
using Gauss-seidel method
Answers
Given:
-u+10x-2y-z=3
-u-2x+10y-z=15
-2u-x-y+10z=27
10u-x-y-2z=-9
To find:
Solve Equations using Gauss Seidel method.
Solution:
Total Equations are 4
-u+10x-2y-z=3
-u-2x+10y-z=15
-2u-x-y+10z=27
10u-x-y-2z=-9
The coefficient matrix of the given system is not diagonally dominant.
Hence, we re-arrange the equations as follows, such that the elements in the coefficient matrix are diagonally dominant.
10u-x-y-2z=-9
-u+10x-2y-z=3
-u-2x+10y-z=15
-2u-x-y+10z=27
From the above equations
Initial gauss (u,x,y,z)=(0,0,0,0)
Solution steps are
1st Approximation
2nd Approximation
3rd Approximation
Similarly after 3rd approximation:
u₃ = -0.0371
x₃ = 0.9733
y₃ = 1.9846
z₃ = 2.9884
4th Approximation
Similarly after 4th approximation:
u₄ = -0.0065
x₄ = 0.9951
y₄ = 1.9972
z₄ = 2.9979
5th Approximation
Similarly after 5th approximation:
u₅ = -0.0012
x₅ = 0.9991
y₅ = 1.9995
z₅ = 2.9996
6th Approximation
Similarly after 5th approximation:
u₆ = -0.0002
x₆ = 0.9998
y₆ = 1.9999
z₆ = 2.9999
Solution By Gauss Seidel Method.
u = -0.0002 ≅ 0
x = 0.9998 ≅ 1
y = 1.9999 ≅ 2
z = 2.9999 ≅ 3