Matrix Solutions to Linear Equations

Similar documents
Math 1314 Week #14 Notes

Chapter 1. Vectors, Matrices, and Linear Spaces

Section 6.2 Larger Systems of Linear Equations

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

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

Solving Systems of Linear Equations Using Matrices

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

CHAPTER 9: Systems of Equations and Matrices

Section Gaussian Elimination

1 - Systems of Linear Equations

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

Relationships Between Planes

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

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

CHAPTER 9: Systems of Equations and Matrices

9.1 - Systems of Linear Equations: Two Variables

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

Linear Algebra I Lecture 8

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

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

4 Elementary matrices, continued

3. Replace any row by the sum of that row and a constant multiple of any other row.

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

Matrices and Determinants

Exercise Sketch these lines and find their intersection.

MAC Module 1 Systems of Linear Equations and Matrices I

Chapter 4. Solving Systems of Equations. Chapter 4

Introduction to Systems of Equations

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

Methods for Solving Linear Systems Part 2

1 Last time: linear systems and row operations

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

Solving Linear Systems Using Gaussian Elimination

Linear Equations in Linear Algebra

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

4 Elementary matrices, continued

System of Linear Equations

10.3 Matrices and Systems Of

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

Lectures on Linear Algebra for IT

CHAPTER 8: Matrices and Determinants

7.6 The Inverse of a Square Matrix

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

Lecture Notes: Solving Linear Systems with Gauss Elimination

Elimination Method Streamlined

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

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

Gauss-Jordan elimination ( used in the videos below) stops when the augmented coefficient

Section Gauss Elimination for Systems of Linear Equations

Elementary Linear Algebra

March 19 - Solving Linear Systems

MIDTERM 1 - SOLUTIONS

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.

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

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

Row Reducing Matrices

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

22A-2 SUMMER 2014 LECTURE 5

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

Miller Objectives Alignment Math

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

Row Reduced Echelon Form

Math 313 Chapter 1 Review

1.4 Gaussian Elimination Gaussian elimination: an algorithm for finding a (actually the ) reduced row echelon form of a matrix. A row echelon form

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

UNIT 3 INTERSECTIONS OF LINES AND PLANES

Chapter 3. Linear Equations. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 1 / 33

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Section 6.3. Matrices and Systems of Equations

Matrices and systems of linear equations

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

Linear System Equations

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

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

PH1105 Lecture Notes on Linear Algebra.

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

Section Matrices and Systems of Linear Eqns.

Chapter Practice Test Name: Period: Date:

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

Section Gauss Elimination for Systems of Linear Equations

MathQuest: Linear Algebra. 1. Which of the following operations on an augmented matrix could change the solution set of a system?

System of Linear Equations. Slide for MA1203 Business Mathematics II Week 1 & 2

Math 4377/6308 Advanced Linear Algebra

6-1 Study Guide and Intervention Multivariable Linear Systems and Row Operations

Solving Consistent Linear Systems

Notes on Row Reduction

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

POLI270 - Linear Algebra

Math 2331 Linear Algebra

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

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

CHAPTER 8: MATRICES and DETERMINANTS

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra

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

Lecture 7: Introduction to linear systems

Chapter 9: Systems of Equations and Inequalities

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1

MATH 54 - WORKSHEET 1 MONDAY 6/22

Systems of Linear Equations

Department of Aerospace Engineering AE602 Mathematics for Aerospace Engineers Assignment No. 4

Transcription:

Matrix Solutions to Linear Equations Augmented matrices can be used as a simplified way of writing a system of linear equations. In an augmented matrix, a vertical line is placed inside the matrix to represent a series of equal signs and dividing the matrix into two sides. Thus, for example, the matrix would represent the set of linear equations 2x 3y + 4z = 3 x + y + 2z = 1 5x 2y 3z = 7 In the above augmented matrix, each row represents an equation. The numbers in the left side of the matrix represent the coefficients of the variables in the set of equations. The numbers in the right side of the matrix represent the constant values to the right of the equal signs. Note that if one or more of the variables did not exist in a particular equation, the coefficient associated with that variable would be zero, and a 0 would appear at that position in the matrix. We can now use the elimination method of solving a system of linear equations on our augmented matrix. Row operations will be performed on the matrix to reduce it to a simpler form containing the solutions to the equations. The matrix can be reduced and solved by the two different methods Gaussian Elimination with back-substitution (row-echelon form) or Gauss- Jordan elimination (reduced row-echelon form). The matrix is reduced through a series of row operations that can include any of the following procedures: 1) Interchange any two of the rows. Example: Switching rows 1 and 2 2 1 6 4 R R 3 0 3 9 3 4 1 10 1 2 would give 3 0 3 9 2 1 6 4 3 4 1 10 By James Garner/Gerald Manahan SLAC/San Antonio College 1

