LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Similar documents
LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Linear Algebra I Lecture 10

Linear Algebra I Lecture 8

Row Reduction and Echelon Forms

1 - Systems of Linear Equations

Linear Equations in Linear Algebra

Chapter 1. Vectors, Matrices, and Linear Spaces

1111: Linear Algebra I

Linear equations in linear algebra

1111: Linear Algebra I

March 19 - Solving Linear Systems

Linear Algebra March 16, 2019

1300 Linear Algebra and Vector Geometry

Lecture 2 Systems of Linear Equations and Matrices, Continued

Section Gaussian Elimination

1111: Linear Algebra I

Lecture 1 Systems of Linear Equations and Matrices

Section 1.1: Systems of Linear Equations

Row Reduced Echelon Form

Lectures on Linear Algebra for IT

Solving Systems of Linear Equations

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

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

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

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

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

Math 1314 Week #14 Notes

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

Exercise Sketch these lines and find their intersection.

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

Chapter 1: Systems of Linear Equations

Number of solutions of a system

Linear Independence Reading: Lay 1.7

Matrices, Row Reduction of Matrices

Chapter 1: Linear Equations

Linear Algebra Handout

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

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

Chapter 1: Linear Equations

Notes on Row Reduction

x y = 1, 2x y + z = 2, and 3w + x + y + 2z = 0

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

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam

Chapter 4. Solving Systems of Equations. Chapter 4

Span & Linear Independence (Pop Quiz)

Math 1021, Linear Algebra 1. Section: A at 10am, B at 2:30pm

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

9.1 - Systems of Linear Equations: Two Variables

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

web: HOMEWORK 1

System of Linear Equations

Methods for Solving Linear Systems Part 2

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

Lecture Notes: Solving Linear Systems with Gauss Elimination

Row Reduction

System of Linear Equations

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

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

Matrices and Systems of Equations

Linear System Equations

Math Computation Test 1 September 26 th, 2016 Debate: Computation vs. Theory Whatever wins, it ll be Huuuge!

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

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

CHAPTER 9: Systems of Equations and Matrices

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

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

MATH 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve:

Solving Systems of Linear Equations Using Matrices

Chapter 9: Systems of Equations and Inequalities

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to 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

Lecture 4: Gaussian Elimination and Homogeneous Equations

Sections 6.1 and 6.2: Systems of Linear Equations

CHAPTER 8: MATRICES and DETERMINANTS

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

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

Lecture 2e Row Echelon Form (pages 73-74)

MATH 320, WEEK 6: Linear Systems, Gaussian Elimination, Coefficient Matrices

Lecture 03. Math 22 Summer 2017 Section 2 June 26, 2017

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.

Math 314 Lecture Notes Section 006 Fall 2006

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

Section 6.2 Larger Systems of Linear Equations

1 Last time: linear systems and row operations

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

Gaussian elimination

CHAPTER 9: Systems of Equations and Matrices

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

Review for Chapter 1. Selected Topics

Span and Linear Independence

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

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Matrices and RRE Form

Linear Algebra. Preliminary Lecture Notes

Math 3C Lecture 25. John Douglas Moore

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

Solving Linear Systems Using Gaussian Elimination

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

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Transcription:

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 1 Linear equations We now switch gears to discuss the topic of solving linear equations, and more interestingly, systems of them Definition A linear equation in the variables x 1, x n is an equation of the form with a 1, a n, b R a 1 x 1 + a n x n = b There is not much to say about the solution to a single equation It is always the set of points on an (n 1)-dimensional hyperplane in R n, for example it is a point is n = 1, a line if n = 2, and a plane if n = 3 The situation is more interesting if we discuss the solution sets of systems of equations For example, we may want to find all x 1, x n which satisfy the following m linear equations simultaneously: a 1,1 x 1 + a 1,2 x 2 + a 1,n x n = b 1 a 2,1 x 1 + a 2,2 x 2 + a 2,n x n = b 2 a m,1 x 1 + a m,2 x 2 + a m,n x n = b m It is somewhat tedious to write the x i s and the plus signs, etc at every step of our analysis, as well as to always write the commas in the subscripts of the a i,j s We will thus use an (augmented) matrix (a matrix is simply a rectangular array of numbers, and augmented just means that we will insert a bar conveniently separating different types of information) the as a bookkeeping tool to represent the system above by a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a m1 a m2 a mn b m One can also think of this geometrically, in that we are trying to identify the intersection points of m hyperplanes Of course, the algebraic interpretation is more convenient for Date: October 4, 2016 1

