350 likes | 495 Views
Numerical Analysis. Lecture13. Chapter 3. Solution of Linear System of Equations and Matrix Inversion. Introduction Gaussian Elimination Gauss-Jordon Elimination Crout’s Reduction Jacobi’s Gauss- Seidal Iteration Relaxation Matrix Inversion. Gauss–Seidel Iteration Method.
E N D
Numerical Analysis Lecture13
IntroductionGaussian Elimination • Gauss-Jordon EliminationCrout’s Reduction • Jacobi’s Gauss- Seidal Iteration • RelaxationMatrix Inversion
It is another well-known iterative method for solving a system of linear equations of the form
In Jacobi’s method, the (r + 1)th approximation to the above system is given by Equations
Here we can observe that no element of replaces entirely for the next cycle of computation.
In Gauss-Seidel method, the corresponding elements of replaces those of as soon as they become available.
Hence, it is called the method of successive displacements. For illustration consider
In Gauss-Seidel iteration, the (r + 1)th approximation or iteration is computed from:
Thus, the general procedure can be written in the following compact form for all and
To describe system in the first equation, we substitute the r-th approximation into the right-hand side and denote the result by In the second equation, we substitute and denote the result by
In the third equation, we substitute and denote the result by • and so on. This process is continued till we arrive at the desired result. For illustration, we consider the following example :
This is also an iterative method and is due to Southwell. • To explain the details, consider again the system of equations
Let be the solution vector obtained iteratively after p-th iteration. If denotes the residual of the i-th equation of system given above , that is of
defined by we can improve the solution vector successively by reducing the largest residual to zero at that iteration. This is the basic idea of relaxation method.
To achieve the fast convergence of the procedure, we take all terms to one side and then reorder the equations so that the largest negative coefficients in the equations appear on the diagonal.
Now, if at any iteration, is the largest residual in magnitude, then we give an increment to being the coefficient ofxi
In other words, we change to • to relax • that is to reduce to zero.
Example • Solve the system of equations • by the relaxation method, starting with the vector (0, 0, 0).
Solution • At first, we transfer all the terms to the right-hand side and reorder the equations, so that the largest coefficients in the equations appear on the diagonal.
Thus, we get • after interchanging the 2nd and 3rd equations.
Starting with the initial solution vector (0, 0, 0), that is taking • we find the residuals • of which the largest residual in magnitude is R3, i.e. the 3rd equation has moreerror and needs immediate attention for improvement.
Thus, we introduce a change, dx3in x3 which is obtained from the formula
Similarly, we find the new residuals of large magnitude and relax it to zero, and so on. • We shall continue this process, until all the residuals are zero or very small.
At this stage, we observe that all the residuals R1, R2 and R3 are small enough and therefore we may take the corresponding values of xi at this iteration as the solution.
Hence, the numerical solution is given by • The exact solution is
Numerical Analysis Lecture13