Autar Kaw Humberto Isaza

Slides:



Advertisements
Similar presentations
Ch 7.7: Fundamental Matrices
Advertisements

Autar Kaw Humberto Isaza Transforming Numerical Methods Education for STEM Undergraduates.
12.1 Systems of Linear Equations: Substitution and Elimination.
Major: All Engineering Majors Author(s): Autar Kaw
Chapter 2 Basic Linear Algebra
Direct Method of Interpolation
Matrices and Systems of Equations
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
Chapter 2 Matrices Definition of a matrix.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
10.1 Gaussian Elimination Method
INDR 262 INTRODUCTION TO OPTIMIZATION METHODS LINEAR ALGEBRA INDR 262 Metin Türkay 1.
Applications of matrices and determinants
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Autar Kaw Humberto Isaza Transforming Numerical Methods Education for STEM Undergraduates.
Autar Kaw Humberto Isaza
Major: All Engineering Majors Author(s): Autar Kaw
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Math Dept, Faculty of Applied Science, HCM University of Technology
Boyce/DiPrima 9th ed, Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues Elementary Differential Equations and Boundary Value Problems,
Chapter 10 Review: Matrix Algebra
Mathematics.
Spring 2013 Solving a System of Linear Equations Matrix inverse Simultaneous equations Cramer’s rule Second-order Conditions Lecture 7.
Systems and Matrices (Chapter5)
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Systems of Linear Equation and Matrices
Chap. 2 Matrices 2.1 Operations with Matrices
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Presentation by: H. Sarper
ME 1202: Linear Algebra & Ordinary Differential Equations (ODEs)
Chapter 1 Section 1.1 Introduction to Matrices and Systems of Linear Equations.
Chapter 2 Simultaneous Linear Equations (cont.)
Matrices & Determinants Chapter: 1 Matrices & Determinants.
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Unit 6 : Matrices.
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
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.
Algebra 3: Section 5.5 Objectives of this Section Find the Sum and Difference of Two Matrices Find Scalar Multiples of a Matrix Find the Product of Two.
Chapter 5 Eigenvalues and Eigenvectors 大葉大學 資訊工程系 黃鈴玲 Linear Algebra.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Autar Kaw Humberto Isaza Transforming Numerical Methods Education for STEM Undergraduates.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
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.
2.5 – Determinants and Multiplicative Inverses of Matrices.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices, Vectors, Determinants.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
Matrices Introduction.
College Algebra Chapter 6 Matrices and Determinants and Applications
MAT 322: LINEAR ALGEBRA.
Matrices and Vector Concepts
7.7 Determinants. Cramer’s Rule
Inverse of a Square Matrix
5 Systems of Linear Equations and Matrices
CHARACTERIZATIONS OF INVERTIBLE MATRICES
Determinants Section The focus before was to determine information about the solution set of the linear system of equations given as the matrix equation.
Systems of First Order Linear Equations
Boyce/DiPrima 10th ed, Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues Elementary Differential Equations and Boundary Value Problems,
Determinant of amatrix:
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
CHARACTERIZATIONS OF INVERTIBLE MATRICES
Presentation transcript:

Autar Kaw Humberto Isaza System of equations Autar Kaw Humberto Isaza http://nm.MathForCollege.com Transforming Numerical Methods Education for STEM Undergraduates

System of equations http://nm.MathForCollege.com

Objectives After reading this chapter, you should be able to: setup simultaneous linear equations in matrix form and vice-versa, understand the concept of the inverse of a matrix, know the difference between a consistent and inconsistent system of linear equations, and learn that a system of linear equations can have a unique solution, no solution or infinite solutions.

Systems of Equations Matrix algebra is used for solving systems of equations. Can you illustrate this concept? Matrix algebra is used to solve a system of simultaneous linear equations. In fact, for many mathematical procedures such as the solution to a set of nonlinear equations, interpolation, integration, and differential equations, the solutions reduce to a set of simultaneous linear equations. Let us illustrate with an example for interpolation.

Example 1 The upward velocity of a rocket is given at three different times on the following table. Table 5.1. Velocity vs. time data for a rocket The velocity data is approximated by a polynomial as Set up the equations in matrix form to find the coefficients of the velocity profile. Time, t Velocity, v (s) (m/s) 5 106.8 8 177.2 12 279.2

Example 1 (cont.) The polynomial is going through three data where from table 5.1. Requiring that passes through the three data points gives

Example 1 (cont.) Substituting the data gives or

Example 1 (cont.) This set of equations can be rewritten in the matrix form as The above equation can be written as a linear combination as follows and further using matrix multiplication gives

Example 1 (cont.) The previous is an illustration of why matrix algebra is needed. The complete solution to the set of equations is given later in this chapter. A general set of linear equations and unknowns, …………………………….

Example 1 (cont.) can be rewritten in the matrix form as Denoting the matrices by , , and , the system of equation is , where is called the coefficient matrix, is called the right hand side vector and is called the solution vector.

Example 1 (cont.) Sometimes systems of equations are written in the augmented form. That is

