Solving Systems of Linear Equations Using Matrices

Similar documents
Math 1314 Week #14 Notes

Linear Algebra I Lecture 8

1 - Systems of Linear Equations

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

Lecture 2 Systems of Linear Equations and Matrices, Continued

9.1 - Systems of Linear Equations: Two Variables

Matrix Solutions to Linear Equations

Relationships Between Planes

Methods for Solving Linear Systems Part 2

CHAPTER 9: Systems of Equations and Matrices

Lecture 1 Systems of Linear Equations and Matrices

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

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

Section Gaussian Elimination

Section 6.2 Larger Systems of Linear Equations

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Solving Linear Systems Using Gaussian Elimination

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

Chapter 1. Vectors, Matrices, and Linear Spaces

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

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

CHAPTER 9: Systems of Equations and Matrices

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

10.3 Matrices and Systems Of

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

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

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

Linear Algebra I Lecture 10

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

Lectures on Linear Algebra for IT

Section 6.3. Matrices and Systems of Equations

Linear Equations in Linear Algebra

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

Matrices and Determinants

Lecture 7: Introduction to linear systems

Linear System Equations

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

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

Exercise Sketch these lines and find their intersection.

Linear Methods (Math 211) - Lecture 2

Matrix Algebra Lecture Notes. 1 What is Matrix Algebra? Last change: 18 July Linear forms

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

Section 1.2. Row Reduction and Echelon Forms

Elementary Matrices. MATH 322, Linear Algebra I. J. Robert Buchanan. Spring Department of Mathematics

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

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Notes on Row Reduction

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.

March 19 - Solving Linear Systems

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

Chapter 6 Page 1 of 10. Lecture Guide. Math College Algebra Chapter 6. to accompany. College Algebra by Julie Miller

Row Reduced Echelon Form

Math 314 Lecture Notes Section 006 Fall 2006

Number of solutions of a system

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

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

a. Define your variables. b. Construct and fill in a table. c. State the Linear Programming Problem. Do Not Solve.

1111: Linear Algebra I

7.6 The Inverse of a Square Matrix

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

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

Chapter 4. Solving Systems of Equations. Chapter 4

Matrices and systems of linear equations

Linear Algebra Practice Problems

MATH 54 - WORKSHEET 1 MONDAY 6/22

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

CHAPTER 8: Matrices and Determinants

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

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

UNIT 3 INTERSECTIONS OF LINES AND PLANES

1111: Linear Algebra I

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

MAC Module 1 Systems of Linear Equations and Matrices I

4 Elementary matrices, continued

Matrices, Row Reduction of Matrices

Chapter 1. Linear Equations

1111: Linear Algebra I

1300 Linear Algebra and Vector Geometry

Linear Equations in Linear Algebra

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

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

4 Elementary matrices, continued

Lecture 22: Section 4.7

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

Elementary Linear Algebra

System of Linear Equations

Sections 6.1 and 6.2: Systems of Linear Equations

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

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

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

MODEL ANSWERS TO THE THIRD HOMEWORK

Math 344 Lecture # Linear Systems

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

1.2 Row Echelon Form EXAMPLE 1

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

Chapter 9: Systems of Equations and Inequalities

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

Transcription:

Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations. Matrices have many applications in science, engineering, and math courses. This handout will focus on how to solve a system of linear equations using matrices. How to Solve a System of Equations Using Matrices Matrices are useful for solving systems of equations. There are two main methods of solving systems of equations: Gaussian elimination and Gauss-Jordan elimination. Both processes begin the same way. To begin solving a system of equations with either method, the equations are first changed into a matrix. The coefficient matrix is a matrix comprised of the coefficients of the variables which is written such that each row represents one equation and each column contains the coefficients for the same variable in each equation. The constant matrix is the solution to each of the equations written in a single column and in the same order as the rows of the coefficient matrix. The augmented matrix is the coefficient matrix with the constant matrix as the last column. Example: Write the coefficient matrix, constant matrix, and augmented matrix for the following system of equations: + = = + = Solution: The coefficient matrix is created by taking the coefficients of each variable and entering them into each row. The first equation will be the first row; the second equation will be the second row, and the third equation will be the third row. Also, the first column will represent the variable; the second column will represent the variable, and the third column will represent the variable. [ ] Provided by Tutoring Services 1 Solving Systems of Linear Equations Using Matrices

