Chapter: 3b System of Linear Equations

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
§ 3.4 Matrix Solutions to Linear Systems.
4.3 Matrix Approach to Solving Linear Systems 1 Linear systems were solved using substitution and elimination in the two previous section. This section.
Chapter: 3c System of Linear Equations
Chapter 2 Simultaneous Linear Equations
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 4-1 Systems of Equations and Inequalities Chapter 4.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
1.2 Row Reduction and Echelon Forms
Linear Equations in Linear Algebra
Solving Systems of Linear Equations Part Pivot a Matrix 2. Gaussian Elimination Method 3. Infinitely Many Solutions 4. Inconsistent System 5. Geometric.
Math for CSLecture 21 Solution of Linear Systems of Equations Consistency Rank Geometric Interpretation Gaussian Elimination Lecture 2. Contents.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 86 Chapter 2 Matrices.
Chapter 1 Section 1.2 Echelon Form and Gauss-Jordan Elimination.
Solving System of Linear Equations. 1. Diagonal Form of a System of Equations 2. Elementary Row Operations 3. Elementary Row Operation 1 4. Elementary.
Chapter 4 Systems of Linear Equations; Matrices
SYSTEMS OF LINEAR EQUATIONS
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
1 Numerical Integration Dr. Asaf Varol
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Copyright © 2007 Pearson Education, Inc. Slide 7-1.
Copyright © Cengage Learning. All rights reserved. 7.4 Matrices and Systems of Equations.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Sec 3.1 Introduction to Linear System Sec 3.2 Matrices and Gaussian Elemination The graph is a line in xy-plane The graph is a line in xyz-plane.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
MATH 250 Linear Equations and Matrices
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Solutions to Linear Systems.
Sec 3.2 Matrices and Gaussian Elemination Coefficient Matrix 3 x 3 Coefficient Matrix 3 x 3 Augmented Coefficient Matrix 3 x 4 Augmented Coefficient Matrix.
Matrix Solutions to Linear Systems. 1. Write the augmented matrix for each system of linear equations.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1. Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Solving Systems of Linear Equations in Three Variables 4 1.Determine.
1 Solution of Nonlinear Equation Dr. Asaf Varol
Numerical Solutions of ODE
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Matrices and Systems of Equations
Section 7-3 Solving 3 x 3 systems of equations. Solving 3 x 3 Systems  substitution (triangular form)  Gaussian elimination  using an augmented matrix.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
Meeting 19 System of Linear Equations. Linear Equations A solution of a linear equation in n variables is a sequence of n real numbers s 1, s 2,..., s.
Introduction and Definitions
RECOGNIZING INCONSISTENT LINEAR SYSTEMS. What is an Inconsistent Linear System?  An inconsistent linear system is a system of equations that has no solutions.
1 Chapter: 3a System of Linear Equations Dr. Asaf Varol.
Slide Copyright © 2009 Pearson Education, Inc. 7.4 Solving Systems of Equations by Using Matrices.
1 1.2 Linear Equations in Linear Algebra Row Reduction and Echelon Forms © 2016 Pearson Education, Ltd.
Gaussian Elimination Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Gaussian elimination with back-substitution.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Section 6-1: Multivariate Linear Systems and Row Operations A multivariate linear system (also multivariable linear system) is a system of linear equations.
Multivariable Linear Systems and Row Operations
Linear Equations in Linear Algebra
Section 6.1 Systems of Linear Equations
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Chapter: 3c System of Linear Equations
Solving Systems of Equations Using Matrices
Numerical Integration
Linear Algebra Lecture 4.
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Systems of Linear Equations
Chapter 10: Solving Linear Systems of Equations
Linear Equations in Linear Algebra
Larger Systems of Linear Equations and Matrices
Linear Equations in Linear Algebra
Matrices are identified by their size.
Linear Equations in Linear Algebra
Presentation transcript:

Chapter: 3b System of Linear Equations Dr. Asaf Varol asvarol@mail.wvu.edu

