Linear Systems of Equations

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...
Solving Linear Systems (Numerical Recipes, Chap 2)
1.5 Elementary Matrices and a Method for Finding
Numerical Analysis – Linear Equations(I) Hanyang University Jong-Il Park.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
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.
Iterative Methods and QR Factorization Lecture 5 Alessandra Nardi Thanks to Prof. Jacob White, Suvranu De, Deepak Ramaswamy, Michal Rewienski, and Karen.
Chapter 9.1 = LU Decomposition MATH 264 Linear Algebra.
Solution of linear system of equations
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 3 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Special Matrices and Gauss-Siedel
Iterative methods for solving matrix equations 1. Jacobi 2. Gauss-Seidel 3. Successive overrelaxation (SOR) Idea behind iterative methods: Convert Ax=b.
Special Matrices and Gauss-Siedel
Math for CSLecture 31 LU Decomposition Pivoting Diagonalization Gram-Shcmidt Orthogonalization Lecture 3.
Thomas algorithm to solve tridiagonal matrices
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Math for CSLecture 31 LU Decomposition Pivoting Diagonalization Gram-Shcmidt Orthogonalization Lecture 3.
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Math for CSTutorial 2-31 Solution of Systems of Linear Equations Gaussian Elimination LU Decomposition Gram-Schmidt vector orthogonalization Tutorial 2-3.
Table of Contents Solving Systems of Linear Equations - Gaussian Elimination The method of solving a linear system of equations by Gaussian Elimination.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Chapter 8 Objectives Understanding matrix notation.
Scientific Computing Linear Systems – LU Factorization.
Linear Algebra and Complexity Chris Dickson CAS Advanced Topics in Combinatorial Optimization McMaster University, January 23, 2006.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Iterative Methods for Solving Linear Systems Leo Magallon & Morgan Ulloa.
MATH 250 Linear Equations and Matrices
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 11.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
 6.2 Pivoting Strategies 1/17 Chapter 6 Direct Methods for Solving Linear Systems -- Pivoting Strategies Example: Solve the linear system using 4-digit.
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
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
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;
Implicit approximation can be solved using: Point iteration (G/S, SOR) Direct (matrix) solution Combination of matrix soln and iteration (used in MODFLOW)
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
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.
REVIEW Linear Combinations Given vectors and given scalars
Multivariable Linear Systems and Row Operations
Iterative Solution Methods
Chapter: 3c System of Linear Equations
ECE 3301 General Electrical Engineering
Spring Dr. Jehad Al Dallal
Numerical Analysis Lecture12.
Linear Equations.
Linear Algebra Lecture 15.
Chapter 6 Direct Methods for Solving Linear Systems
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Review of Matrix Algebra
Numerical Analysis Lecture14.
Numerical Analysis Lecture10.
Linear Systems Numerical Methods.
Chapter 11 Chapter 11.
Numerical Analysis Lecture11.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Linear Systems of Equations

Direct Methods for Solving Linear Systems of Equations

Direct Methods for Solving Linear Systems of Equations The linear system for unknown are known for Operations to simplify the linear system ( is constant):

Direct Methods Example: The system is now in triangular form and can be solved by a backward substitution process

Definitions An nxm (n by m) matrix: The 1xn matrix (an n-dimensional row vector): The nx1 matrix (an n-dimensional column vector):

Definitions then is the augmented matrix.

Gaussian Elimination with Backward Substitution The general Gaussian elimination applied to the linear system First form the augmented matrix with

Gaussian Elimination with Backward Substitution The procedure provided , yields the resulting matrix of the form which is triangular.

Gaussian Elimination (cont.) Since the new linear system is triangular, backward substitution can be performed when

About Gaussian Elimination and Cramer’s Rule Gaussian eliminations requires arithmetic operations. Cramer’s rule requires about arithmetic operations. A simple problem with grid 11 x 11 involves n=81 unknowns, which needs operations. What time is required to solve this problem by Cramer’s rule using 100 megaflops machine? years !

More Definitions A diagonal matrix is a square matrix with whenever The identity matrix of order n, is a diagonal matrix with entries An upper-triangular nxn matrix has the entries: A lower-triangular nxn matrix has the entries:

Examples Do you see that ? Do you see that A can be decomposed as: ?

Matrix Form for the Linear System can be viewed as the matrix equation

LU decomposition The factorization is particularly useful when it has the form because we can rewrite the matrix equation Solving by forward substitution for y and then for x by backward substitution, we solve the system.

Matrix Factorization: LU decomposition Theorem: If Gaussian elimination can be performed without row interchanges, then the decomposition A=LU is possible, where

Crout Factorization for Tridiagonal Systems

Tridiagonal Linear System

Tridiagonal Linear System: Thomas Algorithm

Iterative Methods for Solving Linear Systems of Equations

Iterative Methods An iterative technique to solve Ax=b starts with an initial approximation and generates a sequence First we convert the system Ax=b into an equivalent form And generate the sequence of approximation by This procedure is similar to the fixed point method. The stopping criterion:

Iterative Methods (Example) We rewrite the system in the x=Tx+c form

Iterative Methods (Example) – cont. and start iterations with Continuing the iterations, the results are in the Table:

The Jacobi Iterative Method The method of the Example is called the Jacobi iterative method

Algorithm: Jacobi Iterative Method

The Jacobi Method: x=Tx+c Form

The Jacobi Method: x=Tx+c Form (cont) and the equation Ax=b can be transformed into Finally

The Gauss-Seidel Iterative Method The idea of GS is to compute using most recently calculated values. In our example: Starting iterations with , we obtain

The Gauss-Seidel Iterative Method Gauss-Seidel in form (the Fixed Point) Finally

Algorithm: Gauss-Seidel Iterative Method

The Successive Over-Relaxation Method (SOR) The SOR is devised by applying extrapolation to the GS metod. The extrapolation tales the form of a weighted average between the previous iterate and the computed GS iterate successively for each component where denotes a GS iterate and ω is the extrapolation factor. The idea is to choose a value of ω that will accelerate the rate of convergence. under-relaxation over-relaxation

SOR: Example Solution: x=(3, 4, -5)