← 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

2x1x2=7,  x1+2x2x3=1,  x2+2x3=12x_1-x_2=7,\;-x_1+2x_2-x_3=1,\;-x_2+2x_3=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=7+x22,x2=1+x1+x32,x3=1+x22.x_1=\dfrac{7+x_2}{2},\quad x_2=\dfrac{1+x_1+x_3}{2},\quad x_3=\dfrac{1+x_2}{2}.

Initial guess: (x1,x2,x3)=(0,0,0)(x_1,x_2,x_3)=(0,0,0).

Step 2 — Iterations

Iteration 1:

Iteration 2:

Iteration 3:

Step 3 — Summary table

Iterationx1x_1x2x_2x3x_3
00.00000.00000.00000.00000.00000.0000
13.50003.50002.25002.25001.62501.6250
24.62504.62503.62503.62502.31252.3125
35.31255.31254.31254.31252.656252.65625

Answer

  After 3 iterations: (x1,x2,x3)=(5.3125,  4.3125,  2.65625).  \boxed{\;\text{After 3 iterations: }(x_1,x_2,x_3)=(5.3125,\;4.3125,\;2.65625).\;}
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.