← 2014 Paper 2
UPSC 2014 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 equations
2x1−x2=7,−x1+2x2−x3=1,−x2+2x3=1
using Gauss–Seidel iteration method (Perform three iterations).
Technique
Standard Gauss-Seidel iteration with most-recent-update rule (vs. Jacobi).
Solution
Step 1 — Rearrange for diagonal variables
x1=27+x2,x2=21+x1+x3,x3=21+x2.
Initial guess: (x1,x2,x3)=(0,0,0).
Step 2 — Iterations
Iteration 1:
- x1=(7+0)/2=3.5000
- x2=(1+3.5+0)/2=2.2500
- x3=(1+2.25)/2=1.6250
Iteration 2:
- x1=(7+2.25)/2=4.6250
- x2=(1+4.625+1.625)/2=3.6250
- x3=(1+3.625)/2=2.3125
Iteration 3:
- x1=(7+3.625)/2=5.3125
- x2=(1+5.3125+2.3125)/2=4.3125
- x3=(1+4.3125)/2=2.65625
Step 3 — Summary table
| Iteration | x1 | x2 | x3 |
|---|
| 0 | 0.0000 | 0.0000 | 0.0000 |
| 1 | 3.5000 | 2.2500 | 1.6250 |
| 2 | 4.6250 | 3.6250 | 2.3125 |
| 3 | 5.3125 | 4.3125 | 2.65625 |
Answer
After 3 iterations: (x1,x2,x3)=(5.3125,4.3125,2.65625).