Tutorial Sheet 2
Tutorial Sheet 2
Tutorial Sheet-II
(1) Find the first two iterations of the Jacobi method for the following linear system, using
X(0) = 0
4x1 + x2 − x3 = 5
−x1 + 3x2 + x3 = −4
2x1 + 2x2 + 5x3 = 1
Answer: X(2) = (1.633333, −.983333, 0.233333)t .
(2) Find the first two iterations of the Jacobi method for the following linear system, using
X(0) = 0
4x1 + x2 − x3 + x4 = −2
x1 + 4x2 − x3 − x4 = −1
−x1 − x2 + 5x3 + x4 =0
x1 − x2 + x3 + 3x4 =1
Answer: X(2) = (−0.5208333, −0.04166667, −0.2166667, 0.4166667)t .
(3) Find the first two iterations of the Gauss-Seidel method for the following linear system,
using X(0) = 0
1
−2x1 + x2 + x3 = 4
2
1
x1 − 2x2 − x3 = −4
2
x2 + 2x3 = 0
Answer: X(2) = (−1.625, 1.3125, −0.65625)t .
4x1 + x2 + x3 = 4
x1 + 4x2 − 2x3 = 4
3x1 + 2x2 − 4x3 = 6
solve the above system by the LU decomposition method.
Answer: X = [1, 1/2, −1/2]t .
(7) Find the first three iterations obtained by the Power method applied to the following
matrix.
1 −1 0
" #
−2 4 −2 ;
0 −1 2
Use X(0) = (−1, 2, 1)t .
Answer: µ(3) = 5.000000, X(3) = (−0.2578947, 1, −0.2842105)t
(8) Find the first three iterations obtained by the Power method applied to the following
matrix.
4 1 1 1
1 3 −1 1
1 −1 2 0 ;
1 1 0 2
Use X(0) = (1, −2, 0, 3)t .
Answer: µ(3) = 5.038462, X(3) = (1, 0.2213741, 0.3893130, 0.4045802)t .
(11) Find all the eigenvalues and the corresponding eigenvectors of the matrix.
√
√1 3 √4
3 5 3
√
4 3 1
using Jacobi method. √ √ √
Answer: √ Eigen values are 5+
√ 6,√ 5− 6, −3 and the eigenvectors are (1/2)[1, 2, 1]t ,
(1/2)[−1, 2, −1]t , (1/2)[− 2, 0, 2]t .