1 / 35

Lecture13

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.

Download Presentation

Lecture13

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Numerical Analysis Lecture13

  2. Chapter 3

  3. Solution of Linear System of Equationsand Matrix Inversion

  4. IntroductionGaussian Elimination • Gauss-Jordon EliminationCrout’s Reduction • Jacobi’s Gauss- Seidal Iteration • RelaxationMatrix Inversion

  5. Gauss–Seidel Iteration Method

  6. It is another well-known iterative method for solving a system of linear equations of the form

  7. In Jacobi’s method, the (r + 1)th approximation to the above system is given by Equations

  8. Here we can observe that no element of replaces entirely for the next cycle of computation.

  9. In Gauss-Seidel method, the corresponding elements of replaces those of as soon as they become available.

  10. Hence, it is called the method of successive displacements. For illustration consider

  11. In Gauss-Seidel iteration, the (r + 1)th approximation or iteration is computed from:

  12. Thus, the general procedure can be written in the following compact form for all and

  13. 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

  14. 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 :

  15. Relaxation Method

  16. This is also an iterative method and is due to Southwell. • To explain the details, consider again the system of equations

  17. 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

  18. 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.

  19. 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.

  20. Now, if at any iteration, is the largest residual in magnitude, then we give an increment to being the coefficient ofxi

  21. In other words, we change to • to relax • that is to reduce to zero.

  22. Example • Solve the system of equations • by the relaxation method, starting with the vector (0, 0, 0).

  23. 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.

  24. Thus, we get • after interchanging the 2nd and 3rd equations.

  25. 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.

  26. Thus, we introduce a change, dx3in x3 which is obtained from the formula

  27. 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.

  28. 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.

  29. Hence, the numerical solution is given by • The exact solution is

  30. Numerical Analysis Lecture13

More Related