Numerical Computation Lecture 7: Finding Inverses: Gauss-Jordan United International College.

Slides:



Advertisements
Similar presentations
Rules of Matrix Arithmetic
Advertisements

1.5 Elementary Matrices and a Method for Finding
Gauss – Jordan Elimination Method: Example 2 Solve the following system of linear equations using the Gauss - Jordan elimination method Slide 1.
Scientific Computing Linear Systems – Gaussian Elimination.
1.5 Elementary Matrices and a Method for Finding
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
Inverses of n x n Matrices. The Inverse Matrix If A is an n x n matrix, the inverse of A (call it A -1 ) is the matrix such that A * A -1 is equal to.
Matrices & Systems of Linear Equations
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Goldstein/Schnieder/Lay: Finite Math & Its Applications, 9e 1 of 86 Chapter 2 Matrices.
Chapter 2 Section 1 Solving a System of Linear Equations (using Matrices)
Matrices and Systems of Equations
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Linear Systems and Matrices
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 86 Chapter 2 Matrices.
Moore-Penrose Pseudoinverse & Generalized Inverse Matt Connor Fall 2013.
Gauss-Jordan Matrix Elimination Brought to you by Tutorial Services – The Math Center.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
1.5 Elementary Matrices and
CHAPTER 1 Section 1.5 إعداد د. هيله العودان (وضعت باذن معدة العرض)
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems College Algebra.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Multivariate Linear Systems and Row Operations.
SYSTEMS OF LINEAR EQUATIONS
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Scientific Computing Linear Systems – LU Factorization.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Matrices King Saud University. If m and n are positive integers, then an m  n matrix is a rectangular array in which each entry a ij of the matrix is.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Elementary Operations of Matrix
Sec 3.1 Introduction to Linear System Sec 3.2 Matrices and Gaussian Elemination The graph is a line in xy-plane The graph is a line in xyz-plane.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
Using LU Decomposition to Optimize the modconcen.m Routine Matt Tornowske April 1, 2002.
Three variables Systems of Equations and Inequalities.
MATH 250 Linear Equations and Matrices
Row Reduction Method Lesson 6.4.
G AUSSIAN E LIMINATION Presented by: Max Le Max Le Justin Lavorgna Data Structures II: Algorithm Design & Analysis Algorithm Design & Analysis.
Sec 3.2 Matrices and Gaussian Elemination Coefficient Matrix 3 x 3 Coefficient Matrix 3 x 3 Augmented Coefficient Matrix 3 x 4 Augmented Coefficient Matrix.
Chapter 11 Section 11.4 Solving Larger Systems of Equations.
8.1 Matrices & Systems of Equations
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Section 1.5 Elementary Matrices and a Method for Finding A −1.
1.5 Elementary Matrices and
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
Lecture 8 Matrix Inverse and LU Decomposition
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Meeting 19 System of Linear Equations. Linear Equations A solution of a linear equation in n variables is a sequence of n real numbers s 1, s 2,..., s.
7.3 & 7.4 – MATRICES AND SYSTEMS OF EQUATIONS. I N THIS SECTION, YOU WILL LEARN TO  Write a matrix and identify its order  Perform elementary row operations.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
1. Gauss-Jordan Method for Inverses 1.  Step 1: Write down the matrix A, and on its right write an identity matrix of the same size.  Step 2: Perform.
Multivariable linear systems.  The following system is said to be in row-echelon form, which means that it has a “stair-step” pattern with leading coefficients.
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;
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Numerical Computation Lecture 6: Linear Systems – part II United International College.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
Multivariable Linear Systems and Row Operations
Solving Systems of Equations Using Matrices
Lecture 2 Matrices Lat Time - Course Overview
Linear Equations.
Elementary Matrix Methid For find Inverse
Larger Systems of Linear Equations and Matrices
Numerical Analysis Lecture14.
Numerical Analysis Lecture10.
Presentation transcript:

Numerical Computation Lecture 7: Finding Inverses: Gauss-Jordan United International College

Review During our Last Two Classes we covered: – Linear Systems: LU Factorization (or Decomposition)

Today We will cover: – Gauss-Jordan Method for finding Inverses

Review

Row Operations as Matrices Definition: An n×n matrix is called an elementary matrix if it can be obtained from the n×n identity matrix I by performing a single elementary row operation.

Row Operations as Matrices Row Operations: – Interchange two rows – Add r * times one row to another row – Multiply one row by a scalar

Row Operations as Matrices If the elementary row operation matrix E results from performing a certain row operation on the identity I, and if A is an m×n matrix,then the product EA is the matrix that results when this same row operation is performed on A. That is, when a matrix A is multiplied on the left by an elementary matrix E,the effect is to perform an elementary row operation on A.

Row Operations as Matrices Example: For the matrix Consider the elementary matrix This matrix is obtained from I by adding 3*row 1 to row 3. Note that EA is the matrix that results from adding 3*row 1 to row 3.

Gauss-Jordan Method To find the inverse to an nxn matrix A: – Adjoin the identity matrix I to the right side of A, thereby producing a matrix of the form – Apply row operations to this matrix until the left side is reduced to I. If successful, these operations will convert the right side to A -1,so that the final matrix will have the form

Gauss-Jordan Method Example:

Gauss-Jordan Method Example: Do row operations to get upper triangular form: (Like Gaussian Elimination)

Gauss-Jordan Method Example: Continue doing row operations to get 0’s in columns above the pivots:

Gauss-Jordan Method Example: At this point the last matrix on the left is the Identity. Thus, the right matrix must be the inverse to A:

Gauss-Jordan Method Example:

Matlab Implementation Task: Implement Gaussian Jordan method in a Matlab M-file. Notes Input = Coefficient matrix A Output = Inverse Matrix A -1 Discussion: How can we modify our Gaussian Elimination code to do this?

Why does Gauss-Jordan Work? Recall: – Adjoin the identity matrix I to the right side of A, thereby producing a matrix of the form – Apply row operations to this matrix until the left side is reduced to I.

Why does Gauss-Jordan Work? Recall: – Every row operation applied to [A | I] can be represented by an elementary matrix E. That is, the row operation is equivalent to E* [A | I]. – Thus, Gauss-Jordan can be viewed as a series of matrix operations E p E p-1 … E 1 [A | I] = [I | B] – But, this means that E p E p-1 … E 1 A = I. – Then, E p E p-1 … E 1 = A -1. – Thus, the right side of [A | I] is transformed to B = E p E p-1 … E 1 I = A -1