Gaussian Elimination, Rank and Cramer

Slides:



Advertisements
Similar presentations
Gauss Elimination.
Advertisements

1.5 Elementary Matrices and a Method for Finding
Section 3.1 The Determinant of a Matrix. Determinants are computed only on square matrices. Notation: det(A) or |A| For 1 x 1 matrices: det( [k] ) = k.
OCE301 Part II: Linear Algebra lecture 4. Eigenvalue Problem Ax = y Ax = x occur frequently in engineering analysis (eigenvalue problem) Ax =  x [ A.
12.1 Systems of Linear Equations: Substitution and Elimination.
P1 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Solving Linear Equations Given the equations 3x + 4y = 10 2x + z = 7 y + 2z = 7 Solve by removing.
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
Chapter 1 Systems of Linear Equations
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
10.1 Gaussian Elimination Method
Section 8.1 – Systems of Linear Equations
Systems of linear equations. Simple system Solution.
Linear Algebra – Linear Equations
1.2 Gaussian Elimination.
SYSTEMS OF LINEAR EQUATIONS
Math Dept, Faculty of Applied Science, HCM University of Technology
Systems and Matrices (Chapter5)
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
System of Linear Equations Nattee Niparnan. LINEAR EQUATIONS.
 Row and Reduced Row Echelon  Elementary Matrices.
Matrix Algebra. Quick Review Quick Review Solutions.
1.1.2 INTRODUCTION TO SYSTEMS OF LINEAR EQUATIONS Chapter 1: Systems of Linear Equations and Matrices SWBAT: Redefine algebraic operations as Elementary.
MATH 250 Linear Equations and Matrices
Systems of Linear Equations Let’s say you need to solve the following for x, y, & z: 2x + y – 2z = 10 3x + 2y + 2z = 1 5x + 4y + 3z = 4 Two methods –Gaussian.
CALCULUS – II Gauss Elimination
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.
Math 140 Quiz 5 - Summer 2006 Solution Review (Small white numbers next to problem number represent its difficulty as per cent getting it wrong.)
8.1 Matrices & Systems of Equations
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
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.
Mathematics.
Systems of Equations and Inequalities Systems of Linear Equations: Substitution and Elimination Matrices Determinants Systems of Non-linear Equations Systems.
Math /4.2/4.3 – Solving Systems of Linear Equations 1.
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
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.
5.5 Row Space, Column Space, and Nullspace
P1 RJM 06/08/02EG1C2 Engineering Maths: Matrix Algebra 1 EG1C2 Engineering Maths : Matrix Algebra Dr Richard Mitchell, Department of Cybernetics AimDescribe.
Section 5.1 First-Order Systems & Applications
P1 RJM 18/02/03EG1C2 Engineering Maths: Matrix Algebra Revision 7 (a) Figure Q7-1 shows an electronic circuit with two batteries and three resistors. The.
Section 1.2 Gaussian Elimination. REDUCED ROW-ECHELON FORM 1.If a row does not consist of all zeros, the first nonzero number must be a 1 (called a leading.
Sullivan Algebra and Trigonometry: Section 12.3 Objectives of this Section Write the Augmented Matrix of a System of Linear Equations Write the System.
Chapter 1 Linear Algebra S 2 Systems of Linear Equations.
10.3 Systems of Linear Equations: Matrices. A matrix is defined as a rectangular array of numbers, Column 1Column 2 Column jColumn n Row 1 Row 2 Row 3.
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.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Systems of Equations and Inequalities Ryan Morris Josh Broughton.
Chapter 1 Systems of Linear Equations Linear Algebra.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
Introduction and Definitions
P1 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 3 Determinants and Inverses Consider the weight suspended by wires problem: One (poor) way is to.
1.7 Linear Independence. in R n is said to be linearly independent if has only the trivial solution. in R n is said to be linearly dependent if there.
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
4: Sets of linear equations 4.1 Introduction In this course we will usually be dealing with n equations in n unknowns If we have just two unknowns x and.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Matrices, Vectors, Determinants.
Systems of linear equations
Gaussian Elimination and Gauss-Jordan Elimination
Gaussian Elimination and Gauss-Jordan Elimination
Linear Equations Gauss & Cramer’s
7.7 Determinants. Cramer’s Rule
Linear independence and matrix rank
7.5 Solutions of Linear Systems:
4.4 Objectives Day 1: Find the determinants of 2  2 and 3  3 matrices. Day 2: Use Cramer’s rule to solve systems of linear equations. Vocabulary Determinant:
4.3 Determinants and Cramer’s Rule
Elementary Linear Algebra Anton & Rorres, 9th Edition
Section 8.1 – Systems of Linear Equations
Matrices are identified by their size.
Chapter 2 Determinants.
EG1C2 Matrix Algebra - Information Sheet
Presentation transcript:

Gaussian Elimination, Rank and Cramer We have seen how Gaussian Elimination can solve A x = b But, is it always the case that there is a solution? In fact there may be many solutions….. we will investigate. This will lead to various topics: Matrix Rank Homogeneous Systems Cramer’s Rule and finally Cramer’s Theorem – alternative to Gaussian Elimination (for small matrices) p1 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 How Many Solutions Consider these graphs Each graph has 2 lines defined by linear equations: y - m*x = c First graph: one value of x and y satisfying both equations, at the intersection of the lines: thus there is one solution. Second graph: two lines overlap - infinite solutions. Third graph: two lines are parallel - there is no solution. A set of linear equations has 0, 1 or infinitely many solutions. Let’s investigate systems with no solutions and infinite solutions. p2 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 e.g. 2 x + y + 3z = 4; x + y + 2z = 0; 2 x + 4 y + 6 z = 8 Eliminating the first column from rows 2 and 3: Row2 := Row1-2*Row2 [2-2*1 1-2*1 3-2*2 4-0] = [0 -1 -1 4] Row3 := Row1-Row3 [2-2 1-4 3-6 4-8] = [0 -3 -3 -4] Row3 := 3*Row2 - Row3 [0 -3—3 –3—3 12--4] = [0 0 0 16] Last row means 0 = 16! So, there is no solution. p3 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

Eliminating the first element of rows 2 and 3 gives e.g. 2 x + y + 3z = 4; x + y + 2z = 0; 2 x + 4 y + 6 z = -8 Eliminating the first element of rows 2 and 3 gives Eliminating the second element of row 3 gives The last row means 0 = 0; True for all values of x, y and z. Thus there is an infinite number of solutions to the 3 equations. In fact the equations are said to be linearly dependent. If there are solutions, the equations are linearly independent. p4 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 Matrix Rank The Rank of a Matrix is a property that can be used to determine the number of solutions to a matrix equation A x = b. One definition of rank is that it is the number of non zero rows in the augmented matrix when it is in row echelon form. 2 rows are non zero: rank = 2 Here 3 rows are non zero, so rank = 3. But, matrix needed in echelon form first: is there another way? p5 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 Rank by determinants Rank of m*n matrix is largest square submatrix whose det <> 0. A submatrix of A is a matrix of A minus some rows or columns. Its four 3*3 submatrices are: | a) | is 2*(6-8) –1*(6-4) + 3*(4-2) = -4-2+6 = 0 | b) | is 2*(-8-0) –1*(-8-0) + 4*(4-2) = -16+8+8 = 0 | c) | is 2*(16-0) –3*(16-0) + 4* (6-2) = 32 – 48 + 16 = 0 | d) | is 1*(-16-0) – 3*(-8-0) + 4*(6-8) = -16 + 24 – 8 = 0 p6 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 Rank not 3. Is it 2? Try any 2*2 submatrix. Rank = 2 This is the case where there is an infinite number of solutions. Thus Rank ( )=3, but Rank(A) < 3. Here there are no solutions Its rank = 3 This was augmented matrix for circuit which had one solution. Leads to Fundamental Theorem of Linear Systems …. p7 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

