Lecture 1 Systems of Linear Equations and Matrices

Similar documents
Lecture 2 Systems of Linear Equations and Matrices, Continued

Linear Algebra I Lecture 8

Linear Algebra I Lecture 10

1 Last time: linear systems and row operations

Solving Systems of Linear Equations Using Matrices

Solutions of Linear system, vector and matrix equation

Notes on Row Reduction

1 - Systems of Linear Equations

Chapter 1. Vectors, Matrices, and Linear Spaces

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Linear Methods (Math 211) - Lecture 2

is Use at most six elementary row operations. (Partial

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

4 Elementary matrices, continued

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

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Math 1314 Week #14 Notes

Exercise Sketch these lines and find their intersection.

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

4 Elementary matrices, continued

Chapter 4. Solving Systems of Equations. Chapter 4

1111: Linear Algebra I

March 19 - Solving Linear Systems

Methods for Solving Linear Systems Part 2

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

Section Gaussian Elimination

Final Exam Practice Problems Answers Math 24 Winter 2012

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

MATH 54 - WORKSHEET 1 MONDAY 6/22

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

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

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

3x + 2y 2z w = 3 x + y + z + 2w = 5 3y 3z 3w = 0. 2x + y z = 0 x + 2y + 4z = 3 2y + 6z = 4. 5x + 6y + 2z = 28 4x + 4y + z = 20 2x + 3y + z = 13

Linear Algebra Practice Problems

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

a s 1.3 Matrix Multiplication. Know how to multiply two matrices and be able to write down the formula

System of Linear Equations

Matrices and systems of linear equations

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics. The Basics of Linear Algebra

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

Linear Equations in Linear Algebra

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

Math 344 Lecture # Linear Systems

Solving Linear Systems Using Gaussian Elimination

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

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

9.1 - Systems of Linear Equations: Two Variables

Math Linear Algebra Final Exam Review Sheet

1300 Linear Algebra and Vector Geometry

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

Matrices and RRE Form

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

Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3

Lecture 1: Systems of linear equations and their solutions

Row Reduction and Echelon Forms

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

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 "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

22A-2 SUMMER 2014 LECTURE 5

Row Reduced Echelon Form

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

Linear Algebra Basics

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

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

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

Math 2331 Linear Algebra

Chapter 2: Matrices and Linear Systems

System of Linear Equations

Fundamentals of Linear Algebra. Marcel B. Finan Arkansas Tech University c All Rights Reserved

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

CHAPTER 8: MATRICES and DETERMINANTS

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

Chapter 9: Systems of Equations and Inequalities

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

18.06 Problem Set 3 - Solutions Due Wednesday, 26 September 2007 at 4 pm in

Linear System Equations

What is A + B? What is A B? What is AB? What is BA? What is A 2? and B = QUESTION 2. What is the reduced row echelon matrix of A =

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

Sections 6.1 and 6.2: Systems of Linear Equations

Math Final December 2006 C. Robinson

1 Last time: inverses

Solving Systems of Equations Row Reduction

1111: Linear Algebra I

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

Math 320, spring 2011 before the first midterm

ORIE 6300 Mathematical Programming I August 25, Recitation 1

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

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

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

MATH 310, REVIEW SHEET 2

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

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

An Introduction To Linear Algebra. Kuttler

Section 6.2 Larger Systems of Linear Equations

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

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Topic 14 Notes Jeremy Orloff

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

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

Transcription:

Lecture 1 Systems of Linear Equations and Matrices Math 19620 Outline of Course Linear Equations and Matrices Linear Transformations, Inverses Bases, Linear Independence, Subspaces Abstract Vector Spaces Orthogonality and Least Squares Eigenvalues and Eigenvectors Systems of Linear Equations Our goal for today, will to be to understand how to find solutions to equations such as x + 3y + 2z = 3x + 2y + z = 11 Ideally, we will be able to understand the solutions to any 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 m1 x 1 + a m2 x 2 + + a mn x n = b m where the a ij (the coeffiecients) and the b i (the constant terms) are fixed constants, and we are solving for the x i (the variables) in terms of the a ij and b i Let s start instead with a high school algebra problem: x + 3y = 7 x + y = 3 1

One method to solve this problem is to solve for for one variable in terms of the other, then plug this into the other equation Using the first equation, we have Plug this into the second equation to conclude: Plugging this into ( ), we have x = 7 3y ( ) (7 3y) + y = 3 2y = 3 7 y = 2 ( ) x = 7 3(2) = 1 Hence, the solution to the above system of linear equations is x = 1 y = 2 The issue with this method is that it becomes terrible to write out when you have more equations and variables The key to understanding how to generalize this method is to look at the second step of ( ) The equation 2y = 3 y is obtained from the second equation, by subtracting the first equation This was useful, because it canceled out the x term Let s use this strategy to solve the above 3 by 3 system: x + 3y + 2z = (I) (subtract row 1) 3x + 2y + z = 11 3x + 2y + z = 11 3(I) (subtract three times row 1) 4y + 8z = 28 +4(II) (add four times row 2) 12z = 36 ( 12) (divide this row by 12) z = 3 +(III) 2

y = 1 z = 3 x + 2y = 4 y = 1 z = 3 2(II) 3(III) x = 2 y = 1 z = 3 Matrices It might be clear: that although x,y,and z are what we really care about in the end, while we did the computation, the only role each of them played was as place holder Thus, for any system 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 m1 x 1 + a m2 x 2 + + a mn x n = b m we define the coefficient matrix A and constant column vector b to be a 11 a 12 a 1n b 1 a 21 a 22 a 2n A = b 2 b = a m1 a 1m2 a mn If x is any column vector with n entries, we define A x to be the column vector with entries given by the left hand side of the corresponding system of linear eq s That is, a 11 a 12 a 1n x 1 a 11 x 1 + a 12 x 2 + + a 1n x n a 21 a 22 a 2n x 2 A x = = a 21 x 1 + a 22 x 2 + + a 2n x n a m1 a 1m2 a mn x n a m1 x 1 + a m2 x 2 + + a mn x n Hence, we can rewrite the above system of linear equations as an equality of column vectors: A x = b b m 3

I call this the geometric form of a system of linear equations Each row corresponds to one of the linear equations in the system, and each column corresponds to one of the variables Let s solve the system I gave at the beginning of class again, using this more compact notation instead The matrix of coefficients and vector of constants are: 1 2 3 13 A = 1 3 2 b = 11 3 2 1 11 Thus, I m solving for x, y, z in 1 2 3 x 13 1 3 2 y = 11 3 2 1 z 11 The aim: arrive at something that looks like 1 0 0 x 0 1 0 y = some vector of constants 0 0 1 z The above square (ie number of rows = number of columns) matrix I with 1 s on the diagonal and 0 elsewhere is called the identity matrix Why? Because I x = x for all vectors x Ie, it corresponds to the easiest system of linear equations there is: the one that just tells you the answer right off the bat (Solving for x if your are given x = 2 is pretty easy!) The tools: When solving this problem as a collection of equations (instead of an equality of vectors), we had several tools at our disposal: we could Multiply both sides of an equation by a nonzero number Add/subtract a multiple of one row to another Swap two equations (Ie, the order you write them in doesn t matter) When we think in terms of matrices, these are called elementary row operations When we perform such an operation, we do it to both A and b You can imagine that you are multiplying both sides of the vector equation on the left by the row operation (In fact, in a very real sense that is what you are doing) Do it again, now with matrices Example with Infinitely Many Solutions 2x + 4y + 6z = 0 4x + 5y + 6z = 3 7x + 8y + 9z = 6 4

No Solutions x + 2y = 1 2x + 4y = 1 Row Reduced Echelon Form Luckily, there is an algorithm (called Gauss-Jordan elimination) for determining how many solutions (none, one, or infinitely many) a given system of linear equations has, and which explicitly gives the solutions (In case there are infinitely many, you still obtain an answer in terms of free variables) A matrix is in row reduced echelon form if it satisfies the following three conditions: a) If any row is nonzero (ie has some nonzero entry), its first nonzero entry is a 1, called the leading 1 The independent variable corresponding to the column is called a leading variable b) If a column contains a leading 1, then all other entries in that column are 0 c) If a row contains a leading 1, then each row above it contains a leading 1 further to the left Note that condition (c) implies that all zero rows appear at the bottom A variable which is not a leading variable is a free variable Example: The augmented matrix 2 4 2 2 4 1 2 1 2 0 3 6 2 1 9 5 10 4 5 9 x 1 x 2 x 3 x 4 x 5 2 4 2 2 4 2 1 2 1 2 0 4 3 6 2 1 9 1 5 10 4 5 9 9 2 = 4 1 9 Reduced: 1 2 0 0 3 2 0 0 1 0 1 4 0 0 0 1 2 3 0 0 0 0 0 0 5

The Number of Solutions to a System Consider the following examples: 1 2 0 0 a) 0 0 1 0 0 0 0 1 0 0 0 0 b) 1 2 0 1 0 0 1 2 0 0 0 0 c) 1 0 0 1 0 1 0 2 0 0 1 3 These augmented matrices are all in RREF, so it should be easy to determine the solutions The examples correspond to the systems thus a) has no solutions, b) has infinitely many solutions, and c) has a unique solution Definitions A system of linear equations is consistent if it has at least one solution Otherwise, it is inconsistent The rank rank(a) of a matrix A is the number of leading 1 s in rrefa Theorem 131 of the book: Suppose A x = b is a system of linear equations, with m equations and n variables (That is, A has m rows and n columns) This system is inconsistent if and only if rref(a b) contains the row [ 0 0 0 1 ] If a linear system is consistent, then it either has a unique solution, or it has infinitely many We have rank(a) m and rank(a) n If rank(a) = n, then the system is consistent If rank(a) = m, then the system has at most one solution If rank(a) < m, then the system has either infinitely many solutions, or none 6

7