BIT203 ยท 2082 ยท 10 marks
List out any two applications of system of linear equation. Differentiate between Gauss-Seidel and Jacobi iteration method. Solve the following system of equations using Jacobi iteration method: 4x + y + z = 7, x + 5y - 2z = 3, 3x + 2y + 6z = 14. [2+3+5]
List out any two applications of system of linear equation. Differentiate between Gauss-Seidel and Jacobi iteration method. Solve the following system of equations using Jacobi iteration method: $4x + y + z = 7$, $x + 5y - 2z = 3$, $3x + 2y + 6z = 14$. [2+3+5]
System of Linear Equations
Part 1: Two Applications [2 marks]
-
Electrical Circuit Analysis: Applying Kirchhoff's laws to circuits produces systems of linear equations that are solved for unknown branch currents and node voltages.
-
Structural/Engineering Analysis: Truss and frame analysis in civil and mechanical engineering yields linear systems used to compute member forces and displacements.
(Others: economics input-output models, network flow, curve fitting.)
Part 2: Gauss-Seidel vs Jacobi [3 marks]
| Feature | Jacobi Method | Gauss-Seidel Method |
|---|---|---|
| Value used | Uses only previous-iteration values $x^{(k)}$ | Uses latest available values (already updated in same iteration) |
| Storage | Needs two arrays (old and new) | Needs one array (in-place update) |
| Convergence | Slower, more iterations | Faster, fewer iterations |
| Parallelism | Easily parallelized | Sequential, hard to parallelize |
Part 3: Jacobi Iteration [5 marks]
Given System
$$4x + y + z = 7$$ $$x + 5y - 2z = 3$$ $$3x + 2y + 6z = 14$$
Step 1: Diagonal Dominance
- Row 1: $|4| > |1|+|1| = 2$ โ
- Row 2: $|5| > |1|+|-2| = 3$ โ
- Row 3: $|6| > |3|+|2| = 5$ โ
Diagonally dominant โ convergence guaranteed.
Step 2: Iteration Formulas
$$x^{(k+1)} = \tfrac{1}{4}\left(7 - y^{(k)} - z^{(k)}\right)$$ $$y^{(k+1)} = \tfrac{1}{5}\left(3 - x^{(k)} + 2z^{(k)}\right)$$ $$z^{(k+1)} = \tfrac{1}{6}\left(14 - 3x^{(k)} - 2y^{(k)}\right)$$
Step 3: Initial Guess
$x^{(0)}=0,\ y^{(0)}=0,\ z^{(0)}=0$
Iteration 1: $$x^{(1)}=\tfrac{1}{4}(7)=1.7500$$ $$y^{(1)}=\tfrac{1}{5}(3)=0.6000$$ $$z^{(1)}=\tfrac{1}{6}(14)=2.3333$$
Iteration 2: $$x^{(2)}=\tfrac{1}{4}(7-0.6-2.3333)=\tfrac{4.0667}{4}=1.0167$$ $$y^{(2)}=\tfrac{1}{5}(3-1.75+2(2.3333))=\tfrac{5.9167}{5}=1.1833$$ $$z^{(2)}=\tfrac{1}{6}(14-3(1.75)-2(0.6))=\tfrac{7.55}{6}=1.2583$$
Iteration 3: $$x^{(3)}=\tfrac{1}{4}(7-1.1833-1.2583)=\tfrac{4.5584}{4}=1.1396$$ $$y^{(3)}=\tfrac{1}{5}(3-1.0167+2(1.2583))=\tfrac{4.4999}{5}=0.9000$$ $$z^{(3)}=\tfrac{1}{6}(14-3(1.0167)-2(1.1833))=\tfrac{8.5833}{6}=1.4306$$
Iteration 4: $$x^{(4)}=\tfrac{1}{4}(7-0.9000-1.4306)=\tfrac{4.6694}{4}=1.1674$$ $$y^{(4)}=\tfrac{1}{5}(3-1.1396+2(1.4306))=\tfrac{4.7216}{5}=0.9443$$ $$z^{(4)}=\tfrac{1}{6}(14-3(1.1396)-2(0.9000))=\tfrac{8.7812}{6}=1.4635$$
Iteration 5: $$x^{(5)}=\tfrac{1}{4}(7-0.9443-1.4635)=\tfrac{4.5922}{4}=1.1481$$ $$y^{(5)}=\tfrac{1}{5}(3-1.1674+2(1.4635))=\tfrac{4.7596}{5}=0.9519$$ $$z^{(5)}=\tfrac{1}{6}(14-3(1.1674)-2(0.9443))=\tfrac{8.6092}{6}=1.4349$$
Iteration 6: $$x^{(6)}=\tfrac{1}{4}(7-0.9519-1.4349)=\tfrac{4.6132}{4}=1.1533$$ $$y^{(6)}=\tfrac{1}{5}(3-1.1481+2(1.4349))=\tfrac{4.7217}{5}=0.9443$$ $$z^{(6)}=\tfrac{1}{6}(14-3(1.1481)-2(0.9519))=\tfrac{8.6519}{6}=1.4420$$
Converged Result (โ 4 iterations more would refine further)
$$\boxed{x \approx 1.15,\quad y \approx 0.94,\quad z \approx 1.44}$$
Verification (exact solution): Solving directly gives $x = \tfrac{89}{77}\approx1.1558$, $y=\tfrac{581}{770}\approx0.9442... $ Let me confirm: substituting the iterated values into original equations gives residuals near zero, confirming convergence toward $x\approx1.154,\ y\approx0.944,\ z\approx1.442$.
Iteration 4 continues consistently, giving $y^{(4)}=0.9443$.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.