Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

Similar documents
Computational Methods. Systems of Linear Equations

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

CS 323: Numerical Analysis and Computing

1 Number Systems and Errors 1

Linear Algebraic Equations

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015

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

Solving Linear Systems

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

Introduction to Applied Linear Algebra with MATLAB

The Solution of Linear Systems AX = B

1.Chapter Objectives

Review. Example 1. Elementary matrices in action: (a) a b c. d e f = g h i. d e f = a b c. a b c. (b) d e f. d e f.

Matrix decompositions

Iterative Methods. Splitting Methods

Process Model Formulation and Solution, 3E4

DEN: Linear algebra numerical view (GEM: Gauss elimination method for reducing a full rank matrix to upper-triangular

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

LINEAR SYSTEMS (11) Intensive Computation

Matrix decompositions

Algebra C Numerical Linear Algebra Sample Exam Problems

Numerical Analysis Fall. Gauss Elimination

Next topics: Solving systems of linear equations

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

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination

Linear Algebra Math 221

JACOBI S ITERATION METHOD

Numerical Analysis: Solutions of System of. Linear Equation. Natasha S. Sharma, PhD

Solving Linear Systems

A LINEAR SYSTEMS OF EQUATIONS. By : Dewi Rachmatin

LU Factorization. Marco Chiarandini. DM559 Linear and Integer Programming. Department of Mathematics & Computer Science University of Southern Denmark

Numerical methods, midterm test I (2018/19 autumn, group A) Solutions

Linear Algebraic Equations

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix

MA3232 Numerical Analysis Week 9. James Cooley (1926-)

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

Numerical Linear Algebra

Direct Methods for Solving Linear Systems. Matrix Factorization

Math/Phys/Engr 428, Math 529/Phys 528 Numerical Methods - Summer Homework 3 Due: Tuesday, July 3, 2018

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

COURSE Numerical methods for solving linear systems. Practical solving of many problems eventually leads to solving linear systems.

Linear Algebra Linear Algebra : Matrix decompositions Monday, February 11th Math 365 Week #4

Linear Equations in Linear Algebra

LU Factorization. LU Decomposition. LU Decomposition. LU Decomposition: Motivation A = LU

MATHEMATICS FOR COMPUTER VISION WEEK 2 LINEAR SYSTEMS. Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year

y b where U. matrix inverse A 1 ( L. 1 U 1. L 1 U 13 U 23 U 33 U 13 2 U 12 1

Matrix decompositions

lecture 2 and 3: algorithms for linear algebra

lecture 3 and 4: algorithms for linear algebra

TMA4125 Matematikk 4N Spring 2017

Scientific Computing

Numerical Methods for Chemical Engineers

Direct Methods for solving Linear Equation Systems

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit VII Sparse Matrix

Chapter 9: Gaussian Elimination

Linear System of Equations

Linear Systems of n equations for n unknowns

Math 471 (Numerical methods) Chapter 3 (second half). System of equations

Hani Mehrpouyan, California State University, Bakersfield. Signals and Systems

1 GSW Sets of Systems

Computational Linear Algebra

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

AMS526: Numerical Analysis I (Numerical Linear Algebra)

BlockMatrixComputations and the Singular Value Decomposition. ATaleofTwoIdeas

Section 5.6. LU and LDU Factorizations

MAT 343 Laboratory 3 The LU factorization

CPE 310: Numerical Analysis for Engineers

Solving Linear Systems of Equations

AMS526: Numerical Analysis I (Numerical Linear Algebra)

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

Gaussian Elimination without/with Pivoting and Cholesky Decomposition

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1

CHAPTER 6. Direct Methods for Solving Linear Systems

3.2 Iterative Solution Methods for Solving Linear

CSE 160 Lecture 13. Numerical Linear Algebra

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

Numerical Methods I: Numerical linear algebra

Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems

6. Iterative Methods for Linear Systems. The stepwise approach to the solution...

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

Numerical Methods in Matrix Computations

(17) (18)

2.1 Gaussian Elimination

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

Numerical Solution Techniques in Mechanical and Aerospace Engineering

Linear Equations and Matrix

9.1 Preconditioned Krylov Subspace Methods

MATH 3511 Lecture 1. Solving Linear Systems 1

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions.

Linear Algebra Review

Direct Methods for Solving Linear Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

Math 1314 Week #14 Notes

Introduction to Mathematical Programming

Numerical Methods - Numerical Linear Algebra

Applied Linear Algebra

Linear System of Equations

9. Iterative Methods for Large Linear Systems

Numerical Linear Algebra

EE5120 Linear Algebra: Tutorial 1, July-Dec Solve the following sets of linear equations using Gaussian elimination (a)

Transcription:

Today s class Linear Algebraic Equations LU Decomposition 1

Linear Algebraic Equations Gaussian Elimination works well for solving linear systems of the form: AX = B What if you have to solve the linear system several times, with changing B vectors? Then, Gaussian elimination becomes tedious Instead, use a method that separates out transformations on A from transformations on B 2

LU Decomposition Assume that A can be factorized into the product of an upper triangular matrix and a lower triangular matrix 3

LU Decomposition Substitute the factorization into the linear system We have transformed the problem into two steps Factorize A into L and U Solve the two sub problems LD=B UX=D 4

LU Decomposition The upper triangular matrix comes from Forward elimination Eliminate x1 from row 2 Multiply row 1 by l 21 =a 21 /a 11 This time keep track of the multiplier factors 5

LU Decomposition Populate the L matrix with the multiplier factors used during forward elimination 6

LU Decomposition Construct the L and U matrices Solve for the D vector using forward substitution Solve for the X vector using backward substitution 7

LU Decomposition Example Factorize A using forward elimination 8

LU Decomposition Example 9

LU Decomposition Example 10

LU Decomposition Example 11

LU Decomposition Example 12

LU Decomposition Example Factorize A using forward elimination 13

LU Decomposition When LU decomposition is not possible because of division by zero, introduce a permutation matrix that will pivot the matrix PA = LU P is a matrix with precisely single 1 in each column and row and all other entries are zero 14

LU Decomposition Example 15

Matrix inversion Find the matrix inverse using LU decomposition [A][A] -1 =[I] LU decomposition allows us to change b To find the inverse, set b to each of the unit vectors in the identity matrix The corresponding x solution represents the respective column in the inverse matrix 16

Matrix inversion Example: Find inverse of 17

Matrix inversion Start with b = 18

Matrix inversion 19

Matrix inversion 20

Matrix inversion Put the three x vectors together to get the inverse 21

LU Decomposition Tridiagonal systems 22

LU Decomposition Symmetric matrices Cholesky Decomposition 23

Iterative Methods When exactness is not required, and an approximate solution is fine, you can use an iterative method to solve the linear system Better control of round-off errors Jacobi relaxation Gauss-Seidel 24

Jacobi iteration Use an iteration method to refine the estimate of the solution Example Rewrite the equations in a x=g(x,y,z) form 25

Jacobi iteration 26

Jacobi iteration Start with x=1, y=2, z=2 27

Jacobi iteration Non-convergent example Rewrite the equations in a x=g(x,y,z) form 28

Jacobi iteration Start with x=1, y=2, z=2 29

Gauss-seidel iteration Similar to Jacobi, except that we use the latest value of x and y when calculating y and z 30

Gauss-seidel iteration Start with x=1, y=2, z=2 31

Iterative methods Stopping criteria Define the norm of a vector as The euclidean distance is Use this value to calculate your approximate error 32

Iterative methods Convergence criteria In general 33

Iterative methods u :13x 2 v : 9x 2 + 11x 1 + 11x 1 = 286 = 99 v : 9x u :13x 2 2 + 11x + 11x 1 1 = 99 = 286 34

Exam 1 Oct 4, closed book, one cheat sheet (8.5in x 11in) allowed Chapters 1-11 Error Analysis Taylor Series Roots of Equations Linear Systems 35

Next class Optimization HW4, due 10/4 36