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

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

Linear Algebra I Lecture 8

1 - Systems of Linear Equations

System of Linear Equations

Lectures on Linear Algebra for IT

Linear Algebra I Lecture 10

Section Gaussian Elimination

Methods for Solving Linear Systems Part 2

4 Elementary matrices, continued

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

4 Elementary matrices, continued

Lecture 2 Systems of Linear Equations and Matrices, Continued

Math 1314 Week #14 Notes

Row Reduction and Echelon Forms

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

Chapter 1: Systems of Linear Equations and Matrices

Linear System Equations

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

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

MAC Module 1 Systems of Linear Equations and Matrices I

Solving Systems of Linear Equations Using Matrices

Matrices and systems of linear equations

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

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

CHAPTER 9: Systems of Equations and Matrices

The matrix will only be consistent if the last entry of row three is 0, meaning 2b 3 + b 2 b 1 = 0.

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

Extra Problems: Chapter 1

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.

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

CHAPTER 9: Systems of Equations and Matrices

MATH 1003 Review: Part 2. Matrices. MATH 1003 Review: Part 2. Matrices

ORIE 6300 Mathematical Programming I August 25, Recitation 1

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

Chapter 4. Solving Systems of Equations. Chapter 4

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

Solving Linear Systems Using Gaussian Elimination

Lecture 1 Systems of Linear Equations and Matrices

Chapter 1. Vectors, Matrices, and Linear Spaces

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

MIDTERM 1 - SOLUTIONS

Notes on Row Reduction

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

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

Problem Sheet 1 with Solutions GRA 6035 Mathematics

Elementary Linear Algebra

7.6 The Inverse of a Square Matrix

Matrix Solutions to Linear Equations

Linear equations in linear algebra

System of Linear Equations

Lecture 7: Introduction to linear systems

MATH 3511 Lecture 1. Solving Linear Systems 1

Linear Algebra Practice Problems

9.1 - Systems of Linear Equations: Two Variables

Matrices (Ch.4) MATH 1003 Review: Part 2. Matrices. Matrices (Ch.4) Matrices (Ch.4)

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

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

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

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

Section 6.2 Larger Systems of Linear Equations

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

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

Linear Algebra Exam 1 Spring 2007

Lectures on Linear Algebra for IT

Section 1.1: Systems of Linear Equations

System of Linear Equations. Slide for MA1203 Business Mathematics II Week 1 & 2

Lecture Notes: Solving Linear Systems with Gauss Elimination

Systems of Equations

1111: Linear Algebra I

22A-2 SUMMER 2014 LECTURE 5

Matrices and RRE Form

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.

Chapter 2 Notes, Linear Algebra 5e Lay

PH1105 Lecture Notes on Linear Algebra.

1 Last time: linear systems and row operations

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

Math 2174: Practice Midterm 1

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam

1111: Linear Algebra I

Solutions of Linear system, vector and matrix equation

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

Linear Equations in Linear Algebra

March 19 - Solving Linear Systems

CHAPTER 8: Matrices and Determinants

Chapter 1 Matrices and Systems of Equations

EXAM. Exam #1. Math 2360, Second Summer Session, April 24, 2001 ANSWERS

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

Chapter 9: Systems of Equations and Inequalities

Linear Methods (Math 211) - Lecture 2

MTH 2530: Linear Algebra. Sec Systems of Linear Equations

Math 2331 Linear Algebra

Matrices and Determinants

MODEL ANSWERS TO THE THIRD HOMEWORK

1111: Linear Algebra I

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

MATH 304 Linear Algebra Lecture 10: Linear independence. Wronskian.

Solving Systems of Linear Equations

Matrix equation Ax = b

Transcription:

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

