Part 3 Chapter 11 Matrix Inverse and Condition Part A All images copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Slides:



Advertisements
Similar presentations
Chapter 28 – Part II Matrix Operations. Gaussian elimination Gaussian elimination LU factorization LU factorization Gaussian elimination with partial.
Advertisements

Introduction to Finite Elements
Matrix Algebra Matrix algebra is a means of expressing large numbers of calculations made upon ordered sets of numbers. Often referred to as Linear Algebra.
Linear Algebra.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill Companies,
1 Systems of Linear Equations Error Analysis and System Condition.
Polynomial Interpolation
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 }
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 10 LU Decomposition and Matrix.
1 Systems of Linear Equations Error Analysis and System Condition.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Chapter.
Linear Simultaneous Equations
Matrix Mathematics in MATLAB and Excel
Lecture 7: Matrix-Vector Product; Matrix of a Linear Transformation; Matrix-Matrix Product Sections 2.1, 2.2.1,
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
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 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Autar Kaw Humberto Isaza
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Chapter 8 Objectives Understanding matrix notation.
Chapter 10 Review: Matrix Algebra
Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 8 Linear Algebraic Equations PowerPoint to accompany Copyright © 2010.
Engineering Analysis ENG 3420 Fall 2009
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Linear Algebra Review 1 CS479/679 Pattern Recognition Dr. George Bebis.
Mathematics of Cryptography Modular Arithmetic, Congruence,
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Linear.
ES 240: Scientific and Engineering Computation. Matrix Inverse Chapter 11: Matrix Inverse Uchechukwu Ofoegbu Temple University.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
CMPS 1371 Introduction to Computing for Engineers MATRICES.
Chapter 9 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Multiplicative Inverses of Matrices and Matrix Equations.
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.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Lecture 28: Mathematical Insight and Engineering.
Part 4 Chapter 17 Polynomial Interpolation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Chapter 9 Gauss Elimination The Islamic University of Gaza
Introduction to MATLAB 7
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
1 Lecture 3 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Matrices Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 A matrix is a rectangular array of real numbers. Each entry.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
1 Chapter: 3a System of Linear Equations Dr. Asaf Varol.
Finishing up Chapter 5. Will this code enter the if statement? G=[30,55,10] if G
REGRESSION (CONTINUED) Matrices & Matrix Algebra; Multivariate Regression LECTURE 5 Supplementary Readings: Wilks, chapters 6; Bevington, P.R., Robinson,
Matrices. Matrix - a rectangular array of variables or constants in horizontal rows and vertical columns enclosed in brackets. Element - each value in.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 8 Linear Algebraic Equations and Matrices.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9.
College Algebra Chapter 6 Matrices and Determinants and Applications
12-4: Matrix Methods for Square Systems
Linear Algebraic Equations and Matrices
Chapter 7 Matrix Mathematics
Matrix Inverse and Condition
Linear Algebraic Equations and Matrices
Systems of Linear Equations
Chapter 10.
CHAPTER OBJECTIVES The primary objective of this chapter is to show how to compute the matrix inverse and to illustrate how it can be.
APPLICATION OF LINEAR ALGEBRA IN MECHANICAL ENGINEERING
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Presentation transcript:

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 Objectives Know how to determine the matrix inverse in an efficient manner based on LU factorization. Understand how the matrix inverse can be used to assess stimulus-response characteristics of engineering systems. Understand the meaning of matrix and vector norms and how they are computed. Know how to use norms to compute the matrix condition number. Understand how the magnitude of the condition number can be used to estimate the precision of solutions of linear algebraic equations.

Matrix Inverse If a matrix [A] is square, there is another matrix [A] -1, called the inverse of [A], for which [A][A] -1 =[A] -1 [A]=[1] The inverse can be computed in a column by column fashion by generating solutions with unit vectors as the right-hand-side constants: Column vector

Matrix Inverse (cont) Recall that LU factorization can be used to efficiently evaluate a system for multiple right-hand-side vectors - thus, it is ideal for evaluating the multiple unit vectors needed to compute the inverse. Do this once Do this three times – once for each column

Example 11.1 Employ LU factorization to determine the matrix inverse for the following system

In this case x is a column in the inverse Let’s run this code and watch what happens

Or… Ainv = inv(A) The corresponding MATLAB code is:

Stimulus-Response Computations Many systems can be modeled as a linear combination of equations, and thus written as a matrix equation: The system response can thus be found using the matrix inverse.

Each of the elements represents the response of a single part of the system to a unit stimulus of any other part of the system Each of these is a dot product

Example 11.2 Let’s return to the connected bungee jumpers from chapter 8

11 Suppose there are three jumpers connected by bungee cords, so that each cord is fully extended, but unstretched. After they are released, gravity takes hold and the jumpers will eventually come to equilibrium You are asked to compute the displacement of each of the jumpers. Gravity causes the stimulus The displacement is the response

Free body diagrams 12 Assume that each cord behaves like a linear spring, and follows Hooke’s Law

Force Balance 13 Since the jumpers are at equilibrium the acceleration is equal to 0

Substituting in the constants we can pose the problem as a system of linear equations Force in Newtons (m*g) Effective Spring Constants Change in Position

Each element represents the vertical change in position of jumper i, due to a unit change in force applied to jumper j The position of all three jumpers would change by 0.02 m if the force on jumper 1 was increased by 1 Newton The position of the first jumper would change by 0.02 m if the force on jumper 2 was increased by 1 Newton – but jumper 2 and 3 would change by 0.03 m The position of the first jumper would change by 0.02 m if the force on jumper 3 was increased by 1 Newton – jumper 2 would change by 0.03 m and jumper 3 would change by 0.05 m

So why is this useful? By looking at the matrix inverse I can see where applying a stimulus will have the most (or least) affect.

Next time… Matrix norm and condition calculations

Error Analysis and System Conditioning The inverse also provides a means to see whether systems are ill-conditioned. There are 3 direct methods 1. Scale the matrix of coefficients so that the largest element in each row is 1. Invert the scaled matrix and if there are elements of A -1 that are several orders of magnitude greater than 1 – it is likely that the matrix is ill-conditioned

Error Analysis and System Conditioning The inverse also provides a means to see whether systems are ill-conditioned. There are 3 direct methods 2. Multiply the inverse by the original matrix, and see if the result is the identity matrix. If not it is ill-conditioned

Error Analysis and System Conditioning The inverse also provides a means to see whether systems are ill-conditioned. There are 3 direct methods 3. Invert the inverted matrix and check to see if the result is equivalent to the original matrix. If not, the system is ill-conditioned These techniques work, but it would be nice to quantify the problem with a single number In addition, recall that if the determinant is close to 0, the matrix is ill-conditioned

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.

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

Matrix Norms Common matrix norms for a matrix [A] include: Note -  max is the largest eigenvalue of [A] T [A].

Matrix Condition Number The matrix condition number Cond[A] is obtained by calculating Cond[A]=||A||·||A -1 || In can be shown that: The relative error of the norm of the computed solution can be as large as the relative error of the norm of the coefficients of [A] multiplied by the condition number. If the coefficients of [A] are known to t digit precision, the solution [X] may be valid to only t-log 10 (Cond[A]) digits.

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.

Example 11.3 The Hilbert matrix is ‘notoriously’ ill- conditioned. Use condition number to help you understand the effect of ill-conditioning on results.

Hilbert Matrix Determinant A*A -1 Inv(A)*A

Now try the condition number

The long way Using the cond function Condition of the unscaled matrix Sig fig reduction