Numerical Analysis Lecture13.

Slides:



Advertisements
Similar presentations
Elementary Linear Algebra
Advertisements

Numerical Solution of Linear Equations
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Chapter: 3c System of Linear Equations
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Error Measurement and Iterative Methods
Solution of linear system of equations
1 Systems of Linear Equations Iterative Methods. 2 B. Iterative Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
1 Systems of Linear Equations Iterative Methods. 2 B. Direct Methods 1.Jacobi method and Gauss Seidel 2.Relaxation method for iterative methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 20 Solution of Linear System of Equations - Iterative Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
Special Matrices and Gauss-Siedel
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Numerical Methods Due to the increasing complexities encountered in the development of modern technology, analytical solutions usually are not available.
Computer Engineering Majors Authors: Autar Kaw
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
MATH 250 Linear Equations and Matrices
Lecture 8 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
4.3 Gauss Jordan Elimination Any linear system must have exactly one solution, no solution, or an infinite number of solutions. Just as in the 2X2 case,
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Elliptic PDEs and the Finite Difference Method
Linear Systems – Iterative methods
Part 3 Chapter 12 Iterative Methods
Solving Scalar Linear Systems A Little Theory For Jacobi Iteration
Linear Systems Numerical Methods. 2 Jacobi Iterative Method Choose an initial guess (i.e. all zeros) and Iterate until the equality is satisfied. No guarantee.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Numerical Methods. Introduction Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations.
1 Gauss-Seidel Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter 11.
Numerical Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
College Algebra Chapter 6 Matrices and Determinants and Applications
Chapter: 3c System of Linear Equations
Linear Equations Gauss & Cramer’s
Spring Dr. Jehad Al Dallal
5 Systems of Linear Equations and Matrices
Numerical Analysis Lecture 25.
Solving Systems of Linear Equations: Iterative Methods
بسم الله الرحمن الرحيم.
Gauss-Siedel Method.
Numerical Analysis Lecture12.
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Linear Algebra Lecture 15.
Iterative Methods Good for sparse matrices Jacobi Iteration
Chapter 10: Solving Linear Systems of Equations
Chapter 1 Systems of Linear Equations and Matrices
Autar Kaw Benjamin Rigsby
Numerical Analysis Lecture 45.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Numerical Analysis Lecture 16.
Modern Control Systems (MCS)
Numerical Analysis Lecture 23.
Elementary Row Operations Gaussian Elimination Method
Review of Matrix Algebra
Numerical Analysis Lecture14.
Numerical Analysis Lecture10.
Linear Systems Numerical Methods.
Numerical Analysis Lecture 17.
Numerical Analysis Lecture 38.
topic4: Implicit method, Stability, ADI method
topic4: Implicit method, Stability, ADI method
Matrices are identified by their size.
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Numerical Analysis Lecture 24.
Ax = b Methods for Solution of the System of Equations:
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

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

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 Here we can observe that no element of replaces entirely for the next cycle of computation.

In Gauss-Seidel method, the corresponding elements of 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 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 :

Relaxation Method

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 of xi

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 more error 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.

Iteration Residuals Maximum Difference Variables number R1 R2 R3 x1 x2 x3 11 10 -15 1.875 1 9.125 8.125 1.5288 2 0.0478 6.5962 -3.0576 -0.9423

Iteration Residuals Maximum Difference Variables number R1 R2 R3 x1 x2 x3 11 10 -15 15/8 =1.875 1 9.125 8.125 -9.125/(-6) =1.5288 1.875 2 0.0478 6.5962 -3.0576 -6.5962/7 =-0.9423 1.5288 3 -2.8747 0.0001 -2.1153 2.8747/(-6) =-0.4791 1.0497 -0.9423 4 -0.0031 0.4792 -1.1571 1.1571/8 =0.1446

Iteration Residuals Maximum Difference Variables number R1 R2 R3 x1 x2 x3 5 -0.1447 0.3346 0.0003 -.3346/7 =-0.0478 1.0497 -0.9423 2.0196 6 0.2881 0.0000 0.0475 -.2881/(-6) =0.0480 -0.9901 7 -0.0001 0.048 0.1435 =-0.0179 1.0017 8 0.0178 0.0659 - 2.0017

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