Linear equations The first case of a linear equation you learn is in one variable, for instance:

Similar documents
Math Linear algebra, Spring Semester Dan Abramovich

1 Last time: linear systems and row operations

Exercise Sketch these lines and find their intersection.

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

Math 1314 Week #14 Notes

March 19 - Solving Linear Systems

MTH 2530: Linear Algebra. Sec Systems of Linear Equations

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Linear Algebra I Lecture 10

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

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.

1111: Linear Algebra I

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

1111: Linear Algebra I

MIDTERM 1 - SOLUTIONS

1111: Linear Algebra I

Linear Algebra I Lecture 8

CHAPTER 8: MATRICES and DETERMINANTS

Algebra & Trig. 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

1300 Linear Algebra and Vector Geometry

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

1 - Systems of Linear Equations

Determinants of 2 2 Matrices

Lecture 2 Systems of Linear Equations and Matrices, Continued

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

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

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

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

Linear Equations in Linear Algebra

Chapter 4. Solving Systems of Equations. Chapter 4

Solving Linear Systems Using Gaussian Elimination

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

Lecture 1 Systems of Linear Equations and Matrices

STAT 309: MATHEMATICAL COMPUTATIONS I FALL 2018 LECTURE 13

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

Linear Algebra, Summer 2011, pt. 2

Row Reduction and Echelon Forms

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

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

System of Linear Equations

Matrices, Row Reduction of Matrices

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han

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

9.1 - Systems of Linear Equations: Two Variables

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

Math Linear algebra, Spring Semester Dan Abramovich

The Gauss-Jordan Elimination Algorithm

Chapter 1: Systems of Linear Equations

LINEAR SYSTEMS, MATRICES, AND VECTORS

Some Notes on Linear Algebra

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

Row Reduced Echelon 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

Relationships Between Planes

22A-2 SUMMER 2014 LECTURE 5

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

CHAPTER 8: MATRICES and DETERMINANTS

Lecture 9: Elementary Matrices

2 Systems of Linear Equations

Elementary Linear Algebra

7.6 The Inverse of a Square Matrix

MAC Module 1 Systems of Linear Equations and Matrices I

Homework 1.1 and 1.2 WITH SOLUTIONS

Gaussian elimination

Chapter 9: Systems of Equations and Inequalities

Matrices and systems of linear equations

4 Elementary matrices, continued

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

1.2 Row Echelon Form EXAMPLE 1

Section Gauss Elimination for Systems of Linear Equations

Linear Equations and Matrix

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

Direct Methods for Solving Linear Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

EA = I 3 = E = i=1, i k

3 Fields, Elementary Matrices and Calculating Inverses

Chapter 1. Vectors, Matrices, and Linear Spaces

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Learning Module 1 - Basic Algebra Review (Appendix A)

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

MATH 320, WEEK 7: Matrices, Matrix Operations

1 Matrices and Systems of Linear Equations

MTH 2032 Semester II

Math 138: Introduction to solving systems of equations with matrices. The Concept of Balance for Systems of Equations

Math 314 Lecture Notes Section 006 Fall 2006

Solving Systems of Linear Equations Using Matrices

1. Introduction to commutative rings and fields

1. Introduction to commutative rings and fields

Linear algebra and differential equations (Math 54): Lecture 8

Lectures on Linear Algebra for IT

Linear Systems. Math A Bianca Santoro. September 23, 2016

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

Chapter 1: Linear Equations

Linear Algebra Basics

Methods for Solving Linear Systems Part 2

Notes on Row Reduction

Section 6.3. Matrices and Systems of Equations

Linear Algebra. Solving Linear Systems. Copyright 2005, W.R. Winfrey

Section Gauss Elimination for Systems of Linear Equations

Transcription:

Math 52 0 - Linear algebra, Spring Semester 2012-2013 Dan Abramovich Linear equations The first case of a linear equation you learn is in one variable, for instance: 2x = 5. We learned in school that this is equivalent to what you get when you divide both sides by 2: why? x = 5/2. This gives us the solution. It also drives home the fact that fractions - rational numbers - are a necessary part of life. 1

2 Some of these linear equations are special. The equation 0 x = 5 has no solution, while for 0 x = 0 all x are solutions. At least we need to decide which solutions we want - rational, real, complex... For the time being we work with real equations and solutions.

3 A real linear equation in real variables x 1,..., x n is of the form a 1 x 1 + a 2 x 2 + a n x n = b where b and the coefficients a i are real. We usually are concerned with systems of linear equations.

check it!! 4 Here is a system of two linear equations with two unknowns: x 1 + 2x 2 = 5 x 1 x 2 = 1 We ll review soon how to solve it. It has the solution x 1 = 1, x 2 = 2 which is in fact unique. You can graph the solution of each equation as a line, and the two lines have different slopes, so the intersect in a single point.

The system x 1 + 2x 2 = 5 x 1 + 2x 2 = 4 has no solution - two parallel lines, whereas in x 1 + 2x 2 = 5 2x 1 + 4x 2 = 10 there is a whole line of solutions. Linear algebra: you can learn a whole lot by thinking deeply about systems of linear equations 5 is there another case?

6 Key questions: (consistency) does a solution exist? (uniqueness) if it exists, is it unique? of which we will have a variant: (dimension) how many solutions? Finally, the practical question: (Algorithm) find the solutions!

7 It is costomary to encode a system of linear equations in a matrix: [ ] x 1 + 2x 2 = 5 1 2 5 x 1 x 2 = 1 1 1 1 since the coefficients and the right hand side hold all the data. Some people put a bar to separate the right hand side, since it has a different meaning: [ 1 2 5 1 1 1 which is OK. ]

