MTH 215: Introduction to Linear Algebra

Similar documents
Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

Section Partitioned Matrices and LU Factorization

Matrix Factorization Reading: Lay 2.5

Math 344 Lecture # Linear Systems

MTH 362: Advanced Engineering Mathematics

2.1 Gaussian Elimination

1111: Linear Algebra I

30.3. LU Decomposition. Introduction. Prerequisites. Learning Outcomes

System of Linear Equations

MTH 464: Computational Linear Algebra

Solving Ax = b w/ different b s: LU-Factorization

4 Elementary matrices, continued

Gaussian Elimination and Back Substitution

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Section 5.6. LU and LDU Factorizations

Lecture 6 & 7. Shuanglin Shao. September 16th and 18th, 2013

Direct Methods for Solving Linear Systems. Matrix Factorization

MATH 2030: ASSIGNMENT 4 SOLUTIONS

Review of matrices. Let m, n IN. A rectangle of numbers written like A =

12/1/2015 LINEAR ALGEBRA PRE-MID ASSIGNMENT ASSIGNED BY: PROF. SULEMAN SUBMITTED BY: M. REHAN ASGHAR BSSE 4 ROLL NO: 15126

MTH501- Linear Algebra MCQS MIDTERM EXAMINATION ~ LIBRIANSMINE ~

The Solution of Linear Systems AX = B

MODULE 7. where A is an m n real (or complex) matrix. 2) Let K(t, s) be a function of two variables which is continuous on the square [0, 1] [0, 1].

Linear Systems. Math A Bianca Santoro. September 23, 2016

Linear Algebra and Matrix Inversion

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Next topics: Solving systems of linear equations

Evaluating Determinants by Row Reduction

Eigenvalues and Eigenvectors

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 6

MODEL ANSWERS TO THE THIRD HOMEWORK

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Elementary Row Operations on Matrices

Section 5.3 Systems of Linear Equations: Determinants

MTH5112 Linear Algebra I MTH5212 Applied Linear Algebra (2017/2018)

MATH2210 Notebook 2 Spring 2018

MATH 323 Linear Algebra Lecture 6: Matrix algebra (continued). Determinants.

MATH 3511 Lecture 1. Solving Linear Systems 1

Lecture 9: Elementary Matrices

Eigenvalues and Eigenvectors

4 Elementary matrices, continued

AMS 209, Fall 2015 Final Project Type A Numerical Linear Algebra: Gaussian Elimination with Pivoting for Solving Linear Systems

Linear Systems of n equations for n unknowns

Unit 1 Matrices Notes Packet Period: Matrices

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

CS412: Lecture #17. Mridul Aanjaneya. March 19, 2015

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

Linear Algebra I Lecture 8

CHAPTER 6. Direct Methods for Solving Linear Systems

CS227-Scientific Computing. Lecture 4: A Crash Course in Linear Algebra

Linear Equations in Linear Algebra

Lectures on Linear Algebra for IT

Methods for Solving Linear Systems Part 2

5x 2 = 10. x 1 + 7(2) = 4. x 1 3x 2 = 4. 3x 1 + 9x 2 = 8

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Section 12.4 Algebra of Matrices

Math 1553 Introduction to Linear Algebra

Introduction to Determinants

Chapter 3. Determinants and Eigenvalues

MATLAB Project: LU Factorization

PH1105 Lecture Notes on Linear Algebra.

Roundoff Analysis of Gaussian Elimination

Numerical Linear Algebra

Section 3.5 LU Decomposition (Factorization) Key terms. Matrix factorization Forward and back substitution LU-decomposition Storage economization

MATH 304 Linear Algebra Lecture 10: Linear independence. Wronskian.

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam

Matrix Algebra for Engineers Jeffrey R. Chasnov

This can be accomplished by left matrix multiplication as follows: I

MIDTERM 1 - SOLUTIONS

MTH 306 Spring Term 2007

Math 3C Lecture 20. John Douglas Moore