Because the second equation does not contain an variable, a has been entered into the column in the second row. The constant matrix is a single column matrix consisting of the solutions to the equations. [ ] To create the augmented matrix, add the constant matrix as the last column of the coefficient matrix. [ ] For the Gaussian elimination method, once the augmented matrix has been created, use elementary row operations to reduce the matrix to Row-Echelon form. There are three basic types of elementary row operations: (1) row swapping, (2) row multiplication, and (3) row addition. Row multiplication and row addition can be combined together. (1) In row swapping, the rows exchange positions within the matrix. The matrix resulting from a row operation or sequence of row operations is called row equivalent to the original matrix. Example: Swap row one and row three Solution: [ [ ] ] R R (2) In row multiplication, every entry in a row is multiplied by the same constant. Example: Multiply row one by Solution: [ / / [ ] ] R Provided by Tutoring Services 2 Solving Systems of Linear Equations Using Matrices

(3) In row addition, the column elements of row A are added to the column elements of row B. The resulting sums replace the column elements of row B while row A remains unchanged. Example: Add row one to row two Solution: [ [ + + + + ] [ ] ] R +R The previous examples all started from the original augmented matrix. In order to solve a system of equations, these row operations are performed back to back on the resulting matrix, instead of returning to the original matrix each time, until Row-Echelon form is achieved. Row-Echelon form is characterized by having the furthest left non-zero entry in a row, the leading entry, with all zeros below it, and the leading entry of each row is in a column to the right of the leading entry in the row above it. For Pre-Calculus students, the leading entry in each row should be reduced to a 1; for Linear Algebra students, this leading entry could be any number unless otherwise specified in your assignment. Example: Are the following matrices in Row-Echelon form? a) [ ] b) [ ] c) [ ] Solution a): No, this matrix is not in Row-Echelon form since the leading entry in row three is in a column to the left of the leading entry in row two. Please note: If we swapped row two and row three, then the matrix would be in Row-Echelon form. Provided by Tutoring Services 3 Solving Systems of Linear Equations Using Matrices

Solution b): Yes, this matrix is in Row-Echelon form as the leading entry in each row has 0 s below, and the leading entry in each row is to the right of the leading entry in the row above. Notice the leading entry for row three is in column 4 not column 3. The leading entry is allowed to skip columns, but it cannot be to the left of the leading entry in any row above it. Solution c): Yes, this matrix is in Row-Echelon form. Each leading entry in each row is to the right of the leading entry in the row above it, and each leading entry contains only 0 s below it. The following example will demonstrate how to use the elementary row operations to reduce the augmented matrix from a system of equations to Row-Echelon form. After Row-Echelon form is achieved, back substitution can be used to find the solution to the system of equations. Example: Solve the following system of equations using Gaussian Elimination: + = = + = Solution: First, create the augmented matrix for the system. [ ] Next use the elementary row operations to reduce the matrix to Row-Echelon form. [ [ [ ] R [ ] R R [ ] R +R ] R +R [ ] ] R R Provided by Tutoring Services 4 Solving Systems of Linear Equations Using Matrices

[ ] Finally, rewrite the matrix as a system of reduced equations and back substitute to find the solution. + = = = The reduced equations show that =. Substitute for and solve for in the second equation. = = = Substitute for and for in the first equation and solve for. + = + = = = The solution to the system of equations is,,. An alternative method, the Gauss-Jordan elimination method, can be used to solve the system of equations. This involves reducing the augmented matrix to Reduced Row-Echelon form. The Reduced Row-Echelon form is similar to the Row-Echelon form except that the leading entry in each row must be a 1 and all other entries in the same column as a leading entry must be 0. Unlike the Row-Echelon form, there is one and only one Reduced Row-Echelon form for a system of equations. Example: Solve the following system of equations using Gauss-Jordan Elimination: + = Provided by Tutoring Services 5 Solving Systems of Linear Equations Using Matrices