8 Let us solve something a bit more challenging: x 1 + 2x 2 + 3x 3 = 8 x 1 x 2 + x 3 = 0 2x 1 x 3 = 1 write it!! write it!! which becomes 1 1 1 0 1 2 3 8 2 0 1 1 we can subtract the first equation from the second: 1 1 1 0 0 3 2 8 2 0 1 1 and subtract twice the first from the third: 1 1 1 0 0 3 2 8 0 2 3 1 We have eliminated the first variable from the second and third equations.

Divide 2nd equation by 3: 1 1 1 0 0 1 2/3 8/3 0 2 3 1 subtract twice second equation from third 1 1 1 0 0 1 2/3 8/3 0 0 13/3 13/3 eliminating x 2 from last equation. rescale last equation 1 1 1 0 0 1 2/3 8/3 0 0 1 1 which means x 3 = 1. 9

10 To get the rest, subtract 2/3 equation 3 from equation 2: 1 1 1 0 0 1 0 2 0 0 1 1 so x 2 = 2; subtract third from first 1 1 0 1 0 1 0 2 0 0 1 1 and add second to first so 1 0 0 1 0 1 0 2 0 0 1 1 x 1 = 1, x 2 = 2, x 3 = 1.

11 The steps, called elementary row operations, are - add a multiple of one row to another - rescale a row by a nonzero number - (not used here) switch the order of rows. Definition. Two matrices are row equivalent if one is obtained from the other by a sequence of elementary row operations. Key fact. Row equivalent matrices have the same set of solutions.

ask class this is unfortunate 12 The process we used is called row reduction or Gaussian elimination or Gauss Jordan elimination or bringing a matrix to echelon form. Observations: - all steps are reversible. The resulting system after each step has the same solution set. - we went through fractions even though solutions are integers - We can test our solution at the end (and had better do it!) - can t really check in the middle...

Echelon form = step form 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 In the black squares we have nonzero numbers. They are called pivots, they are positioned in pivot columns. The stars hold any numbers. Reduced echelon form: the black squares are now 1 and above them we have zeros: 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 13

14 Theorem: each matrix is equivalent to a unique matrix in reduced echelon form. Below we show the existence of a reduced echelon form for any martix. We do this by formalizing an algorithm. The uniqueness is a bit deeper. We ll see it later.

15 Algorithm for existence of an echelon form of a matrix A: 1. Find the minimum i such that the i-th column is nonzero. This is the first pivot column. 0 0 0 0 2. There is some position j in the ith column such that a ij is not zero. Switch the 1st and j-th rows of the matrix: 0 0 0 0 3. Subtract a ji /a 1i times the first row from the j-th row to get zeros, for j > 1: 0 0 0 0 0 0 0 4. If there is just one row, you got your echelon form. Otherise, do 1-4 on the submatrix with the first row deleted 0 0 0 0 0 0 which brings it to an echelon form 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 do a running example 2

16 and together with the first row we got gives an echelon form for A: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Algorithm for existence of a reduced echelon form of a matrix A in echelon form: 1. Rescale pivot rows to make the pivots 1: 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 17

18 2. Starting (for instance) from the row of the rightmost pivot and going to the left, add a multiple of the row to each previous row to make the entry above the pivot 0: first then (etc.) 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0

The variables where the pivots appear are fixed or basic variables. The other are free variables. One can find the general solution by allowing free variables to take any value and solving for the basic variables. 19

20 0 3 6 4 9 1 2 1 3 1 2 3 0 3 1 1 4 5 9 7 1 4 5 9 7 0 2 4 6 6 0 5 10 15 15 0 3 6 4 9 1 4 5 9 7 0 2 4 6 6 0 0 0 5 0 0 0 0 0 0 1 4 5 9 7 1 2 1 3 1 2 3 0 3 1 0 3 6 4 9 1 4 5 9 7 0 2 4 6 6 0 0 0 0 0 0 0 0 5 0 Note: could have made the pivots 1 earlier! Reduced form: 1 4 5 9 7 0 1 2 3 3 0 0 0 1 0 0 0 0 0 0 1 4 5 0 7 0 1 2 0 3 0 0 0 1 0 0 0 0 0 0 1 0 3 0 5 0 1 2 0 3 0 0 0 1 0 0 0 0 0 0

Can we answer the questions? 21 Consistency: Suppose A is an extended martix of a system of equations, and U is an echelon form. Then the system is consistent if an only if U and no row of the form [ ] 0 0 b with b 0. If there is such a row we have an equivalent equation of the form 0 = b, which has no solutions. For the other direction, and the other key questions, we need to write the solutions. Let us assume U is in reduced echelon form.

22 (Algorithm) You may be familiar with the method of back substitution. Suppose there are r nonzero rows in U. Each stands for an equation of the form: x i + a k i+1 x i+1 +... a kn x n = b k. (this is the k-th row) and only free variables have nonzero coefficients other than x i, which is a basic variable. 1. Give arbitrary values to the free variables. 2. Set the basic variables x i = b k (a k i+1 x i+1 +... a kn x n ).

Consequences: (Uniqueness) for a consistent system, the solution is unique if and only if there are no free parameters. (Dimension) we will formalize a deeper notion of dimension. The number of free parameters is the dimension of the set of solutions. (Uniqueness of reduced echelon form - part 1) say x j is a free variable. Set x j = 1 and all other free variables to be 0. This determines all the basic variables. We get the equation 23 x i + a kj x j = b k, which, since x j = 1, means a kj = b k x i. This determines U, if we know which variables are free and which basic.