MA 511, Session 10. The Four Fundamental Subspaces of a Matrix

Math 2331 Linear Algebra

MAT 343 Laboratory 3 The LU factorization

Department of Aerospace Engineering AE602 Mathematics for Aerospace Engineers Assignment No. 4

Lecture 15, 16: Diagonalization

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

Scientific Computing

Formula for the inverse matrix. Cramer s rule. Review: 3 3 determinants can be computed expanding by any row or column

7.6 The Inverse of a Square Matrix

Problem Set # 1 Solution, 18.06

MATH 2030: MATRICES. Example 0.2. Q:Define A 1 =, A. 3 4 A: We wish to find c 1, c 2, and c 3 such that. c 1 + c c

forms Christopher Engström November 14, 2014 MAA704: Matrix factorization and canonical forms Matrix properties Matrix factorization Canonical forms

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Determinants Chapter 3 of Lay

POLI270 - Linear Algebra

1 - Systems of Linear Equations

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

MTH 464: Computational Linear Algebra

Elementary maths for GMT

Question: Given an n x n matrix A, how do we find its eigenvalues? Idea: Suppose c is an eigenvalue of A, then what is the determinant of A-cI?

MAT Linear Algebra Collection of sample exams

Math 1021, Linear Algebra 1. Section: A at 10am, B at 2:30pm

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Numerical Linear Algebra

Program Lecture 2. Numerical Linear Algebra. Gaussian elimination (2) Gaussian elimination. Decompositions, numerical aspects

MODEL ANSWERS TO THE FIRST QUIZ. 1. (18pts) (i) Give the definition of a m n matrix. A m n matrix with entries in a field F is a function

Transcription:

MTH 215: Introduction to Linear Algebra Lecture 5 Jonathan A. Chávez Casillas 1 1 University of Rhode Island Department of Mathematics September 20, 2017

1 LU Factorization 2 3 4

