Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

Similar documents
Solving Linear Systems Using Gaussian Elimination

Lecture 2 Systems of Linear Equations and Matrices, Continued

Linear Equations in Linear Algebra

Row Reduction and Echelon Forms

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

Chapter 4. Solving Systems of Equations. Chapter 4

Section 1.2. Row Reduction and Echelon Forms

Lecture 1 Systems of Linear Equations and Matrices

Chapter 1. Vectors, Matrices, and Linear Spaces

1 Last time: linear systems and row operations

Linear Equations in Linear Algebra

Notes on Row Reduction

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

Homework 1.1 and 1.2 WITH SOLUTIONS

22A-2 SUMMER 2014 LECTURE 5

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

Matrices and RRE Form

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

Math 22AL Lab #4. 1 Objectives. 2 Header. 0.1 Notes

Section 5.3 Systems of Linear Equations: Determinants

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

Lecture 9: Elementary Matrices

Row Reduced Echelon Form

Linear Algebra I Lecture 10

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

Math 2331 Linear Algebra

1300 Linear Algebra and Vector Geometry

Solution Set 3, Fall '12

Linear Algebra 1 Exam 1 Solutions 6/12/3

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

0.0.1 Section 1.2: Row Reduction and Echelon Forms Echelon form (or row echelon form): 1. All nonzero rows are above any rows of all zeros.

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

4 Elementary matrices, continued

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix

Solving Systems of Linear Equations

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

Section 6.2 Larger Systems of Linear Equations

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

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

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

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Matrix Factorization Reading: Lay 2.5

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Find the solution set of 2x 3y = 5. Answer: We solve for x = (5 + 3y)/2. Hence the solution space consists of all vectors of the form

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

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

MATH 54 - WORKSHEET 1 MONDAY 6/22

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

9.1 - Systems of Linear Equations: Two Variables

Relationships Between Planes

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

Exercise Sketch these lines and find their intersection.

22m:033 Notes: 1.2 Row Reduction and Echelon Forms

Solutions to Exam I MATH 304, section 6

Linear Algebra Handout

March 19 - Solving Linear Systems

4 Elementary matrices, continued

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

Section Gaussian Elimination

M 340L CS Homework Set 1

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

SOLVING LINEAR SYSTEMS

1 - Systems of Linear Equations

Announcements Wednesday, August 30

MATH240: Linear Algebra Review for exam #1 6/10/2015 Page 1

Section Matrices and Systems of Linear Eqns.

THE NULLSPACE OF A: SOLVING AX = 0 3.2

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

MATH240: Linear Algebra Exam #1 solutions 6/12/2015 Page 1

Introduction to Systems of Equations

3.4 Elementary Matrices and Matrix Inverse

Math x + 3y 5z = 14 3x 2y + 3z = 17 4x + 3y 2z = 1

Matrices and Systems of Equations

1111: Linear Algebra I

Methods for Solving Linear Systems Part 2

INVERSE OF A MATRIX [2.2]

Week #4: Midterm 1 Review

Last Time. x + 3y = 6 x + 2y = 1. x + 3y = 6 y = 1. 2x + 4y = 8 x 2y = 1. x + 3y = 6 2x y = 7. Lecture 2

6-2 Matrix Multiplication, Inverses and Determinants

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Announcements Wednesday, August 30

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

Chapter 2: Matrices and Linear Systems

Solving Systems of Linear Equations Using Matrices

Homework 1 Due: Wednesday, August 27. x + y + z = 1. x y = 3 x + y + z = c 2 2x + cz = 4

(1) We used Elementary Operations (aka EROs bottom of page 8) and the augmented matrix to solve

ANSWERS. Answer: Perform combo(3,2,-1) on I then combo(1,3,-4) on the result. The elimination matrix is

Math 344 Lecture # Linear Systems

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

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

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

February 20 Math 3260 sec. 56 Spring 2018

Identity Matrix: EDU> eye(3) ans = Matrix of Ones: EDU> ones(2,3) ans =

Lectures on Linear Algebra for IT

1 Last time: inverses

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

18.06 Problem Set 3 - Solutions Due Wednesday, 26 September 2007 at 4 pm in

36 What is Linear Algebra?

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

The Gauss-Jordan Elimination Algorithm

Transcription:

22M:33 J. Simon page 1 of 7 22M:33 Summer 06 J. Simon Example 1. Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS 2x 1 + 3x 2 5x 3 = 10 3x 1 + 5x 2 + 6x 3 = 16 x 1 + 5x 2 x 3 = 10 Step 1. Write the augmented coefficient matrix. (note: I am using Matlab to keep track of this, and Matlab does not put the brackets around the matrix.) 3 5 6 16 Step 2. Use elementary operations on the equations, i.e. on the rows of the matrix A, to put the system into echelon form. This step actually takes several smaller steps. At each stage, we replace one of the equations (i.e. replace one of the rows of matrix A) by some combination of rows: either just a rescaling of some row (i.e. some equation) or replace a row by itself plus/minus a multiple of another row. Note: The text is happy to get each pivot element to be non-zero. I prefer making each pivot element actually = 1. This takes a bit more arithmetic, but (I think) makes it easier to read off the answers. Step 2.1 Replace Row 1 by (1/2)*Row 1, in order to get the entry in position (1,1) to be = 1. A(1,:)=(1/2)*A(1,:) 3 5 6 16 Step 2.1 Replace Row 2 by (Row 2 3*Row 1). This is the first of two changes that will put 0 s under A(1,1). In other words, these two replacements together eliminate the variable x 2 from Equations 2 and 3.

