UPSC 2020 Maths Optional Paper 2 Q6b — Step-by-Step Solution
15 marks · Section B
Gauss-Seidel iteration · Numerical Analysis · asked 7× in 13 yrs · Read the full method →
Question
For the solution of the system of equations 4x+y+2z=4, 3x+5y+z=7, x+y+3z=3, set up the Gauss–Seidel iterative scheme and iterate three times starting with the initial vector X(0)=0. Also find the exact solutions and compare with the iterated solutions.
Technique
Gauss–Seidel — update each unknown using the most recent values; three sweeps from the zero vector; compare to the exact solution from direct elimination.
Solution
Step 1 — Diagonal dominance and the iterative scheme
The coefficient matrix
A=431151213
is (weakly) diagonally dominant: ∣4∣≥1+2, ∣5∣>3+1, ∣3∣≥1+1, so Gauss–Seidel converges. Solving each equation for its diagonal variable and using the latest available values: