Solving Systems of Linear Equations



Similar documents
Solving Systems of Linear Equations

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

5.5. Solving linear systems by the elimination method

Lecture 1: Systems of Linear Equations

Solving Linear Systems, Continued and The Inverse of a Matrix

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

by the matrix A results in a vector which is a reflection of the given

Solving Systems of Linear Equations Using Matrices

1.2 Solving a System of Linear Equations

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

Systems of Linear Equations

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Linear Equations ! $ & " % & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Row Echelon Form and Reduced Row Echelon Form

Using row reduction to calculate the inverse and the determinant of a square matrix

Linear Algebra Notes

Subspaces of R n LECTURE Subspaces

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

Direct Methods for Solving Linear Systems. Matrix Factorization

1.5 SOLUTION SETS OF LINEAR SYSTEMS

1 Determinants and the Solvability of Linear Systems

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

Section 8.2 Solving a System of Equations Using Matrices (Guassian Elimination)

Solution of Linear Systems

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Methods for Finding Bases

Section Continued

Linearly Independent Sets and Linearly Dependent Sets

8 Square matrices continued: Determinants

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

Notes on Determinant

A =

Linear Equations in Linear Algebra

Solutions to Math 51 First Exam January 29, 2015

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

1 VECTOR SPACES AND SUBSPACES

Arithmetic and Algebra of Matrices

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

Lecture Notes 2: Matrices as Systems of Linear Equations

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Systems of Linear Equations

SOLVING LINEAR SYSTEMS

Linear Codes. Chapter Basics

7 Gaussian Elimination and LU Factorization

160 CHAPTER 4. VECTOR SPACES

5 Systems of Equations

Solution to Homework 2

These axioms must hold for all vectors ū, v, and w in V and all scalars c and d.

Recall that two vectors in are perpendicular or orthogonal provided that their dot

MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).

Name: Section Registered In:

( ) which must be a vector

Orthogonal Diagonalization of Symmetric Matrices

5 Homogeneous systems

LS.6 Solution Matrices

Question 2: How do you solve a matrix equation using the matrix inverse?

The Determinant: a Means to Calculate Volume

Prerequisites: TSI Math Complete and high school Algebra II and geometry or MATH 0303.

9 Multiplication of Vectors: The Scalar or Dot Product

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes

THE DIMENSION OF A VECTOR SPACE

The Method of Partial Fractions Math 121 Calculus II Spring 2015

General Framework for an Iterative Solution of Ax b. Jacobi s Method

Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013

Lecture 14: Section 3.3

Similar matrices and Jordan form

10.1 Systems of Linear Equations: Substitution and Elimination

x y The matrix form, the vector form, and the augmented matrix form, respectively, for the system of equations are

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

Equations Involving Lines and Planes Standard equations for lines in space

Continued Fractions and the Euclidean Algorithm

Solving simultaneous equations using the inverse matrix

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

Some Lecture Notes and In-Class Examples for Pre-Calculus:

Linear Programming. March 14, 2014

Elementary Matrices and The LU Factorization

Solving Simultaneous Equations and Matrices

Lecture 2: Homogeneous Coordinates, Lines and Conics

University of Lille I PC first year list of exercises n 7. Review

1 Sets and Set Notation.

Linear Algebra I. Ronald van Luijk, 2012

Linear Equations in Linear Algebra

LINEAR ALGEBRA W W L CHEN

LINEAR EQUATIONS IN TWO VARIABLES

OPRE 6201 : 2. Simplex Method

1 Introduction to Matrices

Numerical Analysis Lecture Notes

Mathematics Course 111: Algebra I Part IV: Vector Spaces

EQUATIONS and INEQUALITIES

Practical Guide to the Simplex Method of Linear Programming

LINEAR INEQUALITIES. Mathematics is the art of saying many things in many different ways. MAXWELL

Lecture 3: Finding integer solutions to systems of linear equations

Operation Count; Numerical Linear Algebra

Section 1.1. Introduction to R n

Notes from February 11

Section 1.4. Lines, Planes, and Hyperplanes. The Calculus of Functions of Several Variables

Transcription:

LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how this matrix machinery can also be used to solve such systems However, before we embark on solving systems of equations via matrices, let me remind you of what such solutions should look like The Geometry of Linear Systems Consider a linear system of m equations and n unknowns: 5) a x + a x + + an x n = b a x + a x + + an x n = b am x + am x + + amn x n = bm What does the solution set look like? Let s examine this question case by case, in a setting where we can easily visualize the solution sets equations in 3 unknowns This would correspond to a situation where you have 3 variables x,x,x 3 with no relations between them Being free to choose whatever value we want for each of the 3 variables, it s clear that the solutions set is just R 3, the 3-dimensional space of ordered sets of 3 real numbers equation in 3 unknowns In this case, use the equation to express one variable, say xn, intermsof the other variables; x = an b a x + a x + a,3 x 3) The remaining variables x, and x are then unrestricted Letting these variables range freely over R will then fill out a -dimensional plane in R Thus, in the case of equation in 3 unknowns we have a two dimensional plane as a solution space equations in unknowns As in the preceding example, the solution set of each individual equation will be a -dimensional plane The solution set of the pair of equation will be the intersection of these two planes For points common to both solution sets will be points corresponding to the solutions of both equations) Here there will be three possibilities: The two planes do not intersect In other words, the two planes are parallel but distinct Since they share no common point, there is no simultaneous solutoin of both equations The intersection of the two planes is a line This is the generic case 3 The two planes coincide In this case, the two equations must be somehow redundant Thus we have either no solution, a -dimensional solution space ie a line) or a -dimensional solution space 3 equations and 3 unknowns In this case, the solution set will correspond to the intersection of the three planes corresponding to the 3 equations We will have four possiblities: The three planes share no common point In this case there will be no solution The three planes have one point in common This will be the generic situation

ELEMENTARY ROW OPERATIONS 3 The three planes share a single line 4 The three planes all coincide Thus, we either have no solution, a -dimensional solution ie, a point), a -dimensional solution ie a line) or a -dimensional solution We now summarize and generalize this discusion as follows Theorem 5 Consider a linear system of m equations and n unknowns: The solution set of such a system is either: a x + a x + + a nxn = b a x + a x + + a nxn = b amx + amx + + amnxn = bm The empty set {}; ie, there is no solution A hyperplane of dimension greater than or equal to n m) Elementary Row Operations In the preceding lecture we remarked that our new-fangled matrix algebra allowed us to represent linear systems such as 5) succintly as matrix equations: 5) a a a n a a a n am am amn x x xm = b b bm For example the linear system 53) x +3x = 3 x +x = can be represented as 54) 3 x x = 3 Now, when solving linear systems like 53) it is very common to create new, but equivalent, equations by, for example, mulitplying by a constant, or adding one equation to another In fact, we have Theorem 5 Let S be a system of m linear equations in n unknowns and let S be another system of m equations in n unknowns obtained from S by applying some combination of the following operations: interchanging the order of two equations multiplying one equation by a non-zero constant replacing a equation with the sum of itself and a multiple of another equation in the system Then the solution sets of S ane S are identical In particular, the solution set of 53) is equivalent to solution set of 55) x +3x = 3 x x =

3 SOLVING LINEAR EQUATIONS 3 where we have multiplied the second equation by -), as well as the solution set of 56) x +3x = 3 x = where we have replaced the second row in 55) by its sum with the first row), as well as the solution of 57) x = 3 x = where we have replaced the first row in 56) with its sum with 3 times the second row) We can thus solve a linear system by means of the elementary operations described in the theorem above Now because there is a matrix equation corresponding to every system of linear equations, each of the operations described in the theorem above corresponds to an matrix operation To convert these operations in our matrix language, we first associate with a linear system an augmented matrix a x + a x + + a nxn = b a x + a x + + a n x n = b amx + amx + + amnxn = bm a a an a a an am am amn The augmented matrices corresponding to equations 55), 56), and 57) are thus, respectively 3 3, 3 3, and From this example, we can see that the operations in Theorem translate to the following operations on the corresponding augmented matrices: 3 b b bm Row Interchange: the interchange of two row of the augmented matrix Row Scaling: multiplication of a row by a non-zero scalar Row Addition: replacing a row by its sum with s multiple of another row Henceforth, we shall refer to these operations as Elementary Row Operations 3 Solving Linear Equations Let s now reverse directions and think about how to recognize when the system of equations corresponding to a given matrix is easily solved To keep our discussion simple, in the examples given below we consider systems of n equations in n unknowns)

