Solving Systems of Linear Equations Using Matrices



Similar documents
Section 8.2 Solving a System of Equations Using Matrices (Guassian Elimination)

Solving Systems of Linear Equations

5.5. Solving linear systems by the elimination method

Arithmetic and Algebra of Matrices

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

1.2 Solving a System of Linear Equations

2.2/2.3 - Solving Systems of Linear Equations

Linear Equations ! $ & " % & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development

Question 2: How do you solve a matrix equation using the matrix inverse?

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Row Echelon Form and Reduced Row Echelon Form

Solving Linear Systems, Continued and The Inverse of a Matrix

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Lecture Notes 2: Matrices as Systems of Linear Equations

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Solving Systems of Linear Equations

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

Systems of Linear Equations

Math Quizzes Winter 2009

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

Lecture 1: Systems of Linear Equations

Using row reduction to calculate the inverse and the determinant of a square matrix

Linearly Independent Sets and Linearly Dependent Sets

Methods for Finding Bases

Solving simultaneous equations using the inverse matrix

Linear Equations in One Variable

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Solving Systems of Linear Equations Substitutions

Solving Systems of Linear Equations Substitutions

How To Understand And Solve A Linear Programming Problem

160 CHAPTER 4. VECTOR SPACES

Solutions to Math 51 First Exam January 29, 2015

Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

Systems of Equations

Systems of Linear Equations

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

1.5 SOLUTION SETS OF LINEAR SYSTEMS

Math Common Core Sampler Test

MAT 242 Test 2 SOLUTIONS, FORM T

Linear Programming. March 14, 2014

Elementary Matrices and The LU Factorization

These axioms must hold for all vectors ū, v, and w in V and all scalars c and d.

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

5 Homogeneous systems

1 Solving LPs: The Simplex Algorithm of George Dantzig

x y The matrix form, the vector form, and the augmented matrix form, respectively, for the system of equations are

by the matrix A results in a vector which is a reflection of the given

Homogeneous systems of algebraic equations. A homogeneous (ho-mo-geen -ius) system of linear algebraic equations is one in which

LAB 11: MATRICES, SYSTEMS OF EQUATIONS and POLYNOMIAL MODELING

THE DIMENSION OF A VECTOR SPACE

Recall that two vectors in are perpendicular or orthogonal provided that their dot

10.2 Systems of Linear Equations: Matrices

PREPARATION FOR MATH TESTING at CityLab Academy

K80TTQ1EP-??,VO.L,XU0H5BY,_71ZVPKOE678_X,N2Y-8HI4VS,,6Z28DDW5N7ADY013

Zeros of Polynomial Functions

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

Integrating algebraic fractions

General Framework for an Iterative Solution of Ax b. Jacobi s Method

Solving Systems of Linear Equations Elimination (Addition)

A =

Standard Form of a Linear Programming Problem

Lecture 3: Finding integer solutions to systems of linear equations

( ) which must be a vector

5 Systems of Equations

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

COLLEGE ALGEBRA 10 TH EDITION LIAL HORNSBY SCHNEIDER 1.1-1

Algebraic expressions are a combination of numbers and variables. Here are examples of some basic algebraic expressions.

How To Understand And Solve Algebraic Equations

7 Gaussian Elimination and LU Factorization

Name: Section Registered In:

Notes on Determinant

Direct Methods for Solving Linear Systems. Matrix Factorization

Prerequisites: TSI Math Complete and high school Algebra II and geometry or MATH 0303.

1 Determinants and the Solvability of Linear Systems

Linear Algebra Notes

4.5 Linear Dependence and Linear Independence

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Linear Algebra and TI 89

Solution of Linear Systems

Linear Equations in Linear Algebra

Continued Fractions and the Euclidean Algorithm

Solving Systems of Linear Equations Graphing

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

Application of Linear Algebra in. Electrical Circuits

MATH APPLIED MATRIX THEORY

LS.6 Solution Matrices

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

Solving Linear Equations in One Variable. Worked Examples

Solving Rational Equations

Similarity and Diagonalization. Similar Matrices

Operation Count; Numerical Linear Algebra

Linear Programming. April 12, 2005

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

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: 3x y + 4z = 9 3y z = 5 4x 3y + z = 7 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 x variable; the second column will represent the y variable, and the third column will represent the z variable. 3 4 [ 0 3 ] 4 3 Provided by Tutoring Services 1 Solving Systems of Linear Equations Using Matrices Summer 014

Because the second equation does not contain an x variable, a 0 has been entered into the x column in the second row. The constant matrix is a single column matrix consisting of the solutions to the equations. 9 [ 5] 7 To create the augmented matrix, add the constant matrix as the last column of the coefficient matrix. 3 4 9 [ 0 3 5] 4 3 7 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, () 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: 3 4 9 [ 0 3 5 4 3 7 4 3 7 [ 0 3 5] 3 4 9 ] R 1 R 3 () In row multiplication, every entry in a row is multiplied by the same constant. Example: Multiply row one by 1 3 Solution: 3 4 9 [ 0 3 5 4 3 7 1 /3 4/3 3 [ 0 3 5] 4 3 7 ] 1 3 R 1 Provided by Tutoring Services Solving Systems of Linear Equations Using Matrices Summer 014

