1 / 19

Chapter 11: Matrix Inverse

Chapter 11: Matrix Inverse. Uchechukwu Ofoegbu Temple University. Gaussian Jordan Method. Involves complete pivoting so that the coefficient matrix becomes diagonal Eliminates the need for substitution Also used in finding inverses. Gaussian Jordan Method. Steps

edithcole
Download Presentation

Chapter 11: Matrix Inverse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 11: Matrix Inverse Uchechukwu Ofoegbu Temple University

  2. Gaussian Jordan Method • Involves complete pivoting so that the coefficient matrix becomes diagonal • Eliminates the need for substitution • Also used in finding inverses

  3. Gaussian Jordan Method • Steps • Write down the matrix corresponding to the linear system. • Make sure that the first entry in the first column is nonzero. Do this by interchanging the first row with one of the rows below it, if necessary. • Pivot the matrix about the first entry in the first column. • Pivoting in this case also involves normalizing the diagonal entry • Make sure that the second entry in the second column is nonzero. Do this by interchanging the second row with one of the rows below it, if necessary. • Pivot the matrix about the second entry in the second column. • Continue in this manner until you have the identity matrix on the left hand side

  4. Example – System of Equations • Using the Gauss-Jordan method, solve the following system of equations • Using Matlab colon operations • Check with Matlab’s back slash operation

  5. Infinitely Many Solutions • When a linear system cannot be completely diagonalized, • Apply the Gaussian elimination method to as many columns as possible. Proceed from left to right, but do not disturb columns that have already been put into proper form. • Variables corresponding to columns not in proper form can assume any value. • The other variables can be expressed in terms of the variables of step 2. • 4. This will give the general form of the solution.

  6. Example Infinitely Many Solutions Find all solutions of General Solution z = any real number x = 3 - 2z y = 1

  7. Inconsistent System When using the Gaussian elimination method: if a row of zeros occurs to the left of the vertical line and a nonzero number is to the right of the vertical line in the same row, then the system has no solution and is said to be inconsistent.

  8. Because of the last row, the system is inconsistent. Example Inconsistent System Find all solutions of

  9. Gauss-Jordan Method for Inverses • Step 1: Write down the matrix A, and on its right write an identity matrix of the same size. • Step 2: Perform elementary row operations on the left-hand matrix so as to transform it into an identity matrix. These same operations are performed on the right-hand matrix. • Step 3: When the matrix on the left becomes an identity matrix, the matrix on the right is the desired inverse.

  10. Example Inverses Find the inverse of Step 1: Step 2:

  11. Example Inverses (2) Step 3:

  12. Vector and Matrix Norms • A norm is a real-valued function that provides a measure of the size or “length” of multi-component mathematical entities such as vectors and matrices. • Vector norms and matrix norms may be computed differently.

  13. Vector Norms • For a vector {X} of size n, the p-norm is: • Important examples of vector p-norms include:

  14. Matrix Norms • Common matrix norms for a matrix [A] include:

  15. Example • Find the norms of the following:

  16. Ill-Conditioned Problems • Linear equations that are solvable but solutions become inaccurate because of rounding errors • Small changes in coefficient matrix that will make big changes in solutions • Ill-conditioned problem is the nature of the problem itself • Use format long ( quad precision) for mild ill-condition problems

  17. Ill-Conditioned Problems • ill-conditioned problem will have • det(A) very small • cond(A) large • Check ill-conditioned • det(A)*det(inv(A) deviates from 1 • inv(inv(A)) deviates from A • A*inv(A) deviates from I • cond(A*inv(A)) deviates from 1

  18. MATLAB Commands • MATLAB has built-in functions to compute both norms and condition numbers: • norm(X,p) • Compute the p norm of vector X, where p can be any number, inf, or ‘fro’ (for the Euclidean norm) • norm(A,p) • Compute a norm of matrix A, where p can be 1, 2, inf, or ‘fro’ (for the Frobenius norm) • cond(X,p) or cond(A,p) • Calculate the condition number of vector X or matrix A using the norm specified by p.

  19. Lab • Ex 11.2 • Determine the inverse of the coefficient matrix using the Gauss-Jordan method step-by-step in Matlab • Solve the system of equations using the Gauss-Jordan method step-by-step in Matlab • Compare your answers to a and b with Matlab’s built-in functions (inv, back slash) • Determine the Frobenius norm of the coefficient matrix • By hand • Using Matlab’s built-in ‘norm’ function • Compare your answers

More Related