3 SOLVING LINEAR EQUATIONS 4 3 Diagonal Matrices A matrix equation Ax = b is trivial to solve if the matrix A is purely diagonal For then the augmented matrix has the form A = the corresponding system of equations reduces to a a an,n a nn a x = b x = b a a x = b x = b a a nn x n = b n x n = b n a nn b b b n b n 3 Lower Triangular Matrices If the coefficient matrix A has the form a a a A = a n, a n, a n,n a n a n, a n,n a nn with zeros everywhere above the diagonal from a to a nn ), then it is called lower triangular A matrix equation Ax = b in which A is lower triangular is also fairly easy to solve For it is equivalent ot a system of equations of the form a x = b a x + a x = b a3 x + a3 x + a33 x 3 = b3 a n x + a n x + a n3 x3 + + a nn x n = b n To find the solution of such a system one solves the first equation for x and then substitutes its solution b /a for the variable x in the second equation a b a ) + a x = b x = a b a b One can now substitute the numerical expressions for x, and x into the third equation and get a numerical expression for x 3 Continuing in this manner we can solve the system completely We call this method solution by forward substitution a ) 33 Upper Triangular Matrices We can do a similar thing for systems of equations characterized by an upper triangular matrices A a a a,n an a a,n an A = a n,n a nn

3 SOLVING LINEAR EQUATIONS 5 that is to say, a matrix with zero s everywhere below and to the left of the diagonal), then the corresponding system of equations will be a x + a x+ + a n x n = b a x + + an x n = b a n,n x n + a n,n x n = b n a nn x n = b n which can be solved by substituting the solution of the last equation into the preceding equation and solving for x n x n = a n,n x n = b n a nn b n a n,n )) b n a nn and then substituting this result into the third from last equation, etc by back-substitution This method is called solution 34 Solution via Row Reduction In the general case a matrix will be neither be upper triangular or lower triangular and so neither forward- or back-substituiton can be used to solve the corresponding system of equations However, using the elementary row operations discussed in the preceding section we can always convert the augmented matrix of a self-consistent) system of linear equations into an equivalent matrix that is upper triangular; and having done that we can then use back-substitution to solve the corresponding set of equations We call this method Gaussian reduction Let me demonstate the Gaussian method with an example Example 53 Solve the following system of equations using Gaussian reduction x + x x 3 = x x + x 3 = x x x 3 = 3 First we write down the corresponding augmented matrix We now use elementary row operations to convert this matrix into one that is upper triangular Adding - times the first row to the second row produces Adding - times the first row to the second row produces 3 Adding 3 times the second row to the third row produces 3 3 3 6

3 SOLVING LINEAR EQUATIONS 6 The augmented matrix is now in upper triangular form It corresponds to the following system of equations x + x x 3 = x +x 3 = x 3 = 6 which can easily be solved via back-substitution: x 3 = 6 x 3 =3 x +6= x = x + 3= x = In summary, solution by Gaussian reduction consists of the following steps Write down the augmented matrix corresponding to the system of linear equations to be solved Use elementary row operations to convert the augmented matrix into one that is upper triangular This is acheived by systematically using the first row to eliminate the first entries in the rows below it, the second row to eliminate the second entries in the row below it, etc 3 Once the augmented matrix has been reduced to upper triangular form, write down the corresponding set of linear equations and use back-substitution to complete the solution