Triangular Matrices Definition A matrix A = [a ij is called upper triangular if a ij = 0 whenever i > j. Thus the entries below the main diagonal equal 0. where refers to any number. 0...... 0 0 A lower triangular matrix is defined similarly, as a matrix for which all entries above the main diagonal are equal to zero.

LU Factorization An LU factorization of a matrix A is written A = LU where L is lower triangular matrix and U is upper triangular. We often require L to have only 1 s on the main diagonal. Motivation The LU factorization often helps to quickly solve equations of the form AX = B. An LU factorization can be found for a matrix A provided that the row-echelon form of A can be calculated without interchanging rows.

Table of Contents 1 LU Factorization 2 3 4

By Inspection Example Determine if the LU factorization of A exists, and if so, find it. [ 1 1 2 A = 2 3 0 Solution First check that the row-echelon form can be obtained without interchanging rows. [ [ 1 1 2 1 1 2 r 2 2r 1 2 3 0 0 1 4

By Inspection Example Determine if the LU factorization of A exists, and if so, find it. [ 1 1 2 A = 2 3 0 Solution First check that the row-echelon form can be obtained without interchanging rows. [ [ [ 1 1 2 1 1 2 1 1 2 r 2 2r 1 r 3 r 1 2 3 0 0 1 4 0 1 4 0 1 3

By Inspection Example Determine if the LU factorization of A exists, and if so, find it. [ 1 1 2 A = 2 3 0 Solution First check that the row-echelon form can be obtained without interchanging rows. [ [ [ [ 1 1 2 1 1 2 1 1 2 1 1 2 r 2 2r 1 r 3 r 1 r 3 +r 2 2 3 0 0 1 4 0 1 4 0 1 4 0 1 3 0 0 1

Solution (continued) You can see from here that the the row-echelon form can be obtained without interchanging rows. We proceed to finding L and U. Assign variables to the unknown entries and multiply. A = [ 1 1 2 2 3 0 = [ 1 0 0 x 1 0 y z 1 Solving each entry will give us values for the unknown entries. = [ a d e 0 b f 0 0 c [ a d e ax dx + b ex + f ay dy + bz ey + fz + c

Solution (continued) [ 1 1 2 2 3 0 = [ a d e ax dx + b ex + f ay dy + bz ey + fz + c We see easily that a = 1, d = 1, and e = 2. Continuing to solve the first column gives x = 2, y = 1. The other values are calculated as follows. dx + b = 3 dy + bz = 0 (1)(2) + b = 3 (1)(1) + (1)z = 0 b = 1 z = 1 ex + f = 0 ey + fz + c = 5 (2)(2) + f = 0 (2)(1) + ( 4)( 1) + c = 5 f = 4 c = 1

Solution (continued) Therefore L = U = [ 1 0 0 x 1 0 y z 1 [ a d e 0 b f 0 0 c You should multiply these and check that they equal A! [ 1 0 0 = 2 1 0 1 1 1 [ 1 1 2 = 0 1 4 0 0 1

Table of Contents 1 LU Factorization 2 3 4

The following process for finding L and U, called the multiplier method, can be more efficient. Example Find the LU factorization of A = Solution [ 1 1 2 2 3 0 First, write A as [ 1 1 2 2 3 0 = [ 1 0 0 0 1 0 0 0 1 [ 1 1 2 2 3 0 Now we will use row operations (except for interchanging rows) to transform the right side into the appropriate L and U.

Solution (continued) To do so, we use row operations to remove the entries of A below the main diagonal. For every operation we apply to A (the matrix on the right), we apply the inverse operation to the identity matrix (on the left). This ensures the product remains the same. The first step is to add ( 2) times the first row of A to the second row. To preserve the product, add (2) times the first row to the second row, for the matrix on the left. r 2 + 2r 1 [ 1 0 0 2 1 0 0 0 1 [ 1 1 2 0 1 4 r 2 2r 1

Solution (continued) We proceed in the same way. r 3 + r 1 [ 1 0 0 2 1 0 1 0 1 r 3 + r 1 [ 1 0 0 2 1 0 1 0 1 r 3 r 2 [ 1 0 0 2 1 0 1 1 1 [ 1 1 2 0 1 4 0 1 3 [ 1 1 2 0 1 4 0 1 3 [ 1 1 2 0 1 4 0 0 1 r 3 r 1 r 3 r 1 r 3 r 1 At this point we have a lower triangular matrix L on the left, and an upper triangular matrix U on the right so we are done. You can (and should!) check that this product equals A.

Problem Use the multiplier method to verify the LU factorization for A = [ 1 4 2 3 13 5 2 7 4 Solution A = [ 1 4 2 3 13 5 2 7 4 = [ 1 0 0 3 1 0 2 1 1 [ 1 4 2 0 1 1 0 0 1 = LU

Table of Contents 1 LU Factorization 2 3 4

using LU Factorization Suppose we wish to find all solutions X to the system AX = B. The LU factorization of A can assist in this process. Consider the following reduction: AX = B (LU)X = B L(UX) = B LY = B Therefore if we can solve LY = B for Y, then all that remains is to solve UX = Y for X.

Example Find all solutions to [ 1 3 2 0 3 10 5 1 0 1 2 1 x 1 x 2 x 3 x 4 = [ 2 4 6 Solution Using a method of your choice, verify that the LU factorization of A gives L = [ 1 0 0 3 1 0 0 1 1, U = [ 1 3 2 0 0 1 1 1 0 0 1 2

Solution (continued) Let Y = [ y1 y 2 y 3 The solution is Y = and solve LY = B. [ Now we solve UX = Y. 2 2 4. [ 1 0 0 3 1 0 0 1 1 [ 1 3 2 0 0 1 1 1 0 0 1 2 [ y1 y 2 y 3 x 1 x 2 x 3 x 4 = [ 2 4 6 = [ 2 2 4

Solution (continued) Multiplying and solving (or finding the row-reduced echelon form), the general solution is given by X = 12 2 4 0 + 13 3 2 1 t, t R

End of lecture for Thursday, September 21, 2017