← 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

7x1x2+2x3=11,  2x1+8x2x3=9,  x12x2+9x3=77x_1-x_2+2x_3=11,\;2x_1+8x_2-x_3=9,\;x_1-2x_2+9x_3=7

correct up to 4 significant figures by the Gauss-Seidel iterative method. Take initially guessed solution as x1=x2=x3=0x_1=x_2=x_3=0.

Technique

Gauss-Seidel iteration with diagonal-dominance convergence guarantee.

Solution

Step 1 — Check diagonal dominance (convergence guarantee)

| Row | aii|a_{ii}| | jiaij\sum_{j\ne i}|a_{ij}| | |---|---|---| | 1 | 77 | 1+2=3|-1|+|2|=3 | | 2 | 88 | 2+1=3|2|+|-1|=3 | | 3 | 99 | 1+2=3|1|+|-2|=3 |

Each row is strictly diagonally dominant (aii>jiaij|a_{ii}|>\sum_{j\ne i}|a_{ij}|), so Gauss-Seidel converges from any starting guess. ✓

Step 2 — Iteration formula

Solve each equation for its diagonal variable and substitute the most recently updated values (the Gauss-Seidel rule):

x1(k+1)=17(11+x2(k)2x3(k)),x_1^{(k+1)}=\tfrac{1}{7}\bigl(11+x_2^{(k)}-2x_3^{(k)}\bigr), x2(k+1)=18(92x1(k+1)+x3(k)),x_2^{(k+1)}=\tfrac{1}{8}\bigl(9-2x_1^{(k+1)}+x_3^{(k)}\bigr), x3(k+1)=19(7x1(k+1)+2x2(k+1)).x_3^{(k+1)}=\tfrac{1}{9}\bigl(7-x_1^{(k+1)}+2x_2^{(k+1)}\bigr).

Step 3 — Iterations (starting (0,0,0)(0,0,0))

kkx1(k)x_1^{(k)}x2(k)x_2^{(k)}x3(k)x_3^{(k)}
00.00000.00000.0000
11.57140.73210.7659
21.45720.85640.8062
31.46340.85990.8063
41.46390.85980.8062
51.46390.85980.8062

Sample arithmetic (iteration 1):

Sample arithmetic (iteration 2):

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.  \boxed{\;x_1=1.464,\quad x_2=0.8598,\quad x_3=0.8062.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.