← 2023 Paper 2
UPSC 2023 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
Solve the system of linear equations
7x1−x2+2x3=11,2x1+8x2−x3=9,x1−2x2+9x3=7
correct up to 4 significant figures by the Gauss-Seidel iterative method. Take initially guessed solution as x1=x2=x3=0.
Technique
Gauss-Seidel iteration with diagonal-dominance convergence guarantee.
Solution
Step 1 — Check diagonal dominance (convergence guarantee)
| Row | ∣aii∣ | ∑j=i∣aij∣ |
|---|---|---|
| 1 | 7 | ∣−1∣+∣2∣=3 |
| 2 | 8 | ∣2∣+∣−1∣=3 |
| 3 | 9 | ∣1∣+∣−2∣=3 |
Each row is strictly diagonally dominant (∣aii∣>∑j=i∣aij∣), so Gauss-Seidel converges from any starting guess. ✓
Solve each equation for its diagonal variable and substitute the most recently updated values (the Gauss-Seidel rule):
x1(k+1)=71(11+x2(k)−2x3(k)),
x2(k+1)=81(9−2x1(k+1)+x3(k)),
x3(k+1)=91(7−x1(k+1)+2x2(k+1)).
Step 3 — Iterations (starting (0,0,0))
| k | x1(k) | x2(k) | x3(k) |
|---|
| 0 | 0.0000 | 0.0000 | 0.0000 |
| 1 | 1.5714 | 0.7321 | 0.7659 |
| 2 | 1.4572 | 0.8564 | 0.8062 |
| 3 | 1.4634 | 0.8599 | 0.8063 |
| 4 | 1.4639 | 0.8598 | 0.8062 |
| 5 | 1.4639 | 0.8598 | 0.8062 |
Sample arithmetic (iteration 1):
- x1(1)=(11+0−0)/7=1.5714.
- x2(1)=(9−2(1.5714)+0)/8=5.8572/8=0.7321.
- x3(1)=(7−1.5714+2(0.7321))/9=6.8928/9=0.7659.
Sample arithmetic (iteration 2):
- x1(2)=(11+0.7321−2(0.7659))/7=10.2003/7=1.4572.
- x2(2)=(9−2(1.4572)+0.7659)/8=6.8515/8=0.8564.
- x3(2)=(7−1.4572+2(0.8564))/9=7.2556/9=0.8062.
Step 4 — Stopping criterion and answer
Between iterations 4 and 5 all three components agree to four significant figures, so terminate.
Answer
x1=1.464,x2=0.8598,x3=0.8062.