Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.

Slides:



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

Chapter: 3c System of Linear Equations
Chapter 2 Simultaneous Linear Equations
CSCI-455/552 Introduction to High Performance Computing Lecture 25.
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
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
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.
1.2 Row Reduction and Echelon Forms
Linear Equations in Linear Algebra
Solution of linear system of equations
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.
Linear Algebraic Equations
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
Systems of Linear Equations
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Multivariate Linear Systems and Row Operations.
SYSTEMS OF LINEAR EQUATIONS
Major: All Engineering Majors Author(s): Autar Kaw
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Math 201 for Management Students
Matrix Algebra. Quick Review Quick Review Solutions.
Three variables Systems of Equations and Inequalities.
Numerical Computation Lecture 7: Finding Inverses: Gauss-Jordan United International College.
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.
1 Part II: Linear Algebra Chapter 8 Systems of Linear Algebraic Equations; Gauss Elimination 8.1 Introduction There are many applications in science and.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Chemical Engineering Majors Author(s): Autar Kaw
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
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.
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.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
1 1.2 Linear Equations in Linear Algebra Row Reduction and Echelon Forms © 2016 Pearson Education, Ltd.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Numerical Methods. Introduction Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous 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.
Chapter: 3c System of Linear Equations
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Gaussian Elimination.
Numerical Analysis Lecture12.
Linear Equations.
Chapter 10: Solving Linear Systems of Equations
Numerical Analysis Lecture 45.
Linear Equations in Linear Algebra
Major: All Engineering Majors Author(s): Autar Kaw
Review of Matrix Algebra
Numerical Analysis Lecture14.
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Numerical Analysis Lecture11.
Linear Equations in Linear Algebra
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Lecture 9 Numerical Analysis

Solution of Linear System of Equations Chapter 3

and Matrix Inversion

Introduction Gaussian Elimination Gauss-Jordon Elimination Crout’s Reduction Jacobi’s Gauss- Seidal Iteration Relaxation Matrix Inversion

The solution of the system of equations gives n unknown values x 1, x 2, …, x n, which satisfy the system simultaneously. If m > n, the system usually will have an infinite number of solutions.

If then the system will have a unique solution. If then there exists no solution.

Numerical methods for finding the solution of the system of equations are classified as direct and iterative methods. In direct methods, we get the solution of the system after performing all the steps involved in the procedure. The direct methods consist of elimination methods and decomposition methods.

Under elimination methods, we consider, Gaussian elimination and Gauss-Jordan elimination methods Crout’s reduction also known as Cholesky’s reduction is considered under decomposition methods.

Under iterative methods, the initial approximate solution is assumed to be known and is improved towards the exact solution in an iterative way. We consider Jacobi, Gauss-Seidel and relaxation methods under iterative methods.

Gaussian Elimination Method

In this method, the solution to the system of equations is obtained in two stages. i)the given system of equations is reduced to an equivalent upper triangular form using elementary transformations ii)the upper triangular system is solved using back substitution procedure

This method is explained by considering a system of n equations in n unknowns in the form as follows

Stage I: Substituting the value of x 1 from first equation into the rest

Now, the last (n – 1) equations are independent of x 1, that is, x 1 is eliminated from the last (n – 1) equations. This procedure is repeated and x 2 is eliminated from 3 rd, 4 th, …, n-th equations The same procedure is repeated till the given system assumes the upper triangular form:

Stage II: The values of the unknowns are determined by backward substitution. First x n is found from the last equation and then substitution this value of x n in the preceding equation will give the value of x n-1. Continuing this way, we can find the values of all other unknowns

Example Solve the following system of equations using Gaussian elimination method

Solution Stage I (Reduction to upper- triangular form): Divide first equation by 2 and then subtract the resulting equation (multiplied by 4 and –2) from the 2 nd and 3 rd equations respectively. Thus, we eliminate x from the 2 nd and 3 rd equations.

The resulting new system is given by

Now, we divide the 2 nd equation by –2 and eliminate y from the last equation and the modified system is given by

Stage II (Backward substitution): From the last equation, we get using this value of z, the second equation gives

Putting these values of y and z in the first equation, we get Thus, the solution of the given system is given by x = 1, y = 2, z = 3

Partial and Full Pivoting The Gaussian elimination method fails if any one of the pivot elements becomes zero. In such a situation, we rewrite the equations in a different order to avoid zero pivots. Changing the order of equations is called pivoting.

Partial pivoting if the pivot happens to be zero, then the i-th column elements are searched for the numerically largest element. Let the j-th row (j > i) contains this element, then we interchange the i-th equation with the j-th equation and proceed for elimination. This process is continued whenever pivots become zero during elimination.

For example, let us examine the solution of the following simple system Using Gaussian elimination method with and without partial pivoting, assuming that we require the solution accurate to only four decimal places. The solution by Gaussian elimination gives x 1 = 0, x 2 = 1.

If we use partial pivoting, the system takes the form Using Gaussian elimination method, the solution is found to be x 1 = 1, x 2 = 1, which is a meaningful and perfect result.

In full pivoting (or complete pivoting), we interchange rows and columns, such that the largest element in the matrix of the variables also get changed. Full pivoting, in fact, is more complicated than the partial pivoting. Partial pivoting is preferred for hand computation.

The general form of a system of m linear equations in n unknowns x 1, x 2, x 3, …, x n can be represented in matrix form as under:

Using matrix notation, the above system can be written in compact form as

Example Solve the system of equations by Gaussian elimination method with partial pivoting.

Solution In matrix notation, the given system can be written as

To start with, we observe that the pivot element However, a glance at the first column reveals that the numerically largest element is 3 which is in second row. Hence R 12

Thus the given equation takes the form after partial pivoting

Stage I (Reduction to upper triangular form):

Stage II (Back substitution):

Example Solve the following system of equations by Gaussian elimination method with partial pivoting

Solution In matrix notation, the given system can be written as

To start with, we observe that the pivot row, that is, the first row has a zero pivot element (a 11 = 0). This row should be interchanged with any row following it, which on becoming a pivot row should not have a zero pivot element.

While interchanging rows it is better to interchange the first and fourth rows, which is called partial pivoting and get,

Stage I (Reduction to upper-triangular form):

Stage II Back substitution

Lecture 9 Numerical Analysis