Lecture 4: Gaussian Elimination and Homogeneous Equations

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Section Gaussian Elimination

Notes on Row Reduction

Chapter 1: Systems of Linear Equations

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

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

Matrices and RRE Form

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

1 Last time: linear systems and row operations

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

Solving Systems of Linear Equations

Solving Linear Systems Using Gaussian Elimination

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

Exercise Sketch these lines and find their intersection.

3.4 Elementary Matrices and Matrix Inverse

1 - Systems of Linear Equations

Linear Algebra Practice Problems

Methods for Solving Linear Systems Part 2

I am trying to keep these lessons as close to actual class room settings as possible.

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

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

Row Reduction and Echelon Forms

MATH 152 Exam 1-Solutions 135 pts. Write your answers on separate paper. You do not need to copy the questions. Show your work!!!

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

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

PH1105 Lecture Notes on Linear Algebra.

Linear Algebra Handout

Lecture 7: Introduction to linear systems

Chapter 4. Solving Systems of Equations. Chapter 4

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

The definition of a vector space (V, +, )

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.3 Row operations. As we have seen in Section 4.1 we can simplify a system of equations by either:

Linear Algebra I Lecture 10

Math 314H EXAM I. 1. (28 points) The row reduced echelon form of the augmented matrix for the system. is the matrix

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

4 Elementary matrices, continued

Chapter 1. Vectors, Matrices, and Linear Spaces

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

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

4 Elementary matrices, continued

Linear Methods (Math 211) - Lecture 2

9.1 - Systems of Linear Equations: Two Variables

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

Sections 6.1 and 6.2: Systems of Linear Equations

Lecture 22: Section 4.7

Section 6.2 Larger Systems of Linear Equations

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

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Lecture 2 Systems of Linear Equations and Matrices, Continued

Math 54 HW 4 solutions

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Multiplying matrices by diagonal matrices is faster than usual matrix multiplication.

Lecture 6: Spanning Set & Linear Independency

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

Linear Equations in Linear Algebra

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

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

Row Reduced Echelon Form

System of Linear Equations

Chapter 1. Vectors, Matrices, and Linear Spaces

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

Problem Sheet 1 with Solutions GRA 6035 Mathematics

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

CHAPTER 9: Systems of Equations and Matrices

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

Relationships Between Planes

Linear Algebra Exam 1 Spring 2007

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

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Math 3C Lecture 20. John Douglas Moore

MTH 2032 Semester II

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 51, Homework-2 Solutions

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

POLI270 - Linear Algebra

36 What is Linear Algebra?

Solutions of Linear system, vector and matrix equation

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

CHAPTER 9: Systems of Equations and Matrices

Elementary Linear Algebra

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

INVERSE OF A MATRIX [2.2]

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

Matrices, Row Reduction of Matrices

Lecture 1 Systems of Linear Equations and Matrices

Advanced Engineering Mathematics Prof. Pratima Panigrahi Department of Mathematics Indian Institute of Technology, Kharagpur

1300 Linear Algebra and Vector Geometry

Chapter 1: Linear Equations

Math 3A Winter 2016 Midterm

Linear Equations in Linear Algebra

1. Determine by inspection which of the following sets of vectors is linearly independent. 3 3.

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

Math 1314 Week #14 Notes

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:

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

Chapter 1: Linear Equations

10.3 Matrices and Systems Of

Transcription:

Lecture 4: Gaussian Elimination and Homogeneous Equations

Reduced Row Echelon Form An augmented matrix associated to a system of linear equations is said to be in Reduced Row Echelon Form (RREF) if the following properties hold: The first non-zero entry from the left in each non-zero row is, and is called the leading for that row. 2 All entries in any column containing a leading are zero, except the leading itself. 3 Each leading is to the right of the leading s in the rows above it. 4 All rows consisting entirely of zeros are at the bottom of the matrix. The following matrices are in RREF: 2 3 2 4 3 4, 3, 2.

