Lecture #14 EEE 574 Dr. Dan Tylavsky Matrix Inversion Lemma.

Slides:



Advertisements
Similar presentations
LU Factorization.
Advertisements

Triangular Linear Equations Lecture #5 EEE 574 Dr. Dan Tylavsky.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Inverses of n x n Matrices. The Inverse Matrix If A is an n x n matrix, the inverse of A (call it A -1 ) is the matrix such that A * A -1 is equal to.
Sparse Matrix Storage Lecture #3 EEE 574 Dr. Dan Tylavsky.
Matrix Factorization Lecture #7 EEE 574 Dr. Dan Tylavsky.
Sparse Triangular Matrix Equations Lecture #6 EEE 574 Dr. Dan Tylavsky.
LU method 1) factor (decompose) A into L and U 2) given b, determine d 3) using Ux=d and backsubstitution, solve for x Advantage: Once you have L and U,
Sparse Vector & Matrix Algebra Lecture #4 EEE 574 Dr. Dan Tylavsky.
Lecture #22 EEE 574 Dr. Dan Tylavsky Newton-Raphson Power Flow Implementation.
Analysis of Triangular Factorization Lecture #8 EEE 574 Dr. Dan Tylavsky.
Newton-Raphson Power Flow Algorithm
MECH300H Introduction to Finite Element Methods Lecture 2 Review.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
Fill Lecture #9 EEE 574 Dr. Dan Tylavsky. Fill © Copyright 1999 Daniel Tylavsky 4 When we solve Ax=b, (A sparse), fill-in will occur in the L,U factor.
Lecture #12 EEE 574 Dr. Dan Tylavsky Optimal Ordering.
Lecture #21 EEE 574 Dr. Dan Tylavsky Newton-Raphson Power Flow Algorithm II.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
3.1 - Solving Systems by Graphing. All I do is Solve!
Inverse Matrices (2 x 2) How to find the inverse of a 2x2 matrix.
Using Inverse Matrices Solving Systems. You can use the inverse of the coefficient matrix to find the solution. 3x + 2y = 7 4x - 5y = 11 Solve the system.
Scientific Computing Linear Systems – LU Factorization.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
Matrix Entry or element Rows, columns Dimensions Matrix Addition/Subtraction Scalar Multiplication.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Copyright © 2009 Pearson Education, Inc. CHAPTER 9: Systems of Equations and Matrices 9.1 Systems of Equations in Two Variables 9.2 Systems of Equations.
The inverse of a Square Matrix 2.1 Day 1 (Out of Pre-Calc book 8.3) We are reloading for another chapter.
1 Ch. 4 Linear Models & Matrix Algebra Matrix algebra can be used: a. To express the system of equations in a compact manner. b. To find out whether solution.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Row Operations Matrix Operations.
Matrices NamingCalculatorApplication. Making & Naming a Matrix Matrix A.
CW Matrix Division We have seen that for 2x2 (“two by two”) matrices A and B then AB  BA To divide matrices we need to define what we mean by division!
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Dr. Shildneck Fall, 2015 SOLVING SYSTEMS OF EQUATIONS USING MATRICES.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
4.8 Using matrices to solve systems! 2 variable systems – by hand 3 or more variables – using calculator!
Chapter 7 Solving systems of equations substitution (7-1) elimination (7-1) graphically (7-1) augmented matrix (7-3) inverse matrix (7-3) Cramer’s Rule.
2.2 The Inverse of a Matrix. Example: REVIEW Invertible (Nonsingular)
Warm up. Solving Systems Using Inverse Matrices Systems to Matrices A system of equations in standard form (Ax+By=C) can be written in matrix form [A][X]=[B]
Notes Over 4.4 Finding the Inverse of 2 x 2 Matrix.
Use Inverse Matrices to Solve Linear Systems Objectives 1.To find the inverse of a square matrix 2.To solve a matrix equation using inverses 3.To solve.
3.8B Solving Systems using Matrix Equations and Inverses.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
4.1 An Introduction to Matrices Katie Montella Mod. 6 5/25/07.
Warm-UP A = 7-310B = C =7-4Find:A 22 and C 31 97Find: the dimensions of each -88 Matrix Find: A + B and B – A and C + B.
Section 6-2: Matrix Multiplication, Inverses and Determinants There are three basic matrix operations. 1.Matrix Addition 2.Scalar Multiplication 3.Matrix.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
3.1 - Solving Systems by Graphing
Lesson 43: Working with Matrices: Multiplication
12-1 Organizing Data Using Matrices
Spring Dr. Jehad Al Dallal
Matrix Operations SpringSemester 2017.
Block LU Decomposition: explained
Systems of Linear Equations
MA10210: Algebra 1B
Multiplying Matrices.
[ ] [ ] [ ] [ ] EXAMPLE 3 Scalar multiplication Simplify the product:
Inverse & Identity MATRICES Last Updated: October 12, 2005.
Applications of Matrices
Multiplying Matrices.
1.8 Matrices.
1.11 Use Inverse Matrices to Solve Linear Systems
Matrix Operations SpringSemester 2017.
1.8 Matrices.
Multiplying Matrices.
Multiplying Matrices.
Multiplying Matrices.
Presentation transcript:

Lecture #14 EEE 574 Dr. Dan Tylavsky Matrix Inversion Lemma

© Copyright 1999 Daniel Tylavsky –Sometimes we have a solution for Ax=b, and we want a solution for A’x=b, where the difference between A and A’ is a low rank change. –Two approaches: Partial Matrix refactorization –Find the factor path of the nodes that have changed. –Refactorize all rows in the factor path –Used when A’ will be used many times, or rank is relatively ‘large’. Matrix Inversions Lemma –The following Lemma can be proven: –Lemma: Given conformable matrices P & Q:

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky –Derive the matrix inversion lemma: Provided (I+P) is non-singular –Consider (A+UBV), where: –Nonsingular A N X N, original matrix for which we have: A=LU, A -1 b –UBV N X N, –U N X Q, B Q X Q, V Q X N, –Want: (A+UBV) -1 b

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky By Lemma 1: Provided A is invertible

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Setting: & Substituting into: Rank inverse needed is: (Never calculate large inverses explicitly.)

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky F/B Subs Mat. Vect. Mult. F/B Subs OR Inverse Calc w/ Mat./Vect Mult.. Mat. Vect. SubsM ult. F/B Subs Original Solution

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky 4 Example: Show the operations needed in finding E for YE=I if the LU factors of the Y matrix for the network in Fig. 1 are available and the E values of the modified network of Fig. 2 are desired Fig 1 g 1234 Fig 2

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Assume we have: We want to find the solution when the Y matrix is:

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Consider nonsymmetric change. Creates row 2 of UBV. Creates row 4 of UBV. Inserts ±g 2 col. 4. Inserts ±g 1 in col. 2. Use following matrices:

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky If g 1 =g 2 =g: !g is a scalar! (i.e., this is a rank 1 update.)

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Using the matrix inversion lemma to solve the modified problem: Step 1: Solve YE=I

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Step 2: Multiply E by V to get E’. Step 3: Calculate (B -1 + VY -1 U) -1 e’. (Use FF since only need elements in 2nd and 4th positions and FullB—will need full Y -1 U.)

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Now we have to solve:. Step 3: Solve Y -1 U= E” using fast forward & full backward substitution. Step 4: Find:

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky Individually: Given the matrix, it’s LU factors and the solution to YE=I: Use the matrix inversion lemma, find the solution to:

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky 4 The following results may be useful:

The End

Matrix Inversion Lemma © Copyright 1999 Daniel Tylavsky 4 Solution is: