CALCULUS – II Gauss Elimination

Slides:



Advertisements
Similar presentations
Elementary Linear Algebra
Advertisements

12 System of Linear Equations Case Study
4.3 Matrix Approach to Solving Linear Systems 1 Linear systems were solved using substitution and elimination in the two previous section. This section.
CHAPTER 1 Section 1.6 إعداد د. هيله العودان (وضعت باذن معدة العرض)
Chapter 2 Simultaneous Linear Equations
Solving Systems of Linear Equations Part Pivot a Matrix 2. Gaussian Elimination Method 3. Infinitely Many Solutions 4. Inconsistent System 5. Geometric.
Dan Witzner Hansen  Groups?  Improvements – what is missing?
Chapter 1 Systems of Linear Equations
10.1 Gaussian Elimination Method
Applications of matrices and determinants
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
Professor Dr. S. K. Bhattacharjee Department of Statistics
Chapter 1 Systems of Linear Equations and Matrices
System of Linear Equations Nattee Niparnan. LINEAR EQUATIONS.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Review for Chapter 4 Important Terms, Symbols, Concepts 4.1. Systems of Linear Equations in Two Variables.
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.
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.
Math 201 for Management Students
Gaussian Elimination, Rank and Cramer
Three variables Systems of Equations and Inequalities.
How To Find The Reduced Row Echelon Form. Reduced Row Echelon Form A matrix is said to be in reduced row echelon form provided it satisfies the following.
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.
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.
1 Part II: Linear Algebra Chapter 8 Systems of Linear Algebraic Equations; Gauss Elimination 8.1 Introduction There are many applications in science and.
CALCULUS – II Inverse Matrix by Dr. Eman Saad & Dr. Shorouk Ossama.
8.1 Matrices & Systems of Equations
Systems of Equations and Inequalities Systems of Linear Equations: Substitution and Elimination Matrices Determinants Systems of Non-linear Equations Systems.
Chapter 1 Section 1.3 Consistent Systems of Linear Equations.
Linear Equation The equation Which express the real or complex quantity b in terms of the unknowns and the real or complex constants is called a linear.
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Matrices and Systems of Equations
Matrices and Systems of Linear Equations
Chapter 1 Linear Algebra S 2 Systems of Linear Equations.
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.
Chapter 1 Systems of Linear Equations Linear Algebra.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
Copyright ©2015 Pearson Education, Inc. All rights reserved.
Def: A matrix A in reduced-row-echelon form if 1)A is row-echelon form 2)All leading entries = 1 3)A column containing a leading entry 1 has 0’s everywhere.
Matrices, Vectors, Determinants.
Multivariable Linear Systems and Row Operations
Section 6.1 Systems of Linear Equations
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Systems of linear equations
Gaussian Elimination and Gauss-Jordan Elimination
Gaussian Elimination and Gauss-Jordan Elimination
Solving Systems of Equations Using Matrices
Linear Equations Gauss & Cramer’s
Linear Equations by Dr. Shorouk Ossama.
MATHEMATICS Linear Equations
Chapter 1 Systems of Linear Equations
Solution of System of Linear Equations Using Matrix
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Chapter 1 Systems of Linear Equations and Matrices
Matrices and Systems of Equations
Gaussian Elimination and Gauss-Jordan Elimination
Chapter 4 Systems of Linear Equations; Matrices
Systems of Linear Equations
Matrix Solutions to Linear Systems
6 minutes Warm-Up Find each product..
7.5 Solutions of Linear Systems:
Chapter 4 Systems of Linear Equations; Matrices
Section 8.1 – Systems of Linear Equations
Systems of Linear Equations
Matrices are identified by their size.
Presentation transcript:

CALCULUS – II Gauss Elimination by Dr. Eman Saad & Dr. Shorouk Ossama

Gauss Elimination: We need write the equations in form of augmented matrix for the system. The fourth column consists of the constant on the right- hand sides.

The elementary operations referred to previously become elementary row operations on the matrix. The final matrix is said to be in echelon form: that is, it has zeros below the diagonal elements starting from the top left. We can solve the equations by back substation.

Examples For Echelon Form : The following matrices are in reduced row echelon form.

The following matrices are in row echelon form but not reduced row echelon form.

Example: Find the solution by using gauss elimination 2 R1 + R2 = R`2 - R1 + R3 = R`3 R1 - R3 = R`1 -(1/7) R3 + R2 = R`2 -(2/7) R2 + R3 = R`3 (-2) R2 + R1 = R`1 (7/23) R3 = R`3 (1/7) R2 = R`2 by back substation x3 = 2 x2 = -1 x1 = 1 4 1 2 5 3

back substation Three Equations: 0 + 0 + Z = 2 0 + Y + 0 = -1 X Y Z = back substation Three Equations: 0 + 0 + Z = 2 0 + Y + 0 = -1 X + 0 + 0 = 1

