Home > Matrix & Vector calculators > Solving systems of linear equations using Gauss Jacobi method example

6. Gauss Jacobi method example ( Enter your problem )
  1. Example `2x+5y=21,x+2y=8`
  2. Example `2x+5y=16,3x+y=11`
  3. Example `x+y+z=3,2x-y-z=3,x-y+z=9`
  4. Example `x+y+z=7,x+2y+2z=13,x+3y+z=13`
Other related methods
  1. Inverse Matrix method
  2. Cramer's Rule method
  3. Gauss-Jordan Elimination method
  4. Gauss Elimination Back Substitution method
  5. Gauss Seidel method
  6. Gauss Jacobi method
  7. Elimination method
  8. LU decomposition using Gauss Elimination method
  9. LU decomposition using Doolittle's method
  10. LU decomposition using Crout's method
  11. Cholesky decomposition method
  12. SOR (Successive over-relaxation) method
  13. Relaxation method

2. Example `2x+5y=16,3x+y=11`
(Previous example)
4. Example `x+y+z=7,x+2y+2z=13,x+3y+z=13`
(Next example)

3. Example `x+y+z=3,2x-y-z=3,x-y+z=9`





Solve Equations x+y+z=3,2x-y-z=3,x-y+z=9 using Gauss Jacobi method

Solution:
Total Equations are `3`

`x+y+z=3`

`2x-y-z=3`

`x-y+z=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.
`2x-y-z=3`

`x+y+z=3`

`x-y+z=9`


From the above equations
`x_(k+1)=1/2(3+y_(k)+z_(k))`

`y_(k+1)=1/1(3-x_(k)-z_(k))`

`z_(k+1)=1/1(9-x_(k)+y_(k))`

Initial gauss `(x,y,z) = (0,0,0)`

Solution steps are
`1^(st)` Approximation

`x_1=1/2[3+(0)+(0)]=1/2[3]=1.5`

`y_1=1/1[3-(0)-(0)]=1/1[3]=3`

`z_1=1/1[9-(0)+(0)]=1/1[9]=9`

`2^(nd)` Approximation

`x_2=1/2[3+(3)+(9)]=1/2[15]=7.5`

`y_2=1/1[3-(1.5)-(9)]=1/1[-7.5]=-7.5`

`z_2=1/1[9-(1.5)+(3)]=1/1[10.5]=10.5`

`3^(rd)` Approximation

`x_3=1/2[3+(-7.5)+(10.5)]=1/2[6]=3`

`y_3=1/1[3-(7.5)-(10.5)]=1/1[-15]=-15`

`z_3=1/1[9-(7.5)+(-7.5)]=1/1[-6]=-6`

`4^(th)` Approximation

`x_4=1/2[3+(-15)+(-6)]=1/2[-18]=-9`

`y_4=1/1[3-(3)-(-6)]=1/1[6]=6`

`z_4=1/1[9-(3)+(-15)]=1/1[-9]=-9`


Equations are Divergent...
Iterations are tabulated as below
Iterationxyz
11.539
27.5-7.510.5
33-15-6
4-96-9



This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



2. Example `2x+5y=16,3x+y=11`
(Previous example)
4. Example `x+y+z=7,x+2y+2z=13,x+3y+z=13`
(Next example)





Share this solution or page with your friends.


 
Copyright © 2023. All rights reserved. Terms, Privacy
 
 

.