Solving Linear Systems

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

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

Solving Linear Systems Using Gaussian Elimination

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

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

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

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:

1 - Systems of Linear Equations

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

Lecture 7: Introduction to linear systems

Chapter 1. Vectors, Matrices, and Linear Spaces

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

Relationships Between Planes

Math 2331 Linear Algebra

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 54 - WORKSHEET 1 MONDAY 6/22

Matrices and RRE Form

CHAPTER 1 Systems of Linear Equations

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

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

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

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

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

Solutions of Linear system, vector and matrix equation

Methods for Solving Linear Systems Part 2

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

March 19 - Solving Linear Systems

System of Linear Equations

Math 1314 Week #14 Notes

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

Matrices and Systems of Equations

Math 2331 Linear Algebra

Section 1.1: Systems of Linear Equations

CONSISTENCY OF EQUATIONS

Linear Equations in Linear Algebra

Linear Algebra I Lecture 10

Chapter 1: Systems of Linear Equations

9.1 - Systems of Linear Equations: Two Variables

Row Reduction and Echelon Forms

Homework 1.1 and 1.2 WITH SOLUTIONS

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

Section 6.2 Larger Systems of Linear Equations

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Linear Equations in Linear Algebra

Span & Linear Independence (Pop Quiz)

4 Elementary matrices, continued

MTH 464: Computational Linear Algebra

Properties of Linear Transformations from R n to R m

Lecture 2 Systems of Linear Equations and Matrices, Continued

Matrices and Systems of Equations

4 Elementary matrices, continued

Chapter 1: Linear Equations

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

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

Chapter 1: Linear Equations

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

web: HOMEWORK 1

LINEAR ALGEBRA W W L CHEN

MTHSC 3110 Section 1.1

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Linear equations in linear algebra

Math 54 HW 4 solutions

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

ICS 6N Computational Linear Algebra Vector Equations

2. Every linear system with the same number of equations as unknowns has a unique solution.

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Math 3C Lecture 20. John Douglas Moore

Section Gaussian Elimination

Matrix Algebra Lecture Notes. 1 What is Matrix Algebra? Last change: 18 July Linear forms

Find the solution set of 2x 3y = 5. Answer: We solve for x = (5 + 3y)/2. Hence the solution space consists of all vectors of the form

Notes on Row Reduction

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

Section 5.3 Systems of Linear Equations: Determinants

Matrix equation Ax = b

MAC Module 1 Systems of Linear Equations and Matrices I

Linear Algebra I Lecture 8

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

Linear Algebra Practice Problems

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

Elementary Linear Algebra

Linear Independence x

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

1 Last time: linear systems and row operations

Unit 4 Systems of Equations Systems of Two Linear Equations in Two Variables

1. b = b = b = b = 5

Math Week 1 notes

Linear Equation: a 1 x 1 + a 2 x a n x n = b. x 1, x 2,..., x n : variables or unknowns

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

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

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

Solutions to Exam I MATH 304, section 6

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

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

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

MATH10212 Linear Algebra B Homework Week 3. Be prepared to answer the following oral questions if asked in the supervision class

Review for Chapter 1. Selected Topics

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

Section 1.1: Systems of Linear Equations. A linear equation: a 1 x 1 a 2 x 2 a n x n b. EXAMPLE: 4x 1 5x 2 2 x 1 and x x 1 x 3

3.4 Elementary Matrices and Matrix Inverse

Chapter 4. Solving Systems of Equations. Chapter 4

Transcription:

Math 240 TA: Shuyi Weng Winter 2017 January 12, 2017 Solving Linear Systems Linear Systems You have dealt with linear equations and systems of linear equations since you first learn mathematics in elementary school. Here are some rigorous definitions regarding linear systems. Definition. A linear equation in the variables x 1,..., x n is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b, where b and the coefficients a 1,..., a n are constants. Definition. A system of linear equations, or a linear system, is a collection of one or more linear equations with the same variables. Definition. A solution to a system is an ordered list (s 1,..., s n ) of numbers such that each equation in the linear system is true when x 1 = s 1, x 2 = s 2,..., x n = s n are substituted in. Definition. The collection of all possible solutions is the solution set to a linear system. Now we will have some examples of linear systems. Example 1. The following is a linear system with one variable. x = 1 This is a trivial example. Example 2. The following is a linear system with two variables x = 1 x + y = 1 This is a somewhat less trivial example. Example 3. The following is a linear system with three variables x 1 2x 2 x 3 = 3 2x 1 + 4x 2 + 5x 3 = 5 3x 1 6x 2 6x 3 = 8 This example is so much less trivial that it ended up on your quiz. :)

