Question #74014

for the linear system of equations [1 2 - 2,1 1 1, 2 2 1][x y z] =[1 3 5] set up the gauss - jacobi and gauss - seidel iteration schemes in matrix form. also check the convergence of the two schemes.
1

Expert's answer

2018-03-02T10:47:06-0500

Answer on Question #74014 – Math – Quantitative Methods

Question

For the linear system of equations [1 2 - 2, 1 1 1, 2 2 1][x y z] = [1 3 5] set up the gauss - jacobi and gauss - seidel iteration schemes in matrix form. also check the convergence of the two schemes.

Solution

Consider a system of linear equations Au=bAu = b with


A=[122111221],u=[xyz],b=[135]A = \left[ \begin{array}{ccc} 1 & 2 & -2 \\ 1 & 1 & 1 \\ 2 & 2 & 1 \end{array} \right], u = \left[ \begin{array}{c} x \\ y \\ z \end{array} \right], b = \left[ \begin{array}{c} 1 \\ 3 \\ 5 \end{array} \right]


1. The matrix form of Jacobi iterative method is


uk+1=D1(bRuk)u^{k+1} = D^{-1}(b - R u^k)


where u(k)u(k) is the kkth approximation or iteration of uu and u(k+1)u(k+1) is the next or k+1k+1 iteration of uu and A=D+RA = D + R.


A=[122111221]=[100010001]+[022101220]A = \left[ \begin{array}{ccc} 1 & 2 & -2 \\ 1 & 1 & 1 \\ 2 & 2 & 1 \end{array} \right] = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] + \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 1 & 0 & 1 \\ 2 & 2 & 0 \end{array} \right]D=[100010001]=D1,R=[022101220]D = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] = D^{-1}, \qquad R = \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 1 & 0 & 1 \\ 2 & 2 & 0 \end{array} \right]


The convergence condition is: ρ(B)<1\rho(B) < 1 where B=D1RB = D^{-1}R and ρ(B)=max{l1,l2,l3}\rho(B) = \max\{|l_1|, |l_2|, |l_3|\}, 1,2,3}|1, |2, |3\} - eigenvalues of a matrix BB.


l1,2,3=[0.000005+0.000009i0.0000050.000009i0.000011]max{l1,l2,l3}=0.000011<1l_{1,2,3} = \left[ \begin{array}{c} 0.000005 + 0.000009i \\ 0.000005 - 0.000009i \\ -0.000011 \end{array} \right] \to \max\{|l_1|, |l_2|, |l_3|\} = 0.000011 < 1uk+1=D1(bRuk)=[100010001]([135][022101220]uk)=[135][022101220][xkykzk]=[12yk+2zk3xkzk52xk2yk]\begin{array}{l} u^{k+1} = D^{-1}(b - R u^k) = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left( \left[ \begin{array}{c} 1 \\ 3 \\ 5 \end{array} \right] - \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 1 & 0 & 1 \\ 2 & 2 & 0 \end{array} \right] \cdot u^k \right) \\ = \left[ \begin{array}{c} 1 \\ 3 \\ 5 \end{array} \right] - \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 1 & 0 & 1 \\ 2 & 2 & 0 \end{array} \right] \cdot \left[ \begin{array}{c} x^k \\ y^k \\ z^k \end{array} \right] = \left[ \begin{array}{c} 1 - 2y^k + 2z^k \\ 3 - x^k - z^k \\ 5 - 2x^k - 2y^k \end{array} \right] \end{array}


2. The matrix form of gauss - seidel iterative method is


uk+1=L1(bMuk)u^{k+1} = L^{-1}(b - M u^k)


where u(k)u(k) is the kth approximation or iteration of uu and u(k+1)u(k+1) is the next or k+1k+1 iteration of uu and A=L+MA = L + M.


A=[122111221]=[100110221]+[022001000]A = \left[ \begin{array}{ccc} 1 & 2 & -2 \\ 1 & 1 & 1 \\ 2 & 2 & 1 \end{array} \right] = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 2 & 2 & 1 \end{array} \right] + \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{array} \right]L=[100110221],L1=[100110021],M=[022001000]L = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 2 & 2 & 1 \end{array} \right], L^{-1} = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ -1 & 1 & 0 \\ 0 & -2 & 1 \end{array} \right], M = \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{array} \right]


The convergence condition is: ρ(B)<1\rho(B) < 1 where B=L1MB = L^{-1}M and ρ(B)=max{l1,l2,l3}\rho(B) = \max\{|l_1|, |l_2|, |l_3|\}, I1, I2, I3 - eigenvalues of a matrix B.


l1,2,3=[022]max{l1,l2,l3}=2>1l_{1,2,3} = \left[ \begin{array}{c} 0 \\ -2 \\ -2 \end{array} \right] \to \max \bigl\{|l_1|, |l_2|, |l_3|\bigr\} = 2 > 1uk+1=L1(bMuk)=[100110021]([135][022001000]uk)u^{k+1} = L^{-1}(b - M u^k) = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ -1 & 1 & 0 \\ 0 & -2 & 1 \end{array} \right] \left( \left[ \begin{array}{c} 1 \\ 3 \\ 5 \end{array} \right] - \left[ \begin{array}{ccc} 0 & 2 & -2 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{array} \right] \cdot u^k \right)=[100110021][12yk+2zk3zk5]=[12yk+2zk2+2yk3zk2zk1]= \left[ \begin{array}{ccc} 1 & 0 & 0 \\ -1 & 1 & 0 \\ 0 & -2 & 1 \end{array} \right] \left[ \begin{array}{c} 1 - 2y^k + 2z^k \\ 3 - z^k \\ 5 \end{array} \right] = \left[ \begin{array}{c} 1 - 2y^k + 2z^k \\ 2 + 2y^k - 3z^k \\ 2z^k - 1 \end{array} \right]


**Answer:**

1. jacobi scheme: [xk+1yk+1zk+1]=[12yk+2zk3xkzk52xk2yk]\begin{bmatrix} x^{k+1} \\ y^{k+1} \\ z^{k+1} \end{bmatrix} = \begin{bmatrix} 1 - 2y^k + 2z^k \\ 3 - x^k - z^k \\ 5 - 2x^k - 2y^k \end{bmatrix}, the convergence condition is satisfied

2. gauss - seidel scheme: [xk+1yk+1zk+1]=[12yk+2zk2+2yk3zk2zk1]\begin{bmatrix} x^{k+1} \\ y^{k+1} \\ z^{k+1} \end{bmatrix} = \begin{bmatrix} 1 - 2y^k + 2z^k \\ 2 + 2y^k - 3z^k \\ 2z^k - 1 \end{bmatrix}, the convergence condition is not satisfied

**Answer provided by https://www.AssignmentExpert.com**

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS