Dr. Jie Zou PHY 33201 Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (III) Note: Besides the main textbook, also see Ref: Applied.

Slides:



Advertisements
Similar presentations
Example 1 Matrix Solution of Linear Systems Chapter 7.2 Use matrix row operations to solve the system of equations  2009 PBLPathways.
Advertisements

4/22/ LU Decomposition Electrical Engineering Majors Authors: Autar Kaw Transforming.
4/26/ LU Decomposition Civil Engineering Majors Authors: Autar Kaw Transforming.
Scientific Computing Linear Systems – Gaussian Elimination.
Major: All Engineering Majors Authors: Autar Kaw
Chapter: 3b System of 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.
Numerical Algorithms Matrix multiplication
Part 3 Chapter 9 Gauss Elimination
Chapter 9 Gauss Elimination The Islamic University of Gaza
Major: All Engineering Majors Author(s): Autar Kaw
Linear Algebraic Equations
Numerical Integration Lecture (II)1
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (I) 1 1 Besides the main textbook, also see Ref.: “Applied.
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (III)
Solution of Simultaneous Linear Algebraic Equations: Lecture (I)
Curve Fitting and Interpolation: Lecture (IV)
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Dr. Jie Zou PHY Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (II) Note: Besides the main textbook, also see Ref: Applied.
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
Numerical Integration Lecture (I)1
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.
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Numerical Differentiation:1* Lecture (II)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Linear Algebraic Equations ~ Gauss Elimination Chapter.
Major: All Engineering Majors Author(s): Autar Kaw
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Scientific Computing Linear Systems – LU Factorization.
1.1.2 INTRODUCTION TO SYSTEMS OF LINEAR EQUATIONS Chapter 1: Systems of Linear Equations and Matrices SWBAT: Redefine algebraic operations as Elementary.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Curve Fitting and Interpolation: Lecture (I)
Matrix Solutions to Linear Systems. 1. Write the augmented matrix for each system of linear equations.
MECN 3500 Inter - Bayamon Lecture 7 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Chemical Engineering Majors Author(s): Autar Kaw
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
MECN 3500 Inter - Bayamon Lecture 8 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
Chapter 9 Gauss Elimination The Islamic University of Gaza
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/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
Part 3 Chapter 9 Gauss Elimination PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
1 Numerical Methods Solution of Systems of Linear Equations.
Part 3 Chapter 9 Gauss Elimination
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Applied Numerical Methods
Chapter 6 Direct Methods for Solving Linear Systems
Solving Linear Systems Algebraically
Chemical Engineering Majors Authors: Autar Kaw
Major: All Engineering Majors Author(s): Autar Kaw
Numerical Computation and Optimization
Matrix Solutions to Linear Systems
Review of Matrix Algebra
Numerical Computation and Optimization
Applied Numerical Methods
Numerical Analysis Lecture10.
ARRAY DIVISION Identity matrix Islamic University of Gaza
Simultaneous Linear Equations
Major: All Engineering Majors Authors: Autar Kaw
Example 2B: Solving Linear Systems by Elimination
Presentation transcript:

Dr. Jie Zou PHY Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (III) Note: Besides the main textbook, also see Ref: Applied Numerical Methods with MATLAB for Engineers and Scientists, by S. Chapra, Ch. 9.

Dr. Jie Zou PHY Naïve Gauss Elimination: The general algorithm Problem: Solve a general set of n equations: a 11 x 1 +a 12 x 2 + +a 1n x n =b 1 (1) a 21 x 1 +a 22 x 2 + +a 2n x n =b 2 (2) a n1 x 1 +a n2 x 2 + +a nn x n =b n (n) (I) Forward Elimination of Unknowns Step 1: Eliminate x 1 from Eq. (2) through Eq. (n). Eq. (2) - (a 21 /a 11 )  Eq. (1) Eq. (n) – (a n1 /a 11 )  Eq. (1) The modified system: a 11 x 1 +a 12 x 2 + +a 1n x n =b 1 (1’) a’ 22 x 2 + +a’ 2n x n =b’ 2 (2’) a’ n2 x 2 + +a’ nn x n =b’ n (n’) Repeated

Dr. Jie Zou PHY Step 2: Eliminate x 2 from Eq. (3’) through Eq. (n’). Eq. (3’) - (a’ 32 /a’ 22 )  Eq. (2’) Eq. (n’) – (a’ n2 /a’ 22 )  Eq. (2’) The modified system: a 11 x 1 +a 12 x 2 + a 13 x 3 + +a 1n x n =b 1 (1”) a’ 22 x 2 +a’ 23 x 3 + +a’ 2n x n =b’ 2 (2”) a” 33 x 3 + +a” 3n x n =b” 3 (3”) a” n3 x 3 + +a” nn x n =b” n (n’) Naïve Gauss Elimination: The general algorithm (cont.) Repeated Repeat the procedure … Step n-1: Eliminate x n-1 from the nth equation. Eq. (n) – (a nn-1 /a n-1n-1 )  Eq. (n-1) The modified system: a 11 x 1 +a 12 x 2 + a 13 x 3 + +a 1n x n =b 1 a’ 22 x 2 +a’ 23 x 3 + +a’ 2n x n =b’ 2 a” 33 x 3 + +a” 3n x n =b” 3 a (n-1) nn x n =b (n-1) n

Dr. Jie Zou PHY Naïve Gauss Elimination: The general algorithm (cont.) (II) Back Substitution Step 1: Solve x n from the last equation a (n-1) nn x n =b (n-1) n. x n = b n (n-1) /a nn (n-1) Note: the superscript (n-1) indicates that the elements have been modified (n-1) times. Step 2: Back-substitute the result into the (n-1)th equation to solve for x n-1 ; repeat for x n-2, …, x 1. For example: After x n and x n-1 have been solved, x n-2 is given by x n-2 =(b n-2 -a n-2 n-1 x n-1 -a n-2 n x n )/a n-2 n-2, or x n-2 =(b n-2 -[a n-2 n-1 a n-2 n ]*[x n-1 x n ]’)/a n-2 n-2 (*) Note: (*) will be useful when implementing back substitution on a computer.

Dr. Jie Zou PHY Summary Two phases of Gauss Elimination: Forward elimination Back substitution The end result: An upper triangular system. Your turn: How to implement Gauss elimination on a computer? Augmented Matrix

Dr. Jie Zou PHY Flowchart: Forward elimination Start j=1; j is the index for the unknown, x j. j  n-1 Start i=j+1 i  n T T Eliminate x j from Row i of Aug Initilization: Define the original [A] and b; return the size of matrix A: [m,n]=size(A) ; define the augmented matrix: Aug=[A b] ; set nb=n+1. i=i+1 Inner Loop End inner loop j=j+1 F F End outer loop Outer Loop

Dr. Jie Zou PHY An Exercise Example 9.3 (Ref. by Chapra): Use Gauss elimination to solve 3x 1 – 0.1x 2 – 0.2x 3 = x 1 + 7x 2 – 0.3x 3 = x 1 – 0.2x x 3 = 71.4 (a) By hand. Show detailed work step by step. (b) Write an M-file MyGaussElimination.m. A copy of the code will be handed out later.