Linear Algebra I Lecture 10

Similar documents
Linear Algebra I Lecture 8

Row Reduction and Echelon Forms

Chapter 1. Vectors, Matrices, and Linear Spaces

Lecture 2 Systems of Linear Equations and Matrices, Continued

Section Gaussian Elimination

Math 2331 Linear Algebra

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

9.1 - Systems of Linear Equations: Two Variables

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Linear Equations in Linear Algebra

Linear System Equations

1 - Systems of Linear Equations

Lecture 1 Systems of Linear Equations and Matrices

System of Linear Equations

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.

Matrices and systems of linear equations

Solutions of Linear system, vector and matrix equation

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

Lectures on Linear Algebra for IT

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

Exercise Sketch these lines and find their intersection.

Solving Linear Systems Using Gaussian Elimination

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

Row Reduced Echelon Form

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

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

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

Linear equations in linear algebra

Solving Systems of Linear Equations

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

Methods for Solving Linear Systems Part 2

Math 1314 Week #14 Notes

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Math 2331 Linear Algebra

March 19 - Solving Linear Systems

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

MTH 2530: Linear Algebra. Sec Systems of Linear Equations

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

1300 Linear Algebra and Vector Geometry

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

1. Solve each linear system using Gaussian elimination or Gauss-Jordan reduction. The augmented matrix of this linear system is

Chapter 4. Solving Systems of Equations. Chapter 4

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

Section 6.2 Larger Systems of Linear Equations

Solving Systems of Linear Equations Using Matrices

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

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

MAC Module 1 Systems of Linear Equations and Matrices I

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

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

1111: Linear Algebra I

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam

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

1111: Linear Algebra I

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

The Gauss-Jordan Elimination Algorithm

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

Notes on Row Reduction

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

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

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

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

10.3 Matrices and Systems Of

Lecture 4: Gaussian Elimination and Homogeneous Equations

4 Elementary matrices, continued

Name: Section Registered In:

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

CHAPTER 9: Systems of Equations and Matrices

Homework 1 Due: Wednesday, August 27. x + y + z = 1. x y = 3 x + y + z = c 2 2x + cz = 4

Lecture Notes in Linear Algebra

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

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:

Lecture 7: Introduction to linear systems

Number of solutions of a system

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

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

Relationships Between Planes

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

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

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

MAT 1302B Mathematical Methods II

M 340L CS Homework Set 1

Math 2030 Assignment 5 Solutions

MTH 102A - Linear Algebra II Semester

CHAPTER 9: Systems of Equations and Matrices

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

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

1 Last time: linear systems and row operations

4 Elementary matrices, continued

Matrices and RRE 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

MTH 464: Computational Linear Algebra

7.6 The Inverse of a Square Matrix

Linear algebra in turn is built on two basic elements, MATRICES and VECTORS.

Lecture Notes: Solving Linear Systems with Gauss Elimination

MathQuest: Linear Algebra. 1. Which of the following operations on an augmented matrix could change the solution set of a system?

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.

Solutions to Homework 5 - Math 3410

Math 1314 College Algebra 7.6 Solving Systems with Gaussian Elimination (Gauss-Jordan Elimination)

Transcription:

Linear Algebra I Lecture 10 Xi Chen 1 1 University of Alberta January 30, 2019

Outline 1

