Systems of Linear Equations

Similar documents
Row Echelon Form and Reduced Row Echelon Form

Arithmetic and Algebra of Matrices

Solving Systems of Linear Equations Using Matrices

Solving Systems of Linear Equations

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.

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.

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

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

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

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

1.5 SOLUTION SETS OF LINEAR SYSTEMS

Solving Systems of Linear Equations

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

Systems of Linear Equations

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

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

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

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

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

5.5. Solving linear systems by the elimination method

3.1 Solving Systems Using Tables and Graphs

Lecture 1: Systems of Linear Equations

Systems of Equations

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

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

Linear Equations in Linear Algebra

1.2 Solving a System of Linear Equations

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

Solving Linear Systems, Continued and The Inverse of a Matrix

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

Direct Methods for Solving Linear Systems. Matrix Factorization

1 VECTOR SPACES AND SUBSPACES

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

Linearly Independent Sets and Linearly Dependent Sets

5 Homogeneous systems

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

Notes on Determinant

Solutions to Math 51 First Exam January 29, 2015

Systems of Equations - Addition/Elimination

1 Solving LPs: The Simplex Algorithm of George Dantzig

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.

5 Systems of Equations

Methods for Finding Bases

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

Zeros of a Polynomial Function

2.2/2.3 - Solving Systems of Linear Equations

Systems of Linear Equations

Factoring Quadratic Expressions

Solving simultaneous equations using the inverse matrix

MAT 242 Test 2 SOLUTIONS, FORM T

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

Systems of Equations - Substitution

( ) which must be a vector

Linear Equations in Linear Algebra

Chapter 9. Systems of Linear Equations

Solution of Linear Systems

Lecture Notes 2: Matrices as Systems of Linear Equations

MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).

How To Understand And Solve Algebraic Equations

7 Gaussian Elimination and LU Factorization

7. LU factorization. factor-solve method. LU factorization. solving Ax = b with A nonsingular. the inverse of a nonsingular matrix

8 Square matrices continued: Determinants

How To Understand And Solve A Linear Programming Problem

Continued Fractions and the Euclidean Algorithm

Math Common Core Sampler Test

Similar matrices and Jordan form

Unit 1 Equations, Inequalities, Functions

Operation Count; Numerical Linear Algebra

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

Zeros of Polynomial Functions

Lecture 3: Finding integer solutions to systems of linear equations

Vector and Matrix Norms

EQUATIONS and INEQUALITIES

18.06 Problem Set 4 Solution Due Wednesday, 11 March 2009 at 4 pm in Total: 175 points.

BookTOC.txt. 1. Functions, Graphs, and Models. Algebra Toolbox. Sets. The Real Numbers. Inequalities and Intervals on the Real Number Line

Lecture notes on linear algebra

The Characteristic Polynomial

Here are some examples of combining elements and the operations used:

Excel supplement: Chapter 7 Matrix and vector algebra

MATH Fundamental Mathematics IV

9.2 Summation Notation

10.2 Systems of Linear Equations: Matrices

LAB 11: MATRICES, SYSTEMS OF EQUATIONS and POLYNOMIAL MODELING

6. Cholesky factorization

Elementary Matrices and The LU Factorization

Question 2: How do you solve a linear programming problem with a graph?

Word Problems Involving Systems of Linear Equations

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

Systems of Linear Equations; Matrices

A =

Standard Form of a Linear Programming Problem

1 Introduction to Matrices

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes

1 Sets and Set Notation.

1 Determinants and the Solvability of Linear Systems

Factorization Theorems

Math Quizzes Winter 2009

LINEAR ALGEBRA. September 23, 2010

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

Transcription:

Systems of Linear Equations DEFINITION: A linear equation in the variables x 1,..., x n is an equation that can be written in the form a 1 x 1 +...+a n x n = b, where a 1,...,a n and b are constants, x 1,...,x n are variables. EXAMPLE: The equation is linear. The equation is NOT linear. 2x 1 +x 2 7x 3 = 5 3x 1 x 2 +2x 2 3 = 1 DEFINITION: A system of linear equations (or a linear system) is a collection of one or more linear equations. EXAMPLE: 3x 1 +2x 2 +7x 3 x 4 = 6 x 1 +x 2 x 3 +x 4 = 1 4x 1 +3x 2 +6x 3 = 8 Solving a Linear System in Two Variables EXAMPLE: Solve the following system of linear equations: { x1 2x 2 = 1 x 1 +3x 2 = 3 Solution: We have { x1 2x 2 = 1 x 1 +3x 2 = 3 { x1 2x 2 = 1 x 2 = 2 { x1 = 3 x 2 = 2 1

EXAMPLE: Solve the system of equations. Solution: Begin by solving for in Equation 1. Next, substitute this expression for y into Equation 2 and solve the resulting single-variable equation for x. Finally, you can solve for by back-substituting x = 3 into the equation y = 4 x, to obtain The solution is the ordered pair (3,1). You can check this solution as follows. 2

EXAMPLE: Solve the system of equations. Solution: You can eliminate the y-terms by adding the two equations. So, x = 12 8 = 3. By back-substituting into Equation 1, you can solve for y. 2 The solution is ( ) 3 2, 1. You can check the solution algebraically by substituting into the original system. 4 3

EXAMPLE: Find all solutions of the system 2x+y = 1 3x+4y = 14 Solution 1(Substitution Method): We solve for y in the first equation. 2x+y = 1 y = 1 2x Now we substitute for y in the second equation and solve for x: 3x+4y = 14 3x+4(1 2x) = 14 3x+4 8x = 14 5x = 10 x = 2 Finally, we back-substitute x = 2 into the equation y = 1 2x: y = 1 2( 2) = 5 Solution 2(Elimination Method): We have 2x+y = 1 8x+4y = 4 3x+4y = 14 3x+4y = 14 5x = 10 3x+4y = 14 x = 2 3x+4y = 14 Next we substitute x = 2 into the equation 3x+4y = 14: 3( 2)+4y = 14 6+4y = 14 4y = 20 y = 5 4

EXAMPLE: Find all solutions of the system 2x+3y = 4 5x 7y = 1 Solution 1(Substitution Method): We solve for x in the first equation. 2x+3y = 4 2x = 4 3y x = 4+3y 2 Now we substitute for x in the second equation and solve for y: 5x 7y = 1 5 4+3y 2 7y = 1 Finally, we back-substitute y = 22 29 5(4+3y) 14y = 2 20 15y 14y = 2 29y = 22 y = 22 29 into the equation x = 4+3y: 2 x = 4+3( ) 22 29 = 25 2 29 Solution 2(Elimination Method): On the one hand, we have 2x+3y = 4 10x+15y = 20 5x 7y = 1 10x 14y = 2 = 29y = 22 y = 22 29 On the other hand, we have 2x+3y = 4 5x 7y = 1 14x+21y = 28 15x 21y = 3 = 29x = 25 x = 25 29 EXAMPLE: Find all solutions of the system 3 5 x+ 1 2 y = 7 2 1 3 x+ 4 5 y = 3 2 5

EXAMPLE: Find all solutions of the system Solution (Elimination Method): We have 3 5 x+ 1 2 y = 7 2 On the one hand, we have 6x+5y = 35 10x+24y = 45 On the other hand, we have 6x+5y = 35 10x+24y = 45 1 3 x+ 4 5 y = 3 2 3 5 x+ 1 2 y = 7 2 1 3 x+ 4 5 y = 3 2 30x+25y = 175 30x+72y = 135 144x+120y = 840 50x+120y = 225 EXAMPLE: Solve the system of linear equations 6x+5y = 35 10x+24y = 45 = 97y = 310 y = 310 97 = 194x = 615 x = 615 194 Solution: Because the coefficients in this system have two decimal places, you can begin by multiplying each equation by 100 to produce a system with integer coefficients. Now, to obtain coefficients that differ only by sign, multiply revised Equation 1 by 3 and multiply revised equation 2 by -2. So, you can conclude that y = 322 23 the following. = 14. Back-substitution this value into revised Equation 2 produces 6

EXAMPLE: Find all solutions of the system Answer: No solution. EXAMPLE: Find all solutions of the system x+y = 1 x+y = 2 3x 2y = 4 6x+4y = 7 Solution: We have 3x 2y = 4 6x+4y = 7 3x 2y = 4 3x 2y = 7 2 It follows that the system has no solution (inconsistent). EXAMPLE: Find all solutions of the system x+y = 1 x+y = 1 Answer: The system has infinitely many solutions (dependent). EXAMPLE: Find all solutions of the system Solution: We have 8x 2y = 4 4x+y = 2 8x 2y = 4 4x+y = 2 8x 2y = 4 8x 2y = 4 It follows that the system has infinitely many solutions (dependent). 7

EXAMPLE: Solve the system of linear equations. Larger Systems of Linear Equations Solution: From Equation 3, you know the value z. To solve for y, substitute z = 2 into Equation 2 to obtain Finally, substitute y = 1 and z = 2 into Equation 1 to obtain The solution is x = 1, y = 1 and z = 2. EXAMPLE: Solve the system of linear equations. Solution: Because the leading coefficient of the first equation is 1, you can begin by saving the x at the upper left and eliminating the other x-terms from the first column. Now that all but the first x have been eliminated from the first column, go to work on the second column. (You need to eliminate y from the third equation.) Finally, you need a coefficient of 1 for z in the third equation. This is the same system that was solved in Example 1. As in that example, you can conclude that the solution is x = 1, y = 1, and z = 2. 8

EXAMPLE: Find all solutions of the system 2x y +3z = 1 x 2y +z = 1 2x 3y z = 2 Solution (Elimination Method): We have 2x y +3z = 1 x 2y +z = 1 2x 3y z = 2 2x y +3z = 1 2x 4y +2z = 2 2x 3y z = 2 2x y +3z = 1 3y z = 1 2y 4z = 1 2x y +3z = 1 12y 4z = 4 2y 4z = 1 therefore so 2x y +3z = 1 12y 4z = 4 10y = 3 2x y +3z = 1 12y 4z = 4 y = 3 10 ( 2x 3 ) ( +3 1 ) = 1 10 10 z = 1 10 y = 3 10 2x y +3z = 1 ( 12 3 ) 4z = 4 10 y = 3 10 x = 1 2 z = 1 10 y = 3 10 2x y +3z = 1 z = 1 10 y = 3 10 EXAMPLE: Solve the system of linear equations. Solution: Because 0 = 2 is false statement, you can conclude that this system is inconsistent and so has no solution. Moreover, because this system is equivalent to the original system, you can conclude that the original system also has no solution. 9

EXAMPLE: Solve the system of linear equations. Solution: This result means that Equation 3 depends on Equations 1 and 2 in the sense that it gives us no additional information about the variables. So, the original system is equivalent to the system { x+y 3z = 1 y z = 0 In the last equation, solve for y in terms of z to obtain y = z. Back-substituting y = z in the first equation produces x = 2z 1. Finally, letting z = a, where a is a real number, the solutions to the given system are all of the form x = 2a 1, y = a, and z = a So, every ordered triple of the form (2a 1,a,a) is a solution of the system. 10

The Augmented Matrix of a Linear System We can write a system of linear equations as a matrix, called the augmented matrix of the system, by writing only the coefficients and constants that appear in the equations. Here is an example. The next Example demonstrates the elementary row operations described above. EXAMPLE: (a) Add 2 times the first row of the original matrix to the third row. (b) Multiply the first row of the original matrix by 1 2. (c) Interchange the first and second rows of the original matrix. 11

EXAMPLE: Solve the system of linear equations. x y +3z = 4 x+2y 2z = 10 3x y +5z = 14 Solution: Our goal is to eliminate the x-term from the second equation and the x- and y-terms from the third equation. For comparison, we write both the system of equations and its augmented matrix. Now we use back-substitution to find that The solution is (2,7,3). EXAMPLE: Solve the system of linear equations. z = 3 y 2z = 1 x y +3z = 4 y 2(3) = 1 x 7+3(3) = 4 y 6 = 1 x+2 = 4 y = 7 x = 2 x 2y +3z = 9 x+3y +z = 2 2x 5y +5z = 17 12

EXAMPLE: Solve the system of linear equations. Solution: x 2y +3z = 9 x+3y +z = 2 2x 5y +5z = 17 Now we use back-substitution to find that z = 2 y +4z = 7 x 2y +3z = 9 y +4(2) = 7 x 2( 1)+3(2) = 9 y +8 = 7 x+8 = 9 y = 1 x = 1 The solution is (1, 1,2). 13

EXAMPLE: Show that the following system has no solutions. Solution: We have x 3y +2z = 12 2x 5y +5z = 14 x 2y +3z = 20 Now if we translate the last row back into equation form, we get 0x + 0y + 0z = 1, or 0 = 1, which is false. No matter what values we pick for x, y, and z, the last equation will never be a true statement. This means the system has no solution. EXAMPLE: Show that the following system has infinitely many solutions. Solution: We have 3x 5y +36z = 10 x+7z = 5 x+y 10z = 4 The third row corresponds to the equation 0 = 0. This equation is always true, no matter what values are used for x, y, and z. The complete solution of this system will be discussed in the next section. 14

Gaussian Elimination In general, to solve a system of linear equations using its augmented matrix, we use elementary row operations to arrive at a matrix in a certain form. This form is described in the following box. In the following matrices the first matrix is in reduced row-echelon form, but the second one is just in row-echelon form. The third matrix is not in row-echelon form. The entries in red are the leading entries. 15

EXAMPLE: Solve the system of linear equations using Gaussian elimination. 4x+8y 4z = 4 3x+8y +5z = 11 2x+y +12z = 17 Solution: We first write the augmented matrix of the system, and then use elementary row operations to put it in row-echelon form. We now have an equivalent matrix in row-echelon form, and the corresponding system of equations is x+2y z = 1 y +4z = 7 z = 2 We use back-substitution to solve the system. So the solution of the system is ( 3,1, 2). 16

Gauss-Jordan Elimination If we put the augmented matrix of a linear system in reduced row-echelon form, then we don t need to back-substitute to solve the system. To put a matrix in reduced row-echelon form, we use the following steps. Use the elementary row operations to put the matrix in row-echelon form. Obtain zeros above each leading entry by adding multiples of the row containing that entry to the rows above it. Begin with the last leading entry and work up. The following matrices are in reduced row-echelon form. Using the reduced row-echelon form to solve a system is called Gauss-Jordan elimination. We illustrate this process in the next example. EXAMPLE: Solve the system of linear equations, using Gauss-Jordan elimination. 4x+8y 4z = 4 3x+8y +5z = 11 2x+y +12z = 17 Solution: In the previous Example we used Gaussian elimination on the augmented matrix of this system to arrive at an equivalent matrix in row-echelon form. We continue using elementary row operations on the last matrix in that Example to arrive at an equivalent matrix in reduced row-echelon form. We now have an equivalent matrix in reduced row-echelon form, and the corresponding system of equations x = 3 is y = 1. Hence we immediately arrive at the solution ( 3,1, 2). z = 2 17

Inconsistent and Dependent Systems The matrices below, all in row-echelon form, illustrate the three cases described in the box. EXAMPLE: Solve the system. x 3y +2z = 12 2x 5y +5z = 14 x 2y +3z = 20 Solution: We transform the system into row-echelon form. This last matrix is in row-echelon form, so we can stop the Gaussian elimination process. Now if we translate the last row back into equation form, we get 0x + 0y + 0z = 1, or 0 = 1, which is false. No matter what values we pick for x, y, and z, the last equation will never be a true statement. This means the system has no solution. 18

EXAMPLE: Find the complete solution of the system. 3x 5y +36z = 10 x+7z = 5 x+y 10z = 4 Solution: We transform the system into reduced row-echelon form. The third row corresponds to the equation 0 = 0. This equation is always true, no matter what values are used for x, y, and z. Since the equation adds no new information about the variables, we can drop it from the system. So the last matrix corresponds to the system Now we solve for the leading variables x and y in terms of the non-leading variable z: To obtain the complete solution, we let t represent any real number, and we express x, y, and z in terms of t: x = 7t 5 y = 3t+1 z = t We can also write the solution as the ordered triple (7t 5,3t+1,t), where t is any real number. EXAMPLE: Find the complete solution of the system. x+2y 3z 4w = 10 x+3y 3z 4w = 15 2x+2y 6z 8w = 10 19

EXAMPLE: Find the complete solution of the system. x+2y 3z 4w = 10 x+3y 3z 4w = 15 2x+2y 6z 8w = 10 Solution: We transform the system into reduced row-echelon form. This is in reduced row-echelon form. Since the last row represents the equation 0 = 0, we may discard it. So the last matrix corresponds to the system To obtain the complete solution, we solve for the leading variables x and y in terms of the non-leading variables z and w, and we let z and w be any real numbers. Thus, the complete solution is x = 3s+4t y = 5 z = s w = t wheresandtareanyrealnumbers. Wecanalsoexpresstheanswerastheorderedquadruple(3s+4t,5,s,t). 20

EXAMPLE: Solve the system of linear equations. Appendix Solution: To put this in triangular form, we begin by eliminating the x-terms from the second equation and the third equation. Now we eliminate the y-term from the third equation. The new third equation is true, but it gives us no new information, so we can drop it from the system. Only two equations are left. We can use them to solve for x and y in terms of z, but z can take on any value, so there are infinitely many solutions. To find the complete solution of the system we begin by solving for y in terms of z, using the new second equation. Then we solve for x in terms of z, using the first equation. To describe the complete solution, we let t represent any real number. The solution is x = 3t y = 2t+2 z = t We can also write this as the ordered triple ( 3t,2t+2,t). 21

EXAMPLE: Solve the system. { 3x1 +4x 2 = 1 x 1 2x 2 = 7 Solution: We start by writing the augmented matrix corresponding to system: [ ] 3 4 1 1 2 7 To get a 1 in the upper left corner, we interchange R 1 and R 2 : To get a 0 in the lower left corner, we multiply R 1 by 3 and add to R 2 this changes R 2 but not R 1. Some people find it useful to write ( 3R 1 outside the matrix to help reduce errors in arithmetic, as shown: To get a 1 in the second row, second column, we multiply R 2 by 1 10 : To get a 0 in the first row, second column, we multiply R 2 by 2 and add the result to R 1 this changes R 1 but not R 2 : We have accomplished our objective. The last matrix is the augmented matrix for the system { x1 = 3 x 2 = 5 The preceding process may be written more compactly as follows: 22

EXAMPLE: Solve by Gauss-Jordan elimination: 2x 1 2x 2 +x 3 = 3 3x 1 +x 2 x 3 = 7 x 1 3x 2 +2x 3 = 0 Solution: Write the augmented matrix and follow the steps indicated at the right. The solution to this system is x 1 = 2, x 2 = 0, x 3 = 1. 23

This is the augmented matrix of the system { x1 +3x 2 = 2 EXAMPLE: Solve the system. Solution: { 2x1 +6x 2 = 3 x 1 +3x 2 = 2 0 = 7 The second equation is not satisfied by any ordered pair of real numbers. Therefore the original system is inconsistent and has no solution. EXAMPLE: Solve by Gauss-Jordan elimination: 2x 1 4x 2 +x 3 = 4 4x 1 8x 2 +7x 3 = 2 2x 1 +4x 2 3x 3 = 5 Solution: The system has no solution. 24

EXAMPLE: Solve by Gauss-Jordan elimination: Solution: 3x 1 +6x 2 9x 3 = 15 2x 1 +4x 2 6x 3 = 10 2x 1 3x 2 +4x 3 = 6 Note that the leftmost variable in each equation appears in one and only one equation. We solve for the leftmost variables x 1 and x 2 in terms of the remaining variable, x 3 : { x1 = x 3 3 If we let x 3 = t, then for any real number t, x 2 = 2x 3 +4 x 1 = t 3 x 2 = 2t+4 x+3 = t One can check that ( t 3,2t+4,t) is a solution of the original system for any real number t. 25

EXAMPLE: Find the complete solution of the system. y +z 2w = 3 x+2y z = 2 2x+4y +z 3w = 2 x 4y 7z w = 19 Solution: The matrix is now in row-echelon form, and the corresponding system is x+2y z = 2 y +z 2w = 3 z w = 2 w = 3 Using back-substitution, you can determine that the solution is x = 1, y = 2, z = 1, and w = 3. 26