Definition Recalling that each column of the coefficient matrix corresponds to a variable in the system of equations, we call each variable associated to a leading in the RREF a leading variable. A variable (if any) that is not a leading variable is called a nonleading variable or a free variable. Thus, if the original system of equations has n variables, then n equals the number of leading variables plus the number of free variables. Extremely Important Point. When describing the solution set, each free variable is replaced by an independent parameter. Thus, the number of independent parameters describing the solution set equals the number of free variables. Equivalently: The number of parameters describing the solution set to a system of m equations in n unknowns equals n minus the number of leading s in the RREF of the augmented matrix.

Example Solve the given system of equations by rendering the associated augmented matrix into RREF. x 2x 2 x 3 + 3x 4 = 2x 4x 2 + x 3 = 5 x 2x 2 + 2x 3 3x 4 = 4 Solution: 2 3 2 3 2 4 5 2 R+R2 3 6 3 R 2 2 3 4 +R 3 3 6 3 3 R2 2 3 2 2 2 3 R2+R3 2 R 3 6 3 2+R Note that x, x 3 are leading variables and x 2, x 4 are free variables.

Example continued Thus, using independent parameters t and s, we have x = 2 + 2t s, x 2 = t, x 3 = + 2s, x 4 = s. In terms of a solution set, we have {(2 + 2t s, t, + 2s, t) s, t R}.

Algorithm for Gaussian elimination The following steps lead effectively to the RREF of the augmented matrix: Find the first column from the left containing a non-zero entry, say a, and interchange the row containing a with the first row.in this first step, a will more often than not be in the first row, first column of the augmented matrix. 2 Divide R by a, so that the leading entry of R is now. 3 Subtract multiples of R from the rows below R so that every entry in the matrix below the in R is. 4 Find the next column from the left containing a non-zero entry, say b, and interchange the row containing b with R 2. Now divide R 2 by b to get leading entry. 5 Use the leading in R 2 to get s above and below it. 6 Continue in this fashion until arriving at the RREF. If at any point in the process, we have a row consisting entirely of s, such a row should be moved to the bottom of the matrix.

Example Solve the system by reducing the augmented matrix to RREF. 3x + 7x 2 x 3 = x + 3x 2 + x 3 = x 2x 2 + x 3 =. 3 7 3 Solution: 3 R R2 3 7 2 2 R +R 3 3 R +R 2 3 2 4 4 R2 R3 2 2 3 2 2 2 4 4 2 R 2+R 3 3 5 5 2 2 3 R2+R 2 2.. Note, x, x 2 are leading variables and x 3 is a free variable. Thus, x = 5 + 5t, x 2 = 2 2t, x 3 = t, for all t R.

Class Example Use Gaussian elimination to solve the system by putting the augmented matrix into RREF: 2x + 3y + 3z = 9 3x 4y + z = 5 5x + 7y + 2z = 4 2 3 3 9 4 4 Solution: 3 4 5 R2+R 3 4 5 5 7 2 4 5 7 2 4 3 R +R 2 5 R +R 3 4 4 4 4 7 2 R2+R3 7. 2 22 24 Thus, the system has no solution.

Definition A system of linear equations is said to be homogeneous if the right hand side of each equation is zero, i.e., each equation in the system has the form ( ) a x + a 2 x 2 + + a n x n =. Note that x = x 2 = = x n = is always a solution to a homogeneous system of equations, called the trivial solution. Any other solution is a non-trivial solution. Two Important Properties.. Sums of solutions are solutions. Suppose (s,..., s n ) and (s,..., s n) are solutions to (*). Then a s + + a n s n = a s + + a n s n = Adding, we get: a (s + s ) + + a n(s n + s n) =, so that (s + s,..., s n + s n) is also a solution.

2. A scalar multiple of a solution to (*) is a solution. Suppose (s,..., s n ) is a solution, so that ( ) a s + + a n s n =. Let λ R. By a scalar multiple of a solution, we mean λ (s,..., s n ) = (λ s,..., λs n ). If we multiply (**) above by λ we get a (λs ) + + a n (λs n ) =, which shows that (λs,..., λs n ) is a solution to (*). Important Consequence: Sums and scalar multiples of solutions to a homogenous system of linear equations are again solutions to the same system of equations.

