Chapter 8 Numerical Technique

Slides:



Advertisements
Similar presentations
LU Factorization.
Advertisements

Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Chapter 3 Determinants and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Solving Systems of Linear Equations Part Pivot a Matrix 2. Gaussian Elimination Method 3. Infinitely Many Solutions 4. Inconsistent System 5. Geometric.
Chapter 1 Systems of Linear Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
10.1 Gaussian Elimination Method
Section 8.1 – Systems of Linear Equations
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems College Algebra.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Multivariate Linear Systems and Row Operations.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Scientific Computing Linear Systems – LU Factorization.
2.1 Operations with Matrices 2.2 Properties of Matrix Operations
1 資訊科學數學 13 : Solutions of Linear Systems 陳光琦助理教授 (Kuang-Chi Chen)
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Matrices King Saud University. If m and n are positive integers, then an m  n matrix is a rectangular array in which each entry a ij of the matrix is.
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.
Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Matrix Algebra. Quick Review Quick Review Solutions.
Using LU Decomposition to Optimize the modconcen.m Routine Matt Tornowske April 1, 2002.
MATH 250 Linear Equations and Matrices
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.
Lecture 8 Matrix Inverse and LU Decomposition
Matrices and Systems of Equations
Matrices and Systems of Linear 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 1 Linear Algebra S 2 Systems of Linear Equations.
Matrices and Systems of Equations
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.
7.3 & 7.4 – MATRICES AND SYSTEMS OF EQUATIONS. I N THIS SECTION, YOU WILL LEARN TO  Write a matrix and identify its order  Perform elementary row operations.
Chapter 1 Systems of Linear Equations Linear Algebra.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Chapter 2 Matrices 2.1 Operations with Matrices 2.2 Properties of Matrix Operations 2.3 The Inverse of a Matrix 2.4 Elementary Matrices Elementary Linear.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
College Algebra Chapter 6 Matrices and Determinants and Applications
Chapter 5 Eigenvalues and Eigenvectors
College Algebra Chapter 6 Matrices and Determinants and Applications
Multivariable Linear Systems and Row Operations
Section 6.1 Systems of Linear Equations
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Systems of linear equations
Gaussian Elimination and Gauss-Jordan Elimination
Gaussian Elimination and Gauss-Jordan Elimination
Solving Systems of Equations Using Matrices
Lecture 2 Matrices Lat Time - Course Overview
Linear Equations.
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Linear Algebra Lecture 15.
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Matrices and Systems of Equations
Gaussian Elimination and Gauss-Jordan Elimination
Chapter 4 Systems of Linear Equations; Matrices
Elementary Row Operations Gaussian Elimination Method
Matrix Solutions to Linear Systems
Numerical Analysis Lecture14.
Numerical Computation and Optimization
資訊科學數學13 : Solutions of Linear Systems
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Numerical Analysis Lecture10.
College Algebra Chapter 6 Matrices and Determinants and Applications
Major: All Engineering Majors Authors: Autar Kaw
Chapter 4 Systems of Linear Equations; Matrices
Section 8.1 – Systems of Linear Equations
Lecture 8 Matrix Inverse and LU Decomposition
Presentation transcript:

Chapter 8 Numerical Technique Linear Algebra Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲

8.1 Gaussian Elimination Definition A matrix is in echelon form if Any rows consisting entirely of zeros are grouped at the bottom of the matrix. The first nonzero element of each row is 1. This element is called a leading 1. The leading 1 of each row after the first is positioned to the right of the leading 1 of the previous row. (This implies that all the elements below a leading 1 are zero.) Reduced echelon form與echelon from的差異: echelon form 的 leading 1 上面的數字不必為零

Example 1 Solving the following system of linear equations using the method of Gaussian elimination. Solution Starting with the augmented matrix, create zeros below the pivot in the first column. At this stage, we create a zero only below the pivot. Echelon form We have arrived at the echelon form.

