Lecture 8 Matrix Inverse and LU Decomposition

Slides:



Advertisements
Similar presentations
Method If an nxn matrix A has an LU-factorization, then the solution of AX = b can be determined by a Forward substitution followed by a Back substitution.
Advertisements

Elementary Linear Algebra Anton & Rorres, 9th Edition
§ 3.4 Matrix Solutions to Linear Systems.
CHAPTER 1 Section 1.6 إعداد د. هيله العودان (وضعت باذن معدة العرض)
MATH 685/ CSI 700/ OR 682 Lecture Notes
Chapter 8 Numerical Technique 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
CHAPTER ONE Matrices and System Equations
1.5 Elementary Matrices and a Method for Finding
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Chapter 9.1 = LU Decomposition MATH 264 Linear Algebra.
Lecture 6 Matrix Operations and Gaussian Elimination for Solving Linear Systems Shang-Hua Teng.
Solving Systems of Linear Equations Part Pivot a Matrix 2. Gaussian Elimination Method 3. Infinitely Many Solutions 4. Inconsistent System 5. Geometric.
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Lecture 9 Symmetric Matrices Subspaces and Nullspaces Shang-Hua Teng.
Matrices. Special Matrices Matrix Addition and Subtraction Example.
Lecture 15 Recursive and Iterative Formula for Determinants Shang-Hua Teng.
Matrices and Systems of Equations
Lecture 14 Simplex, Hyper-Cube, Convex Hull and their Volumes
Chapter 2 Matrices Definition of a matrix.
Lecture 10 Dimensions, Independence, Basis and Complete Solution of Linear Systems Shang-Hua Teng.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
SYSTEMS OF LINEAR EQUATIONS
Scientific Computing Linear Systems – LU Factorization.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
 Row and Reduced Row Echelon  Elementary Matrices.
Square n-by-n Matrix.
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.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
Chap. 2 Matrices 2.1 Operations with Matrices
Using LU Decomposition to Optimize the modconcen.m Routine Matt Tornowske April 1, 2002.
Three variables Systems of Equations and Inequalities.
MATH 250 Linear Equations and Matrices
ENM 503 Block 2 Lesson 7 – Matrix Methods
Introduction to Numerical Analysis I MATH/CMPSC 455 PA=LU.
Determinants In this chapter we will study “determinants” or, more precisely, “determinant functions.” Unlike real-valued functions, such as f(x)=x 2,
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.
8.1 Matrices & Systems of Equations
Solving Linear Systems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. Solving linear.
Matrices and Systems of Equations
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Linear Systems Dinesh A.
2.5 – Determinants and Multiplicative Inverses of Matrices.
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,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
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.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
CHAPTER ONE Matrices and System Equations Objective:To provide solvability conditions of a linear equation Ax=b and introduce the Gaussian elimination.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
MTH108 Business Math I Lecture 20.
Lecture 2 Matrices Lat Time - Course Overview
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Linear Equations.
Linear Algebra Lecture 15.
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Numerical Computation and Optimization
Major: All Engineering Majors Authors: Autar Kaw
1.8 Matrices.
Lecture 8 Matrix Inverse and LU Decomposition
1.8 Matrices.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Lecture 8 Matrix Inverse and LU Decomposition Shang-Hua Teng

Inverse Matrices In high dimensions

Uniqueness of Inverse Matrices

Inverse and Linear System

Inverse and Linear System Therefore, the inverse of A exists if and only if elimination produces n non-zero pivots (row exchanges allowed)

Inverse, Singular Matrix and Degeneracy Suppose there is a nonzero vector x such that Ax = 0 [column vectors of A co-linear] then A cannot have an inverse Contradiction: So if A is invertible, then Ax =0 can only have the zero solution x=0

One More Property Proof So

Gauss-Jordan Elimination for Computing A-1

Gauss-Jordan Elimination for Computing A-1

Gauss-Jordan Elimination for Computing A-1 3D: Solving three linear equations defined by A simultaneously n dimensions: Solving n linear equations defined by A simultaneously

Example:Gauss-Jordan Elimination for Computing A-1 Make a Big Augmented Matrix

Example:Gauss-Jordan Elimination for Computing A-1

Example:Gauss-Jordan Elimination for Computing A-1

Example:Gauss-Jordan Elimination for Computing A-1

Elimination = Factorization A = LU

Elimination = Factorization A = LU What is the inverse of the left triangle? Call the upper triangular matrix U

What is the Inverse of Eij

Product with Elimination Matrices

Inverse of Triangular Matrix Call this matrix L

Matrix L L is a lower triangular matrix with 1’s on the diagonal and the non-zeros entries are exactly the multipliers lij

If the elimination needs no row exchange LU Factorization And …. A = LU If the elimination needs no row exchange

Two Step Method 1. Factor A = LU by elimination possible with row permutation 2. Solve Lc = b (by forward substitution), then Ux = c (by backward substitution). Complexity: step 1 (multiplications & subtractions) Step 2: O(n2)

Row Exchange and Permutation Matrix Define i We have:

Row Exchange and Permutation Matrix So:

Row Exchange and Permutation Matrix To Permute, we just need to assemble a matrix of ei properly For example, to move row 1 to row 3, row 2 to row 1, and row 3 to row 2, we can use

Need to Permute Rows In Elimination 0 pivot Permute row 2 with row 3 we have

LU Factorization Theorem For any matrix A, there exists a permutation P, such that PA = LU Can be obtained by elimination with potential row exchange