Example: Using gauss elimination & back substitution, solve the set of equations -2 R1 + R2 = R`2 (-2/3) R3 + R4 = R`4 R2↔R3 (-1/3) R3 = R`3 (3/5) R4 = R`4 R4 – R2= R`4 x4 = 3 x3 = 2 x2 = 1 x1 = -1 2 5 0 1 -1 2 5 0 0 -2 1 -1 3 6 0 1 -1 2 5 0 0 0 5/3 5 4 0 0 0 1 3 0 1 -1 2 5

0 0 0 1 3 back substation 0 + 0 + 0 + X4 = 3 0 + 0 + X3 + 1/3 X4 = 3 0 0 0 1 3 back substation 0 + 0 + 0 + X4 = 3 0 + 0 + X3 + 1/3 X4 = 3 0 + X2 + X3 + X4 = 6 X1 + X2 + 2X3 + 0 = 4

For two equations in two unknowns the occurrences of unique solutions are easy to detect. For higher-order sets of equations these possibilities are not so obvious. Consider the set of equations: det A = = zero

So the Cramer’s Rule will fail, although there still may be solutions. We can determine whether solutions exist more readily by using Gaussian Elimination. In this case the application of row operations on the augmented matrix leads to:

Row 3 is impossible to be satisfied -2 R1 + R2 = R`2 - R1 + R3 = R`3 By Back Substation Row 3 is impossible to be satisfied 0 = 1 No Solution (-1/2) R2 + R3 = R`3 1 1 1 -1 3 3 -1 3 5 1 -1 2 2 2 1 1 -1 3 0 -4 1 -4 0 -2 3 -1 6 4 1 1 -1 3 0 -4 6 -4 0 0 0 1

Infinite Number of Solution -2 R1 + R2 = R`2 - R1 + R3 = R`3 By Back Substation Row 3 is consistent Row 2 is -4y+6z=2 Hence, y = -1/4 ( 2 – 6z ) From Row 1, X = 1 – y + z = 3/2 – ½ z Thus, z can take any value, say t So the full solution set is: (-1/2) R2 + R3 = R`3 1 1 1 -1 1 3 -1 3 5 1 -1 2 2 2 1 1 -1 1 0 -4 6 2 0 0 0 0 Infinite Number of Solution

Then y and x can be found by back substitution row2 and 1 Advantage of using gauss elimination more than cramer’s rule when the number of equations differs from the number of unknowns. -3 R1 + R2 = R`1 R1 + R3 = R`3 - R1 + R4 = R`4 Row 4 is consistent, while row 3 is implies z=3. Then y and x can be found by back substitution row2 and 1 So: y= 4 , x=0 (-1/2) R2 + R3 = R`3 1 1 1 -1 1 3 -1 3 5 -1 2 2 1 0 1 3 1 1 -1 1 0 -4 6 2 0 0 -2 -6 0 0 0 0 2 1 1 -1 1 0 -4 6 2 0 -2 3 0 0 -1 2 3/2

The system is inconsistent Show that the following equations are inconsistent: - R1 + R2 = R`2 3 R1 + R3 = R`3 Row 3, 0 ≠ 2 The system is inconsistent -2 R2 + R3 = R`3 1 1 1 12 1 1 0 -3 2 -3 3 0 0 0 0 -2 1 1 -1 2 1 1 -2 3 -1 4 3 -3 7 0 7 2 1 1 1 2 1 0 -3 2 -3 3 0 -6 4 -6 4

Determine the complete sets of values for a and b which make the equations : -2 R1 + R2 = R`2 R1 + R3 = R`3 System has unique solution if: a ≠ -1, then z= (b-1/a+1) 2. System is inconsistency if: a = -1 and b ≠ 1 3. System has infinite solutions If: a = -1 and b = 1 - R2 + R3 = R`3 1 1 -2 3 2 2 -1 2 3 1 a b 2 1 -2 3 1 0 3 -4 -1 0 0 a+1 b-1

Homogeneous Linear Systems: A system of linear equations is said to be homogeneous if the constant terms are all zero; that is, the system has the form: Every homogeneous system of linear equations is consistent because all such systems have x1=0,x2=0,…,xn=0 as a solution. This solution is called the trivial solution; if there are other solutions, they are called non-trivial solutions.

Because a homogeneous linear system always has the trivial solution, there are only two possibilities for its solutions: • The system has only the trivial solution. • The system has infinitely many solutions in addition to the trivial solution. In the special case of a homogeneous linear system of two equations in two unknowns, say: the graphs of the equations are lines through the origin, and the trivial solution corresponds to the point of intersection at the origin.

After solving the system, the corresponding system of equations is: Solving for the leading variables we obtain: Note that the trivial solution results when r = s = t = 0

Any set of equations AX=0 is known as a homogeneous set; it is a set of linear equations with zero right-hand sides. So the equations always have trivial solution x=o, but there may exist non-trivial solutions. What are the conditions for their existence.

System is non-trivial solutions if and if only: - R1 + R2 = R`2 R1 + R3 = R`3 System is non-trivial solutions if and if only: a = 5, put z= t By back substitution Y – Z = 0 Y = z = t So, x = -y –z = -2t For any t the solution is non-trivial if t ≠ 0 4 R2 + R3 = R`3 1 1 1 1 0 1 2 0 0 -3 a 0 2 1 1 1 0 0 1 -1 0 0 0 a-5 0

We therefore have the following test: For Homogeneous equations AX = 0, where A is square: If det A = 0, there is an infinite number of non-trivial solutions. det A ≠ 0, No solution ( trivial solution ).

Non-Homogeneous System AX = b The system might has: One Solution = Unique Solution Infinite Solutions = non-trivial Solution No Solution = Trivial Solution (det A ≠ 0) .. .. Consistent .. In Consistent

Homogeneous System AX = 0 The system might has: No Solution = Trivial Solution at det A ≠ 0 Infinite Solutions = non-trivial Solution at det A = 0 Note: If the matrix is non- square (n ≠ m) It is non-trivial Solution and used Gauss Elimination

Thanks