Tutorial 1 NM
Tutorial 1 NM
(a) 2x1 + x2 − x3 = −1, x1 − 2x2 + 3x3 = 9, 3x1 − x2 + 5x3 = 14. (Ans: x1 = 1, x2 = −1, x3 = 2)
(b) 2x1 + 3x2 + x3 = 13, x1 − x2 − 2x3 = −1, 3x1 + x2 + 4x3 = 15. (Ans: (3,2,1))
3. Solve the system by (a) Gauss elimination (b) Gauss-Jordan method. In both the cases, check your answers by
substituting them into the original equations
5x − 2y + z = 4, 7x + y − 5z = 8, 3x + 7y + 4z = 10
(b) 17x1 + 65x2 − 13x3 + 50x4 = 84, 12x1 + 16x2 + 37x3 + 18x4 = 25, 56x1 + 23x2 + 11x3 − 19x4 =
36, 3x1 − 5x2 + 47x3 + 10x4 = 18.
by (i) Jacobi’s method, and (ii) Gauss-Seidel method. In each case, carry your computations to two decimal
places, and proceed up to 10 iterations.
(Ans: (a) x = 1, y = −2, z = 3, (b)x1 = 4.84, x2 = −4.70, x3 = −1.64, x4 = 5.72)
7. Find the solution to three decimals, of the system using Jacobi and Gauss-Seidel methods,
83x + 11y − 4z = 95, 7x + 52y + 13z = 104, 3x + 8y + 29z = 71. (Ans: x = 1.06, y = 1.37, z = 1.96)
8. Decompose the matrix
5 −2 1
A = 7 1 −5
3 7 4
into the form LU and hence solve the system Ax = b where b = [4 8 10]T . Determine also L−1 and U −1 and
hence find A−1 .
(Ans:
1 0 0 5 −2 1
L = 7/5 1 0 , U = 0 19/5 −32/5 , (x = 122/109, y = 284/327, z = 46/327)).
3/5 41/19 1 0 0 327/19
(b) x1 + x2 + 2x3 = 4, 3x1 + x2 − 3x3 = −4, 2x1 − 3x2 − 5x3 = −5 (Ans: (1,-1,2))