Consistent and inconsistent system A system of equations can be consistent or inconsistent. What does that mean? A system of equations is consistent if there is a solution, and it is inconsistent if there is no solution. However, a consistent system of equations does not mean a unique solution, that is, a consistent system of equations may have a unique solution or infinite solutions (Figure 1). Figure 5.1. Consistent and inconsistent system of equations flow chart. Consistent System Inconsistent System Unique Solution Infinite Solutions [A][X]= [B]

Example 2 Give examples of consistent and inconsistent system of equations. Solution a) The system of equations is a consistent system of equations as it has a unique solution, that is,

Example 2 (cont.) b) The system of equations is also a consistent system of equations but it has infinite solutions as given as follows. Expanding the above set of equations,

Example 2 (cont.) you can see that they are the same equation. Hence, any combination of that satisfies, is a solution. For example is a solution. Other solutions include , , and so on. c) The system of equations is inconsistent as no solutions exists.

Distinguishing consistency How can one distinguish between a consistent and inconsistent system of equations? A system of equations is consistent if the rank of is equal to the rank of the augmented matrix . A system of equations is inconsistent if the rank of is less than the rank of the augmented matrix . But, what do you mean by rank of a matrix? The rank of a matrix is defined as the order of the largest square submatrix whose determinant is not zero.

Example 3 What is the rank of ? Solution The largest square submatrix possible is of order 3 and that is itself. Since the rank of

Example 4 What is the rank of ? Solution The largest square submatrix of is of order 3 and that is itself. Since , the rank of is less than 3. The next largest square submatrix would be a 2 2 matrix. One of the square submatrices of is And . Hence the rank of is 2. There is no need to look at other 2 2 submatrices to establish that the rank of is 2.

Example 5 How do I now use the concept of rank to find if is a consistent or inconsistent system of equations?

Example 5 (cont.) Solution The coefficient matrix is and the right hand side vector is

Example 5 (cont.) The augmented matrix is Since there are no square submatrices of order 4 as is a matrix, the rank of is at most 3. So let us look at the square submatrices of of order 3; if any of these square submatrices have determinant not equal to zero, then the rank is 3. For example, a submatrix of the augmented matrix is

Example 5 (cont.) has. Hence the rank of the augmented matrix is 3. Since , the rank of is 3. Since the rank of the augmented matrix equals the rank of the coefficient matrix , the system of equations is consistent.

Example 6 Use the concept of rank of matrix to find if Is consistent or inconsistent?

Example 6 (cont.) Solution The coefficient matrix is given by and the right hand side

Example 6 (cont.) Since there are no square submatrices of order 4 as is a 4 3 matrix, the rank of the augmented is at most 3. So let us look at square submatrices of the augmented matrix of order 3 and see if any of these have determinants not equal to zero. For example, a square submatrix of the augmented matrix is Has . This means, we need to explore other square submatrices of order 3 of the augmented matrix and find their determinants.

Example 6 (cont.) That is,

Example 6 (cont.) All the square submatrices of order of the augmented matrix have a zero determinant. So the rank of the augmented matrix is less than 3. Is the rank of augmented matrix equal to 2? One of the submatrices of the augmented matrix is And So the rank of the augmented matrix is 2.

Example 6 (cont.) Now we need to find the rank of the coefficient matrix and So the rank of the coefficient matrix is less than 3. A square submatrix of the coefficient matrix is So the rank of the coefficient matrix is 2.

Example 6 (cont.) Hence, the rank of the coefficient matrix equals the rank of the augmented matrix . So the system of equations is consistent.

Example 7 Use the concept of rank to find if is consistent or inconsistent

Example 7 (cont.) The augmented matrix is Since there are no square submatrices of order 4 4 as the augmented matrix is a 4 3 matrix, the rank of the augmented matrix is at most 3. So let us look at square submatrices of the augmented matrix (B) of order 3 and see if any of the 3 3 submatrices have a determinant not equal to zero. For example, a square submatrix of order 3 3 of det(D) = 0

Example 7 (cont.) So it means, we need to explore other square submatrices of the augmented matrix So the rank of the augmented matrix is 3. The rank of the coefficient matrix is 2 from the previous example. Since the rank of the coefficient matrix is less than the rank of the augmented matrix , the system of equations is inconsistent. Hence, no solution exists for

If a solution exists, how do we know whether it is unique? In a system of equations that is consistent, the rank of the coefficient matrix is the same as the augmented matrix . If in addition, the rank of the coefficient matrix is same as the number of unknowns, then the solution is unique; if the rank of the coefficient matrix is less than the number of unknowns, then infinite solutions exist.

Flowchart of conditions Figure 5.2. Flow chart of conditions for consistent and inconsistent system of equations.

Example 8 We found that the following system of equations is a consistent system of equations. Does the system of equations have a unique solution or does it have infinite solutions?

Example 8 (cont.) Solution The coefficient matrix is and the right hand side is While finding out whether the above equations were consistent in an earlier example, we found that the rank of the coefficient matrix (A) equals rank of augmented matrix equals 3. The solution is unique as the number of unknowns = 3 = rank of (A).

