Autar Kaw Benjamin Rigsby. Transforming Numerical Methods Education for STEM Undergraduates

Similar documents
LU Decomposition. Mechanical Engineering Majors. Authors: Autar Kaw

LARP / 2018 ACK : 1. Linear Algebra and Its Applications - Gilbert Strang 2. Autar Kaw, Transforming Numerical Methods Education for STEM Graduates

CE 601: Numerical Methods Lecture 5. Course Coordinator: Dr. Suresh A. Kartha, Associate Professor, Department of Civil Engineering, IIT Guwahati.

x = 12 x = 12 1x = 16

Computational Methods CMSC/AMSC/MAPL 460. Vectors, Matrices, Linear Systems, LU Decomposition, Ramani Duraiswami, Dept. of Computer Science

Matrix Inverse 2 ( 2) 1 = 2 1 2

Computational Methods CMSC/AMSC/MAPL 460. Vectors, Matrices, Linear Systems, LU Decomposition, Ramani Duraiswami, Dept. of Computer Science

Chapter LU Decomposition More Examples Electrical Engineering

CS Elementary Graph Algorithms & Transform-and-Conquer

Numerical Methods 5633

Numerical Linear Algebra

Parallel Implementations of Gaussian Elimination

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Computational Methods CMSC/AMSC/MAPL 460. Linear Systems, LU Decomposition, Ramani Duraiswami, Dept. of Computer Science

Assignment 2. with (a) (10 pts) naive Gauss elimination, (b) (10 pts) Gauss with partial pivoting

Project Report. 1 Abstract. 2 Algorithms. 2.1 Gaussian elimination without partial pivoting. 2.2 Gaussian elimination with partial pivoting

0_PreCNotes17 18.notebook May 16, Chapter 12

Section 3.1 Gaussian Elimination Method (GEM) Key terms

Aim. Structure and matrix sparsity: Part 1 The simplex method: Exploiting sparsity. Structure and matrix sparsity: Overview

Practice Test - Chapter 6

10/26/ Solving Systems of Linear Equations Using Matrices. Objectives. Matrices

6-2 Matrix Multiplication, Inverses and Determinants

MA 162: Finite Mathematics - Sections 2.6

EXTENSION. a 1 b 1 c 1 d 1. Rows l a 2 b 2 c 2 d 2. a 3 x b 3 y c 3 z d 3. This system can be written in an abbreviated form as

6-1 Practice Multivariable Linear Systems and Row Operations

Interlude: Solving systems of Equations

Multiple View Geometry in Computer Vision

(Sparse) Linear Solvers

AH Matrices.notebook November 28, 2016

Identity Matrix: >> eye(3) ans = Matrix of Ones: >> ones(2,3) ans =

Math 13 Chapter 3 Handout Helene Payne. Name: 1. Assign the value to the variables so that a matrix equality results.

2.7 Numerical Linear Algebra Software

4. Linear Algebra. In maple, it is first necessary to call in the linear algebra package. This is done by the following maple command

(Sparse) Linear Solvers

LU Decomposition Method

Addition/Subtraction flops. ... k k + 1, n (n k)(n k) (n k)(n + 1 k) n 1 n, n (1)(1) (1)(2)

Iterative Algorithms I: Elementary Iterative Methods and the Conjugate Gradient Algorithms

Solving Systems of Equations Using Matrices With the TI-83 or TI-84

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix.

Maths for Signals and Systems Linear Algebra in Engineering. Some problems by Gilbert Strang

Exercise Set Decide whether each matrix below is an elementary matrix. (a) (b) (c) (d) Answer:

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

Lecture 12 (Last): Parallel Algorithms for Solving a System of Linear Equations. Reference: Introduction to Parallel Computing Chapter 8.

Math 2233 Homework Set 9

MA/CSSE 473 Day 20. Recap: Josephus Problem

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Math 1B03/1ZC3 - Tutorial 3. Jan. 24th/28th, 2014

(Creating Arrays & Matrices) Applied Linear Algebra in Geoscience Using MATLAB

COMPUTER OPTIMIZATION

Linear Equation Systems Iterative Methods

A New Formulae Method For Solving The Simultaneous Equations

Arrays, Matrices and Determinants

Math 355: Linear Algebra: Midterm 1 Colin Carroll June 25, 2011

The real voyage of discovery consists not in seeking new landscapes, but in having new eyes.

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

Some Linear Algebra Basics in Maple

Matlab and Octave: Quick Introduction and Examples 1 Basics

