Part 3 Chapter 10 LU Factorization

Slides:



Advertisements
Similar presentations
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 6.
Advertisements

Part 2 Chapter 6 Roots: Open Methods
Part 2 Chapter 6 Roots: Open Methods
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Systems of Linear Equations
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Part 3 Chapter 9 Gauss Elimination
Solution of linear system of equations
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,
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,
Linear Systems What is the Matrix?. Outline Announcements: –Homework III: due Wed. by 5, by Office Hours: Today & tomorrow, 11-1 –Ideas for Friday?
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.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
1 Systems of Linear Equations (Optional) Special Matrices.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
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.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 11.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 101.
Part 3 Chapter 11 Matrix Inverse and Condition PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
MECN 3500 Inter - Bayamon Lecture 8 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Linear Systems What is the Matrix?. Outline Announcements: –Homework III: due Today. by 5, by –Ideas for Friday? Linear Systems Basics Matlab and.
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.
Part 3 Chapter 12 Iterative Methods
Part 3 Chapter 9 Gauss Elimination PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
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.
ROOTS OF EQUATIONS. Graphical Methods A simple method for obtaining the estimate of the root of the equation f(x)=0 is to make a plot of the function.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
Part 3 Chapter 9 Gauss Elimination
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Part 3 Chapter 12 Iterative Methods
Linear Algebraic Equations and Matrices
Polynomial Interpolation
Chapter 7 Matrix Mathematics
Matrix Inverse and Condition
Linear Algebraic Equations and Matrices
Boundary-Value Problems
Copyright © The McGraw-Hill Companies, Inc
Numerical Differentiation
Chapter 10 and Matrix Inversion LU Decomposition
Part 2 Chapter 6 Roots: Open Methods
Chapter 10.
Chapter 3 Image Slides Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Metode Eliminasi Pertemuan – 4, 5, 6 Mata Kuliah : Analisis Numerik
General Linear Least-Squares and Nonlinear Regression
Numerical Computation and Optimization
Numerical Analysis Lecture10.
Lecture 13 Simultaneous Linear Equations – Gaussian Elimination (2) Partial Pivoting Dr .Qi Ying.
Copyright © The McGraw-Hill Companies, Inc
Major: All Engineering Majors Authors: Autar Kaw
LU Decomposition.
Chapter 11 Chapter 11.
Lecture 8 Matrix Inverse and LU Decomposition
Part 2 Chapter 7 Optimization
Linear Systems of Equations: solution and applications
Part 2 Chapter 6 Roots: Open Methods
The Gauss Jordan method
Presentation transcript:

Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Chapter Objectives Understanding that LU factorization involves decomposing the coefficient matrix into two triangular matrices that can then be used to efficiently evaluate different right-hand-side vectors. Knowing how to express Gauss elimination as an LU factorization. Given an LU factorization, knowing how to evaluate multiple right-hand-side vectors. Recognizing that Cholesky’s method provides an efficient way to decompose a symmetric matrix and that the resulting triangular matrix and its transpose can be used to evaluate right-hand-side vectors efficiently. Understanding in general terms what happens when MATLAB’s backslash operator is used to solve linear systems.

LU Factorization Recall that the forward-elimination step of Gauss elimination comprises the bulk of the computational effort. LU factorization methods separate the time-consuming elimination of the matrix [A] from the manipulations of the right-hand-side [b]. Once [A] has been factored (or decomposed), multiple right-hand-side vectors can be evaluated in an efficient manner.

LU Factorization LU factorization involves two steps: Factorization to decompose the [A] matrix into a product of a lower triangular matrix [L] and an upper triangular matrix [U]. [L] has 1 for each entry on the diagonal. Substitution to solve for {x} Gauss elimination can be implemented using LU factorization

Gauss Elimination as LU Factorization [A]{x}={b} can be rewritten as [L][U]{x}={b} using LU factorization. The LU factorization algorithm requires the same total flops as for Gauss elimination. The main advantage is once [A] is decomposed, the same [L] and [U] can be used for multiple {b} vectors. MATLAB’s lu function can be used to generate the [L] and [U] matrices: [L, U] = lu(A)

Gauss Elimination as LU Factorization (cont) To solve [A]{x}={b}, first decompose [A] to get [L][U]{x}={b} Set up and solve [L]{d}={b}, where {d} can be found using forward substitution. Set up and solve [U]{x}={d}, where {x} can be found using backward substitution. In MATLAB: [L, U] = lu(A) d = L\b x = U\d

Cholesky Factorization Symmetric systems occur commonly in both mathematical and engineering/science problem contexts, and there are special solution techniques available for such systems. The Cholesky factorization is one of the most popular of these techniques, and is based on the fact that a symmetric matrix can be decomposed as [A]= [U]T[U], where T stands for transpose. The rest of the process is similar to LU decomposition and Gauss elimination, except only one matrix, [U], needs to be stored.

MATLAB MATLAB can perform a Cholesky factorization with the built-in chol command: U = chol(A) MATLAB’s left division operator \ examines the system to see which method will most efficiently solve the problem. This includes trying banded solvers, back and forward substitutions, Cholesky factorization for symmetric systems. If these do not work and the system is square, Gauss elimination with partial pivoting is used.