Linear Methods (Math 211) - Lecture 2

Similar documents
Lecture 1 Systems of Linear Equations and Matrices

1 Last time: linear systems and row operations

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

Lecture 2 Systems of Linear Equations and Matrices, Continued

Solving Linear Systems Using Gaussian Elimination

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Linear Algebra Practice Problems

Solving Systems of Linear Equations Using Matrices

Row Reduction and Echelon Forms

1 - Systems of Linear Equations

Methods for Solving Linear Systems Part 2

9.1 - Systems of Linear Equations: Two Variables

Linear Equations in Linear Algebra

MATH 54 - WORKSHEET 1 MONDAY 6/22

Lecture 4: Gaussian Elimination and Homogeneous Equations

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

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

Section Gaussian Elimination

Solutions of Linear system, vector and matrix equation

Section 6.3. Matrices and Systems of Equations

System of Linear Equations

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

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

Linear Algebra I Lecture 8

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

Lecture 7: Introduction to linear systems

Relationships Between Planes

0.0.1 Section 1.2: Row Reduction and Echelon Forms Echelon form (or row echelon form): 1. All nonzero rows are above any rows of all zeros.

Math 2331 Linear Algebra

Linear Equations in Linear Algebra

Lecture 6 & 7. Shuanglin Shao. September 16th and 18th, 2013

Section 1.2. Row Reduction and Echelon Forms

Exercise Sketch these lines and find their intersection.

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

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

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

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

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

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam

Notes on Row Reduction

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

March 19 - Solving Linear Systems

Math 1314 Week #14 Notes

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

Lectures on Linear Algebra for IT

Chapter 1. Vectors, Matrices, and Linear Spaces

Math 2331 Linear Algebra

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

Linear Algebra Handout

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

MA 1B PRACTICAL - HOMEWORK SET 3 SOLUTIONS. Solution. (d) We have matrix form Ax = b and vector equation 4

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

1111: Linear Algebra I

Rank, Nullity, Dimension and Elimination

Chapter 1: Systems of Linear Equations and Matrices

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

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

CHAPTER 9: Systems of Equations and Matrices

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

Chapter 4. Solving Systems of Equations. Chapter 4

Linear Algebra Exam 1 Spring 2007

Linear Algebra I Lecture 10

Name: MATH 3195 :: Fall 2011 :: Exam 2. No document, no calculator, 1h00. Explanations and justifications are expected for full credit.

Announcements Wednesday, August 30

Matrices and Determinants

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

Chapter 1: Systems of Linear Equations

Math 301 Test I. M. Randall Holmes. September 8, 2008

Announcements Wednesday, August 30

Lecture 18: The Rank of a Matrix and Consistency of Linear Systems

Section 6.2 Larger Systems of Linear Equations

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

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

PH1105 Lecture Notes on Linear Algebra.