Solve the matrix equation AX B for X by using A.(1-3) Use the Inverse Matrix Calculator Link to check your work

Name Class Date. Quadratic Functions and Transformations

COMP 558 lecture 19 Nov. 17, 2010

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

Now, start over with a smarter method. But it is still heavily relied on the power of matlab. But we can see the pattern of the matrix elements.

TUTORIAL 1 Introduction to Matrix Calculation using MATLAB TUTORIAL 1 INTRODUCTION TO MATRIX CALCULATION USING MATLAB

CS6015 / LARP ACK : Linear Algebra and Its Applications - Gilbert Strang

CS Data Structures and Algorithm Analysis

MA/CSSE 473 Day 20. Student Questions

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

Independent systems consist of x

Computer Vision. Geometric Camera Calibration. Samer M Abdallah, PhD

Chapter Binary Representation of Numbers

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors.

2. Use elementary row operations to rewrite the augmented matrix in a simpler form (i.e., one whose solutions are easy to find).

3. Replace any row by the sum of that row and a constant multiple of any other row.

Theory of Integers. CS389L: Automated Logical Reasoning. Lecture 13: The Omega Test. Overview of Techniques. Geometric Description

Answers to Homework 12: Systems of Linear Equations

Matrices. A Matrix (This one has 2 Rows and 3 Columns) To add two matrices: add the numbers in the matching positions:

A Study of Numerical Methods for Simultaneous Equations

Simultaneous equations 11 Row echelon form

Solving Systems Using Row Operations 1 Name

MAT 343 Laboratory 2 Solving systems in MATLAB and simple programming

MA 323 Geometric Modelling Course Notes: Day 28 Data Fitting to Surfaces

CS 6210 Fall 2016 Bei Wang. Review Lecture What have we learnt in Scientific Computing?

Computational Foundations of Cognitive Science. Inverse. Inverse. Inverse Determinant

AMSC/CMSC 460 Final Exam, Fall 2007

Array Dependence Analysis as Integer Constraints. Array Dependence Analysis Example. Array Dependence Analysis as Integer Constraints, cont

Precalculus Notes: Unit 7 Systems of Equations and Matrices

Topic 3. Mathematical Operations Matrix & Linear Algebra Operations Element-by-Element(array) Operations

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment

Iterative Methods for Linear Systems

Algorithms and Data Structures

Dense Matrix Algorithms

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

LINPACK Benchmark. on the Fujitsu AP The LINPACK Benchmark. Assumptions. A popular benchmark for floating-point performance. Richard P.

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses

Solutions to Programming Assignment Four Simultaneous Linear Equations

Mathematics 4330/5344 #1 Matlab and Numerical Approximation

Lecture 5: Matrices. Dheeraj Kumar Singh 07CS1004 Teacher: Prof. Niloy Ganguly Department of Computer Science and Engineering IIT Kharagpur

Iterative Sparse Triangular Solves for Preconditioning

Transcription:

Autar Kaw Benjamin Rigsy http://nmmathforcollegecom Transforming Numerical Methods Education for STEM Undergraduates

http://nmmathforcollegecom

LU Decomposition is another method to solve a set of simultaneous linear equations Which is etter, Gauss Elimination or LU Decomposition?

Method For most non-singular matrix [A] that one could conduct Naïve Gauss Elimination forward elimination steps, one can always write it as where [A] [L][U] [L] lower triangular matrix [U] upper triangular matrix

If solving a set of linear equations If [A] [L][U] then Multiply y Which gives Rememer [L] - [L] [I] which leads to Now, if [I][U] [U] then Now, let Which ends with and [A][X] [C] [L][U][X] [C] [L] - [L] - [L][U][X] [L] - [C] [I][U][X] [L] - [C] [U][X] [L] - [C] [L] - [C][Z] [L][Z] [C] () [U][X] [Z] ()

How can this e used? Given [A][X] [C] Decompose [A] into [L] and [U] Solve [L][Z] [C] for [Z] Solve [U][X] [Z] for [X]

Solve [A][X] [B] T clock cycle time and n n sie of the matrix Forward Elimination CT FE 8n T + 8n ( 4n + n) CT BS T n Back Sustitution Decomposition to LU CT DE 8n T + 4n n Forward Sustitution ( 4n n) CT FS T 4 Back Sustitution ( 4n + n) CT BS T

Time taken y methods To solve [A][X] [B] Gaussian Elimination LU Decomposition T n 8 + n 4n + T T clock cycle time and n n sie of the matrix n 8 + n + 4n So oth methods are equally efficient