(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: 3 4 9 [ 0 3 5 4 3 7 3 4 9 [ 0 + ( 3) 3 + ( ) + 4 5 + 9] 4 3 7 3 4 9 [ 3 1 14] 4 3 7 ] R 1+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? 1 9 7 1 6 8 11 1 5 1 a) [ 0 0 1 4 ] b) [ 0 1 1 3] c) [ 0 1 7] 0 1 7 6 0 0 0 1 0 0 1 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 Summer 014

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: 3x y + 4z = 9 3y z = 5 4x 3y + z = 7 Solution: First, create the augmented matrix for the system. 3 4 9 [ 0 3 5] 4 3 7 Next use the elementary row operations to reduce the matrix to Row-Echelon form. 3 4 9 [ 0 3 5 4 3 7 [ 0 3 5 0 1 57 [ 0 3 5 4 3 7 ] 1 3 R 1 [ 0 1 57 0 3 5 ] R 3 R [ 0 3 5 0 19 ] 4R 1+R 3 ] 3R +R 3 1 3 4 3 [ 0 1 3 0 0 3 57 ] 56 ] 3 R 3 3 R 3 Provided by Tutoring Services 4 Solving Systems of Linear Equations Using Matrices Summer 014

[ 0 1 57 ] 0 0 1 8 Finally, rewrite the matrix as a system of reduced equations and back substitute to find the solution. 1x + y 4 z = 3 1y z = 57 1z = 8 The reduced equations show that z = 8. Substitute 8 for z and solve for y in the second equation. 1y (8) = 57 y 6 = 57 y = 7 Substitute 8 for z and 7 for y in the first equation and solve for x. x + (7) 4 (8) = 3 x + 14 3 3 3 = 3 x 6 = 3 x = 3 The solution to the system of equations is (3,7,8). 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: 3x y + 4z = 9 Provided by Tutoring Services 5 Solving Systems of Linear Equations Using Matrices Summer 014

3y z = 5 4x 3y + z = 7 Solution: First, create the augmented matrix for the system. 3 4 9 [ 0 3 5] 4 3 7 Next, use the elementary row operations to reduce the matrix to Reduced Row-Echelon form. 3 4 9 [ 0 3 5 4 3 7 [ 0 3 5 4 3 7 ] 1 3 R 1 [ 0 3 5 0 19 ] 4R 1+R 3 1 [ 0 3 5] 4 3 1 3 R [ 0 1 57 ] 3R 4 3 +R 3 [ 0 1 57 0 1 57 ] 3 56 0 3 5 0 0 1 [ 0 1 57 ] 4 3 4 1 0 3 3+R 3 [ 0 1 0 7] 3+R1 [ 0 1 0 7] 0 0 1 8 0 0 1 8 0 0 1 8 1 0 0 3 [ 0 1 0 7] 0 0 1 8 ] 3 R 3 3 R 3 3 R +R1 The solution to the system can be written directly from the Reduced Row-Echelon form by converting the matrix back to equation form. x = 3 y = 7 z = 8 Thus, the solution to the system of equations is (3,7,8). 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 Summer 014

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. x 4y + z = 3 x 3y + z = 5 3x 7y + z = 1 Solution: First, create the augmented matrix. 4 1 3 [ 1 3 1 5 ] 3 7 1 Use the elementary row operations to obtain a Row-Echelon form. 4 1 3 [ 1 3 1 5 ] R R 1 1 3 1 5 [ 4 1 3 3 7 1 3 7 1 1 3 1 5 [ 0 1 7 3 7 1 ] R 1+R ] 3R 1+R 3 1 3 1 5 [ 0 1 7 0 1 3 1 3 1 5 1 1 3 1 5 [ 0 1 7] R [ 0 1 1 7 ] 0 0 0 4 0 0 0 4 ] 1R +R 3 The last row indicates the system is inconsistent. This can most easily be seen if the last row is converted back to an equation. 0x + 0y + 0z = 4 According to this equation, there are not any values of x, y, or z 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 Summer 014

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. x 3y = 1 3x + y = 1 8x 5y = 49 Solution: Create the augmented matrix and use elementary row operations to reduce the ` matrix to Row-Echelon form. 1 3 3 1 1 [ 3 1] R 1 1 [ 3 1 8 5 49 8 5 49 ] 3R 1+R 1 3 13 65 [ 0 8 5 49 1 ] 8R 1+R 3 1 3 1 13 R 1 3 1 [ 0 13 65] [ 0 1 5 0 7 35 0 7 35 1 3 [ 0 1 5] R +R 1 1 0 3 [ 0 1 5] 0 0 0 0 0 0 ] 7R +R 3 1 3 This system of equations is consistent even though there is a row of 0 s at the bottom. The original system of equations had only two variables, x and y, thus the solution to the system only contains two numbers. The solution to the system of equations is ( 3,5). Provided by Tutoring Services 8 Solving Systems of Linear Equations Using Matrices Summer 014

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

x + 4(z ) z = 3 x + 4z 8 z = 3 x + z 8 = 3 x 8 = z 3 x = z + 5 The solution to the dependent system of equations is ( z + 5, z, z). Provided by Tutoring Services 10 Solving Systems of Linear Equations Using Matrices Summer 014

Practice Problems Solve the following systems of equations by: Gaussian Elimination Gauss-Jordan Elimination: 1. x 3y + z = 13 4. x 3y + z = 8 3x + y z = x 5y 3z = 3x 4y 3z = 1 x + 4y + z =. x + 3y + 4z = 11 5. x 3y + z = 0 x + 3y + z = 7 x 5y z = 0 4x + 9y + 10z = 0 4x 11y + z = 0 3x y + z = 1 6. x + 5y + z = 1 3. t u + v 3w = 9 x + y 3z = 5 4t + 11v 10w = 46 5x + 1y + z = 10 3t u + 8v 6w = 7 Solutions 1. (, 1,3). No Solution 3. ( 7 c + 39, 5 c + 10, 4c 10, c) 4. ( 1 13, 1, ) 5 5 5. (16c, 6c, c) 6. No Solution Provided by Tutoring Services 11 Solving Systems of Linear Equations Using Matrices Summer 014