Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa.

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Chapter: 3c System of Linear Equations
4.5: Linear Approximations and Differentials
Matrices: Inverse Matrix
Scientific Computing Linear Systems – Gaussian Elimination.
Linear Systems of Equations
1.5 Elementary Matrices and a Method for Finding
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Rayan Alsemmeri Amseena Mansoor. LINEAR SYSTEMS Jacobi method is used to solve linear systems of the form Ax=b, where A is the square and invertible.
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Special Matrices and Gauss-Siedel
Goldstein/Schnieder/Lay: Finite Math & Its Applications, 9e 1 of 86 Chapter 2 Matrices.
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.
Special Matrices and Gauss-Siedel
Thomas algorithm to solve tridiagonal matrices
Algorithm for Gauss elimination 1) first eliminate for each eq. j, j=1 to n-1 for all eq.s k greater than j a) multiply eq. j by a kj /a jj b) subtract.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 86 Chapter 2 Matrices.
1 Topic The Substitution Method. 2 Topic The Substitution Method California Standard: 9.0 Students solve a system of two linear equations.
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.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Solving Scalar Linear Systems Iterative approach Lecture 15 MA/CS 471 Fall 2003.
Systems of Linear Equations Let’s say you need to solve the following for x, y, & z: 2x + y – 2z = 10 3x + 2y + 2z = 1 5x + 4y + 3z = 4 Two methods –Gaussian.
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.
9.2 Solving Systems of Linear Equations by Addition BobsMathClass.Com Copyright © 2010 All Rights Reserved. 1 Step 1.Write both equations in the form Ax.
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
8.3 Another Way of Solving a System of Equations Objectives: 1.) Learn to find the inverse matrix 2.) Use the inverse matrix to a system of equations.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Linear Systems Iterative Solutions CSE 541 Roger Crawfis.
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3- Chapter 12 Iterative Methods.
4-6 Solving Absolute Value Equations & Inequalities
Linear Systems – Iterative methods
Chapter 9 Gauss Elimination The Islamic University of Gaza
CS 484. Iterative Methods n Gaussian elimination is considered to be a direct method to solve a system. n An indirect method produces a sequence of values.
State Observer (Estimator)
Warm- Up Solve the following systems using elimination or substitution : 1. x + y = 6 -3x + y = x + 4y = 7 x + 2y = 7.
Part 3 Chapter 12 Iterative Methods
Copyright ©2015 Pearson Education, Inc. All rights reserved.
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
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;
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Numerical Methods Solution of Systems of Linear Equations.
Chapter: 3c System of Linear Equations
Gauss-Siedel Method.
Numerical Analysis Lecture12.
L9Matrix and linear equation
Iterative Methods Good for sparse matrices Jacobi Iteration
Autar Kaw Benjamin Rigsby
Find 4 A + 2 B if {image} and {image} Select the correct answer.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Numerical Analysis Lecture13.
Numerical Analysis Lecture 17.
Numerical Analysis Lecture11.
Linear Algebra Lecture 16.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa

What is an Iterative Method - An alternative method for solving the linear systems problem Ax=b where A is an nxn matrix with n equations and n unknowns. - These methods use a repetitive algorithm to generate sequences of vectors that steadily approach your solution. We will discuss two types of iterative methods:  Jacobi  Gauss-Seidel

Convergence Convergence is when the outputs of your functions stop changing significantly. In other words they converge towards a solution. Iterative methods rely on the functions’ ability to converge towards a solution, if they don’t converge then you cannot find an answer. We can say that a system will converge if it is diagonally dominant. When the absolute value of each diagonal entry is greater than the absolute value of the sum of every component in its row.

The linear systems problem Ax=b Let’s look at the following system From what we’ve learned in class we know how to solve this system by taking rref(A) in an augmented matrix. So lets solve our system using elementary row operations.

As we can see by taking rref(A) the solution to our system is x 1 = 1 x 2 = 2 Lets check our answer: 7(1) – 1(2)= 5 3(1) – 5(2)= -7 ☺ Correct!

So why use iterative methods?

When using elementary row operations by hand it is likely that calculating errors will be made (especially when the matrix is full of fractions) Iterative methods can be quicker if the matrix is simple or has many zero components. You can stop calculating when your answers start to converge, whereas with row operations you must work all the way to rref(A) Round off errors may actually accelerate convergence because you are jumping more quickly towards your solution.

Let’s look at Jacobi’s method From our 2x2 matrix we can see that there are 2 equations with 2 unknowns, and the matrix is diagonally dominant; therefore it will converge. 7x 1 – 1x 2 = 5 3x 1 – 5x 2 = -7 Step 1: solve the first equation for x 1 and solve the second equation for x 2 x 1 = 5 + x 2 x 2 = 7 + 3x Step 2: choose an initial approximation. We choose x 1 = 0x 2 = 0

Step 3: plug in your chosen values and solve for x 1 and x 2. X 1 = 5 + 1(0) = 5/7 X 2 = 7 + 3(0) = 7/5 7 5 Step 4: use new values for x 1 and x 2 and input them into your original functions…. continue this process until it converges to your solution. Here we can see the solution is converging to x 1 =1 x 2 = 2 at around 6 iterations. the same as our answer from rref(A).

Gauss-Seidel Almost identical to Jacobi’s method except it converges faster because we use our new outputs as soon as we can. Let’s see how it works… Step1: from our two equations, solve for x 1 and x 2 7x 1 – 1x 2 = 5 3x 1 – 5x 2 = -7 x 1 = 5 + x 2 x 2 = 7 + 3x 1 7 5

Step 2: choose an initial approximation. we choose Step 3: plug in your initial value and solve for x 1 x 1 = 5 + 1(0) = 5/7 7 Step 4: now use this new value for x 1 to solve for x 2 x 2 = 7 + 3( 5/7 ) = 64/35 ≈ solve again for x 1 x = 5 + 1( 64/35 )≈ x 1 = 0x 2 = 0

Step 5: continue to input your newest values for x 1 and x 2 into the functions until they converge towards a solution. Here we can see that the solution is converging to x 1 = 1 x 2 = 2 at around 4 iterations.

iteration shown graphically David Strong's applet for solving Ax=b using iterative methodsDavid Strong's applet for solving Ax=b using iterative methods

Iterative methods rock!