= + = Solution: First, create the augmented matrix for the system. [ ] Next, use the elementary row operations to reduce the matrix to Reduced Row-Echelon form. [ [ ] R [ ] R +R [ ] R [ ] R +R [ ] [ ] +R [ ] +R [ ] [ ] ] R R R +R The solution to the system can be written directly from the Reduced Row-Echelon form by converting the matrix back to equation form. = = = Thus, the solution to the system of equations is,,. This is the same solution obtained by using the Gaussian elimination method in the previous example. The system of equations above is an example of a consistent system of equations. A consistent system of equations is characterized by having a leading coefficient in each column of the coefficient matrix Provided by Tutoring Services 6 Solving Systems of Linear Equations Using Matrices

when it is row reduced to either Row-Echelon form or Reduced Row-Echelon form. In other words, each variable represented by a column can be solved for a specific number. With an inconsistent system of equations, the leading coefficient in one of the rows will be in the last column of the augmented matrix. Example: Determine if the following system of equations is consistent or inconsistent and state the solution. + = + = + = Solution: First, create the augmented matrix. [ ] Use the elementary row operations to obtain a Row-Echelon form. [ ] R R [ [ ] R +R ] R +R [ [ ] R [ ] ] R +R The last row indicates the system is inconsistent. This can most easily be seen if the last row is converted back to an equation. + + = According to this equation, there are not any values of,, or that will make the above equation true. Therefore, the system has no solution; this is represented by the symbol for the null set,. Any augmented system of equations is inconsistent if the Row-Echelon form Provided by Tutoring Services 7 Solving Systems of Linear Equations Using Matrices

contains a row with the coefficient portion of the row containing all 0 s and the augmented column containing any number except 0. A system of equations can also be dependent. In the case of a dependent system, one of the columns of the coefficient portion of the augmented matrix will lack a leading coefficient. In some cases, the row corresponding to the missing leading coefficient will contain only 0 s. In other cases, there will be fewer rows than columns. Be careful because the presence of a row of 0 s does not automatically indicate a dependent system. If a system of three equations contains only two variables, then a row of 0 s does not indicate a dependent system. However, a system of three equations with three variables that contains a row of 0s indicates a dependent system. Example 1: Determine if the following system of equations is consistent, inconsistent, or dependent, and state the solution. = + = = Solution: Create the augmented matrix and use elementary row operations to reduce the ` matrix to Row-Echelon form. [ ] R [ [ ] R +R ] R +R [ ] R [ [ ] R +R [ ] ] R +R This system of equations is consistent even though there is a row of s at the bottom. The original system of equations had only two variables, and, thus the solution to the system only contains two numbers. The solution to the system of equations is,. Provided by Tutoring Services 8 Solving Systems of Linear Equations Using Matrices

Example 2: Determine if the following system of equations is consistent, inconsistent, or dependent, and state the solution. + + = + = + = Solution 2: Create the augmented matrix and use elementary row operations to reduce the matrix to Row-Echelon form. [ [ ] R [ ] R R ] R +R [ [ ] R [ [ ] ] R +R ] R +R This system is dependent because the column does not have a leading coefficient, and the last row of the matrix contains only s. Next, solve for the dependent solution to the system of equations. To begin, write the resulting system of equations. + = = = Then, solve the second equation for y in terms of z. = = Substitute the result for y into the first equation, and solve for x in terms of z. + = Provided by Tutoring Services 9 Solving Systems of Linear Equations Using Matrices

+ = + = + = = = + The solution to the dependent system of equations is +,,. Provided by Tutoring Services 10 Solving Systems of Linear Equations Using Matrices

Practice Problems Solve the following systems of equations by: Gaussian Elimination Gauss-Jordan Elimination: 1. + = 4. + = + = = = + + = 2. + + = 5. + = + + = = + + = + = + = 6. + + = 3. + = + = + = + + = + = Solutions 1.,, 2. No Solution 3. c +, c +, c, c 4.,, 5. c, c, c 6. No Solution Provided by Tutoring Services 11 Solving Systems of Linear Equations Using Matrices