2 MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 working with, and we are interested in finding a simple algorithm which will solve all such systems Example Consider the system x + y + z = 2 2x y + z = 6 3z + y z = 4 This is represented by the augmented matrix 1 1 1 2 2 1 1 6 3 1 1 4, and solving it is equivalent to finding the intersection points between three planes in R 3 We could already start reducing these equations by hand, but the question is, how can we reduce this to a routine, simple method? 2 Row reduction The basic idea is to use what are known as elementary row operations These can be applied to any (augmented or ordinary) matrix, and consist of the following: (1) Switch any two rows If we swap rows (i) and (j), we will denote this by (i) (j) (2) Add a multiple of one row to another If we add c(j) to the row (i), we will denote this operation by (i) (i) + c(j) (3) Multiply a row by a non-zero constant If we multiply row (i) by c, we will denote this operation by (i) c(i) The point is (and you should check!) that if we perform an elementary row operations on an augmented matrix, then it gives a new augmented matrix which corresponds to a system of equations with the same solution set Example In the example above, we can use elementary row operations to simplify the system as follows:

1 1 1 2 2 1 1 6 3 1 1 4 (3) 1 2 (3) LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS 3 1 1 1 2 0 3 1 2 0 1 2 1 (1) (1) (2), (3) (3)+3(2) (1) (1)+(3) (2) 2(3) (2) (2) 2(1), (3) (3) 3(1) (2) (3) 1 0 1 1 0 1 2 1 0 0 5 5 1 0 0 2 0 1 0 1 0 0 1 1 1 1 1 2 0 3 1 2 0 2 4 2 1 1 1 2 0 1 2 1 0 3 1 2 (3) 1 5 (3) From this, we can directly read off the solution to our system as x = 2, y = 1, z = 1 1 0 1 1 0 1 2 1 0 0 1 1 Of course, you can go back and plug these numbers into the original system to check that they do indeed solve it 3 Gauss-Jordan elimination The ideas behind this example can be extended to a general procedure, called row reduction Procedure (Gauss-Jordan method) To solve a system of linear equations: (1) Write down the corresponding augmented matrix (2) Use elementary row operations to put it in reduced row echelon form (RREF) This is a matrix which satisfies: (a) All rows of only 0 s are grouped together at the bottom of the matrix (b) In every non-zero row, the left-most entry is 1 We refer to this entry as a pivot of the matrix (c) Each pivot is in a column with all other values in the column equal to zero (d) The pivot in any row is to the left of any pivots below it (3) Determine the solution set as follows (a) If the last non-zero row is of the form (0 0 1), ie there is a pivot in the last column, then the system is inconsistent, and there are no solutions (b) Otherwise, the system is consistent, there will be two possibilities; there is either one solution or infinitely many solutions If there is a pivot in each column before the bar (like in the last example), then the last column directly gives the unique solution If there isn t a pivot in each variable column, there will be infinitely many solutions In this case, call each variable which