Definition Let v = (s,..., s n), v 2 = (s 2,..., s2 n),..., v k = (s k,..., sk n ) be solutions to a homogeneous system of m equations in n unknowns. A linear combination of v,..., v k is any expression of the form with each λ i R. If we write this out, we see that λ v + + λ k v k, λ v + λ k v k = (λ s + + λ k s k,..., λ s n + + λ k s k n ). For example, if v = (, 2, 3), v 2 = (,, ), v 3 = (,, 6) are solutions to a homogeneous systems of equations in three variables, we calculate a linear combination as follows: 2 v + 4 v 2 + 8 v 3 = 2 (, 2, 3) + 4 (,, ) + 8 (,, 6) = (2, 4, 6) + (, 4, 4) + (8, 8, 48) = (, 8, 5).

Comment: Expressions of the form v = (s, s 2,..., s n ) are called vectors and live in R n, Euclidean n-space. For various reasons, we use often the s s 2 alternate notation v =, but both expressions mean the same thing.. s n Thus a linear combination of vectors in R n might look like s s s k λ s λ 2. + + λ s k + λ 2s 2 + + λ ks k k 2. = λ s2 + λ 2s2 2 + + λ ks k 2.. sn λ sn + λ 2 sn 2 + + λ k sn k s k n In particular, 2 8 2 2 + 4 + 8 = 4 + 4 + 8 = 8. 3 6 6 4 48 5

Theorem Suppose v,..., v k R n are solutions to a homogeneous system of m linear equations in n unknowns. Then, any linear combination λ v + + λ k v k is also a solution. Moreover, given any homogenous system of m linear equations in n unknowns, there exist solutions, i.e., vectors v,..., v k, in R n such that every solution to the system is a linear combination of v,..., v k. Comments.. The first part of the theorem follows by combining the two Important Points from above. 2. By taking each λ j = above, one gets the zero solution, which is always a solution to any homogeneous system of linear equations. 3. It may be that the zero solution is the only solution, which is still consistent with the statement of the theorem.

Example In this example we illustrate how to find the so-called basic solutions to a homogeneous system of linear equations. Suppose a given system led to the following RREF of the augmented matrix [ ] 2. 4 Thus, x and x 3 are the leading variables and x 2, x 4 are the free variables. The solutions are: for all s, t R. x = 2s + t, x 2 = s, x 3 = 4t, x 4 = t,

Example continued As a solution set, the solutions are{( 2s + t, s, 4t, t) s, t R}. 2s + t Alternately, the solutions are all exprssions of the form s 4t, for all t s, t R.. We can write this last expression as a linear combination: 2s + t 2 ( ) s 4t = s + t 4, t where s, t are arbitrary real numbers.

Example continued Thus, every solution to the original system of equations is a linear combination of the vectors 2 v = and v 2 = 4. We call the vectors (solutions) v, v 2 basic solutions to the system of equations. Note that the basic solutions are in fact solutions, since v is obtained by taking s =, t = in ( ) and v 2 is obtained by taking s =, t = in ( ).

Class Example Find two basic solutions to the homogeneous system of equations having augmented matrix [ ] 3. 4 Solution: Note that x, x 2 are the leading variables and x 3, x 4 are the free 3s + t variables. Thus, in vector form the solutions are all vectors 4t s, t with s, t R arbitrary. Separating this expression into two terms, we get 3s + t 4t s t = s 3 + t 4.

Class Example continued 3 Thus, v = and v 2 = 4 the original system of equations. are basic vectors for the solutions to We will see later in the semester, that basic vectors for the solution space of a homogeneous system of linear equations need not be unique. For example, there are infinitely many pairs of basic vectors for the solution space of the system above.

Class Example Express the solution to the homogenous system with the following augmented matrix in terms of basic solutions: 2 2 2 2. 3 6 3 3 2 2 2 2 Solution: 2 2 R+R2 3 3 3 R 3 6 3 3 +r 3 3 3 3 R2 2 2 3 R2+R3 2. R 3 3 2+R Thus, x, x 3 are the leading variables and x 2, x 4, x 5 are the free variables. The solutions are: x = 2s t u, x 2 = s, x 3 = t, x 4 = t, x 5 = u, for all real numbers s, t, u.

Class Example continued In terms of the basic solutions we have: x x 2 x 3 x 4 x 5 = 2s t u s t t u = s 2 + t + u.