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,

Slides:



Advertisements
Similar presentations
4/22/ LU Decomposition Electrical Engineering Majors Authors: Autar Kaw Transforming.
Advertisements

Linear Systems of Equations
Solving Linear Systems (Numerical Recipes, Chap 2)
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.
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.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Lecture 11 - LU Decomposition
Linear Algebraic Equations
Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
Special Matrices and Gauss-Siedel
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Special Matrices and Gauss-Siedel
ECIV 520 Structural Analysis II Review of Matrix Algebra.
1 Systems of Linear Equations (Optional) Special Matrices.
Thomas algorithm to solve tridiagonal matrices
Algorithm for Gauss elimination 1) first eliminate for each eq. j, j=1 to n-1 for all eq.s k greater than j a) multiply eq. j by a kj /a jj b) subtract.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 10 LU Decomposition and Matrix.
17 Jul 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 2 – Systems of Linear Equations 17 July am – 9.00 am.
Lagrange interpolation Gives the same results as Newton, but different method.
1 Systems of Linear Equations Gauss-Jordan Elimination and LU Decomposition.
1 Systems of Linear Equations Error Analysis and System Condition.
Section 8.3 – Systems of Linear Equations - Determinants Using Determinants to Solve Systems of Equations A determinant is a value that is obtained from.
Chapter 8 Objectives Understanding matrix notation.
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Engineering Analysis ENG 3420 Fall 2009
Scientific Computing Linear Systems – LU Factorization.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Linear.
Matrix Solutions to Linear Systems. 1. Write the augmented matrix for each system of linear equations.
Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 11.
Chapter 1 Section 1.1 Introduction to Matrices and systems of Linear Equations.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 101.
Matrices NamingCalculatorApplication. Making & Naming a Matrix Matrix A.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Class Opener:. Identifying Matrices Student Check:
Chapter 9 Gauss Elimination The Islamic University of Gaza
Elimination Method: Solve the linear system. -8x + 3y=12 8x - 9y=12.
1/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
3.8B Solving Systems using Matrix Equations and Inverses.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
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.
Chapter: 3c System of Linear Equations
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Review Problems Matrices
Linear Equations.
Linear Algebra Lecture 15.
Chapter 10 and Matrix Inversion LU Decomposition
Chapter 10.
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
8.1 Matrices and System of Linear Equations
Matrix Solutions to Linear Systems
Numerical Computation and Optimization
Part 3 Chapter 10 LU Factorization
Major: All Engineering Majors Authors: Autar Kaw
Solve the linear system.
LU Decomposition.
Chapter 11 Chapter 11.
The Gauss Jordan method
Ax = b Methods for Solution of the System of Equations (ReCap):
Multiple linear regression
Major: All Engineering Majors Authors: Autar Kaw
Presentation transcript:

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, can use many different b’s

a bg d F 14 F 23 F 12 F 24 F 45 FHFH F 35 F 25 F V2 F V1

Assume weight of 100 is localized at node 2

Matrix inverse Square matrix A Inverse of A is A -1

How do we get inverse? One way is through LU decomposition and backsubstitution Solve Ax=b with, sequentually Put together x’s to get inverse

Example:

To get inverse, solve using different b’s

Now

Finally

So the inverse is Check

Matrix inverse is useful for determining condition number (ill conditioned) of matrix 1) Normalize rows of matrix to 1. If elements of A -1 are >> 1, probably ill conditioned 2) if A -1 A is not close to I, probably ill conditioned 3) if (A -1 ) -1 is not A, probably ill conditioned

A little more technical Norms - a way to measure “size” or “length” of a quantity for matrices, use matrix norm

Condition number comes from matrix norm If cond[A] is much bigger than 1, ill conditioned

Matrix inverse is time consuming to calculate A number of methods to avoid it I.e Gauss elimination instead of

Special matrices Banded matrices Tridiagonal matrices

Tridiagonal matrices important for time evolution of systems E.g traffic flow 30 nodes (stoplights) Traffic at node x i at next time (x i,t+1 ) depends on 1) # of cars at x i at time t (x i,t ) 2) # of cars at x i-1 at time t (x i-1,t ) 3) # of cars at x i+1 at time t (x i+1,t )

Some linear relationship or

Put all 30 equations together Solve to get # of cars, and repeat to see how traffic responds to boundary conditions

Thomas algorithm to solve tridiagonal matrices

Basically sets up an LU decomposition three parts 1) decomposition 2) forward substitution 3) backward substitution

1) decomposition loop from rows 2 to n a i = a i /b i-1 b i = b i -a i *c i-1 end loop 2) forward substitution loop from 2 to n r i = r i - a i *r i-1 end loop

3) back substitution x n = r n /b n loop from n-1 to 1 x i = (r i -c i *x i+1 )/b i end loop

Example First decompose T

loop from rows 2 to 5 a i = a i /b i-1 b i = b i -a i *c i-1 end loop

forward substitution loop from 2 to n r i = r i - a i *r i-1 end loop

back substitution x n = r n /b n loop from n-1 to 1 x i = (r i -c i *x i+1 )/b i end loop