Numerical Analysis Lecture10.

Slides:



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

LU Factorization.
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Chapter: 3c System of Linear Equations
Chapter 2 Simultaneous Linear Equations
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
4/26/ LU Decomposition Civil Engineering Majors Authors: Autar Kaw Transforming.
Gauss – Jordan Elimination Method: Example 2 Solve the following system of linear equations using the Gauss - Jordan elimination method Slide 1.
Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Simultaneous Linear Equations
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
Major: All Engineering Majors Authors: Autar Kaw
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
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
Linear Systems and Matrices
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Scientific Computing Linear Systems – LU Factorization.
Copyright © Cengage Learning. All rights reserved. 7.4 Matrices and Systems of Equations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Math 201 for Management Students
MATH 250 Linear Equations and Matrices
G AUSSIAN E LIMINATION Presented by: Max Le Max Le Justin Lavorgna Data Structures II: Algorithm Design & Analysis Algorithm Design & Analysis.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
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.
1/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
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.
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
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.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
Numerical Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
Multivariable Linear Systems and Row Operations
TYPES OF SOLUTIONS SOLVING EQUATIONS
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Chapter: 3c System of Linear Equations
Chapter 8 Numerical Technique
TYPES OF SOLUTIONS SOLVING EQUATIONS
Spring Dr. Jehad Al Dallal
5 Systems of Linear Equations and Matrices
Numerical Analysis Lecture12.
Linear Equations.
Linear Algebra Lecture 15.
Chapter 10: Solving Linear Systems of Equations
Numerical Analysis Lecture 45.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
Larger Systems of Linear Equations and Matrices
Major: All Engineering Majors Author(s): Autar Kaw
Matrix Solutions to Linear Systems
Review of Matrix Algebra
Numerical Analysis Lecture14.
Numerical Computation and Optimization
Numerical Analysis Lecture13.
Major: All Engineering Majors Authors: Autar Kaw
Lecture 8 Matrix Inverse and LU Decomposition
Numerical Analysis Lecture11.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Numerical Analysis Lecture10

Chapter 3

Solution of Linear System of Equations and Matrix Inversion

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

Gauss–Jordon Elimination Method

This method is a variation of Gaussian elimination method This method is a variation of Gaussian elimination method. In this method, the elements above and below the diagonal are simultaneously made zero

That is a given system is reduced to an equivalent diagonal form using elementary transformations. Then the solution of the resulting diagonal system is obtained.

Sometimes, we normalize the pivot row with respect to the pivot element, before elimination. Partial pivoting is also used whenever the pivot element becomes zero.

Example Solve the system of equations using Gauss-Jordan elimination method:

In matrix notation, the given system can be written as

(-2) R1 +R2 and (-4) R1+R3

Now, we eliminate y from the first and third rows using the second row Now, we eliminate y from the first and third rows using the second row. Thus, we get

Before, eliminating z from the first and second row, normalize the third row with respect to the pivot element, we get

Using the third row of above Equation , and eliminating z from the first and second rows, we obtain

The solution is x =1, y =2, z =3.

Crout’s Reduction Method

Here the coefficient matrix [A] of the system of equations is decomposed into the product of two matrices [L] and [U], where [L] is a lower-triangular matrix and [U] is an upper-triangular matrix with 1’s on its main diagonal.

For the purpose of illustration, consider a general matrix in the form

The sequence of steps for getting [L] and [U] are given below: Step I: Multiplying all the rows of [L] by the first column of [U], we get Thus, we observe that the first column of [L] is same as the first column of [A].

Step II: Multiplying the first row of [L] by the second and third columns of [U], we obtain or Thus, the first row of [U] is obtained. We continue this process, getting alternately the column of [L] and a row of [U].

Step III: Multiply the second and third rows of [L] by the second column of [U] to get which gives

Step IV: Now, multiply the second row of [L] by the third column of [U] which yields

Step V: Lastly, we multiply the third row of [L] by the third column of [U] and get Which gives

Thus, the above five steps determine [L] and [U]. This algorithm can be generalized to any linear system of order n.

Consider a system of equations

In matrix notation as [A](X) = (B). Let [A] = [L] [U], then we get, Substituting [U] (X) = (Z) in Eq. we obtain [L] (Z) = (B)

Having computed z1, z2 and z3, we can compute x1, x2, and x3 from equation [U] (X) = (Z) or from

This method is also known as Cholesky reduction method This method is also known as Cholesky reduction method. This technique is widely used in the numerical solutions of partial differential equations.

This method is very popular from computer programming point of view, since the storages space reserved for matrix [A] can be used to store the elements of [L] and [U] at the end of computation.

This method fails if any

Example Solve the following system of equations by Crout’s reduction method

Solution Let the coefficient matrix [A] be written as [L] [U]. Thus,

Step I: Multiply all the rows of [L] by the first column of [U], we get

Step II: Multiply the first row of [L] by the second and third columns of [U], we have

STEP III: Multiply the 2nd and 3rd rows of [L] by the 2nd column of [U], we get

STEP IV: Multiply the 2nd row of [L] by the 3rd column of [U]

STEP V: Finally, multiply the 3rd row of [L] with the 3rd column of [U], we obtain

Thus, the given system of equations takes the form [L][U][X] = (B).

That is,

Let [U](X) = (Z), then or

Which gives utilizing these values of z, the Eq. becomes

By back substitution method, we obtain This is the required solution.

Numerical Analysis Lecture10