Gauss-Jordan Algorithm ] Let A = [a ij m n be an m n matrix. To reduce A to a reduced row echelon form using elementary row operation, we do: STEP 0. Set i = j = 1. STEP 1. If i > m or j > n, we are done and stop. STEP 2. If a ij = a i+1,j =... = a mj = 0, increase j by 1 and go to STEP 1. STEP 3. Find a kj 0 for some i k m and exchange Row i and k if i k. STEP 4. Divide Row i by a ij (pivot). STEP 5. For each l i, substract a lj Row i from Row l (pivoting). STEP 6. Increase both i and j by 1 and go to STEP 1.

Examples of Gauss-Jordan Elimination For example, let us solve x 1 x 2 + x 3 = 1 2x 1 3x 2 + x 3 = 2 4x 1 5x 2 + 3x 3 = 4 1 1 1 1 R2 2 R1 1 1 1 1 R3 4 R1 2 3 1 2 0 1 1 0 4 5 3 4 0 1 1 0 1 1 1 1 R2 ( 1) 0 1 1 0 0 1 1 0 R1+R2 R3+R2 1 0 2 1 0 1 1 0 0 0 0 0

Examples of Gauss-Jordan Elimination (CONT) We have reduced the augmented matrix to the RREF 1 0 2 1 0 1 1 0 0 0 0 0 This corresponds to the system { x1 + 2x 3 = 1 x 2 + x 3 = 0 where x 1 and x 2 are the dependent variables and x 3 is the free variable. Setting x 3 = t, we obtain the solutions x 1 1 2t 1 2 x 2 = t = 0 + t 1 t 0 1 x 3

Examples of Gauss-Jordan Elimination For example, let us solve y + z = 1 2w 4x 2y + z = 1 w + 2x + y = 2 0 0 1 1 1 1 2 1 0 2 2 4 2 1 1 R1 R3 2 4 2 1 1 1 2 1 0 2 0 0 1 1 1 R2+2 R1 R1 R2 1 2 1 0 2 1 2 1 0 2 0 0 0 1 3 R2 R3 0 0 1 1 1 0 0 1 1 1 0 0 0 1 3 1 2 0 1 1 R1+R3 0 0 1 1 1 R2 R3 1 2 0 0 4 0 0 1 0 2 0 0 0 1 3 0 0 0 1 3

Examples of Gauss-Jordan Elimination (CONT) This corresponds to the system w + 2x = 4 y = 2 z = 3 where w, y and z are the dependent variables and x is the free variable. Setting x = t, we obtain the solutions w 4 2t 4 2 x y = t 2 = 0 2 + t 1 0 z 3 3 0

Solutions of SLE When applying Gauss-Jordan to solve a SLE, 1 whenever the resulting matrix contains a row [ ] 0 0... 0 b for some b 0, we can stop and the system is inconsistent; 2 if the system is homogeneous, we just need to apply the algorithm to the coefficient matrix, because the constant terms remain zero throughout.

Solutions of SLE Suppose that we have reduced the augmented matrix to a REF: Elementary Row Operations A b [A b ] m (n+1) 1 If [ A b ] contains a row [ ] 0 0... 0 b for some b 0, the system is inconsistent. 2 Every leading nonzero entry corresponds to a dependent variable: # of depend variables = # of leading nonzero entries = # of nonzero rows if the system is consistent.

Solutions of SLE (CONT) If the system is consistent, k = # of free variables = n # of dependent variables and the solution is = n # of nonzero rows in REF n m x = u + t 1 v 1 + t 2 v 2 +... + t k v k. A system of m linear equations in n variables has either no solutions or infinitely many solutions if n > m. If it is homogeneous, it has always infinitely many solutions if n > m.

Intersection of Two Lines in R 2 Let L 1 and L 2 be two lines in R 2 : L 1 = {a 11 x + a 12 y = b 1 } L 2 = {a 21 x + a 22 y = b 2 } Consider L 1 L 2, i.e., the solutions of { a11 x + a 12 y = b 1 a 21 x + a 22 y = b 2 1 L 1 L 2 = {p} the system has a unique solution. 2 L 1 L 2 = L 1 = L 2 the system has infinitely many solutions. 3 L 1 L 2 = the system has no solution.

Intersection of Two Lines in R 2 (CONT) Suppose that we have reduced the augmented matrix to a RREF: a11 a 12 b 1 Elementary Row Operations a 11 a 12 b 1 a 21 a 22 b 2 a 21 a 22 b 2 A list of all possible RREF: 1 0 c1 L 0 1 c 1 L 2 = {(c 1, c 2 )} 2 1 c1 0 L 0 0 1 1 L 2 = 0 1 0 L 0 0 1 1 L 2 =

Intersection of Two Lines in R 2 (CONT) 1 c1 c 2 L 0 0 0 1 L 2 = L 1 = L 2 = {x + c 1 y = c 2 } 0 1 c1 L 0 0 0 1 L 2 = L 1 = L 2 = {y = c 2 } Since (a 11, a 12 ) (0, 0), a 11 a 12 a 21 a 22 0 0 0 0

Intersection of Three planes in R 3 Let P 1, P 2 and P 3 be three planes in R 3 given by P 1 = {a 11 x + a 12 y + a 13 z = b 1 } P 2 = {a 21 x + a 22 y + a 23 z = b 2 } P 3 = {a 31 x + a 32 y + a 33 z = b 3 } Consider P 1 P 2 P 3, i.e., the solutions of a 11 x + a 12 y + a 13 z = b 1 a 21 x + a 22 y + a 23 z = b 2 a 31 x + a 32 y + a 33 z = b 3 1 P 1 P 2 P 3 is a plane. 2 P 1 P 2 P 3 is a line. 3 P 1 P 2 P 3 is a point. 4 P 1 P 2 P 3 is empty.

Intersection of Three planes in R 3 (CONT) The augmented matrix can be reduced to one of the following RREF: 1 0 0 c 1 1 0 c 1 0 1 c 1 0 0 (a) 0 1 0 c 2 (b) 0 1 c 2 0 (c) 0 0 1 0 0 0 1 c 3 0 0 0 1 0 0 0 1 0 1 0 0 1 0 c 1 c 2 1 c 1 0 c 2 (d) 0 0 1 0 (e) 0 1 c 3 c 4 (f ) 0 0 1 c 4 0 0 0 1 0 0 0 0 0 0 0 0 1 c 1 c 2 0 0 1 0 c 1 0 1 c 1 0 (g) 0 0 0 1 (h) 0 0 1 c 2 (i) 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0

Intersection of Three planes in R 3 (CONT) 0 0 1 0 (j) 0 0 0 1 (k) 0 0 0 0 0 0 1 c 1 (m) 0 0 0 0 0 0 0 0 1 c 1 c 2 c 3 0 0 0 0 (l) 0 0 0 0 0 1 c 1 c 2 0 0 0 0 0 0 0 0 (b), (c), (d), (g), (i), (j): P 1 P 2 P 3 =. (a): P 1 P 2 P 3 is a point. (e), (f), (h): P 1 P 2 P 3 is a line. (k), (l), (m): P 1 P 2 P 3 = P 1 = P 2 = P 3 is a plane.