Chapter 11 Matrix Inverse and Condition. zHow do we get inverse [A]  1 ? zOne way is through LU decomposition and back- substitution zSolve [A]{x i }

Slides:



Advertisements
Similar presentations
Method If an nxn matrix A has an LU-factorization, then the solution of AX = b can be determined by a Forward substitution followed by a Back substitution.
Advertisements

Major: All Engineering Majors Authors: Autar Kaw
Grayson Ishihara Math 480 April 15,  What is Partial Pivoting?  What is the PA=LU Factorization?  What kinds of things can we use these tools.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Part 3 Chapter 9 Gauss Elimination
Chapter 9 Gauss Elimination The Islamic University of Gaza
Lecture 11 - LU Decomposition
Chapter 9 Gauss Elimination.
Linear Algebraic Equations
LU method 1) factor (decompose) A into L and U 2) given b, determine d 3) using Ux=d and backsubstitution, solve for x Advantage: Once you have L and U,
24 Jul 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 3 – Systems of Linear Equations 24 July am – 9.00 am.
Chapter 10 LU Decomposition.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Tutorial 10 Iterative Methods and Matrix Norms. 2 In an iterative process, the k+1 step is defined via: Iterative processes Eigenvector decomposition.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Linear Least Squares QR Factorization. Systems of linear equations Problem to solve: M x = b Given M x = b : Is there a solution? Is the solution unique?
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 10 LU Decomposition and Matrix.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
1 Systems of Linear Equations Gauss-Jordan Elimination and LU Decomposition.
1 Systems of Linear Equations Error Analysis and System Condition.
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
Chapter 8 Objectives Understanding matrix notation.
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Engineering Analysis ENG 3420 Fall 2009
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Linear.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Square n-by-n Matrix.
ES 240: Scientific and Engineering Computation. Matrix Inverse Chapter 11: Matrix Inverse Uchechukwu Ofoegbu Temple University.
Linear Systems Gaussian Elimination CSE 541 Roger Crawfis.
1 Iterative Solution Methods Starts with an initial approximation for the solution vector (x 0 ) At each iteration updates the x vector by using the sytem.
Introduction to Numerical Analysis I MATH/CMPSC 455 PA=LU.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
6. LU Factorization Kim Hong Soo Kim Jin Soo
Part 3 Chapter 11 Matrix Inverse and Condition PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Ch X 2 Matrices, Determinants, and Inverses.
Lecture 28: Mathematical Insight and Engineering.
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
Part 3 Chapter 11 Matrix Inverse and Condition Part A All images copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 2 System of Linear Equations Sensitivity and Conditioning (2.3) Solving Linear Systems (2.4) January 19, 2010.
Lecture 8 Matrix Inverse and LU Decomposition
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
4.5 Matrices, Determinants, Inverseres -Identity matrices -Inverse matrix (intro) -An application -Finding inverse matrices (by hand) -Finding inverse.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Lecture 10 - Nonlinear gradient techniques and LU Decomposition CVEN 302 June 24, 2002.
2x2 Matrices, Determinants and Inverses
2.5 Determinants and Multiplicative Inverses of Matrices. Objectives: 1.Evaluate determinants. 2.Find the inverses of matrices. 3.Solve systems of equations.
1 Chapter: 3a System of Linear Equations Dr. Asaf Varol.
3/1/ LU Decomposition Computer Engineering Majors Authors: Autar Kaw Transforming.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
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.
13.4 Product of Two Matrices
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Matrix Inverse and Condition
Chapter 10.
4-2 Adding & Subtracting Matrices
Multiplicative Inverses of Matrices and Matrix Equations
Numerical Computation and Optimization
Numerical Analysis Lecture10.
Major: All Engineering Majors Authors: Autar Kaw
Lecture 8 Matrix Inverse and LU Decomposition
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Chapter 11 Matrix Inverse and Condition

zHow do we get inverse [A]  1 ? zOne way is through LU decomposition and back- substitution zSolve [A]{x i } = {b i } with zPut together x’s to get [A] -1 ={x 1, x 2,x 3,x 4 } Matrix Inverse Sequentially!

