Major: All Engineering Majors Authors: Autar Kaw

Slides:



Advertisements
Similar presentations
4/22/ LU Decomposition Electrical Engineering Majors Authors: Autar Kaw Transforming.
Advertisements

4/26/ LU Decomposition Civil Engineering Majors Authors: Autar Kaw Transforming.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Major: All Engineering Majors Authors: Autar Kaw
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Chapter 9.1 = LU Decomposition MATH 264 Linear Algebra.
Major: All Engineering Majors Author(s): Autar Kaw
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
1 Systems of Linear Equations (Optional) Special Matrices.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Major: All Engineering Majors Author(s): Autar Kaw
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Computer Engineering Majors Authors: Autar Kaw
Scientific Computing Linear Systems – LU Factorization.
G AUSSIAN E LIMINATION Presented by: Max Le Max Le Justin Lavorgna Data Structures II: Algorithm Design & Analysis Algorithm Design & Analysis.
Chapter 7 Notes Honors Pre-Calculus. 7.1/7.2 Solving Systems Methods to solve: EXAMPLES: Possible intersections: 1 point, 2 points, none Elimination,
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Ch X 2 Matrices, Determinants, and Inverses.
1.10 and 1.11 Quiz : Friday Matrices Test: Oct. 20.
1. Inverse of A 2. Inverse of a 2x2 Matrix 3. Matrix With No Inverse 4. Solving a Matrix Equation 1.
Inverse and Identity Matrices Can only be used for square matrices. (2x2, 3x3, etc.)
Chemical Engineering Majors Author(s): Autar Kaw
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Lecture 8 Matrix Inverse and LU Decomposition
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Multiplicative inverse and solving matrix equations
Gaussian Elimination Industrial Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Gaussian Elimination Mechanical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
1/18/ LU Decomposition Industrial Engineering Majors Authors: Autar Kaw Transforming.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
4-5 – 2x2 Matrices, Determinants, & Inverses. Objectives Evaluating Determinants of 2x2 Matrices Using Inverse Matrices to Solve Equations.
Mechanical Engineering Majors Authors: Autar Kaw
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Linear Algebra Review Tuesday, September 7, 2010.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Sinwook Lee Digital Media Lab. HYU.  Linear Equations  To gain the appropriate solution, 1..n of equations are necessary.  The num of equations < n.
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.
LU Decomposition ● In Gauss elimination; Forward elimination Backward substitution Major computational effort Low computational effort can be used for.
ECE 3301 General Electrical Engineering
Spring Dr. Jehad Al Dallal
Finding the Inverse of a Matrix
Linear Equations.
Multiplication of Matrices
Linear Algebra Lecture 15.
Chapter 6 Direct Methods for Solving Linear Systems
Autar Kaw Benjamin Rigsby
Major: All Engineering Majors Authors: Autar Kaw
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Chemical Engineering Majors Authors: Autar Kaw
Multiplicative Inverses of Matrices and Matrix Equations
Major: All Engineering Majors Author(s): Autar Kaw
Warm-up: Find the equation of the parabola y = ax2 + bx + c that passes through the given points: (-1, 4), (1, -6), (2, -5) CW: 7.1 – 7.3 Systems Quiz.
Numerical Computation and Optimization
Section 9.5 Inverses of Matrices
ARRAY DIVISION Identity matrix Islamic University of Gaza
Matrix Algebra.
Multiplication of Matrices
Major: All Engineering Majors Authors: Autar Kaw
3.6 Multiply Matrices.
Warm-up: Solve the system by any method:
Lecture 8 Matrix Inverse and LU Decomposition
Matrices and Linear Equations
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

LU Decomposition http://numericalmethods.eng.usf.edu Major: All Engineering Majors Authors: Autar Kaw http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates 11/21/2019 http://numericalmethods.eng.usf.edu

Time Taken by Back Substitution n = length(B); X(n)=B(n)/A(n,n) for i=n-1:-1:1 X(i) = B(i); for j=(i+1):1:n X(i) = X(i) - A(i, j)*X(j); end X(i) = X(i)/A(i, i); Back Substitution http://numericalmethods.eng.usf.edu

Is LU Decomposition better than Gaussian Elimination? Solve [A][X] = [B] T = clock cycle time and nxn = size of the matrix Forward Elimination Decomposition to LU Back Substitution Forward Substitution Back Substitution http://numericalmethods.eng.usf.edu

Is LU Decomposition better than Gaussian Elimination? To solve [A][X] = [B] Time taken by methods T = clock cycle time and nxn = size of the matrix So both methods are equally efficient. Gaussian Elimination LU Decomposition http://numericalmethods.eng.usf.edu

Truss Problem http://nm.mathforcollege.com

Finding the inverse of a square matrix The inverse [B] of a square matrix [A] is defined as [A][B] = [I] OR [B][A] = [I] http://numericalmethods.eng.usf.edu

Finding the inverse of a square matrix How can LU Decomposition be used to find the inverse? [A][B] = [I] First column of [B] Second column of [B] The remaining columns in [B] can be found in the same manner http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix Find the inverse of a square matrix [A] Using the decomposition procedure, the [L] and [U] matrices are found to be http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix Solving for the each column of [B] requires two steps Solve [L] [Z] = [C] for [Z] Solve [U] [X] = [Z] for [X] Step 1: This generates the equations: http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix Solving for [Z] http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix Solving [U][X] = [Z] for [X] http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix Using Backward Substitution So the first column of the inverse of [A] is: http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix Repeating for the second and third columns of the inverse Second Column Third Column http://numericalmethods.eng.usf.edu

Example: Inverse of a Matrix The inverse of [A] is To check your work do the following operation [A][A]-1 = [I] = [A]-1[A] http://numericalmethods.eng.usf.edu

Time taken by Gaussian Elimination Time taken by LU Decomposition To find inverse of [A] Time taken by Gaussian Elimination Time taken by LU Decomposition http://numericalmethods.eng.usf.edu

Time taken by Gaussian Elimination Time taken by LU Decomposition To find inverse of [A] Time taken by Gaussian Elimination Time taken by LU Decomposition Table 1 Comparing computational times of finding inverse of a matrix using LU decomposition and Gaussian elimination. n 10 100 1000 10000 CT|inverse GE / CT|inverse LU 3.288 25.84 250.8 2501 For large n, CT|inverse GE / CT|inverse LU ≈ n/4 http://numericalmethods.eng.usf.edu