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.

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Linear Systems of Equations
Simultaneous Linear Equations
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Numerical Algorithms Matrix multiplication
Major: All Engineering Majors Author(s): Autar Kaw
Linear Algebraic Equations
Chapter 4 Roots of Equations
Special Matrices and Gauss-Siedel
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
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Systems of Non-Linear Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Numerical Methods Due to the increasing complexities encountered in the development of modern technology, analytical solutions usually are not available.
Major: All Engineering Majors Author(s): Autar Kaw
Least-Squares Regression
Computer Engineering Majors Authors: Autar Kaw
ITERATIVE TECHNIQUES FOR SOLVING NON-LINEAR SYSTEMS (AND LINEAR SYSTEMS)
9/7/ Gauss-Siedel Method Chemical Engineering Majors Authors: Autar Kaw Transforming.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Linear.
Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa.
Elliptic Partial Differential Equations - Introduction
Newton's Method for Functions of Several Variables Joe Castle & Megan Grywalski.
4.6 Matrix Equations and Systems of Linear Equations In this section, you will study matrix equations and how to use them to solve systems of linear equations.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 111.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 11.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
Chemical Engineering Majors Author(s): Autar Kaw
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3- Chapter 12 Iterative Methods.
Numerical Methods.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Linear Systems – Iterative methods
Gaussian Elimination Industrial Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Gaussian Elimination Mechanical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Mechanical Engineering Majors Authors: Autar Kaw
Solving Scalar Linear Systems A Little Theory For Jacobi Iteration
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
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.
Gaussian Elimination.
بسم الله الرحمن الرحيم.
Gauss-Siedel Method.
Numerical Analysis Lecture12.
Iterative Methods Good for sparse matrices Jacobi Iteration
Autar Kaw Benjamin Rigsby
Part 3 - Chapter 9.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Numerical Computation and Optimization
Simultaneous Linear Equations
Simultaneous Linear Equations Gaussian Elimination with Partial Pivoting
Chapter 11 Chapter 11.
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Presentation transcript:

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 for convergence! Each iteration takes O(n 2 ) time! Iterative methods provide an alternative to the elimination methods.

Gauss-Seidel Iterative or approximate methods provide an alternative to the elimination methods. The Gauss-Seidel method is the most commonly used iterative method. The system [A]{X}={B} is reshaped by solving the first equation for x 1, the second equation for x 2, and the third for x 3, …and n th equation for x n. For conciseness, we will limit ourselves to a 3x3 set of equations.

4 **here Gauss-Seidel The Gauss-Seidel method is a commonly used iterative method. It is same as Jacobi technique except with one important difference: A newly computed x value (say x k ) is substituted in the subsequent equations (equations k+1, k+2, …, n) in the same iteration. Example: Consider the 3x3 system below: First, choose initial guesses for the x’s. A simple way to obtain initial guesses is to assume that they are all zero. Compute new x 1 using the previous iteration values. New x 1 is substituted in the equations to calculate x 2 and x 3 The process is repeated for x 2, x 3, …

Now we can start the solution process by choosing guesses for the x’s. A simple way to obtain initial guesses is to assume that they are zero. These zeros can be substituted into x 1 equation to calculate a new x 1 =b 1 /a 11.

New x 1 is substituted to calculate x 2 and x 3. The procedure is repeated until the convergence criterion is satisfied: For all i, where j and j-1 are the present and previous iterations.

Fig. 11.4

Convergence Criterion for Gauss- Seidel Method The Gauss-Seidel method has two fundamental problems as any iterative method: –It is sometimes nonconvergent, and –If it converges, converges very slowly. Recalling that sufficient conditions for convergence of two linear equations, u(x,y) and v(x,y) are

Similarly, in case of two simultaneous equations, the Gauss-Seidel algorithm can be expressed as

Chapter 11 Substitution into convergence criterion of two linear equations yield: In other words, the absolute values of the slopes must be less than unity for convergence:

edu Gauss-Seidel Method: Example 1 The upward velocity of a rocket is given at three different times Time,Velocity The velocity data is approximated by a polynomial as: Table 1 Velocity vs. Time data.

Gauss-Seidel Method: Example 1 Using a Matrix template of the form The system of equations becomes Initial Guess: Assume an initial guess of

Gauss-Seidel Method: Example 1 Rewriting each equation

Gauss-Seidel Method: Example 1 Applying the initial guess and solving for a i Initial Guess When solving for a 2, how many of the initial guess values were used?

Gauss-Seidel Method: Example 1 Finding the absolute relative approximate error At the end of the first iteration The maximum absolute relative approximate error is %

Gauss-Seidel Method: Example 1 Iteration #2 Using from iteration #1 the values of a i are found:

Gauss-Seidel Method: Example 1 Finding the absolute relative approximate error At the end of the second iteration The maximum absolute relative approximate error is %

Iteration a1a1 a2a2 a3a − − − − − − − − − −14440 −60072 − Gauss-Seidel Method: Example 1 Repeating more iterations, the following values are obtained Notice – The relative errors are not decreasing at any significant rate Also, the solution is not converging to the true solution of

Gauss-Seidel Method: Example 2 Given the system of equations With an initial guess of The coefficient matrix is: Will the solution converge using the Gauss-Siedel method?

Gauss-Seidel Method: Example 2 Rewriting each equationWith an initial guess of

Gauss-Seidel Method: Example 2 The absolute relative approximate error The maximum absolute relative error after the first iteration is 100%

Gauss-Seidel Method: Example 2 After Iteration #1 Substituting the x values into the equations After Iteration #2

Gauss-Seidel Method: Example 2 Iteration #2 absolute relative approximate error The maximum absolute relative error after the first iteration is % This is much larger than the maximum absolute relative error obtained in iteration #1. Is this a problem?

Iterationa1a1 a2a2 a3a Gauss-Seidel Method: Example 2 Repeating more iterations, the following values are obtained The solution obtained is close to the exact solution of.

Gauss-Seidel Method: Example 3 Given the system of equations With an initial guess of Rewriting the equations

Iterationa1a1 A2A2 a3a − − − ×10 5 −2.0579× − − × − − ×10 5 −4.8653× Gauss-Seidel Method: Example 3 Conducting six iterations, the following values are obtained The values are not converging. Does this mean that the Gauss-Seidel method cannot be used?

Gauss-Seidel Method Observe the set of equations

29 MATRIX INVERSE A. A -1 = I Solve in n=3 major steps Solve each one using A=L. U method  e.g.