Row Reduction Throughout this section, we will look at the linear system 2x 1 + 8x 2 + 4x 3 = 2 2x 1 + 5x 2 + x 3 = 5 4x 1 + 10x 2 x 3 = 1 as an example. The precise definitions of words in bold can be found in your textbook. This linear system can be represented by its augmented matrix There are three basic row operations: 2 8 4 2 2 5 1 5 1. Replacement: replace one row by the sum of itself and a multiple of another row. 2. Interchange: interchange two rows. 3. Scaling: multiply all entries in a row by a nonzero constant. We perform row reduction on the augmented matrix: 2 8 4 2 2 2 5 1 5 2 5 1 5 2(I) 0 2 3 1 2(II) 4(I) 0 3 3 3 ( 3) 0 6 9 3 ( 3) This matrix is now in echelon form. We can further reduce it into reduced echelon form 2(III) 1 4 0 5 4(II) 1 0 0 11 (III) 0 1 0 4 0 1 0 4 Thus the solution to this linear system is This linear system has a unique solution. x 1 = 11 x 2 = 4 x 3 = 3

Exercise. Use row operations to solve the linear system x 1 + 2x 3 + 4x 4 = 8 x 2 3x 3 x 4 = 6 3x 1 + 4x 2 6x 3 + 8x 4 = 0 x 2 + 3x 3 + 4x 4 = 12 Does this system has a unique solution, no solution, or infinitely many solutions? Solutions of Linear Systems Example 4. We first solve the linear system x 2y = 2 We perform row reduction on the matrix 1 2 2 0 3 6 0 1 2 1 0 2 0 1 2 Thus the solution to this linear system is x = 2 y = 2 Example 5. Now we try to solve the linear system 2x 2y = 8 Perform row reduction [ ] 2 2 8 Therefore, the solution to this linear system is 0 0 0 x = 4 y y is free Example 6. Try another linear system 3x + 3y = 2

Perform row reduction 3 3 2 0 0 10 The system is inconsistent, thus has no solution. Remark. In examples 4 6, each linear equation represents a line in the xy-plane. The solution to the linear system is the intersection (if there is any) of the lines specified by the equations. The geometric picture of these three examples are as shown in the following figures. x 2 y 2 2 x 2 y 8 2,2 3 x 3 y 2 Example 4 Example 5 Example 6 Exercise. Consider the linear system x 1 + 2x 2 + 3x 3 = 4 x 1 + kx 2 + 4x 3 = 6 x 1 + 2x 2 + (k + 2)x 3 = 6 For which values of the constant k does the system has (a) a unique solution? (b) no solution? (c) infinitely many solutions? A Neat Application Problem (Balancing chemical formula). Consider the reaction of copper (Cu) with dilute nitric acid (HNO 3 ) a Cu + b HNO 3 c Cu(NO 3 ) 2 + d NO + e H 2 O To balance the formula, that is, to give positive integers a, b, c, d, e such that the number of atoms of each element must be the same before and after the reaction. Find the smallest such set of integers.

To start, we look at copper (Cu) atoms. There are a copper atoms before the reaction, and b copper atoms after. So we must have a = c. Now we look at hydrogen (H) atoms. b of them are on the left-hand side, and 2e of them are on the right. Thus b = 2e. Similarly, from nitrogen (N) atoms, we have b = 2c + d, and from oxygen (O) atoms, we have 3b = 6c + d + e. We now have a system of linear equations a c = 0 b 2e = 0 b 2c d = 0 3b 6c d e = 0 The reduced echelon form of this system is 1 0 0 0 3/4 0 1 0 0 2 0 0 1 0 3/4 0 0 0 1 1/2 to solve the system with the least integers, let e = 4, then we get a = 3 b = 8 c = 3 d = 2 e = 4 Hence, the balanced chemical formula is 3 Cu + 8 HNO 3 3 Cu(NO 3 ) 2 + 2 NO + 4 H 2 O