The math optional, made finite.

← 2025 Paper 2

UPSC Maths 2025 Paper 2 Q5b — Solution

10 marks · Section B

Question

Solve the following system of linear equations by Gauss-Seidel method: 10x+2y+z=910x + 2y + z = 9 2x+20y2z=442x + 20y - 2z = -44 2x+3y+10z=22-2x + 3y + 10z = 22

Technique

Apply the Gauss-Seidel iterative method. The coefficient matrix is diagonally dominant, so the iteration converges; rearrange each equation for its diagonal variable and use the most recent values within each sweep.

Solution

Check diagonal dominance.

The system is strictly diagonally dominant, so Gauss-Seidel converges for any starting guess.

Iteration formulas. x(k+1)=110(92y(k)z(k)),x^{(k+1)} = \frac{1}{10}\left(9 - 2y^{(k)} - z^{(k)}\right), y(k+1)=120(442x(k+1)+2z(k)),y^{(k+1)} = \frac{1}{20}\left(-44 - 2x^{(k+1)} + 2z^{(k)}\right), z(k+1)=110(22+2x(k+1)3y(k+1)).z^{(k+1)} = \frac{1}{10}\left(22 + 2x^{(k+1)} - 3y^{(k+1)}\right).

Start with x(0)=y(0)=z(0)=0x^{(0)} = y^{(0)} = z^{(0)} = 0.

iter kkxxyyzz
10.9000000.9000002.290000-2.2900003.0670003.067000
21.0513001.0513001.998430-1.9984303.0097893.009789
30.9987070.9987071.998892-1.9988922.9994092.999409
40.9998370.9998372.000043-2.0000432.9999802.999980
51.0000111.0000112.000003-2.0000033.0000033.000003
61.0000001.0000002.000000-2.0000003.0000003.000000

Sample first sweep: x(1)=110(900)=0.9,x^{(1)} = \tfrac{1}{10}(9 - 0 - 0) = 0.9, y(1)=120(442(0.9)+0)=120(45.8)=2.29,y^{(1)} = \tfrac{1}{20}(-44 - 2(0.9) + 0) = \tfrac{1}{20}(-45.8) = -2.29, z(1)=110(22+2(0.9)3(2.29))=110(30.67)=3.067.z^{(1)} = \tfrac{1}{10}(22 + 2(0.9) - 3(-2.29)) = \tfrac{1}{10}(30.67) = 3.067.

The iterates stabilise to (1,2,3)(1, -2, 3) by the 6th sweep (4-decimal accuracy already by iteration 4–5).

Answer

x=1,y=2,z=3\boxed{\,x = 1,\quad y = -2,\quad z = 3\,}

We've mapped all 13 years of this exam. Get new solutions, tools, and guides as we release them — free.