← 2019 Paper 2
UPSC 2019 Maths Optional Paper 2 Q7b — Step-by-Step Solution
15 marks · Section B
Gauss-Seidel iteration · Numerical Analysis · asked 7× in 13 yrs · Read the full method →
Question
Apply Gauss-Seidel iteration method to solve the following system of equations:
2x+y−2z3x+20y−z2x−3y+20z=17,=−18,=25,
correct to three decimal places.
Technique
Gauss–Seidel: solve each row for its diagonal variable and substitute the most recent values immediately; iterate to 3-dp stability.
Solution
Setup. Solve each equation for its “diagonal” unknown. Equation 2 (20y) and equation 3 (20z) are strongly diagonally dominant; equation 1 supplies x:
x=217−y+2z,y=20−18−3x+z,z=2025−2x+3y.
Gauss–Seidel uses each freshly updated value immediately. Start x=y=z=0.
Step 1 — Iterations
| n | x | y | z |
|---|
| 1 | 8.5000 | −2.1750 | 0.0738 |
| 2 | 9.6613 | −2.3455 | −0.0680 |
| 3 | 9.6048 | −2.3441 | −0.0621 |
| 4 | 9.6100 | −2.3446 | −0.0627 |
| 5 | 9.6096 | −2.3446 | −0.0626 |
| 6 | 9.6096 | −2.3446 | −0.0627 |
Sample of iteration 1: x=217−0+0=8.5; y=20−18−3(8.5)+0=20−43.5=−2.175; z=2025−2(8.5)+3(−2.175)=2025−17−6.525=0.07375.
Successive values agree to three decimals from iteration 5 onward.
Answer
x≈9.610,y≈−2.345,z≈−0.063.