SOLVING Ax = b: GAUSS-JORDAN ELIMINATION [LARSON 1.2]

Similar documents
Lecture 2 Systems of Linear Equations and Matrices, Continued

Chapter 1. Vectors, Matrices, and Linear Spaces

Section Gaussian Elimination

Chapter 4. Solving Systems of Equations. Chapter 4

INVERSE OF A MATRIX [2.2]

Section 6.2 Larger Systems of Linear Equations

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Lecture 1 Systems of Linear Equations and Matrices

Chapter 2: Matrices and Linear Systems

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

1 Last time: linear systems and row operations

Row Reduced Echelon Form

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions.

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Solving Systems of Linear Equations Using Matrices

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

4.3 Row operations. As we have seen in Section 4.1 we can simplify a system of equations by either:

Math 344 Lecture # Linear Systems

1 - Systems of Linear Equations

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

System of Linear Equations

INVERSE OF A MATRIX [2.2] 8-1

3.4 Elementary Matrices and Matrix Inverse

MODEL ANSWERS TO THE THIRD HOMEWORK

Linear Algebra I Lecture 8

7.6 The Inverse of a Square Matrix

Linear Algebra I Lecture 10

Linear Equations in Linear Algebra

March 19 - Solving Linear Systems

Lectures on Linear Algebra for IT

Math 1314 Week #14 Notes

Matrix Factorization Reading: Lay 2.5

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

Matrix Solutions to Linear Equations

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

Chapter Practice Test Name: Period: Date:

Section 1.2. Row Reduction and Echelon Forms

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

MA 1B PRACTICAL - HOMEWORK SET 3 SOLUTIONS. Solution. (d) We have matrix form Ax = b and vector equation 4

4 Elementary matrices, continued

Lectures on Linear Algebra for IT

Matrices, Row Reduction of Matrices

Chapter 2. Systems of Equations and Augmented Matrices. Creighton University

4 Elementary matrices, continued

Solving Linear Systems Using Gaussian Elimination

1. Solve each linear system using Gaussian elimination or Gauss-Jordan reduction. The augmented matrix of this linear system is

Midterm 1 Review. Written by Victoria Kala SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015

Methods for Solving Linear Systems Part 2

Linear System Equations

Linear equations in linear algebra

Problem Sheet 1 with Solutions GRA 6035 Mathematics

And, even if it is square, we may not be able to use EROs to get to the identity matrix. Consider

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding

is Use at most six elementary row operations. (Partial

Solving Systems of Linear Equations

Solving Ax = b w/ different b s: LU-Factorization

10. Rank-nullity Definition Let A M m,n (F ). The row space of A is the span of the rows. The column space of A is the span of the columns.

Exercise Sketch these lines and find their intersection.

1300 Linear Algebra and Vector Geometry

February 20 Math 3260 sec. 56 Spring 2018

1111: Linear Algebra I

1111: Linear Algebra I

Math 313 Chapter 1 Review

1300 Linear Algebra and Vector Geometry Week 2: Jan , Gauss-Jordan, homogeneous matrices, intro matrix arithmetic

CHAPTER 9: Systems of Equations and Matrices

Row Reduction and Echelon Forms

Definition of Equality of Matrices. Example 1: Equality of Matrices. Consider the four matrices

Chapter 1: Systems of Linear Equations

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

EBG # 3 Using Gaussian Elimination (Echelon Form) Gaussian Elimination: 0s below the main diagonal

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini

EXAM. Exam #1. Math 2360, Second Summer Session, April 24, 2001 ANSWERS

The matrix will only be consistent if the last entry of row three is 0, meaning 2b 3 + b 2 b 1 = 0.

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Matrices and Determinants

CHAPTER 8: Matrices and Determinants

Chapter 2 Notes, Linear Algebra 5e Lay

1111: Linear Algebra I

Lecture Notes: Solving Linear Systems with Gauss Elimination

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Recall, we solved the system below in a previous section. Here, we learn another method. x + 4y = 14 5x + 3y = 2

Matrices and systems of linear equations

Lecture 6 & 7. Shuanglin Shao. September 16th and 18th, 2013

Lecture 9: Elementary Matrices

9.1 - Systems of Linear Equations: Two Variables

Row Reducing Matrices

MAC Module 1 Systems of Linear Equations and Matrices I

CHAPTER 9: Systems of Equations and Matrices

MTH 102A - Linear Algebra II Semester

MATH 2050 Assignment 6 Fall 2018 Due: Thursday, November 1. x + y + 2z = 2 x + y + z = c 4x + 2z = 2

Lecture 3: Gaussian Elimination, continued. Lecture 3: Gaussian Elimination, continued

5x 2 = 10. x 1 + 7(2) = 4. x 1 3x 2 = 4. 3x 1 + 9x 2 = 8

REPLACE ONE ROW BY ADDING THE SCALAR MULTIPLE OF ANOTHER ROW

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Math 1314 College Algebra 7.6 Solving Systems with Gaussian Elimination (Gauss-Jordan Elimination)

The Gauss-Jordan Elimination Algorithm

Lecture 22: Section 4.7

1111: Linear Algebra I

UNIT 3 INTERSECTIONS OF LINES AND PLANES

Transcription:

SOLVING Ax = b: GAUSS-JORDAN ELIMINATION [LARSON.2 EQUIVALENT LINEAR SYSTEMS: Two m n linear systems are equivalent both systems have the exact same solution sets. When solving a linear system Ax = b, one should rewrite the system into a simpler equivalent system. This can achieved using elementary row operations applied to the corresponding augmented matrix [ A b. ELEMENTARY ROW OPERATIONS: (SWAP) [R i R j Swap row i & row j: e.g. Swap row 2 & row 3: 0 R 2 R 3 0 (SCALE) [αr j R j Multiply row j by a non-zero scalar α: ( 2)(3) ( 2)(4) ( 2)(0) e.g. Multiply row by 2: 0 ( 2)R R 0 (COMBINE) [αr i + R j R j Add scalar multiple α of row i to row j: e.g. Add (3 row ) to row 3: 0 3R +R 3 R 3 0 REDUCED ROW-ECHELON FORM (RREF) OF A MATRIX: 3(3) + 2 3(4) + 7 3(0) + 9 An matrix is in reduced row-echelon form (RREF) if the following are all true: Any rows consisting entirely of zeros occur below all non-zero rows. 6 8 0 0 0 9 9 For each non-zero row, the first (leftmost) non-zero entry is (and is called a pivot or leading one.) For two successive non-zero rows, the pivot in the higher row is farther to the left than the pivot in lower row. Every column that has a pivot has zeros in every entry above & below its pivot. For linear systems, the (, )-entry must be a pivot. [ (i, j)-entry means i th row, j th column of matrix The RREF of an augmented matrix seemingly may have a pivot in the last column, but it s not really a pivot! However, still zero out entries above & below such a pivot in the last column. Examples of augmented matrices in RREF (pivots are boxed): 0 0 3 6 0 0 6 2 0 0 0 5, 0 0 0,, 0 0 0 0 0 0 0 0 0, 3 0 0 0 SOLVING m n LINEAR SYSTEM Ax = b USING GAUSS-JORDAN ELIMINATION () Form augmented matrix [ A b (2) SWAP/SCALE/COMBINE [ A b as needed to zero-out entries below pivots, left-to-right (3) SWAP/SCALE/COMBINE [ A b as needed to zero-out entries above pivots, right-to-left (4) Translate augmented matrix [ RREF(A) b into corresponding equivalent linear system:, 3 4 (PROCEDURE): If any rows of [ RREF(A) b translate to a CONTRADICTION (e.g. 0 = ) then system has no solution If any rows of [ RREF(A) b translate to a TAUTOLOGY (e.g. 0 = 0), then proceed as usual to STEP (5) (5) Identify all fixed variables & free variables: Each column of RREF(A) that contains a pivot corresponds to a fixed variable Each column of RREF(A) that contains no pivot corresponds to a free variable (6) Assign each free variable a unique parameter (7) Express each fixed variable in terms of the parameters (8) Write out solution in either tuple form or column vector form

SOLVING Ax = b: GAUSS-JORDAN ELIMINATION [LARSON.2 TUPLE FORM OF A SOLUTION: (x, x 2) = (3, 5), (x, x 2, x 3) = (3 6s 2t, s, t) COLUMN VECTOR FORM OF A SOLUTION: [ [ x 3 6s 2t x 3 =, x 2 s x 2 5 t x 3 GAUSS-JORDAN ELIMINATION (3 2 PROTOTYPE POSSIBILITIES): 3 6 2 0 + s + t 0 * indicates possibly non-zero entries Pivots are boxed: 0 [ [ A b = Gauss Jordan 0 RREF(A) b [ A b = [ A b = [ A b = Gauss Jordan Gauss Jordan Gauss Jordan 0 0 0 0 0 0 [ RREF(A) 0 0 [ RREF(A) 0 0 0 [PROTIP DELAY THE ONSLAUGHT OF FRACTIONS (PART ): [ RREF(A) Sometimes an augmented matrix may have fractions in some entries: [ [ 3 /2 /5 ( 3 )R R /6 /5 /3 2 4 /3 2 4 This will cause Gauss-Jordan to involve tedious fraction arithmetic! To avoid dealing with fractions (at least for a few steps), SCALE each row with fractions by its common denominator: [ [ [ 3 /2 /5 0R R 30 5 2 R R 2 6 2 /3 2 4 3R 2 R 2 6 2 30 5 2 [PROTIP DELAY THE ONSLAUGHT OF FRACTIONS (PART 2): Sometimes a SCALE to create a pivot may cause fractions in other entries: 3 4 8 2 3 0 ( 4/3 8/3 3 )R R 2 3 0 This will cause later Gauss-Jordan steps to involve tedious fraction arithmetic! To avoid dealing with fractions (at least for a few steps), zero-out each entry below a would-be pivot by SCALE-ing each pair of rows such that the two entries are identical: 3 4 8 6 8 6 2 3 0 2R R 6 9 0 3 4 8 0 6 ( 5 )R R 3R 2 R 2 3R 3 R 3 ( )R +R 2 R 2 5 20 40 5R R 0 6 ( )R +R 3 R 3 6 8 6 0 6 b b b ( 2 )R R 5 20 40 0 6 5 8 9 0 2 3 4/3 8/3 Again, fractions may be inevitable, 0 6 but at least they can be delayed. 0 2 3 NOTE: entries may become quite large!

EX.2.: x 2x 2 2x 3 + 2x 4 = 0 Using Gauss-Jordan elimination, solve the linear system: x 2x 2 + x 4 = 2x 4x 2 4x 3 + 4x 4 = 3 EX.2.2: x + y + 2z + 2w = 3 Using Gauss-Jordan elimination, solve the linear system: x + 2y + z + 2w = 2x 2y 4z 4w = 6

EX.2.3: Using Gauss-Jordan elimination, solve the linear system: 4x + 4y = 4 3x + y = 2x + y = 4x + 3y = 3 EX.2.4: Using Gauss-Jordan elimination, solve the linear system: x + 3x 2 = 3x 4x 2 = 3x + 2x 2 = 4 9x + 6x 2 = 3

EX.2.5: Using Gauss-Jordan elimination, solve the linear system: x + 2x 2 = x 2x 2 = 3x 6x 2 = 3 4x + 8x 2 = 4 EX.2.6: 3x 4 = 2 Using Gauss-Jordan elimination, solve the linear system: 2x 4x 3 + 4x 4 = 2x x 2 + 4x 3 3x 4 =

EX.2.7: x x 2 = 0 Using Gauss-Jordan elimination, solve the linear system: 2x 2 2x 3 = 0 x 2 x 3 = 0 EX.2.8: x + 2x 2 3x 3 = 0 Using Gauss-Jordan elimination, solve the linear system: 2x + 4x 2 6x 3 = 0 3x 6x 2 + 9x 3 = 0