Example 9 We found that the following system of equations is a consistent system of equations. Is the solution unique or does it have infinite solutions.

Example 9 (cont.) Solution While finding out whether the above equations were consistent, we found that the rank of the coefficient matrix equals the rank of augmented matrix equals 2 Since the rank of < number of unknowns = 3, infinite solutions exist. If we have more equations than unknowns in [A] [X] = [C], does it mean the system is inconsistent? No, it depends on the rank of the augmented matrix and the rank of

Example 9 (cont.) For example is consistent, since rank of augmented matrix = 3 rank of coefficient matrix = 3 Now since the rank of (A) = 3 = number of unknowns, the solution is not only consistent but also unique.

Example 9 (cont.) For example is inconsistent, since rank of augmented matrix = 4 rank of coefficient matrix = 3

Example 9 (cont.) For example is consistent, since rank of augmented matrix = 2 rank of coefficient matrix = 2 But since the rank of (A) = 2 < the number of unknowns = 3, infinite solutions exist.

Example 9 (cont.) Consistent systems of equations can only have a unique solution or infinite solutions. Can a system of equations have more than one but not infinite number of solutions? No, you can only have either a unique solution or infinite solutions. Let us suppose has two solutions and so that

Example 9 (cont.) If r is a constant, then from the two equations Adding the above two equations gives

Example 9 (cont.) Hence is a solution to Since r is any scalar, there are infinite solutions for of the form

Can you divide two matrices? If is defined, it might seem intuitive that , but matrix division is not defined like that. However an inverse of a matrix can be defined for certain types of square matrices. The inverse of a square matrix , if existing, is denoted by such that Where is the identity matrix.

Can you divide two matrices? In other words, let [A] be a square matrix. If [B] is another square matrix of the same size such that , then [B] is the inverse of [A]. [A] is then called to be invertible or nonsingular. If does not exist, is called noninvertible or singular. If [A] and [B] are two matrices such that , then these statements are also true [B] is the inverse of [A] [A] is the inverse of [B] [A] and [B] are both invertible [A] [B]=[I]. [A] and [B] are both nonsingular all columns of [A] and [B]are linearly independent all rows of [A] and [B] are linearly independent.

Example 10 Determine if is the inverse of

Example 10 (cont.) Solution Since, [B] is the inverse of [A] and [A] is the inverse of [B].

Using the inverse of a matrix Can I use the concept of the inverse of a matrix to find the solution of a set of equations [A] [X] = [C]? Yes, if the number of equations is the same as the number of unknowns, the coefficient matrix is a square matrix. Given Then, if exists, multiplying both sides by . This implies that if we are able to find , the solution vector of is simply a multiplication of and the right hand side vector,

How do I find the inverse of a matrix? If is a matrix, then is a matrix and according to the definition of inverse of a matrix Denoting

How do I find the inverse of a matrix? (cont.)

How do I find the inverse of a matrix? (cont.) Using the definition of matrix multiplication, the first column of the matrix can then be found by solving Similarly, one can find the other columns of the matrix by changing the right hand side accordingly.

Example 11 The upward velocity of the rocket is given by Table 5.2. Velocity vs time data for a rocket In an earlier example, we wanted to approximate the velocity profile by Time, t (s) Velocity, v (m/s) 5 106.8 8 177.2 12 279.2

Example 11 (cont.) We found that the coefficients in are given by First, find the inverse of and then use the definition of inverse to find the coefficients

Example 11 (cont.) Solution If is the inverse of , then

Example 11 (cont.) Gives three sets of equations,

Example 11 (cont.) = Solving the above three sets of equations separately gives

Example 11 (cont.) Hence Now where

Example 11 (cont.) Using the definition of

Example 11 (cont.) Hence So

Is there another way to find the inverse of a matrix? For finding the inverse of small matrices, the inverse of an invertible matrix can be found by Where

Is there another way to find the inverse of a matrix? (cont.) where are the cofactors of . The matrix itself is called the matrix of cofactors from [A]. Cofactors are defined in Chapter 4.

Example 12 Find the inverse of Solution From Example 4.6 in Chapter 04.06, we found Next we need to find the adjoint of . The cofactors of are found as follows.

Example 12 (cont.) The minor of entry is The cofactors of entry is

Example 12 (cont.) The minor of entry is The cofactors of entry is

Example 12 (cont.) Similarly

Example 12 (cont.) Hence the matrix of cofactors of is The adjoint of matrix is ,

Example 12 (cont.) Hence

If the inverse of a square matrix [A] exists, is it unique? Yes, the inverse of a square matrix is unique, if it exists. The proof is as follows. Assume that the inverse of is and if this inverse is not unique, then let another inverse of exist called If is the inverse of , then Multiply both sides by

If the inverse of a square matrix [A] exists, is it unique? (cont.) Since is inverse of Multiply both sides by This shows that and are the same. So the inverse of is unique.

Key terms Consistent system Inconsistent system Infinite solutions Unique solution Rank Inverse