Time taken y Gaussian Elimination n ( CT + CT ) 8n T 4 FE + n + BS 4n Time taken y LU Decomposition CT LU n T + n CT + n FS + n CT n + BS

Time taken y Gaussian Elimination 8n T 4 + n + 4n Time taken y LU Decomposition n T + n n Tale Comparing computational times of finding inverse of a matrix using LU decomposition and Gaussian elimination n CT inverse GE / CT inverse LU 88 584 58 5 For large n, CT inverse GE / CT inverse LU n/4 http://numericalmethodsengusfedu

[ A] [ L][ U ] u u u u u u [U] is the same as the coefficient matrix at the end of the forward elimination step [L] is otained using the multipliers that were used in the forward elimination process

Using the Forward Elimination Procedure of Gauss Elimination 5 64 44 5 8 Step : 64 5 ( ) 56; Row Row 56 5 44 5 48 56 44 5 ( ) 576; Row Row 576 5 5 48 68 56 476

Matrix after Step : 5 5 48 68 56 476 Step : 68 48 5; Row Row ( 5) 5 5 48 56 7 [ U ] 5 5 48 56 7

Using the multipliers used during the Forward Elimination Procedure From the first step of forward elimination 5 64 44 5 8 64 5 a a 44 5 a a 56 576

From the second step of forward elimination 5 5 48 68 56 476 a a 68 48 5 [ L] 56 576 5

576 5 5 [ L][ U ] 56 48 56 5 7?

Solve the following set of linear equations using LU Decomposition 79 77 6 8 44 8 64 5 5 x x x Using the procedure for finding the [L] and [U] matrices [ ] [ ][ ] 7 56 48 5 5 5 576 56 U L A

Set [L][Z] [C] Solve for [Z] 79 77 68 5 576 56 79 5 576 77 56 + + +

Complete the forward sustitution to solve for [Z] 68 77 56 96 ( ) 77 56 68 79 576 5 79 576 68 75 ( ) 5( 96) [ Z ] 68 96 75

Set [U][X] [Z] 5 5 48 56 7 x x x 6 8 96 75 Solve for [X] The equations ecome 5a 48a + 5a + a 56a 7a 68 96 75

From the rd equation Sustituting in a and using the second equation 7a a a 75 75 7 5 a a a 4 8a 56 a 96 96 + 56 a 4 8 96 + 56 5 4 8 9 7 ( )

Sustituting in a and a using the first equation Hence the Solution Vector is: 5a + 5a + a 6 8 a 6 8 5a a 5 6 8 5 9 7 5 9 ( ) 5 a a a 9 97 5

The inverse [B] of a square matrix [A] is defined as [A][B] [I] [B][A]

How can LU Decomposition e used to find the inverse? Assume the first column of [B] to e [ n ] T Using this and the definition of matrix multiplication First column of [B] Second column of [B] [ ] n A [ ] n A The remaining columns in [B] can e found in the same manner

Find the inverse of a square matrix [A] [ A] 5 5 64 44 8 Using the decomposition procedure, the [L] and [U] matrices are found to e [ A] [ L][ U ] 56 5 76 5 5 5 4 8 56 7

Solving for the each column of [B] requires two steps ) Solve [L] [Z] [C] for [Z] ) Solve [U] [X] [Z] for [X] Step : [ ][ ] [ ] 5 576 56 C Z L This generates the equations: 5 576 56 + + +

Solving for [Z] ( ) ( ) ( ) 56 5 5 76 5 5 76 56 56 56 [ ] 56 Z

Solving [U][X] [Z] for [X] 56 7 56 48 5 5 7 56 56 48 5 5 + +

Using Backward Sustitution 457 7 56 + 56 48 56 + 56( 457) 954 48 5 5 5( 954) 457 476 5 So the first column of the inverse of [A] is: 476 954 457

Repeating for the second and third columns of the inverse Second Column Third Column 44 8 64 5 5 5 47 8 44 8 64 5 5 49 464 57

The inverse of [A] is [ A] 476 954 457 8 47 5 57 464 49 To check your work do the following operation [A][A] - [I] [A] - [A]

For all resources on this topic such as digital audiovisual lectures, primers, textook chapters, multiple-choice tests, worksheets in MATLAB, MATHEMATICA, MathCad and MAPLE, logs, related physical prolems, please visit http://numericalmethodsengusfedu/topics/lu_decompositio nhtml

THE END http://numericalmethodsengusfedu