Topper Copies

Solve the system of equations $$2x_1 - x_2 + 0x_3 = 7$$ $$-x_1 + 2x_2 - x_3 = 1$$ $$0x_1 - x_2 + 2x_3 = 1$$ using the Gauss-Seidel method and its error format . Take the initial approximation as $x^{(0)} = 0$ and perform three iterations.

Aryan Yadav, AIR 31, 2025

$x_1^{(k+1)} = \frac{1}{2}(x_2^{(k)} + 7)$

$x_2^{(k+1)} = \frac{1}{2}(x_1^{(k+1)} + x_3^{(k)} + 1)$

$x_3^{(k+1)} = \frac{1}{2}(x_2^{(k+1)} + 1)$

$x^0 = (0,0,0)$

$\Rightarrow x_1^1 = \frac{1}{2}(7) = 3.5$

$x_2^1 = \frac{1}{2}(3.5 + 0) = [?]\ 2.25$

$x_3^1 = \frac{1}{2}(2.25 + 1) = 1.625$

$\Rightarrow x_1^2 = \frac{1}{2}(7 + 2.25) = 4.625$

$x_2^2 = \frac{1}{2}(4.625 + 1.625 + 1) = 3.625$

$x_3^2 = \frac{1}{2}(3.625 + 1) = 2.3125$

$\Rightarrow x_1^3 = \frac{1}{2}(7 + 3.625) = 5.3125$

$x_2^3 = \frac{1}{2}(5.3125 + 2.3125 + 1) = 4.3125$

$x_3^3 = \frac{1}{2}(1 + 4.3125) = 2.65625$

$x^{(3)} = (5.3125,\ 4.3125,\ 2.65625)$

Actual value $x = (6, 5, 3)$

$|\epsilon| = |\Delta x| = (0.6875,\ 0.6875,\ 0.34375)$