Special Matrices and Gauss-Siedel

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Chapter: 3c System of Linear Equations
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Open Methods Chapter 6 The Islamic University of Gaza
Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
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
Chapter 9 Gauss Elimination The Islamic University of Gaza
Linear Algebraic Equations
Open Methods Chapter 6 The Islamic University of Gaza
LU method 1) factor (decompose) A into L and U 2) given b, determine d 3) using Ux=d and backsubstitution, solve for x Advantage: Once you have L and U,
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 17 Solution of Systems of Equations.
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.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Systems of Non-Linear Equations
1 Systems of Linear Equations (Optional) Special Matrices.
Thomas algorithm to solve tridiagonal matrices
Open Methods Chapter 6 The Islamic University of Gaza
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 10 LU Decomposition and Matrix.
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Chapter 8 Objectives Understanding matrix notation.
Computer Engineering Majors Authors: Autar Kaw
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.
1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
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.
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.
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3- Chapter 12 Iterative Methods.
Linear Systems – Iterative methods
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 7 Roots of Polynomials.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Mechanical Engineering Majors Authors: Autar Kaw
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
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.
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
Special Matrices Banded matrices Solutions to problems that depend on their neighbours eg 1D T i = f(T i-1,T i+1 ) 2D T i,j = f(T i-1,j,T i+1,j,T i,j -1,T.
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Gauss-Seidel Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter 11.
Chapter: 3c System of Linear Equations
Solving Systems of Linear Equations: Iterative Methods
Gauss-Siedel Method.
Numerical Analysis Lecture12.
Iterative Methods Good for sparse matrices Jacobi Iteration
Autar Kaw Benjamin Rigsby
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Matrix Methods Summary
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
ARRAY DIVISION Identity matrix Islamic University of Gaza
Chapter 11 Chapter 11.
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Presentation transcript:

Special Matrices and Gauss-Siedel The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 11 Special Matrices and Gauss-Siedel

Symmetric Matrices Certain matrices have particular structures that can be exploited to develop efficient solution schemes. Symmetric matrix: If aij = aji  [A]nxn is a symmetric matrix

Cholesky Decomposition This method is suitable for only symmetric systems where: 3

Cholesky Decomposition For 3x3 matrix,

Once the matrix L has been calculated, LT can easily be found and the forward , backward substitution steps can be followed to find the solution {X} for any right hand side {B}.

Pseudocode for Cholesky’s LU Decomposition algorithm (cont’d)

Gauss-Siedel 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 x1, the second equation for x2, and the third for x3, …and nth equation for xn. We will limit ourselves to a 3x3 set of equations.

Gauss-Siedel 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 x1 equation to calculate a new x1=b1/a11.

Gauss-Siedel New x1 is substituted to calculate x2 and x3. The procedure is repeated until the convergence criterion is satisfied:

Gauss Seidal- Graphical Interpretation

Jacobi iteration Method An alternative approach, called Jacobi iteration, utilizes a somewhat different technique. This technique includes computing a set of new x’s on the basis of a set of old x’s. Thus, as the new values are generated, they are not immediately used but are retained for the next iteration.

Gauss-Siedel The Gauss-Seidel method The Jacobi iteration method

Convergence Criterion for Gauss-Seidel Method The gauss-siedel method is similar to the technique of fixed-point iteration. The Gauss-Seidel method has two fundamental problems as any iterative method: It is sometimes non-convergent, and If it converges, converges very slowly. Sufficient conditions for convergence of two linear equations, u(x,y) and v(x,y) are:

Convergence Criterion for Gauss-Seidel Method (cont’d) Similarly, in case of two simultaneous equations, the Gauss-Seidel algorithm can be expressed as:

Convergence Criterion for Gauss-Seidel Method (cont’d) 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: That is, the diagonal element must be greater than the sum of off-diagonal element for each row.

Gauss-Siedel Method- Example 1 Guess x1, x2, x3= zero for the first guess Iter. x1 x2 x3 |ea,1|(%) |ea,2| (%) |ea,3| (%) 0 0 0 0 - - - 1 2.6167 -2.7945 7.005610 100 100 100 2 2.990557 -2.499625 7.000291 12.5 11.8 0.076

Improvement of Convergence Using Relaxation Where  is a weighting factor that is assigned a value between [0, 2] If  = 1 the method is unmodified. If  is between 0 and 1 (under relaxation) this is employed to make a non convergent system to converge. If  is between 1 and 2 (over relaxation) this is employed to accelerate the convergence.

Gauss-Siedel Method- Example 2 The system can be re-arranged to the following 6x1-x2-x3 = 3 6x1+9x2+x3=40 -3x1+x2+12x3=50

Gauss-Siedel Method- Example 2 Without Relaxation

Gauss-Siedel Method- Example 2