The corresponding system of equation is We get Substituting x4 = 2 and x3 = -5 into the first equation, Let x2 = r. The system has many solutions. The solutions are

Example 2 Solving the following system of linear equations using the method of Gaussian elimination, performing back substitution using matrices. Solution We arrive at the echelon form as in the previous example. Echelon form This marks the end of the forward elimination of variables from equations. We now commence the back substitution using matrices.

2 3 This matrix is the reduced echelon form of the original augmented matrix. The corresponding system of equations is Let x2 = r. We get same solution as previously,

Comparison of Gauss-Jordan and Gaussian Elimination Count of Operations for n  n system with Unique Solution Number of Multiplications Number of Additions Gauss-Jordan Gaussian elimination

8.2 The Method of LU Decomposition lower triangular matrix upper triangular matrix Ax=y  A=LU …

Example 1 Solving the following system of equations, which has a triangular matrix of coefficients. Solution By forward substitution: 1st equations gives 2nd equation gives 3rd equation gives The solution is

Example 2 Solving the following system of equations, which has an upper triangular matrix of coefficients. Solution By back substitution: 3rd equation gives 2nd equation gives 1st equations gives The solution is

Definition Let A be a square matrix that can be factored into the form A = LU, where L is a lower triangular matrix and U is an upper triangular matrix, This factoring is called an LU decomposition of A. (Not every matrix has an LU decomposition, and when it exists, it is not unique.)

Method of LU Decomposition Let AX = B be a system of n equations in n variables, where A has LU decomposition A = LU.  LUX = B  two subsystems: UX = Y (upper triangular) and LY = B (lower triangular) Solution of AX = B Find the LU decomposition of A. (If A has no LU decomposition, the method is not applicable.) Solve LY = B by forward substitution. Solve UX = Y by back substitution. How to decompose A=LU? 利用elementary matrices

Elementary Matrices(複習第二章) Definition An elementary matrix is one that can be obtained from the identity matrix In through a single elementary row operation. Example R2  R3 5R2 R2+ 2R1

Elementary Matrices(複習第二章) 一個矩陣做 elementary row operation, 相當於在左邊乘一個對應的 elementary matrix。 R2  R3 5R2 R2+ 2R1

Elementary matrices(複習第二章) Each elementary matrix is invertible. Example Note that (E1)12 = -(E2)12.

How to decompose A=LU? (利用elementary matrix) A … U (upper triangular)  U = Ek  E1 A  A = (E1)-1  (Ek)-1 U If each such elementary matrix Ei is a lower triangular matrices, it can be proved that (E1)-1, , (Ek)-1 are lower triangular, and (E1)-1  (Ek)-1 is a lower triangular matrix. Let L=(E1)-1  (Ek)-1 then A=LU.

Example 3 Solving the following system of equations using LU decomposition. Solution Let us transform the matrix of coefficients A into upper triangular form U by creating zeros below the main diagonal as follows. A U

The elementary matrices that correspond to these row operations are The inverse of these matrices are We get Thus

We now solve the given system LUX = B by solving the two subsystems LY = B and UX = Y. We get This lower triangular system has solution The upper triangular system has solution The solution to the given system is

Construction of a LU decomposition of a Matrix A Use row operations to arrive at U. (The operations must involve adding multiples of rows to rows. In general, if row interchanges are required to arrive at U, an LU form does not exists.) The diagonal element of L are ls. The nonzero elements of L corresponding to row operations. The row operation Ri + cRj implies that lij = -c.

Example 4 Solve the following system if equations using LU decomposition. Solution L21= -1 L32= 2 These row operations lead to the following LU decomposition of A. L31= 4

We again solve the given system LUX = B by solving the two subsystems LY = B and UX = Y. This lower triangular system has solution y1 = 12, y2 = 0, y3 = 10. This upper triangular system has solution x1 = 1, x2 = -1, x3 = 2. The solution to the given system is x1 = 1, x2 = -1, x3 = 2.

Homework Exercise 8.2 7(a), 9, 20