2) Multiply any row by a nonzero constant. Example: Multiplying row 1 by one-third 1/3R 1 = 1/3[3 0-3 9] = [1/3(3) 1/3(0) 1/3(-3) 1/3(9)] = [1 0-1 3] 3 0 3 9 2 1 6 4 3 4 1 10 1 3 R 1 would give 1 0 1 3 2 1 6 4 3 4 1 10 3) Replace any row by the sum of that row and a constant multiple of any other row. Example: Multiplying row 1 by two and adding it to row 2 2[1 0-1 3] = [2 0-2 6] [2 0-2 6] + [-2-1 6-4] = [(2 2) (0 1) (-2 + 6) (6 4)] = [0-1 4 2] 1 0 1 3 2 1 6 4 2 + 3 4 1 10 R1 R 2 would give 1 0 1 3 0 1 4 2 3 4 1 10 To solve a system of linear equations using Gaussian elimination with back-substitution the goal is to reduce the augmented matrix into the form where there are 1 s going down the main diagonal (upper left corner to the lower right corner) and 0 s below and to the left of the main diagonal. The steps for Gaussian elimination are: 0 0 1 * 1) Write the system of equations in an augmented matrix 2) Get a 1 in the first row of the first column 3) Use row 1 to get 0 s in the first column of rows 2 and 3 4) Get a 1 in the second row of the second column 5) Use row 2 to get a 0 in the second column of row 3 6) Get a 1 in the third row of the third column 7) Change the augmented matrix back into a system of linear equations 8) Use back-substitution to solve for the variables By James Garner/Gerald Manahan SLAC/San Antonio College 2

The above sequence of operations would find 1 s and 0 s in the following order: * * * * * * * * 0 * * * 0 * * * 0 * * * 0 0 * * 0 0 1 * Example 1: Solve the system of equations with augmented matrices using the Gaussian elimination with back-substitution method. x 2y z = 2 2x y + z = 4 x + y 2z = 4 Solution: Step 1: Write the system of equations in an augmented matrix 1 2 1 2 2 1 1 4 1 1 2 4 Step 2: Get a 1 in the first row of the first column This is already done so we can skip to the next step. Step 3: Use row 1 to get 0 s in the first column of rows 2 and 3 For the second row we can obtain a zero by multiplying row 1 by -2 and adding it to row 2. 1 2 1 2 2 1 1 4 2R 1 1 2 4 + R 1 2 1 2 1 2 0 3 3 0 1 1 2 4 By James Garner/Gerald Manahan SLAC/San Antonio College 3

Example 1 (Continued): For the third row we can simply add row 1 to row 3. 1 2 1 2 0 3 3 0 1 1 2 4 R + R 1 3 0 3 3 0 0 1 3 2 Step 4: Get a 1 in the second row of the second column To get the 1, we can multiply row 2 by one-third 0 3 3 0 0 1 3 2 1 3 R 2 0 1 1 0 0 1 3 2 Step 5: Use row 2 to get a 0 in the second column of row 3 To make the second column of row 3 a zero, we can add row 2 to row 3 0 1 1 0 0 1 3 2 R + R 2 3 0 1 1 0 0 0 2 2 By James Garner/Gerald Manahan SLAC/San Antonio College 4

Example 1 (Continued): Step 6: Get a 1 in the third row of the third column To make the -2 a 1, we can multiply row 3 by a negative one-half 0 1 1 0 1 0 0 2 2 2 R 3 0 1 1 0 0 0 1 1 Step 7: Change the augmented matrix back into a system of equations x 2y z = 2 y + z = 0 z = 1 Step 8: Use back-substitution to solve for the variables z = 1 so we can substitute it into the second equation to find y y + z = 0 y + 1 = 0 y = 1 Now we can substitute the values for y and z into the first equation to find x x 2y z = 2 x 2( 1) (1) = 2 x + 2 1 = 2 x + 1 = 2 x = 1 The solution set for this system of equations is (1, -1, 1). The simplest matrix containing the solutions to the linear equations is called a reduced rowechelon matrix. Normally, we can solve a system of linear equations if the number of variables is equal to the number of independent equations. For example, if there are three variables in a system of linear equations, we will need three of these independent equations in order to obtain a unique solution for each of the variables. By James Garner/Gerald Manahan SLAC/San Antonio College 5