Gaussian Elimination In the Gaussian Elimination Method, Elementary Row Operations (E.R.O.'s) are applied in a specific order to transform an augmented matrix into triangular echelon form as efficiently as possible [6]. This is the essence of the method: Given a system of m equations in n variables or unknowns, pick the first equation and subtract suitable multiples of it from the remaining m-1 equations. In each case choose the multiple so that the subtraction cancels or eliminates the same variable, say x1. The result is that the remaining m-1 equations contain only n-1 unknowns (x1 no longer appears) [6]. Now set aside the first equation and repeat the above process with the remaining m-1 equations in n-1 unknowns [6]. Continue repeating the process. Each cycle reduces the number of variables and the number of equations. The process stops when either:

Gaussian Elimination (Cont’d) There remains one equation in one variable. In that case, there is a unique solution and back-substitution is used to find the values of the other variables [6]. There remain variables but no equations. In that case there is no unique solution [6]. There remain equations but no variables (ie. the lowest row(s) of the augmented matrix contain only zeros on the left side of the vertical line). This indicates that either the system of equations is inconsistent or redundant. In the case of inconsistency the information contained in the equations is contradictory. In the case of redundancy, there may still be a unique solution and back-substitution can be used to find the values of the other variables [6].

Algorithm for Gaussian Elimination Transform the columns of the augmented matrix, one at a time, into triangular echelon form. The column presently being transformed is called the pivot column. Proceed from left to right, letting the pivot column be the first column, then the second column, etc. and finally the last column before the vertical line. For each pivot column, do the following two steps before moving on to the next pivot column [6]: Locate the diagonal element in the pivot column. This element is called the pivot. The row containing the pivot is called the pivot row. Divide every element in the pivot row by the pivot (ie. use E.R.O. #1) to get a new pivot row with a 1 in the pivot position [6]. Get a 0 in each position below the pivot position by subtracting a suitable multiple of the pivot row from each of the rows below it (ie. by using E.R.O. #2). Upon completion of this procedure the augmented matrix will be in triangular echelon form and may be solved by back-substitution [6].

Example Use Gaussian elimination to solve the system of equations[6]:

Solution Perform this sequence of E.R.O.'s on the augmented matrix. Set the pivot column to column 1. Get a 1 in the diagonal position (underlined):

Solution (Cont’d)

Solution (Cont’d)

Results It is solved by back-substitution. Substituting z = 3 from the third equation into the second equation gives y = 5, and substituting z = 3 and y = 5 into the first equation gives x = 7. Thus the complete solution is [6]: {x = 7, y = 5, z = 3}.

Example Express the following system in augmented matrix form and find an equivalent upper- triangular system and the solution [4].

Example (Cont’d) The augmented matrix is

Example (Cont’d) The first row is used to eliminate elements in the first column below the diagonal. We refer to the first row as pivotal row and the element a11=1 is called the pivotal element. The values mk1 are the multiples of row 1 then are to be subtracted from row k for k=2,3,4. The result after elimination is [4]

Example (Cont’d) The second row is used to eliminate elements in the second column that lie below the diagonal. The second row is the pivotal row and the values mk2 are the multiples of row 2 that are to be subtracted from row k for k=3,4. The result after elimination is [4]

Example (Cont’d) Finally, the multiple m43=-1.9 of the third row is subtracted from the fourth row, and the result is the upper- triangular system [4].

Example (Cont’d) The back-substitution algorithm can be used to solve the previous matrix, and we get X4=2 X3=4 X2=-1 X1=3

Example a) Use MATLAB to construct the augmented matrix for the linear system of the below given matrix. b) Use the max command to find the element of greatest magnitude in the first column of the coefficient matrix A. C) Break the augmented matrix into the coefficient matrix U and constant matrix Y of the upper-triangular system UX=Y [4].

Answers a) >>A=[1 2 1 4;2 0 4 3;4 2 2 1;-3 1 3 2]; >>B=[13 28 20 6]’; >>Aug=[A B]

Answer b) In the following MATLAB display, a is the element of greatest magnitude in the first column of A and j is the row number >>[a,j]=max(abs(A(1:4,1)))

Answer c) Let Augup=[U|Y] be the upper-triangular matrix.

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