Chapter: 3c System of Linear Equations

Slides:



Advertisements
Similar presentations
Numerical Solution of Linear Equations
Advertisements

Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Chapter: 3c System of Linear Equations
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
MATH 685/ CSI 700/ OR 682 Lecture Notes
Linear Systems of Equations
Simultaneous Linear Equations
Chapter: 3b System of 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.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Solution of linear system of equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
Lecture 11 - LU Decomposition
Linear Algebraic Equations
Special Matrices and Gauss-Siedel
Special Matrices and Gauss-Siedel
ECIV 520 Structural Analysis II Review of Matrix Algebra.
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.
Systems of Linear Equations
Major: All Engineering Majors Author(s): Autar Kaw
1 Numerical Integration Dr. Asaf Varol
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
MATH 250 Linear Equations and Matrices
Introduction to Numerical Analysis I MATH/CMPSC 455 PA=LU.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
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 9 Linear Systems of Equations: Gauss Elimination.
1 Solution of Nonlinear Equation Dr. Asaf Varol
Numerical Solutions of ODE
Introduction to computing
Chapter 9 Gauss Elimination The Islamic University of Gaza
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
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.
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
1 Chapter: 3a System of Linear Equations Dr. Asaf Varol.
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
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 Numerical Methods Solution of Systems of Linear Equations.
Numerical Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
Part 3 Chapter 9 Gauss Elimination
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Numerical Integration
Spring Dr. Jehad Al Dallal
Gauss-Siedel Method.
Numerical Analysis Lecture12.
Linear Equations.
Linear Algebra Lecture 15.
CHAPTER 9: GAUSSIAN ELIMINATION.
Chapter 10: Solving Linear Systems of Equations
Autar Kaw Benjamin Rigsby
Part 3 - Chapter 9.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Larger Systems of Linear Equations and Matrices
Matrix Solutions to Linear Systems
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Linear Systems Numerical Methods.
Chapter 4 Systems of Linear Equations; Matrices
Simultaneous Linear Equations Gaussian Elimination with Partial Pivoting
Numerical Analysis Lecture11.
Ax = b Methods for Solution of the System of Equations:
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Chapter: 3c System of Linear Equations Dr. Asaf Varol

Pivoting Some disadvantages of Gaussian elimination are as follows: Since each result follows and depends on the previous step, for large systems the errors introduced due to round off (or chop off) errors lead to loss of significant figures and hence to in accurate results. The error committed in any one step propagates till the final step and it is amplified. This is especially true for ill-conditioned systems. Of course if any of the diagonal elements is zero, the method will not work unless the system is rearranged so to avoid zero elements being on the diagonal. The practice of interchanging rows with each other so that the diagonal elements are the dominant elements is called partial pivoting. The goal here is to put the largest possible coefficient along the diagonal by manipulating the order of the rows. It is also possible to change the order of variables, i.e. instead of letting the unknown vector   {X}T = (x, y, z) we may let it be {X}T = ( y, z, x) When this is done in addition to partial pivoting, this practice is called full pivoting. In this case only the meaning of each variable changes but the system of equations remain the same.

Example E3.4.2 Consider the following set of equations   0.0003 x + 3.0000 y = 2.0001 1.0000 x + 1.0000 y = 1.0000 The exact solution to which is x = 1/3 and y = 2/3 Solving this system by Gaussian elimination with a three significant figure mantissa yields   x = -3.33, y = 0.667 with four significant figure mantissa yields x = 0.0000 and y = 0.6667

Example E3.4.2 (continued) Partial pivoting (switch the rows so that the diagonal elements are largest)   1.0000 x + 1.0000 y = 1.0000 0.0003 x + 3.0000 y = 2.0001 The solution of this set of equations using Gaussian elimination gives y = 0.667 and x = 0.333 with three significant figure arithmetic y = 0.6667 and x = 0.3333 with four significant figure arithmetic

Example E3.4.3 Problem: Apply full pivoting to the following system to achieve a well conditioned matrix.   3x + 5y - 5z = 3 2x - 4y - z = -3 6x - 5y + z = 2

Example E3.4.3 (continued) Solution: First switch the first column with the second column, then switch the first column with the third column to obtain -5z + 3x + 5y = 3 - z + 2x - 4y = -3 z + 6x - 5y = 2 Then switch second row with the third row -z + 2x - 4y = -3  Yielding finally a well conditioned system given by

Gauss – Jordan Elimination This method is very similar to Gaussian elimination method. The only difference is in that the elimination procedure is extended to the upper diagonal elements so that a backward substitution is no longer necessary. The elimination process begins with the augmented matrix, and continued until the original matrix turns into an identity matrix, of course with necessary modifications to the right hand side.   In short our goal is to start with the general augmented system and arrive at the right side after appropriate algebraic manipulations. Start arrive ===> The solution can be written at once as

Pseudo Code for Gauss – Jordan Elimination do for k = 1 to n ! Important note do for j= k+1 to n+1 ! a(i,n+1) represents the akj = akj/akk ! the right hand side end do do for i = 1 to n ; i is not equal to k do for j = k+1 to n+1 aij = aij - (aik)(akj)   cc----- The solution vector is saved in a(i,n+1), i=1, to n

Example E3.4.4

Example E3.4.4 (continued)

Finding the Inverse using Gauss-Jordan Elimination

LU Decomposition

Example E3.4.5

Crout Decomposition

Pseudo Code for LU-Decomposition

Cholesky Decomposition for Symmetric Matrices

Tridiagonal Matrix Algorithm (TDMA), also known as Thomas Algorithm

TDMA Algorithm

Example E3.4.6

Iterative Methods for Solving Linear Systems

Jacobi Iteration

Example E3.5.1

Convergence Criteria for Jacobi Iteration

Gauss - Seidel Iteration

Gauss - Seidel Iteration (II)

Example E3.5.2

Convergence Criteria for Gauss - Seidel Iteration

Relaxation Concept

Example E3.5.4

Example E3.5.4 (continued)

Case Study - The Problem of Falling Objects

Case Study - The Problem of Falling Objects

References Celik, Ismail, B., “Introductory Numerical Methods for Engineering Applications”, Ararat Books & Publishing, LCC., Morgantown, 2001 Fausett, Laurene, V. “Numerical Methods, Algorithms and Applications”, Prentice Hall, 2003 by Pearson Education, Inc., Upper Saddle River, NJ 07458 Rao, Singiresu, S., “Applied Numerical Methods for Engineers and Scientists, 2002 Prentice Hall, Upper Saddle River, NJ 07458 Mathews, John, H.; Fink, Kurtis, D., “Numerical Methods Using MATLAB” Fourth Edition, 2004 Prentice Hall, Upper Saddle River, NJ 07458 Varol, A., “Sayisal Analiz (Numerical Analysis), in Turkish, Course notes, Firat University, 2001 http://mathonweb.com/help/backgd3e.htm