LU - Factorizations Matrix Factorization into Triangular Matrices.

Slides:



Advertisements
Similar presentations
Rules of Matrix Arithmetic
Advertisements

TRIANGULAR MATRICES A square matrix in which all the entries above the main diagonal are zero is called lower triangular, and a square matrix in which.
Applied Informatics Štefan BEREŽNÝ
Chapter 4 Systems of Linear Equations; Matrices
§ 3.4 Matrix Solutions to Linear Systems.
Chapter 4 Systems of Linear Equations; Matrices
East Los Angeles College
Section 1.7 Diagonal, Triangular, and Symmetric Matrices.
1.5 Elementary Matrices and a Method for Finding
1.7 Diagonal, Triangular, and Symmetric Matrices.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
Matrices & Systems of Linear Equations
Matrices. Special Matrices Matrix Addition and Subtraction Example.
Chapter 2 Section 1 Solving a System of Linear Equations (using Matrices)
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Chapter 1 Section 1.2 Echelon Form and Gauss-Jordan Elimination.
1.7 Diagonal, Triangular, and Symmetric Matrices 1.
Table of Contents Solving Systems of Linear Equations - Gaussian Elimination The method of solving a linear system of equations by Gaussian Elimination.
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
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.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
8.1 Matrices and Systems of Equations. Let’s do another one: we’ll keep this one Now we’ll use the 2 equations we have with y and z to eliminate the y’s.
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.
Chapter 11 Section 11.4 Solving Larger Systems of Equations.
Lesson 13-1: Matrices & Systems Objective: Students will: State the dimensions of a matrix Solve systems using matrices.
Chapter 1 Section 1.1 Introduction to Matrices and systems of Linear Equations.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Unit 3: Matrices.
Chapter 4 Section 4: Inverse and Identity Matrices 1.
The Determinant of a Matrix Note: The determinant of a matrix can be positive, zero, or negative. Chapter 3 Determinants.
4.5 Inverse of a Square Matrix
4.5 Matrices, Determinants, Inverseres -Identity matrices -Inverse matrix (intro) -An application -Finding inverse matrices (by hand) -Finding inverse.
Matrices and Systems of Equations
Linear Equation System Pertemuan 4 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Matrices and Systems of Equations
Matrices Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 A matrix is a rectangular array of real numbers. Each entry.
2.5 – Determinants and Multiplicative Inverses of Matrices.
2 2.5 © 2016 Pearson Education, Ltd. Matrix Algebra MATRIX FACTORIZATIONS.
Slide Copyright © 2009 Pearson Education, Inc. 7.4 Solving Systems of Equations by Using Matrices.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Introduction Types of Matrices Operations
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Linear Algebra by Dr. Shorouk Ossama.
Chapter 4 Systems of Linear Equations; Matrices
Linear Equations in Linear Algebra
Systems of linear equations
Gaussian Elimination and Gauss-Jordan Elimination
Solving Systems of Equations Using Matrices
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Linear Algebra Lecture 15.
Agenda Textbook / Web Based Resource Basics of Matrices Classwork
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Elementary Matrix Methid For find Inverse
Unit 3: Matrices
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Determinant of a Matrix
Chapter 4 Systems of Linear Equations; Matrices
Linear Equations in Linear Algebra
MATRICES MATRIX OPERATIONS.
Section 8.1 – Systems of Linear Equations
Matrices are identified by their size.
Chapter 4 Systems of Linear Equations; Matrices
Presentation transcript:

LU - Factorizations Matrix Factorization into Triangular Matrices

LU Factorization The LU Factorization of a n  n square Matrix M = (m ij ) is a way of expressing the Matrix M as a product of two square n  n matrices L and U where the matrix L is a lower triangular matrix and The matrix U is an upper triangular matrix. Furthermore the matrix L has all 1's on the diagonal. Triangular Matrices A n  n square matrix L =( l ij ) is called Lower Triangular if l ij = 0 if i < j (i.e. all entries above the diagonal are zero). A n  n square matrix U =( u ij ) is called Upper Triangular if u ij = 0 if i > j (i.e. all entries below the diagonal are zero). Lower Triangular Matrix Upper Triangular Matrix

LU Factorization Method The factorization is done by keeping tract of a series of elementary matrices where multiplication on the left by an elementary matrix corresponds to a row operation. 1. Apply the necessary row operations to get the matrix to be upper triangular. 2. For each row operation multiply on the right by an elementary matrix to get U. 3. Multiply on the right by the inverse of all of the elementary matrices to get L.

Elementary Matrices The elementary matrices E k must be of a certain type that correspond to multiplying a row by a number and adding it to another row. R j = cR i + R j j th row Consider the row operation of multiplying row i by c and adding it to row j ( i ≠ j ). This row operation is abbreviated by R j = cR i + R j. The corresponding elementary matrix has 1's going down the diagonal, a c in row j and column i, and zeros in every other position. i th column 1. The inverse of a matrix like this just puts a –c in the position where c is. 2. The product of two of these type of matrices with a c 1 and c 2 in two different positions results in a matrix with c 1 in the position where it was and c 2 in the position it was in and 1's on the diagonal and zeros everywhere else. 3. If all row operations have i < j the matrix will be lower triangular.

LU Factorization Method (Example) The following is an example of how to factor a 3  3 matrix and keep tract of the elementary row reduction matrices. R 2 = -2 R 1 + R 2 R 3 = 3 R 1 + R 3 The matrix is now upper triangular we combine the two multiplications. Use matrix arithmetic and substitution.

Calculating the inverse for elementary matrices of this type can be done quickly (i.e. a shortcut) by just taking the negative of the nonzero, non- diagonal entry. Multiply by the inverses from previous slide. Substitute and group elementary matrices A short cut for multiplying these matrices is putting the entries in the corresponding positions.

LU Factorization (Short Cut) We do not need to do all the moving around of matrices on each side of the equation. We just keep tract of the row operations and fill in the entries of the corresponding matrix to get a sequence of lower triangular matrices. R 2 =-4 R 1 + R 2 R 3 =5 R 2 + R 3 Stop here the matrix is upper triangular and this is the matrix U. Can check that the factorization is correct with a matrix multiplication

Matrices Without LU Factorizations Not every matrix has an LU Factorization, just like not all numbers or polynomials can be factored. Look at the simple 2  2 matrix M given to the right. To show this is impossible to factor this way consider what L and U would need to do. L is lower triangular and U is upper triangular. M = LU This means that ae = 0 so that either a = 0 or e =0 If a =0 then detL =0 so the detLU =0 If e =0 then detU =0 so the detLU =0 When row reducing the matrix if you ever need to do the row operation of interchanging (swapping) two rows the matrix can not be LU factored.