Lineares Gleichungssystem System of m linear equations in n unknowns: a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2........... a m1 x 1 + a m2 x 2 + + a mn x n = b m a 11 a 12... a 1n x 1 a 21 a 22... a 2n x 2........ =.. b 1 b 2 } a m1 a m2... {{ a mn } coefficient matrix x n }{{} variables b m }{{} vector of constants A x = b Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 2 / 33

Matrix Representation Advantages of matrix representation: Short and compact notation. Compare A x = b to n j=1 a ij x j = b i, for i = 1,..., m We can transform equations by means of matrix algebra. We can use names for parts of the equation, like PRODUKTION VECTOR, DEMAND VECTOR, TECHNOLOGY MATRIX, etc. in the case of a Leontief model. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 3 / 33

Leontief Model Input-output model with A... technology matrix x... production vector b... demand vector x = Ax + b For a given output b we get the corresponding input x by x = Ax + b Ax x Ax = b (I A)x = b (I A) 1 x = (I A) 1 b Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 4 / 33

Solutions of a System of Linear Equations Three possibilities: The system of equations has exactly one solution. The system of equations is inconsistent(not solvable). The system of equations has infinitely many solutions. In Gaussian elimination the augmented coefficient matrix (A, b) is transformed into row echelon form. Then the solution set is obtained by back substitution. It is not possible to determine the number of solutions from the numbers of equations and unknowns. We have to transform the system first. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 5 / 33

Row Echelon Form In row echelon form the number of leading zeros strictly increases from one row to the row below. 1 a 12 a 13 a 14 a 15 0 1 a 23 a 24 a 25 0 0 0 1 a 35 0 0 0 0 1 For our purposes it is not required that the first nonzero entries are equal to 1. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 6 / 33

Steps in Gaussian Elimination We (have to) obtain the row echelon form (only) by means the following transformations which does not change the set of solutions: Multiplication of a row by some nonzero constant. Addition of the multiple of some row to another row. Exchange of two rows. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 7 / 33

Example Gaussian Elimination 1.0 0.2 0.2 7.0 0.4 0.8 0.1 12.5 0.0 0.5 0.9 16.5 We first add 0.4 times the first row to the second row. We denote this operation by R 2 R 2 + 0.4 R 1 1 0.20 0.20 7.0 0 0.72 0.18 15.3 0 0.50 0.90 16.5 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 8 / 33

Example Gaussian Elimination R 3 R 3 + 0.5 0.72 R 2 1 0.20 0.20 7.0 0 0.72 0.18 15.3 0 0 0.775 27.125 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 9 / 33

Example Back Substitution 1 0.20 0.20 7.0 0 0.72 0.18 15.3 0 0 0.775 27.125 From the third row we immediately get: 0.775 x 3 = 27.125 x 3 = 35 We obtain the remaining variables x 2 and x 1 by back substitution: 0.72 x 2 0.18 35 = 15.3 x 2 = 30 x 1 0.2 30 0.2 35 = 7 x 1 = 20 The solution is unique: x = (20, 30, 35) t Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 10 / 33

Example 2 Find the solution of equation 3 x 1 + 4 x 2 + 5 x 3 = 1 x 1 + x 2 x 3 = 2 5 x 1 + 6 x 2 + 3 x 3 = 4 3 4 5 1 1 1 1 2 5 6 3 4 R 2 3 R 2 R 1, R 3 3 R 3 5 R 1 3 4 5 1 0 1 8 5 0 2 16 7 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 11 / 33

Example 2 R 3 R 3 2 R 2 3 4 5 1 0 1 8 5 0 0 0 3 The third row implies 0 = 3, a contradiction. This system of equations is inconsistent; solution set L =. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 12 / 33

Example 3 Find the solution of equation 2 x 1 + 8 x 2 + 10 x 3 + 10 x 4 = 0 x 1 + 5 x 2 + 2 x 3 + 9 x 4 = 1 3 x 1 10 x 2 21 x 3 6 x 4 = 4 2 8 10 10 0 1 5 2 9 1 3 10 21 6 4 R 2 2 R 2 R 1, R 3 2 R 3 + 3 R 1 2 8 10 10 0 0 2 6 8 2 0 4 12 18 8 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 13 / 33

Example 3 R 3 R 3 2 R 2 2 8 10 10 0 0 2 6 8 2 0 0 0 2 12 This equation has infinitely many solutions. This can be seen from the row echelon form as there are more variables than nonzero rows. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 14 / 33

Example 3 The third row immediately implies Back substitution yields 2 x 4 = 12 x 4 = 6 2 x 2 6 x 3 + 8 ( 6) = 2 In this case we use pseudo solution x 3 = α, α R, and get x 2 3 α + 4 ( 6) = 1 x 2 = 25 + 3 α 2 x 1 + 8 (25 + 3 α) + 10 α + 10 ( 6) = 0 x 1 = 70 17 α Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 15 / 33

Example 3 We obtain a solution for each value of α. Using vector notation we obtain x 1 70 17 α 70 17 x = x 2 x = 25 + 3 α 3 α = 25 0 + α 3 1 6 6 0 x 4 Thus the solution set of this equation is 70 17 L = x = 25 0 + α 3 1 6 0 α R Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 16 / 33

Equivalent Representation of Solutions In Example 3 we also could use x 2 = α (instead of x 3 = α). Then back substitution yields L = x = x 1 x 2 x 3 x 4 = 215 3 0 25 3 6 + α 17 3 1 1 3 0 α R However, these two solution sets are equal, L = L! We thus have to different but equivalent representations of the same set. The solution set is unique, its representation is not! Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 17 / 33

Equivalent Representation of Solutions The set of solution points in Example 3 can be interpreted as a line in a (4-dimensional) space. The representations in L and L are thus parametric curves in R 4 with the same image. x 2 L = L x 1 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 18 / 33

A Non-Example Find the solution of equation 2 x 1 + x 2 = 1 2 x 1 + 2 x 2 2 x 3 = 4 4 x 1 + 9 x 2 3 x 3 = 9 2 1 0 1 2 2 2 4 4 9 3 9 R 2 R 2 + R 1, R 3 R 3 2 R 1 2 1 0 1 0 3 2 5 0 7 3 7 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 19 / 33

A Non-Example Now one could find R 3 R 3 7 R 1 convenient. However, 2 1 0 1 0 3 2 5 14 0 3 0 destroys the already created row echelon form in the first column! Much better: R 3 3 R 3 7 R 2 2 1 0 1 0 3 2 5 0 0 5 14 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 20 / 33

Reduced Row Echelon Form In Gauss-Jordan elimination the augmented matrix is transformed into reduce row echelon form, i.e., It is in row echelon form. The leading entry in each nonzero row is a 1. Each column containing a leading 1 has 0 s everywhere else. 1 0 a 13 0 0 0 1 a 23 0 0 0 0 0 1 0 0 0 0 0 1 Back substitution is then simpler. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 21 / 33

Gauss-Jordan Elimination / Example 3 Find the solution of equation 2 x 1 + 8 x 2 + 10 x 3 + 10 x 4 = 0 x 1 + 5 x 2 + 2 x 3 + 9 x 4 = 1 3 x 1 10 x 2 21 x 3 6 x 4 = 4 2 8 10 10 0 1 5 2 9 1 3 10 21 6 4 R 1 1 2 R 1, R 2 2 R 2 R 1, R 3 2 R 3 + 3 R 1 1 4 5 5 0 0 2 6 8 2 0 4 12 18 8 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 22 / 33

Gauss-Jordan Elimination / Example 3 R 1 R 1 2 R 2, R 2 1 2 R 2, R 3 R 3 2 R 2 1 0 17 11 4 0 1 3 4 1 0 0 0 2 12 R 1 R 1 + 11 2 R 3, R 2 R 2 2 R 3, R 3 1 2 R 3, 1 0 17 0 70 0 1 3 0 25 0 0 0 1 6 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 23 / 33

Gauss-Jordan Elimination / Example 3 1 0 17 0 70 0 1 3 0 25 0 0 0 1 6 The third row immediately implies x 4 = 6 Set pseudo solution x 3 = α, α R. Back substitution yields x 2 = 25 + 3 α and x 1 = 70 17 α Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 24 / 33

Gauss-Jordan Elimination / Example 3 Thus the solution set of this equation is 70 17 L = x = 25 0 + α 3 1 6 0 α R Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 25 / 33

Gauss-Jordan Elimination / Example 3 Compare 1 0 17 0 70 0 1 3 0 25 0 0 0 1 6 and x = 70 25 0 + α 6 17 3 1 0 The positional vector ( 70, 25, 0, 6) t follows from the r.h.s. of the reduced row echelon while the direction vector ( 17, 3, 1, 0) t is given by the column without leading 1. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 26 / 33

Inverse of a Matrix Computation of the inverse A 1 of matrix A by Gauss-Jordan elimination: (1) Augment matrix A by the corresponding identity matrix to the right. (2) Transform the augmented matrix such that the identity matrix appears on the left hand side by means of the transformation steps of Gaussian elimination. (3) Either the procedure is successful. Then we obtain the inverse matrix A 1 on the right hand side. (4) Or the procedure aborts (because we obtain a row of zeros on the l.h.s.). Then the matrix is singular. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 27 / 33

Example 1 Compute the inverse of A = 3 2 6 1 1 3 3 2 5 (1) Augment matrix A: 3 2 6 1 0 0 1 1 3 0 1 0 3 2 5 0 0 1 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 28 / 33

Example 1 (2) Transform: R 1 1 3 R 1, R 2 3 R 2 R 1, R 3 R 3 + R 1 1 2 3 2 1 3 0 0 0 1 3 1 3 0 0 0 1 1 0 1 R 1 R 1 2 3 R 2 1 0 0 1 2 0 0 1 3 1 3 0 0 0 1 1 0 1 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 29 / 33

Example 1 R 2 R 2 3 R 3 1 0 0 1 2 0 0 1 0 4 3 3 0 0 1 1 0 1 (3) Matrix A is invertible with inverse 1 2 0 A 1 = 4 3 3 1 0 1 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 30 / 33

Example 2 Compute the inverse of A = 3 1 3 2 4 1 5 5 4 (1) Augment matrix A: 3 1 3 1 0 0 2 4 1 0 1 0 5 5 4 0 0 1 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 31 / 33

Example 2 (2) Transform: R 1 1 3 R 1, R 2 3 R 2 2 R 1, R 3 3 R 3 5 R 1 1 1 3 1 1 3 0 0 0 10 3 2 3 0 0 10 3 5 0 5 R 1 R 1 1 30 R 2, R 2 1 10 R 2, R 3 R 3 R 2 11 4 1 0 10 10 1 10 0 (4) Matrix A is not invertible. 0 1 3 10 2 10 0 0 0 3 3 5 3 10 0 Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 32 / 33

Summary System of linear equations Gaussian elimination Gauss-Jordan elimination Computation of inverse matrix Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 33 / 33