MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante 2 nd Sem AY 2012-2013 IMSP, UPLB.

Slides:



Advertisements
Similar presentations
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Advertisements

Gauss Elimination.
Scientific Computing Linear Systems – Gaussian Elimination.
Simultaneous Linear Equations
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Linear Systems Pivoting in Gaussian Elim. CSE 541 Roger Crawfis.
Part 3 Chapter 9 Gauss Elimination
Chapter 9 Gauss Elimination The Islamic University of Gaza
Major: All Engineering Majors Author(s): Autar Kaw
Solving Systems of Linear Equations Part Pivot a Matrix 2. Gaussian Elimination Method 3. Infinitely Many Solutions 4. Inconsistent System 5. Geometric.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Part 2.  Review…  Solve the following system by elimination:  x + 2y = 1 5x – 4y = -23  (2)x + (2)2y = 2(1)  2x + 4y = 2 5x – 4y = -23  7x = -21.
Section 8.1 – Systems of Linear Equations
1.2 Gaussian Elimination.
Systems of Linear Equations and Row Echelon Form.
Major: All Engineering Majors Author(s): Autar Kaw
Assignment Solving System of Linear Equations Using MPI Phạm Trần Vũ.
Solving Systems of Linear Equations
ECON 1150 Matrix Operations Special Matrices
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
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.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Matrix Solutions to Linear Systems. 1. Write the augmented matrix for each system of linear equations.
Solving Linear Systems by Elimination Math Tech II Everette Keller.
Yasser F. O. Mohammad Assiut University Egypt. Previously in NM Introduction to NM Solving single equation System of Linear Equations Vectors and Matrices.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Chemical Engineering Majors Author(s): Autar Kaw
 6.2 Pivoting Strategies 1/17 Chapter 6 Direct Methods for Solving Linear Systems -- Pivoting Strategies Example: Solve the linear system using 4-digit.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Matrices and Systems of Equations
Chapter 9 Gauss Elimination The Islamic University of Gaza
1 Section 5.3 Linear Systems of Equations. 2 THREE EQUATIONS WITH THREE VARIABLES Consider the linear system of three equations below with three unknowns.
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.
RECOGNIZING INCONSISTENT LINEAR SYSTEMS. What is an Inconsistent Linear System?  An inconsistent linear system is a system of equations that has no solutions.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
SYSTEMS OF EQUATIONS. SYSTEM OF EQUATIONS -Two or more linear equations involving the same variable.
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
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 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.
Pitfalls of Gauss Elimination ● Division by zero (avoid by pivoting) ● Round-off errors – Important with >100 eqns – Substitute answer into original eqn.
Part 3 Chapter 9 Gauss Elimination
PIVOTING The pivot or pivot element is the element of a matrix, or an array, which is selected first by an algorithm (e.g. Gaussian elimination, simplex.
Gaussian Elimination.
Linear Equations.
Linear Algebra Lecture 4.
Naïve Gauss Elimination Pitfalls
MATH 175: Numerical Analysis II
Major: All Engineering Majors Author(s): Autar Kaw
Elementary Row Operations Gaussian Elimination Method
Matrix Solutions to Linear Systems
Numerical Analysis Lecture14.
4.8 Pivoting Implementing Gaussian Elimination computationally can lead to problems Happens if the element used to create zeros is small relative to other.
Math 175: Numerical Analysis II
MATH 175: NUMERICAL ANALYSIS II
Simultaneous Linear Equations Gaussian Elimination with Partial Pivoting
Naïve Gauss Elimination Pitfalls
Parallelized Analytic Placer
Multiply by 5/40 and sum with 2nd row
Presentation transcript:

MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante 2 nd Sem AY IMSP, UPLB

Numerical Methods for Linear Systems Review (Naïve) Gaussian Elimination Given n equations in n variables. Operation count for elimination step: (multiplications/divisions) Operation count for back substitution:

Numerical Methods for Linear Systems Overall (Naïve) Gaussian Elimination takes Take note: we ignored here lower-order terms and we did not include row exchanges and additions/subtractions. WHAT MORE IF WE ADDED THESE STUFFS???!!! KAPOY NA!

Numerical Methods for Linear Systems Example: Consider 10 equations in 10 unknowns. The approximate number of operations is If our computations have round-off errors, how would our solution be affected by error magnification? Tsk… Tsk…

Numerical Methods for Linear Systems Our goal now is to use methods that will efficiently solve our linear systems with minimized error magnification.

1 st Method: Gaussian Elimination with Partial Pivoting When we are processing column i in Gaussian elimination, the (i,i) position is called the pivot position, and the entry in it is called the pivot entry (or simply the pivot). Let [A|b] be an nx(n+1) augmented matrix.

1 st Method: Gaussian Elimination with Partial Pivoting STEPS: 1.Begin loop (i = 1 to n–1): 2.Find the largest entry (in absolute value) in column i from row i to row n. If the largest value is zero, signal that a unique solution does not exist and stop. 3.If necessary, perform a row interchange to bring the value from step 2 into the pivot position (i,i).

1 st Method: Gaussian Elimination with Partial Pivoting 4. For j = i+1 to n, perform 5. End loop. 6. If the (n,n) entry is zero, signal that a unique solution does not exist and stop. Otherwise, solve for the solution by back substitution.

1 st Method: Gaussian Elimination with Partial Pivoting Example: Original matrix (Matrix 0) Matrix 1

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix –1

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix –2

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 1Matrix –4

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 2Matrix 3

1 st Method: Gaussian Elimination with Partial Pivoting Matrix 3 Final Matrix (Matrix 4)

1 st Method: Gaussian Elimination with Partial Pivoting Final Matrix Back substitution:

1 st Method: Gaussian Elimination with Partial Pivoting a unique solution does not exist

1 st Method: Gaussian Elimination with Partial Pivoting There are other pivoting strategies such as the complete (or maximal) pivoting. But complete pivoting is computationally expensive.