z[A] [A]  1 = [ I ] zUse LU factorization to find [X] = [A]  1 zLU decomposition: [A] = [L][U] zForward substitution: [L][Y] = [ I ] zBack substitution: [U][X] = [Y]

Matrix Inverse zForward Substitution [L][Y] = [ I ]

Matrix Inverse zback Substitution [U][X] = [ Y ]

function x = LU_Solve_Gen(L, U, B) % Function to solve the equation L U x = B % L --> Lower triangular matrix (1's on diagonal) % U --> Upper triangular matrix % B --> Right-hand-side matrix [n n2] = size(L); [m1 m] = size(B); % Solve L d = B using forward substitution for j = 1 : m d(1,j) = B(1,j); for i = 2 : n d(i,j) = B(i,j) - L(i, 1:i-1) * d(1:i-1,j); end % SOlve U x = d using back substitution for j = 1 : m x(n,j) = d(n,j) / U(n,n); for i = n-1 : -1 : 1 x(i,j) = (d(i,j) - U(i,i+1:n) * x(i+1:n,j)) / U(i,i); end

» B=eye(3) B = » x=LU_solve_gen(L,U,B) x = » inv(A) ans = » A=[ ; ; ] A = » [L,U]=LU_factor(A); L = U = Example: Matrix Inverse MATLAB function

Error Analysis and System Condition zThe matrix inverse provides a means to discern whether a system is ill-conditioned 1.Normalize rows of matrix [A] to 1. If the elements of [A]  1 are >> 1, the matrix is likely ill-conditioned 2.If [A]  1 [A] is not close to [ I ], the matrix is probably ill-conditioned 3.If ([A]  1 )  1 is not close to [A], the matrix is ill- conditioned

Vector and Matrix Norms  Norm: provide a measure of the size or “length” of multi- component mathematical entities such as vectors and matrices Euclidean norm of a vector (3D space)

Matrix Norm zFor n  n matrix, the Frobenius norm zFrobenius norm provides a single value to quantify the size of matrix [A] zOther alternatives – p norms for vectors p = 2 : Euclidean norm

Vector and Matrix Norms zVector norms ( p-norms) zMatrix norms Column-sum norm Row-sum norm Sum of absolute values Maximum-magnitude or uniform-vector norm

 Condition number defined in terms of matrix norms  Cond[A] is great than or equal to 1  Matrix A is ill-conditioned if Cond[A] >> 1  If [A] has 10  7 rounding error and Cond[A] = 10 5, then the solution [X] may be valid to only 10  2 Matrix Condition Number Relative error of the norm

Matrix Condition Evaluation zHilbert matrix – notoriously ill-conditioned zRow-sum norm (last row has the largest sum) Normalization

Matrix Condition Evaluation z5  5 Hilbert matrix zCondition number

MATLAB Norms and Condition Numbers >> A=[1 1/2 1/3 1/4 1/5; 1 2/3 2/4 2/5 2/6; 1 3/4 3/5 3/6 3/7; 1 4/5 4/6 4/7 4/8; 1 5/6 5/7 5/8 5/9]; >> Ainv = inv(A) Ainv = >> norm(A,inf) ans = >> norm(Ainv,inf) ans = e+005 >> cond(A,inf) ans = e+005 >> cond(A,'fro') ans = e+005 >> cond(A) ans = e+005 >> norm(X,p) >> cond(X,p) >> Cond(A,’fro’) >> cond(A) p-norm Frobenius norm Spectral norm

CVEN Homework No. 7 zChapter 10 zProb. 10.4(20), 10.5(20) both using LU decomposition (hand calculation only, hand partial pivoting if necessary), Prob a)&b) (20). zChapter 11 zProb (15), 11.3 a) & b) (20) (Hand Calculations) zProb (25) (Hand Calculations; Check your solutions using MATLAB) zDue Monday 10/13/08 at the beginning of the period