Beruflich Dokumente
Kultur Dokumente
Lecture -17
Muhammad Rafiq
Assistant Professor
University of Central Punjab
Lahore Pakistan
Diagonally Dominant System
Consider the system
a1x + b1y + c1z = d1
a2x + b2y + c2z = d2
a3x + b3y + c3z = d3
The above system is called diagonally dominant if
| a1| ≥ |b1| + |c1|
| b2| ≥ |a2| + |c2|
| c3| ≥ |a3| + |b3|
For Example:
8x - 3y + 2z = 20
4x +11y – z = 33
6x + 3y + 12z = 35
Jacobi Iteration Method
This method is also known as Guass-Jacobi method, consider the following
system:
a1x + b1y + c1z = d1 ………. (1a)
a2x + b2y + c2z = d2 ………. (1b)
a3x + b3y + c3z = d3 ………. (1c)
Assume that the system is diagonally dominant, solving equations
(1a)(1b)(1c) for x,y,z respectively.
x = [d1 – b1y – c1z]
2nd approximation
x2 = [d1 – b1y1 – c1z1]
NOTE:-
In the absence of any better estimates, the initial approximations are taken
as x0=0,y0=0 and z0=0.
Example:-1
Solve by Jacobi Iteration method the following system and give the answer
correct to 4 dp.
8x-3y+2z=20; 6x+3y+12z=35; 4x+11y-z=33
Solution:-
8x-3y+2z=20
4x+11y-z=33
6x+3y+12z=35
x= [20 + 3 − 2 ]
y= [33 − 4 + ]
z= [35 − 6 − 3 ]
Let x0=0 , y0=0 and z0=0
Ist Approximation
x1 = [20 + 3(0) − 2(0)] = 2.5
y1 = [33 − 4(0) + 0] = 3
z1 = [35 − 6(0) − 3(0)] = 2.916667
2nd Approximation
x2 = [20 + 3(3) − 2(2.916667)] = 2.895833
y2 = [33 − 4(2.5) + 2.916667] = 1.825758
z2 = [35 − 6(2.5) − 3(3)] = 0.916667
3rd Approximation
x3 =2.955492
y3 =2.030302
z3 =1.012310
4rd Approximation
x4 =3.00835
y4 =2.017303
z4 =0.931345
5th Approximation
x5 =3.023652
y5 =1.990745
z5 =0.908190
6th Approximation
x6 =3.019479
y6 =1.9830536
z6 =0.907145
7th Approximation
x7 =3.016856
y7 =1.9844762
z7 =0.9111637
8th Approximation
x8 =3.016387
y8 =1.985794
z8 =0.9111637
9th Approximation
x9 =3.016878
y9 =1.986022
z9 =0.9119676
10th Approximation
x10 =3.016766
y10 =1.98585
z10 =0.911821
11th Approximation
x11 =3.01676
y11 =1.98588
z11 =0.911813
3rd Approximation:
x3= 0.366
y3= 1.9035
z3=3.1656
4th Approximation:
x4= 0.37244
y4= 2.07419
z4=3.095836
5th Approximation:
x5= 0.3319896
y5= 2.1190816
z5= 3.08596824
6th Approximation:
x6= 0.3179788
y6=2.1275211
z6=3.085395762
7th Approximation:
x7= 0.3148332
y7=2.128593
z7=3.0855958
8th Approximation:
x8= 0.314324
y8=2.1286210
z8=3.085686
9th Approximation:
x9= 0.3142768
y9= 2.12858
z9= 3.08570
10th Approximation:
x10= 0.3142
y10= 2.1285
z10=3.0857
Therefore,
x= 0.3142
y=2.1285
z= 3.0857
__________________________
Exercise
Solve the following systems by using Jacobi iteration method and give
answers correct to 4dp.
Question no. 1
Question no. 2
Question no. 3
Question no. 4