22M:33 J. Simon page 2 of 7 A(2,:) = A(2,:)-3*A(1,:) 0 1/2 27/2 1 Step (2.2) Now replace the 3 rd row by (R3 R1). A(3,:) = A(3,:) - A(1,:) 0 1/2 27/2 1 0 7/2 3/2 5 We now have finished Column 1 of the matrix. The pivot entry is (+1) and the entries below that are all 0. Whatever future manipulations we do, the first column will never change. Step (2.3) Replace Row 2 by (2*R2). A(2,:)=2*A(2,:) 0 7/2 3/2 5 Step (2.4) Replace the 3 rd row by (R3 (7/2)* R2) A(3,:)=A(3,:)-(7/2)*A(2,:) 0 0-93 -2 Step (2.5) Replace row 3 by (-1/93)*R3

22M:33 J. Simon page 3 of 7 A(3,:)=(-1/93)*A(3,:) Step (3) Once the augmented coefficient matrix has been put into echelon form [with JS s preference for 1 s on the diagonal, or with just nonzero entries as in the text], then it is easy to read off the solution (if any exists) of the system: x 3 = 2/93 x 2 = 2- (27)(x 3 ) = 2-54/93 = 132/93 x 1 = 5 (3/2)x 2 + (5/2)x 3 = 272/93 %%%%%%%%%%%%%%%%%%%%%%%%%%%% Example 2. 2x 1 + 3x 2 5x 3 = 10 3x 1 + 4x 2 + 6x 3 = 15 x 1 + x 2 + 11x 3 = 5 Step 1. Write the augmented coefficient matrix. 1 1 11 5 Steps (2.1), (2.2) Use two elementary row operations to get B(1,1)=1 and B(2,1)=0. 1 1 11 5 Step (2.3) Use one elementary row operation to get B(3,1)=0 Step (2.4) Use one elementary row operation to get B(2,2)=1.

22M:33 J. Simon page 4 of 7 Step 2.5 One more elementary row operation makes B(3,2)=0. B(3,:)=B(3,:)+(1/2)*B(2,:) 0 0 0 0 The third row of this matrix says nothing, just zero equals zero. Row 2 says x 2 = 27 x 3 and the first equation says x 1 = 5 (3/2)x 2 + (5/2) x 3 = 5 38 x 3. So for this system, there are infinitely many solutions. There is one degree of freedom in that we can pick any value for x 3, and then the values for x 2 and x 1 are determined from that. %%%%%%%%%%%%%%%%%%%% Example 3. 2x 1 + 3x 2 5x 3 = 10 3x 1 + 4x 2 + 6x 3 = 15 x 1 + x 2 + 11x 3 = 8 Here the augmented coefficient matrix is C = 1 1 11 8 and when we do the row-reduction process to get the matrix in echelon form, we get C = 0 0 0 3 Notice the bottom row is the equation 0 x 1 + 0 x 2 + 0 x 3 = 3. Since 0=3 is impossible, we conclude that the original system is inconsistent: there are no solutions. %%%%%%%%%%%%%%%%%%%%%%%%%%%%

22M:33 J. Simon page 5 of 7 REDUCED ROW-ECHELON FORM OF A MATRIX (Section 1.2) Once we get a matrix into [row-]echelon, we can do more row operations to get an equivalent matrix (i.e. the systems of equations are equivalent they have exactly the same solution sets) that is even simpler. Use the 1 s on the diagonal to eliminate coefficients above them. Let s see what happen in the three cases presented above. Example 1 (continued) Column 1 is perfect. There is a 1 in position (1,1) and only 0 s below it. In column 2, there is a 0 below the (2,2) position, but there is a nonzero element above. Apply the row operation (R1 (3/2)R2) --> R1. 1 0-43 2 Now Column 2 is perfect. Note that when we did this last operation, we did not damage column 1. That is because the element A(2,1) = 0 so taking A(1,1)-(3/2)A(2,1) leaves A(1,1) unchanged. Next subtract multiples of Row 3 from Rows 1 and 2 to get zero s above the 1 in column 3. A(1,:) = A(1,:)+43*A(3,:) 1 0 0 272/93 A(2,:)=A(2,:)-27*A(3,:) 1 0 0 272/93 0 1 0 44/31

22M:33 J. Simon page 6 of 7 So long as we are only using elementary row operations, we do not change the solution set of the linear system. But in the final form above, the solution is displayed as clearly as can be: x 1 = 272/93, x 2 = 44/31 (I left 132/93 unreduced in the first version), and x 3 = 2/93. There is a Matlab (also Maple and probably other computer packages as well) command called rref that will take a matrix and put it into the final form (reduced row-echelon form) above. [; 3 5 6 16; ] 3 5 6 16 rref(a) ans = 1 0 0 272/93 0 1 0 44/31 If we apply this to the original matrices B [that was infinitely many solutions] and C [no solutions], we get those conclusions even more clearly: B=[; ; 1 1 11 5] 1 1 11 5 >> rref(b) ans = 1 0 38 5 0 0 0 0 (which tells us how to express x 1 and x 2 each in terms of x 3 )

22M:33 J. Simon page 7 of 7 and C = [; ; 1 1 11 8] C = 1 1 11 8 >> rref(c) ans = 1 0 38 0 0 0 0 1 where the last line (0=1) tells us there are no solutions. %%%%%%%%%%%% End of Handout 1 %%%%%%%%%%%%