Fundamental Theorem of Linear Systems If system defined by m row matrix equation A x = b The system has solutions only if Rank (A) = Rank ( ) If Rank (A) = m, there is 1 solution If Rank (A) < m, there is an infinite number of solutions Properties of Rank The Rank of A is 0 only if A is the zero matrix. Rank (A) = Rank (AT) Elementary row operations don't affect the rank of a matrix. Rank is a concept quite useful in control theory. This leads to two related and useful topics…… p8 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 Homogeneous Systems If system defined by A x = 0, i.e. b = 0, system is homogenous. A homogenous system has a trivial solution, x1=x2=..xn=0. A non trivial solution exists if Rank(A) < m. Cramer's Rule For homogeneous systems If D = | A |  0, the only solution is x = 0 If D = 0, the system has ‘non trivial’ solutions, This is useful, as we shall see, for eigenvalues and eigenvectors. Cramer’s Theorem Solutions to a linear system A * x = b , where A is an n*n: x1 = D1/D x2 = D2/D .... xn = Dn/D where D is det|A| , D <> 0, and Dk is det of matrix formed by taking A and replacing its kth column with b. Impracticable in large matrices as hard to find their determinant. p9 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

Cramer’s Theorem - Solving Equations Suspended Mass Here, D = 0.96 * 0.6 - -0.8 * 0.28 = 0.8 Replacing first column of A with b and taking determinant: Thus T1 = 240 / 0.8 = 300 Replacing second column of A with b and taking determinant: Thus T2 = 288 / 0.8 = 360 These agree with earlier results. Good! p10 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 Electronic Circuit Example D = |A| found earlier as –600 p11 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6

EG1C2 Engineering Maths: Matrix Algebra 6 Exercise Find A such that Use Cramer’s theorem to find v2 and i2 when v1 = 16V and i1 = 5A. For given values: p12 RJM 15/10/02 EG1C2 Engineering Maths: Matrix Algebra 6