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

LU Factorization.
Elementary Linear Algebra Anton & Rorres, 9th Edition
CHAPTER 1 Section 1.6 إعداد د. هيله العودان (وضعت باذن معدة العرض)
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Major: All Engineering Majors Authors: Autar Kaw
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Lecture 6 Matrix Operations and Gaussian Elimination for Solving Linear Systems Shang-Hua Teng.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
Lecture 14 Simplex, Hyper-Cube, Convex Hull and their Volumes
ECIV 520 Structural Analysis II Review of Matrix Algebra.
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.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Scientific Computing Linear Systems – LU Factorization.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Square n-by-n Matrix.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
MATH 250 Linear Equations and Matrices
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,
Lecture 8 Matrix Inverse and LU Decomposition
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.
1/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
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.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
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.
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.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
Downhill product – Uphill product.
TYPES OF SOLUTIONS SOLVING EQUATIONS
Systems of linear equations
Chapter 8 Numerical Technique
Gaussian Elimination and Gauss-Jordan Elimination
Lecture 2 Matrices Lat Time - Course Overview
TYPES OF SOLUTIONS SOLVING EQUATIONS
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Linear Equations.
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Linear Algebra Lecture 15.
Chapter 10 and Matrix Inversion LU Decomposition
Chapter 1 Systems of Linear Equations and Matrices
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Chemical Engineering Majors Authors: Autar Kaw
Elementary Matrix Methid For find Inverse
Matrix Solutions to Linear Systems
Numerical Computation and Optimization
Numerical Analysis Lecture10.
Section 9.5 Inverses of Matrices
Linear Systems Numerical Methods.
Major: All Engineering Majors Authors: Autar Kaw
Linear Systems of Equations: solution and applications
Lecture 9 Symmetric Matrices Subspaces and Nullspaces
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