Our reduced row-echelon matrix will look like 1 0 0 0 1 0 0 0 1 a b c where a, b, and c are the solutions for the three variables. The reduced row-echelon matrix will generally be in the form above, containing only 1 s and 0 s to the left of the vertical line, with the 1 s in a diagonal pattern extending from the upper left to the lower right. This is also called a square matrix, where the number of rows and columns to the left of the vertical line are equal. A more general rule for the reduced row-echelon matrix specifies that it meet the following conditions: In each row, the leftmost nonzero element is 1. In each row, the column containing the leftmost 1 has 0 s above and below it. In each row, the leftmost 1 is to the right of the leftmost 1 in the row above it. Any row consisting entirely of 0 s is below any row having a nonzero element. In order to transform a matrix representing a system of linear equations into a reduced rowechelon matrix, we will need to apply a sequence of row operations to the original matrix. A sequence that we can follow to obtain the reduced row-echelon matrix is called Gauss-Jordan elimination. The steps are as follows: 1) Write the system of linear equations in an augmented matrix 2) Get a 1 in the first row of the first column. 3) Use row 1 to get 0 s in the first column of rows 2 and 3. 4) Get a 1 in the second row of the second column 5) Use row 2 to get 0 s in the second column of rows 1 and 3. 6) Get a 1 in the third row of the third column 7) Use row 3 to get 0 s in the third column of rows 1 and 2. 8) If any row appears containing all 0 s, move that row to the bottom. The above sequence of operations would find 1 s and 0 s in the following order: * * * * * * * * 0 * * * 0 * * * 0 * * * 1 0 * * 0 0 * * 1 0 * * 0 0 1 * 1 0 0 0 1 0 0 0 1 a b c where the system s solution set would be (a, b, c). By James Garner/Gerald Manahan SLAC/San Antonio College 6

Example 2: Solve the system of equations with augmented matrices using the Gauss-Jordan elimination method. x 3z = 2 2x + 2y + z = 4 3x + y 2z = 5 Solution: Step 1: Write the system of equations in an augmented matrix 2 2 1 4 3 1 2 5 Always enter a 0 for any missing variables such as the y in the first equation. Step 2: Get a 1 in the first row of the first column This is already done so we can skip to the next step. Step 3: Use row 1 to get 0 s in the first column of rows 2 and 3 For the second row we can obtain a zero by multiplying row 1 by -2 and adding it to row 2. 2 2 1 4 2R + R 3 1 2 5 1 2 0 2 7 8 3 1 2 5 By James Garner/Gerald Manahan SLAC/San Antonio College 7

Example 2 (Continued): For the third row we can obtain a zero by multiplying row 1 by -3 and adding it to row 3. 0 2 7 8 3 1 2 5 3R + R 1 3 0 2 7 8 Step 4: Get a 1 in the second row of the second column We can get a 1 in the second row of the second column by multiplying row 2 by one-half. However, doing this will give us a fraction within the matrix. Another option we can use to avoid having to deal with fractions is to switch rows 2 and 3 since there is already a 1 in the second column of row 3. 0 2 7 8 R R 2 3 0 2 7 8 By James Garner/Gerald Manahan SLAC/San Antonio College 8

Example 2 (Continued): Step 5: Use row 2 to get 0 s in the second column of rows 1 and 3 The second column of row 1 already contains a 0 so we can move on to row 3. Row 3 has a 2 in the second column so in order to make it a 0 we can multiply row 2 by a -2 and add it to row 3. 0 2 7 8 2R + R 2 3 0 0 7 14 Step 6: Get a 1 in the third row of the third column We can multiply row 3 by a negative one-seventh to get the 1 that we need. 1 0 0 7 14 7 R 3 0 0 1 2 Step 7: Use row 3 to get 0 s in the third column of rows 1 and 2 Row 1 has a -3 in the third column. So in order to make it a 0 we can multiply row 3 by 3 and add it to row 1. 1 0 3 2 3R + R 0 0 1 2 3 1 1 0 0 4 0 0 1 2 By James Garner/Gerald Manahan SLAC/San Antonio College 9

Example 2 (Continued): Row 2 has a 7 in the third column. We can, therefore, multiply row 3 by -7 and add it to row 2. 1 0 0 4 7R + R 0 0 1 2 3 2 1 0 0 4 0 1 0 3 0 0 1 2 Now that we have successfully manipulated the matrix into the reduced rowechelon form we can get the solution set as x = 4, y = -3, and z = 2; which can also be written as (4, -3, 2). By James Garner/Gerald Manahan SLAC/San Antonio College 10