4 MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 corresponds to a pivot a pivotal unknown and each other variable a free unknown The free unknowns can then be assigned arbitrary values, after which we solve for the pivotal variables As always, this is made more clear by looking at explicit examples We have already seen in the example above how to row reduce and interpret a system with no free unknowns and a unique solution We now want to solve one example of the other possibilities: when there are infinitely many solutions, and when there are no solutions As is often said, mathematics is not a spectator sport In particular, with things like row reduction, the only way to learn it well is to do enough examples by hand until it feels like second nature Example We solve the system of equations x 1 + 2x 2 + x 3 + x 4 + x 5 = 1 3x 1 6x 2 2x 3 x 5 = 0 2x 1 + 4x 2 + 2x 3 + x 4 + 3x 5 = 3 We first represent this by the matrix and row reduce 3 6 2 0 1 0 1 2 1 1 1 1 2 4 2 1 3 3 (1) (1)+(3), (2) (2)+3(3), (3) (3) (1) (1) (2) 3 6 2 0 1 0 1 2 1 1 1 1 2 4 2 1 3 3 1 2 0 0 3 8 0 0 1 0 5 12 0 0 0 1 1 5 (2) (2)+3(1), (3) (3) 2(1) 1 2 1 0 2 4 0 0 1 0 5 12 0 0 0 1 1 5 1 2 1 1 1 1 0 0 1 3 2 3 0 0 0 1 1 5 We have now reached the reduced row echelon form There are pivots in the first, third, and fourth columns, and so x 1, x 3, x 4 are our pivotal variables, and x 2 and x 5 are both free Thus, we set x 2 = t 2, x 5 = t 5 where t 2 and t 5 are arbitrary real numbers We now solve for the pivotal variables, yielding x 1 + 2t 2 3t 5 = 8, x 3 + 5t 5 = 12, x 4 t 5 = 5

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS 5 Thus, the final solution set is x 1 = 3t 5 2t 2 + 8 x 2 = t 2 x 3 = 12 5t 5 x 4 = 5 + t 5 x 5 = t 5 These are parametric equations for a plane in five-dimensional space Example We solve the system x + 2y + z = 2 2x + y + 2z = 1 5x + 4y + 5z = 2 This corresponds to the matrix which reduces as 1 2 1 2 2 1 2 1 5 4 5 2 (3) (3) 2(2) 1 2 1 2 2 1 2 1 5 4 5 2, (2) (2) 2(1) (3) (3) 5(1) 1 2 1 2 0 3 0 3 0 0 0 2 1 2 1 2 0 3 0 3 0 6 0 8 We now stop, as the last row corresponds to the equation 0x + 0y + 0z = 0 = 2, which is clearly nonsense Hence, there are no solutions 4 Linear combinations An important concept in linear algebra is the following Definition A vector v is a linear combination of the vectors v 1,, v n if there are constants c 1,, c n R such that v = c 1 v 1 + c n v n Given a collection of vectors v 1, v n, the span of them, written span(v 1,, v n ), is the set of all linear combinations of the vectors v 1,, v n

6 MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 We now require a second way to think about vectors Instead of thinking of vectors as tuples such as u = (u 1,, u n ), we can think of them as n 1 matrices such as u 1 u n Returning to systems of linear equations, we can write a system like using vectors as x y + 3z = 2 x + z = 0 y z = 1 x 1 1 + y 1 0 + z 3 1 = 2 0 0 1 1 1 In general, a system of linear equations a 11 x 1 + a 12 x 2 + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + a 2n x n = b 2 a m,1 x 1 + a m,2 x 2 + a m,n x n = b m has a solution (ie, is consistent) if and only if b 1 span (a 1, a 2, a n ), b m where a 1, a n are the m-dimensional column vectors of the corresponding matrix: a i = Example We will determine whether v = 2 1 is a linear combination of 1 a 1i a mi v 1 = 3 1, v 2 = 1 2, v 3 = 6 5 2 1 5

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS 7 This is the same as asking whether there is a solution to the equation 3x 1 + x 2 + 6x 3 = 2 x 1 v 1 + x 2 v 2 + x 3 v 3 = v x 1 + 2x 2 + 5x 3 = 1 2x 1 + x 2 + 5x 3 = 1 We row reduce this as follows: 3 1 6 2 1 2 5 1 2 1 5 1 (2) (2) 3(1), (3) (3) 2(1) (3) (3) 5(2) (1) (2), (1) (1) 1 2 5 1 0 7 21 5 0 5 15 3 1 2 5 1 5 0 1 3 7 0 0 0 3 25 7 1 2 5 1 3 1 6 2 2 1 5 1 (2) 1 7 (2) 1 2 5 1 5 0 1 3 7 0 5 15 3 Looking at the last row, we don t need to finish finding the RREF, as we already see that the system is inconsistent Hence, v is not a linear combination of v 1, v 2, v 3 Finally, there is one special case of spans of vectors which we will be particularly interested in throughout this course Definition Given any matrix A, the column space is the span of its column vectors Example Here we find the column space of A = 1 0 0 1 2 0 The column vectors of A are v 1 = 1 0, v 2 = 0 1 A generic vector 2 0 the column space if and only if there are constants c 1, c 2 such that c 1 1 0 + c 2 0 1 = x c 1 = x y c 2 = y 2 0 z 2c 2 = z, which corresponds to the matrix 1 0 x 0 1 y 2 0 z x y R 3 is in z

8 MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 Row reducing this matrix gives 1 0 x 0 1 y 0 0 z 2x Now this system has a solution if and only if z 2x = 0, or z = 2x Thus, the column space, which is the space of linear combinations of v 1, v 2 in R 3, is the plane z = 2x