is Use at most six elementary row operations. (Partial

Applied Matrix Algebra Lecture Notes Section 2.2. Gerald Höhn Department of Mathematics, Kansas State University

Math 2174: Practice Midterm 1

and let s calculate the image of some vectors under the transformation T.

(I.D) Solving Linear Systems via Row-Reduction

System of Linear Equations

MATH 2050 Assignment 6 Fall 2018 Due: Thursday, November 1. x + y + 2z = 2 x + y + z = c 4x + 2z = 2

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

Determine whether the following system has a trivial solution or non-trivial solution:

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

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

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

Matrices and systems of linear equations

1.4 Gaussian Elimination Gaussian elimination: an algorithm for finding a (actually the ) reduced row echelon form of a matrix. A row echelon form

Solving Consistent Linear Systems

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

Spring 2015 Midterm 1 03/04/15 Lecturer: Jesse Gell-Redman

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

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:

Problem Sheet 1 with Solutions GRA 6035 Mathematics

x 1 2x 2 +x 3 = 0 2x 2 8x 3 = 8 4x 1 +5x 2 +9x 3 = 9

Chapter 1: Linear Equations

MATHEMATICS FOR COMPUTER VISION WEEK 2 LINEAR SYSTEMS. Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year

Linear Algebra Math 221

Linear Equations in Linear Algebra

Transcription:

Linear Methods (Math 211) - Lecture 2 David Roe September 11, 2013

Recall Last time: Linear Systems Matrices Geometric Perspective Parametric Form

Today 1 Row Echelon Form 2 Rank 3 Gaussian Elimination

Row Echelon Form A matrix is in row echelon form if 1 All zero rows are at the bottom; 2 The first nonzero entry from the left in each nonzero row is a 1; 3 Each leading 1 is to the right of all leading 1s in the rows above it. A matrix is in reduced row echelon form if 4 Each leading 1 is the only nonzero entry in its column. [ ] 0 1 1 1 echelon form 0 0 1 0 1 0 0 1 0 0 0 0 0 0 1 [ ] 0 1 0 1 0 0 reduced 1 0 echelon form 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1

Solving Systems in Reduced Echelon Form A linear system in reduced row echelon form is easy to solve: 0 1 0 4 5 0 0 1 7 3 0 0 0 0 0 x 0 1 0 4 1 0 0 1 7 x 2 5 x 0 0 0 0 3 = 3 0 x 4 x 2 + 4x 4 = 5 x 1 = s x 3 + 7x 4 = 3 x 2 = 5 4t 0 = 0 x 3 = 3 7t x 4 = t

Solving Systems in Reduced Echelon Form On the previous slide, x 2 and x 3 are leading variables, while x 1 and x 4 are nonleading variables. In general, 1 If there is a row [ 0 0 0 1 ] then the system is inconsistent, since this is the equation 0 = 1. 2 Otherwise, each nonleading variable yields one parameter, and you can immediately solve for the leading variables in terms of the parameters.

Rank Suppose A is any matrix. From A, different sequences of row operations can reach different row-echelon matrices. But there is precisely one reduced row-echelon matrix obtainable from A by a sequence of row operations. This matrix is known as the reduced row echelon form of A. However, all of the row echelon forms of A share a feature in common: they all have the same number of leading 1s. This number is called the rank of A. Note that if A has rank r, m rows and n columns. Then r n and r m (typo in book).

Rank Theorem Suppose a system of m equations in n variables is consistent, and that the rank of the augmented matrix is r. 1 The set of solutions involves exactly n r parameters, 2 If r < n, the system has infinitely many solutions, 3 If r = n, the system has a unique solution.

7 38 31 10 21 2 11 9 3 6 5 29 23 7 16

7 38 31 10 21 2 11 9 3 6 5 29 23 7 16 31 10 3 2 11 9 3 6 5 29 23 7 16 Multiply 1 st row by 1 7

31 10 3 2 11 9 3 6 5 29 23 7 16

31 10 3 2 11 9 3 6 5 29 23 7 16 31 10 3 1 1 0 1 7 0 5 29 23 7 16 Add 2 times 1 st row to 2 nd row

31 10 3 1 1 0 1 7 0 5 29 23 7 16

31 10 3 1 1 0 1 7 0 5 29 23 7 16 31 10 3 1 1 0 1 7 0 0 13 7 6 7 1 7 1 Add 5 times 1 st row to 3 rd row

31 10 3 1 1 0 1 7 0 0 13 7 6 7 1 7 1

31 10 3 1 1 0 1 7 0 0 13 7 6 7 1 7 1 31 10 3 0 1 1 1 0 0 13 7 6 7 1 7 1 Multiply 2 nd row by 7

31 10 3 0 1 1 1 0 0 13 7 6 7 1 7 1

31 10 3 0 1 1 1 0 0 13 7 6 7 1 7 1 31 10 3 0 1 1 1 0 0 0 1 2 1 Add 13 7 times 2nd row to 3 rd row

31 10 3 0 1 1 1 0 0 0 1 2 1

31 10 3 0 1 1 1 0 0 0 1 2 1 31 10 3 0 1 0 1 1 0 0 1 2 1 Add 1 times 3 rd row to 2 nd row

31 10 3 0 1 0 1 1 0 0 1 2 1

31 10 3 0 1 0 1 1 0 0 1 2 1 0 52 52 0 1 0 1 1 0 0 1 2 1 Add 31 7 times 3rd row to 1 st row

0 52 52 0 1 0 1 1 0 0 1 2 1

0 52 52 0 1 0 1 1 0 0 1 2 1 1 0 0 2 2 0 1 0 1 1 0 0 1 2 1 Add 38 7 times 2nd row to 1 st row

Computational Remarks When solving a linear system on a computer, you get slight speedups by only reducing to a row echelon form and then substituting; this is known as back substitution Gaussian elimination is great for relatively small matrices, but there are faster algorithms for huge matrices, based on Strassen multiplication. [1, Algorithm 7.8; 2] When the numbers in the matrix are not known exactly, you need to be careful to reduce the growth of errors. The simplex method is based on Gaussian elimination and used for solving systems of linear inequalities. [3]

0 0 1 2 2 1 2 6 14 6 1 2 6 14 7

0 0 1 2 2 1 2 6 14 6 1 2 6 14 7 1 2 6 14 6 0 0 1 2 2 1 2 6 14 7 Swap 1 st and 2 nd rows

1 2 6 14 6 0 0 1 2 2 1 2 6 14 7

1 2 6 14 6 0 0 1 2 2 1 2 6 14 7 1 2 6 14 6 0 0 1 2 2 1 2 6 14 7 Multiply 1 st row by 1

1 2 6 14 6 0 0 1 2 2 1 2 6 14 7

1 2 6 14 6 0 0 1 2 2 1 2 6 14 7 1 2 6 14 6 0 0 1 2 2 0 0 0 0 1 Add 1 times 1 st row to 3 rd row

1 2 6 14 6 0 0 1 2 2 0 0 0 0 1

1 2 6 14 6 0 0 1 2 2 0 0 0 0 1 1 2 6 14 6 0 0 1 2 0 0 0 0 0 1 Add 2 times 3 rd row to 2 nd row

1 2 6 14 6 0 0 1 2 0 0 0 0 0 1

1 2 6 14 6 0 0 1 2 0 0 0 0 0 1 1 2 6 14 0 0 0 1 2 0 0 0 0 0 1 Add 6 times 3 rd row to 1 st row

1 2 6 14 0 0 0 1 2 0 0 0 0 0 1

1 2 6 14 0 0 0 1 2 0 0 0 0 0 1 1 2 0 2 0 0 0 1 2 0 0 0 0 0 1 Add 6 times 2 nd row to 1 st row

Practice I ve made an online applet that you can practice with. It s at http: //people.ucalgary.ca/~roed/courses/211/practice.html, or linked from the webpage.

[1] William Stein. Linear Algebra - Modular Forms, A Computational Approach. http://wstein.org/books/modform/modform/linear_algebra.html [2] Stoimen s Blog. Computer Algorithms: Strassen s Matrix Multiplication. http://www.stoimen.com/blog/2012/11/26/ computer-algorithms-strassens-matrix-multiplication/. [3] Simplex Algorithm. Wikipedia. http://en.wikipedia.org/wiki/simplex_algorithm.