Systems of equation and matrices

Size: px
Start display at page:

Download "Systems of equation and matrices"

Transcription

1 Systems of equation and matrices Jean-Luc Bouchot February 23, 2013 Warning This is a work in progress. I can not ensure it to be mistake free at the moment. It is also lacking some information. But at least, for those of you who could not attend a class (never attended?... remember classes are mandatory normally) you get a coarse idea of what is being done. However nothing works better than doing it; practicing and asking questions when something is not clear. You will not learn playing the drums by watching random guys playing, don t expect it to be different with math. Last but not least... Don t be selfish nor shy, if you see any mistakes (shall they be in the grammar or in the math) in these notes, please let me know (either personnaly or per ) so that your fellow students can also learn from correct material. 1 Some motivation So far we were intersted with single variables being completely free, independent. However, it is sometimes (almost always?) mandatory to consider two or more variables interacting with each others. As a usecase, consider the following problem: if we know that 10 lbs of rice and 20 lbs of potatoes cost $35 and that 35 lbs of rice and 12 lbs of potatoes cost $39, can we find out the price/lb for rice and potatoes? This chapter aims at introducing some new methods to write down equations involving more than one variables as well as methods for solving these sets of equations. 2 Systems of equation 2.1 Introduction If we go back to the previous example we can denote the price/lb of rice by the free variable x and the price/lb of potatoe using the free variable y. In that case the two previous conditions read 10x + 20y = 25 and the second one reads 30x + 12y = 39 and we need to find all the points (x, y) that fulfill both conditions (or equations). Definition 1 (System of equations). If n free variables (which we shall here formally denote x 1 to x n ) are related by m equations or m conditions (like the one above), we say that we are facing a system of m equations with n variables. If all the variables appear isolated from each other (i.e. they are not multiplying each other) and without any exponent, we say that this system of equations is linear. Systems of linear equations are usually written with a curly bracket in front; in the case of the potatoes and rice problem, we get { 10x + 20y = 25 which is an example of system of linear equations. 30x + 12y = 39 1

2 Example 1. { 10x + 20y 2 = 25 30x + 12y = 39 and { 10x + 20y = 25 x y = 39 are examples of non linear systems... which are not studied here. Definition, mise en equation, exemples 2.2 Facts As you (might) have already seen in high school, we can picture these systems by graphing the equations. As we see the equations relate any x value to a y value by a linear equation and can hence be represented by a line. (Exactly as we did in the case of supply and demand problems) Therefore, we are looking for points which are on both lines and there are three possibilities The two lines are parallel and non overlapping there are no solutions The two lines are parallel and overlapping there are infinitely many solutions The two lines have different slopes there is only one solution: where both lines cross. y y y x x x (a) The two lines have the same slope but never cross each other (b) The two lines have the same slope and overlap (c) The two lines have different slopes Definition 2 ((in)consistent systems). A system of equations is said to be consistent if it has at least one solution. If it has no solution it is said to be inconsistent. It can be shown that, as with the case of lines, a system of n equations with n unkowns always falls into one of the following cases: 1. It is inconsistent 2. It is consistent and has infinitely many solutions 3. It is consistent and has a unique solution While the graphical method introduced above is very easy to use with two unknowns it s almost impossible to do as soon as we have more than two unknowns. In the next sections we introduce analytical methods to solve such systems with (potentially) many unknowns. 2

3 2.3 Substitution and echelon The first method we introduce here is something most of you did in high school. It is called the substitution or elimination method. The basic idea is relatively simple: you first solve the first equation for on of the unkown and replace in the following ones. By doing this a sufficient number of time, the system should be simplified enough to be solvable. If we consider the potatoes and rice example above and multiply the first equation by 3 and calculate the difference with the second one, we get the following equivalent system: { 48y = 36 30x + 12y = 39 As we see now, the unkown x no longer appears in the first row. It can be solved for y and we get y = 3/4 and hence replacing in the second equation, we get 30x = 39 which leads to (if we solve for x) x = 1 ($/lb of rice - try to always remember the units, it is often a good guide for solving problems) As you can see, this process gives a rather straightforward solution (which is unique!) Exercise 1. Solve the following system of equations for x, y and z. x + 2y + 3z = 5 x y + 5z = 0 2x + 2y + 2z = 2 As you can see, without a systematic way to do this, it can get hard to get to the result. Therefore an appropriate method has been developped to overcome the dimensionality of the system. This method is called the echelon method and can be described as follows: The idea is to replace a given system by a simpler and equivalent one applying appropriate transformations The approriate transformations are one of these: 1. Interchange any two rows (written as R i R j ) 2. Multiply a row by a non-zero number ( R i tr i, with t 0) 3. Add a multiple of one row to another one (R i R i + tr j ) These transformations are called appropriate because they can be reversed Use these transformations until you get to a triangular system (i.e. you get rid of an unkown at each new equation) Solve the last (easy) equation for the remaining unkown and back propagate the result in the other equations Definition 3 (Equivalent systems of equations). Two systems of equations are said to be equivalent if they have the same set of solutions Example 2. We consider the example above and solve with this systematic/algorithmic approach. We will at each new step get rid of the left most unkown (i.e. first x and then y and hence, only z should remain in the last equation - note that you should always try to keep your writting well done to clarify your results... and your mind!) Remember the system of equations reads x +2y +3z = 5 x y +5z = 0 2x +2y +2z = 2 3

4 We will get rid of the red part by doing R 2 R 1 + R 2 and the red one by applying R 3 R 3 2R 1 and we get the following equivalent system x +2y +3z = 5 y +8z = 5 2y 4z = 8 and we can no get rid of the last red term by R 3 R 3 + 2R 2 and so we finally get x +2y +3z = 5 y +8z = 5 +12z = 2 And now we only need to solve R 3 for z and backpropagate the result to R 2 and R 1. Hence we get x +2y +1/2 = 5 y +4/3 = 5 z = 1/6 as we see only one unkown (namely y) appears in the second equation and hence we can solve it for y and backpropagate the result in the first one. x +22/3 = +9/2 y = 11/3 z = 1/6 and we finally can solve for x which gives us the unique solution x = 17/6 y = 11/3 z = 1/6 Remark 1. As long as you follow these steps rigorously, nothing wrong can happen. However, it is sometimes better to swap to rows to have this nice triangular shape: DO NOT HESITATE! ADD EXAMPLE WITH inf solutions and no solution 3 An introduction to matrices 3.1 Definitions An interesting tool to represent such situations are matrices. They can be seen as tables of values at different locations. For the example of rice and potatoes, we would right: [ As we can see it corresponds to the coefficients of the left hand side and right hand side of the different equations concatenate together Theory Definition 4 (Matrix). A matrix is a mathematical object that gather coefficients together in order to process data more efficiently. Do not worry too much about the definition, you can think of matrices as a way to represent systems of equation in a compact way as a table of numbers. Definition 5 (Size of a matrix). A matrix that has n rows and m columns is said to be a n m matrix (number of rows first, then the number of columns) or a matrix of size n m. 4

5 Example 3. The matrix associated to the potatoes and rice problem is a 2 3 matrix. Definition 6. A matrix that has the same number of rows and columns is called a squared matrix. Example 4. The following matrix: is an example of a 3 3 square matrix. Definition 7 (Identity). The square matrix of size n n with 1 s on the diagonal and 0 s elsewhere is called the identity matrix of size n. Why this matrix is called identity will become clear later. Definition 8 (Entries of a matrix). An entry of a matrix is a number inside this matrix at a given location. This entry can be associated to a label (a, b) where a denotes the row number and b the column number where the cell is. We usually write A(a, b) to denote this entry in matrix A Example 5. With the matrix we have for instance A(1, 1) = 10 or A(2, 3) = Usefullness and application Representation of systems [ In case of a system of equations represented as a matrix, we have to be careful that the system is well written; i.e. that the variables should appear on the left hand side of the = sign and in the same order in each equations and the constants should be on the right hand side of the = sign. Once the equation are well written, we can just erase all the = signs and unkowns and plug the resulting coefficients in a matrix/table. It is usual to separate the right hand side of the = sign from the left hand side by adding a vertical bar between the coefficients in the matrix. While this is not mandatory is helps working with matrices for solving linear systems of equations. Definition 9 (Augmented matrix). A matrix that contains the parameters of a system of equations with the vertical bar in the middle is called an augmented matrix. Hence, for the potatoes and rice problem, we would write Solving a linear system: the Gauss-Jordan method The main idea of the Gauss-Jordan method is the exact same as using the echelon method. While we were trying to get a triangular shaped system of equations before, we will try, by applying the exact same row operations, to transform the matrix into a matrix containing the identity on the left side of the vertical bar. In the case of a system of 2 equations with 2 unkowns, we want to get to 1 0 a 0 1 b where a and b depend on the calculation used to transform the matrix. 5

6 Example 6. We still consider the potatoes and rice problem and try to solve it using the Gauss-Jordan method. So starting from the original augmented matrix we will start by getting a 1 as the red component and getting rid of the green one: R R 1 and R 2 R 2 3R 1 which results in where we want to get 1 instead of the red number; R R 2: Finally we only need to get rid of the last green term out of the diagonal now by applying R 1 R 1 2R The solution is seen by simply taking the coefficients out: x = 1 and y = 0.75 (which are the same as we had before!). 3.3 Operations Here we introduce some rule to calculate and work with matrices. This rules are hard to understand and use at first but they finally become natural once we work enough with it... Practice a lot! Equality We say that two matrices are equal if their coefficients correspond everywhere. In other words, to verify the equality between two matrices we try to overlap them and make sure all the coefficients are equal. As a consequence, if two matrices are not of the same size, they cannot be equal to each other. Addition As we would do with normal numbers, we would like to define some operations between these new objects. The first one corresponds to the addition of two matrices. Addition of two matrices is done by simply adding each term of a same location together. As a consequence, if two matrices are not of the same size, they cannot be added together. Multiplication Numbers can be multiplied too. A multiplication between matrices can be defined but some care should be taken. We indeed have some strong conditions under which this is possible. In order to calculate the product A B their dimensions should fulfill the following condition (assume A has size n A m A and B has size n B m B ): m n B we sometimes say that their inner dimensions should be equal (to see this, write down the different dimensions respecting the order of multiplication: n A, m A, n B, m B... we say inner dimensions, because, m A and n B are those in the middle of the others) The result of this multiplication is another matrix of size n A m B (in other words the outer dimensions!) We have the following consequences: 1. Multiplying A by B (what we right A B) does not necessarily equal the product of B by A (B A). And in fact, they are almost never equal. 2. The fact that A B exists does not mean by any way that B A exists. In fact it is not likely at all. 3. While the order of multiplication had no importance when dealing with usual numbers, we have to be careful when dealing with matrices. 6

7 Care should be taken when multiplying two matrices as it is very easy to make mistakes. To calculate the entry at position (a, b) of the result of the product A B we first extract the row number a from matrix A and column b of matrix B. The idea is to calculate the product of these two objects component wise (i.e. the first element of a times the first element of b and then the second element of a with the second of b etc... until the last terms) and then sum up the results together. A visual way to calculate these products, is to write the matrices on different levels: [ [ Multiplication with a number (scalar) It is also possible to multiply a matrix by a number (we usually call numbers scalars). This can be done by multiplying each entry of the matrix by this number, without any condition. This operations results in a new matrix which has the size of the original one. Remark 2 (Subtraction of matrices). We can define the subtraction A B by combining a scalar multiplication with an addition: A B = A + ( 1) B Transposition The transposition is a new operation created for matrices. It can be seen as a mirroring or flipping of the matrix. It can be applied to any matrix and creates a new matrix where the columns of the original one become the rows of the new ones. As a consequence, transposing an n m matrix results in an m n matrix. Examples Add a bunch of examples for each of them. Exercise 2 (Identity?). 3.4 Inverse of a matrix Definition 10 (Invertability and inverse). A square matrix A is said to be invertible if it exists another matrix B such that A B = I AND B I. In that case, B is called the inverse of A (and as a consequence, A is also the inverse of B). Remark 3. When dealing with a normal number a, we always have that a a 1 = 1. To mimick this notation, we write the inverse of the matrix A (if it exists) A 1. Finding an inverse Finding the inverse of a matrix A in a general case is a hard task. In case of a 2 2 matrix, we are actually looking for four numbers w, x, y, z such that w x Consider the following matrix as an example: y z 1 0 A 0 1 [ then the previous product of matrices is equivalent to the two following systems of equations: { w + 2y = 1 3w + 7y = 0 and { x + 2z = 0 3x + 7z = 1 7

8 as we have seen in a previous section we can solve these systems using the Gauss-Jordan method on the augemented matrices: and and as we can see, the two augmented matrices have the same left hand side and hence, we will try to solve both systems at the same time and if we find an answer, this will be the inverse of the matrix A. If we cannot find an answer it means that the matrix A is not invertible. [ note that this system can also be written as [A I. Applying the following sequence of row operations: R 2 R 2 3R 1, R 1 R 1 2R 2 yields the following equivalent augmented matrix: [ and therefore the matrix A 1 = is the inverse we were looking for. You can check yourself that 3 1 we do indeed have A A 1 = I What we just did for the inverse of a particular 2 2 matrix can be generalised: finding the inverse matrix is equivalent to solving the following augmented matrix using the Gauss-Jacobi method: [A I [ I A 1 no sequence of row operations can be found for that, then A is not inversitble. 3.5 Application of the inverse Now that we know we can (sometimes) invert a matrix and know how to do it, we see how it can be applied to the resolution of linear systems of equations. We first notice that a system can be written as a product of the matrix by the matrix n 1 of variables: { x +2y = x 3 3x +7y = 5 = 3 7 y 5 which we can also write as A X = B. Now when multiplying both sides by A 1 (which exists... see above!) to the left we get A 1 A X = A 1 B and hence, as A 1 I we get X = A 1 B 8

Chapter 4. Solving Systems of Equations. Chapter 4

Chapter 4. Solving Systems of Equations. Chapter 4 Solving Systems of Equations 3 Scenarios for Solutions There are three general situations we may find ourselves in when attempting to solve systems of equations: 1 The system could have one unique solution.

More information

4 Elementary matrices, continued

4 Elementary matrices, continued 4 Elementary matrices, continued We have identified 3 types of row operations and their corresponding elementary matrices. To repeat the recipe: These matrices are constructed by performing the given row

More information

MAC Module 1 Systems of Linear Equations and Matrices I

MAC Module 1 Systems of Linear Equations and Matrices I MAC 2103 Module 1 Systems of Linear Equations and Matrices I 1 Learning Objectives Upon completing this module, you should be able to: 1. Represent a system of linear equations as an augmented matrix.

More information

March 19 - Solving Linear Systems

March 19 - Solving Linear Systems March 19 - Solving Linear Systems Welcome to linear algebra! Linear algebra is the study of vectors, vector spaces, and maps between vector spaces. It has applications across data analysis, computer graphics,

More information

4 Elementary matrices, continued

4 Elementary matrices, continued 4 Elementary matrices, continued We have identified 3 types of row operations and their corresponding elementary matrices. If you check the previous examples, you ll find that these matrices are constructed

More information

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.] Math 43 Review Notes [Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty Dot Product If v (v, v, v 3 and w (w, w, w 3, then the

More information

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

Math x + 3y 5z = 14 3x 2y + 3z = 17 4x + 3y 2z = 1 Math 210 1. Solve the system: x + y + z = 1 2x + 3y + 4z = 5 (a z = 2, y = 1 and x = 0 (b z =any value, y = 3 2z and x = z 2 (c z =any value, y = 3 2z and x = z + 2 (d z =any value, y = 3 + 2z and x =

More information

36 What is Linear Algebra?

36 What is Linear Algebra? 36 What is Linear Algebra? The authors of this textbook think that solving linear systems of equations is a big motivation for studying linear algebra This is certainly a very respectable opinion as systems

More information

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2 Final Review Sheet The final will cover Sections Chapters 1,2,3 and 4, as well as sections 5.1-5.4, 6.1-6.2 and 7.1-7.3 from chapters 5,6 and 7. This is essentially all material covered this term. Watch

More information

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

Midterm 1 Review. Written by Victoria Kala SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015 Midterm 1 Review Written by Victoria Kala vtkala@math.ucsb.edu SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015 Summary This Midterm Review contains notes on sections 1.1 1.5 and 1.7 in your

More information

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

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices MAC05-College Algebra Chapter 5-Systems of Equations & Matrices 5. Systems of Equations in Two Variables Solving Systems of Two Linear Equations/ Two-Variable Linear Equations A system of equations is

More information

Linear Algebra, Summer 2011, pt. 2

Linear Algebra, Summer 2011, pt. 2 Linear Algebra, Summer 2, pt. 2 June 8, 2 Contents Inverses. 2 Vector Spaces. 3 2. Examples of vector spaces..................... 3 2.2 The column space......................... 6 2.3 The null space...........................

More information

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

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding Elementary matrices, continued To summarize, we have identified 3 types of row operations and their corresponding elementary matrices. If you check the previous examples, you ll find that these matrices

More information

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

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017 Math 4A Notes Written by Victoria Kala vtkala@math.ucsb.edu Last updated June 11, 2017 Systems of Linear Equations A linear equation is an equation that can be written in the form a 1 x 1 + a 2 x 2 +...

More information

Gauss-Jordan elimination ( used in the videos below) stops when the augmented coefficient

Gauss-Jordan elimination ( used in the videos below) stops when the augmented coefficient To review these matrix methods for solving systems of linear equations, watch the following set of YouTube videos. They are followed by several practice problems for you to try, covering all the basic

More information

Row Reduced Echelon Form

Row Reduced Echelon Form Math 40 Row Reduced Echelon Form Solving systems of linear equations lies at the heart of linear algebra. In high school we learn to solve systems in or variables using elimination and substitution of

More information

Lecture 2 Systems of Linear Equations and Matrices, Continued

Lecture 2 Systems of Linear Equations and Matrices, Continued Lecture 2 Systems of Linear Equations and Matrices, Continued Math 19620 Outline of Lecture Algorithm for putting a matrix in row reduced echelon form - i.e. Gauss-Jordan Elimination Number of Solutions

More information

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to : MAC 0 Module Systems of Linear Equations and Matrices II Learning Objectives Upon completing this module, you should be able to :. Find the inverse of a square matrix.. Determine whether a matrix is invertible..

More information

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

Recall, we solved the system below in a previous section. Here, we learn another method. x + 4y = 14 5x + 3y = 2 We will learn how to use a matrix to solve a system of equations. College algebra Class notes Matrices and Systems of Equations (section 6.) Recall, we solved the system below in a previous section. Here,

More information

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations

Chapter 1 Linear Equations. 1.1 Systems of Linear Equations Chapter Linear Equations. Systems of Linear Equations A linear equation in the n variables x, x 2,..., x n is one that can be expressed in the form a x + a 2 x 2 + + a n x n = b where a, a 2,..., a n and

More information

Lecture 1 Systems of Linear Equations and Matrices

Lecture 1 Systems of Linear Equations and Matrices Lecture 1 Systems of Linear Equations and Matrices Math 19620 Outline of Course Linear Equations and Matrices Linear Transformations, Inverses Bases, Linear Independence, Subspaces Abstract Vector Spaces

More information

7.6 The Inverse of a Square Matrix

7.6 The Inverse of a Square Matrix 7.6 The Inverse of a Square Matrix Copyright Cengage Learning. All rights reserved. What You Should Learn Verify that two matrices are inverses of each other. Use Gauss-Jordan elimination to find inverses

More information

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations. POLI 7 - Mathematical and Statistical Foundations Prof S Saiegh Fall Lecture Notes - Class 4 October 4, Linear Algebra The analysis of many models in the social sciences reduces to the study of systems

More information

CHAPTER 8: MATRICES and DETERMINANTS

CHAPTER 8: MATRICES and DETERMINANTS (Section 8.1: Matrices and Determinants) 8.01 CHAPTER 8: MATRICES and DETERMINANTS The material in this chapter will be covered in your Linear Algebra class (Math 254 at Mesa). SECTION 8.1: MATRICES and

More information

Methods for Solving Linear Systems Part 2

Methods for Solving Linear Systems Part 2 Methods for Solving Linear Systems Part 2 We have studied the properties of matrices and found out that there are more ways that we can solve Linear Systems. In Section 7.3, we learned that we can use

More information

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

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3 Math 0 Row Reduced Echelon Form Techniques for solving systems of linear equations lie at the heart of linear algebra. In high school we learn to solve systems with or variables using elimination and substitution

More information

Solving Systems of Linear Equations Using Matrices

Solving Systems of Linear Equations Using Matrices Solving Systems of Linear Equations Using Matrices What is a Matrix? A matrix is a compact grid or array of numbers. It can be created from a system of equations and used to solve the system of equations.

More information

9.1 - Systems of Linear Equations: Two Variables

9.1 - Systems of Linear Equations: Two Variables 9.1 - Systems of Linear Equations: Two Variables Recall that a system of equations consists of two or more equations each with two or more variables. A solution to a system in two variables is an ordered

More information

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions Math 308 Midterm Answers and Comments July 18, 2011 Part A. Short answer questions (1) Compute the determinant of the matrix a 3 3 1 1 2. 1 a 3 The determinant is 2a 2 12. Comments: Everyone seemed to

More information

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

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ] Matrices: Definition: An m n matrix, A m n is a rectangular array of numbers with m rows and n columns: a, a, a,n a, a, a,n A m,n =...... a m, a m, a m,n Each a i,j is the entry at the i th row, j th column.

More information

Matrices, Row Reduction of Matrices

Matrices, Row Reduction of Matrices Matrices, Row Reduction of Matrices October 9, 014 1 Row Reduction and Echelon Forms In the previous section, we saw a procedure for solving systems of equations It is simple in that it consists of only

More information

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1 1 Rows first, columns second. Remember that. R then C. 1 A matrix is a set of real or complex numbers arranged in a rectangular array. They can be any size and shape (provided they are rectangular). A

More information

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

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix Pre-Calculus I 8.1 Matrix Solutions to Linear Systems A matrix is a rectangular array of elements. o An array is a systematic arrangement of numbers or symbols in rows and columns. Matrices (the plural

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations pages 58-62 are a repeat of matrix notes. New material begins on page 63. Matrix operations: Mathcad

More information

Systems of Linear Equations

Systems of Linear Equations Systems of Linear Equations Linear Equation Definition Any equation that is equivalent to the following format a a ann b (.) where,,, n are unknown variables and a, a,, an, b are known numbers (the so

More information

22A-2 SUMMER 2014 LECTURE 5

22A-2 SUMMER 2014 LECTURE 5 A- SUMMER 0 LECTURE 5 NATHANIEL GALLUP Agenda Elimination to the identity matrix Inverse matrices LU factorization Elimination to the identity matrix Previously, we have used elimination to get a system

More information

Matrix Algebra: Introduction

Matrix Algebra: Introduction Matrix Algebra: Introduction Matrices and Determinants were discovered and developed in the eighteenth and nineteenth centuries. Initially, their development dealt with transformation of geometric objects

More information

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

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education MTH 3 Linear Algebra Study Guide Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education June 3, ii Contents Table of Contents iii Matrix Algebra. Real Life

More information

3 Fields, Elementary Matrices and Calculating Inverses

3 Fields, Elementary Matrices and Calculating Inverses 3 Fields, Elementary Matrices and Calculating Inverses 3. Fields So far we have worked with matrices whose entries are real numbers (and systems of equations whose coefficients and solutions are real numbers).

More information

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

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 Question 1 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 Quang T. Bach Math 18 October 18, 2017 1 / 17 Question 2 1 2 Let A = 3 4 1 2 3

More information

Elementary Linear Algebra

Elementary Linear Algebra Elementary Linear Algebra Linear algebra is the study of; linear sets of equations and their transformation properties. Linear algebra allows the analysis of; rotations in space, least squares fitting,

More information

All of my class notes can be found at

All of my class notes can be found at My name is Leon Hostetler I am currently a student at Florida State University majoring in physics as well as applied and computational mathematics Feel free to download, print, and use these class notes

More information

Basic matrix operations

Basic matrix operations Roberto s Notes on Linear Algebra Chapter 4: Matrix algebra Section 3 Basic matrix operations What you need to know already: What a matrix is. he basic special types of matrices What you can learn here:

More information

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices

Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7. Inverse matrices Roberto s Notes on Linear Algebra Chapter 4: Matrix Algebra Section 7 Inverse matrices What you need to know already: How to add and multiply matrices. What elementary matrices are. What you can learn

More information

Introduction to Systems of Equations

Introduction to Systems of Equations Introduction to Systems of Equations Introduction A system of linear equations is a list of m linear equations in a common set of variables x, x,, x n. a, x + a, x + Ù + a,n x n = b a, x + a, x + Ù + a,n

More information

Final Exam Practice Problems Answers Math 24 Winter 2012

Final Exam Practice Problems Answers Math 24 Winter 2012 Final Exam Practice Problems Answers Math 4 Winter 0 () The Jordan product of two n n matrices is defined as A B = (AB + BA), where the products inside the parentheses are standard matrix product. Is the

More information

Number of solutions of a system

Number of solutions of a system Roberto s Notes on Linear Algebra Chapter 3: Linear systems and matrices Section 7 Number of solutions of a system What you need to know already: How to solve a linear system by using Gauss- Jordan elimination.

More information

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

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations Chapter 1: Systems of linear equations and matrices Section 1.1: Introduction to systems of linear equations Definition: A linear equation in n variables can be expressed in the form a 1 x 1 + a 2 x 2

More information

Section 6.2 Larger Systems of Linear Equations

Section 6.2 Larger Systems of Linear Equations Section 6.2 Larger Systems of Linear Equations Gaussian Elimination In general, to solve a system of linear equations using its augmented matrix, we use elementary row operations to arrive at a matrix

More information

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4 Linear Algebra Section. : LU Decomposition Section. : Permutations and transposes Wednesday, February 1th Math 01 Week # 1 The LU Decomposition We learned last time that we can factor a invertible matrix

More information

Linear Algebra March 16, 2019

Linear Algebra March 16, 2019 Linear Algebra March 16, 2019 2 Contents 0.1 Notation................................ 4 1 Systems of linear equations, and matrices 5 1.1 Systems of linear equations..................... 5 1.2 Augmented

More information

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

Gauss-Jordan Row Reduction and Reduced Row Echelon Form Gauss-Jordan Row Reduction and Reduced Row Echelon Form If we put the augmented matrix of a linear system in reduced row-echelon form, then we don t need to back-substitute to solve the system. To put

More information

Notes on Row Reduction

Notes on Row Reduction Notes on Row Reduction Francis J. Narcowich Department of Mathematics Texas A&M University September The Row-Reduction Algorithm The row-reduced form of a matrix contains a great deal of information, both

More information

2 Systems of Linear Equations

2 Systems of Linear Equations 2 Systems of Linear Equations A system of equations of the form or is called a system of linear equations. x + 2y = 7 2x y = 4 5p 6q + r = 4 2p + 3q 5r = 7 6p q + 4r = 2 Definition. An equation involving

More information

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.

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. Finite Mathematics Chapter 2 Section 2.1 Systems of Linear Equations: An Introduction Systems of Equations Recall that a system of two linear equations in two variables may be written in the general form

More information

MTH 2032 Semester II

MTH 2032 Semester II MTH 232 Semester II 2-2 Linear Algebra Reference Notes Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education December 28, 2 ii Contents Table of Contents

More information

Chapter 1. Vectors, Matrices, and Linear Spaces

Chapter 1. Vectors, Matrices, and Linear Spaces 1.4 Solving Systems of Linear Equations 1 Chapter 1. Vectors, Matrices, and Linear Spaces 1.4. Solving Systems of Linear Equations Note. We give an algorithm for solving a system of linear equations (called

More information

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

Math Matrix Approach to Solving Systems Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25 Math 102 6.3 "Matrix Approach to Solving Systems" Bibiana Lopez Crafton Hills College November 2010 (CHC) 6.3 November 2010 1 / 25 Objectives: * Define a matrix and determine its order. * Write the augmented

More information

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 1 Linear equations We now switch gears to discuss the topic of solving linear equations, and more interestingly, systems

More information

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

I am trying to keep these lessons as close to actual class room settings as possible. Greetings: I am trying to keep these lessons as close to actual class room settings as possible. They do not intend to replace the text book actually they will involve the text book. An advantage of a

More information

UNIT 3 INTERSECTIONS OF LINES AND PLANES

UNIT 3 INTERSECTIONS OF LINES AND PLANES UNIT 3 INTERSECTIONS OF LINES AND PLANES UNIT 3 INTERSECTIONS OF LINES AND PLANES...1 VECTOR EQUATIONS OF LINES IN SCALAR EQUATION OF LINES IN EQUATIONS OF LINES IN 2...2 2...4 3...6 VECTOR AND SCALAR

More information

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

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3 Linear Algebra Row Reduced Echelon Form Techniques for solving systems of linear equations lie at the heart of linear algebra. In high school we learn to solve systems with or variables using elimination

More information

MATH 320, WEEK 6: Linear Systems, Gaussian Elimination, Coefficient Matrices

MATH 320, WEEK 6: Linear Systems, Gaussian Elimination, Coefficient Matrices MATH 320, WEEK 6: Linear Systems, Gaussian Elimination, Coefficient Matrices We will now switch gears and focus on a branch of mathematics known as linear algebra. There are a few notes worth making before

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations CGN 42 - Computer Methods Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations Matrix operations: Adding / subtracting Transpose Multiplication Adding

More information

Math 123, Week 2: Matrix Operations, Inverses

Math 123, Week 2: Matrix Operations, Inverses Math 23, Week 2: Matrix Operations, Inverses Section : Matrices We have introduced ourselves to the grid-like coefficient matrix when performing Gaussian elimination We now formally define general matrices

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER 1 017/018 DR. ANTHONY BROWN. Lines and Their Equations.1. Slope of a Line and its y-intercept. In Euclidean geometry (where

More information

Matrices and RRE Form

Matrices and RRE Form Matrices and RRE Form Notation R is the real numbers, C is the complex numbers (we will only consider complex numbers towards the end of the course) is read as an element of For instance, x R means that

More information

Section 6.3. Matrices and Systems of Equations

Section 6.3. Matrices and Systems of Equations Section 6.3 Matrices and Systems of Equations Introduction Definitions A matrix is a rectangular array of numbers. Definitions A matrix is a rectangular array of numbers. For example: [ 4 7 π 3 2 5 Definitions

More information

And, even if it is square, we may not be able to use EROs to get to the identity matrix. Consider

And, even if it is square, we may not be able to use EROs to get to the identity matrix. Consider .2. Echelon Form and Reduced Row Echelon Form In this section, we address what we are trying to achieve by doing EROs. We are trying to turn any linear system into a simpler one. But what does simpler

More information

Fundamentals of Linear Algebra. Marcel B. Finan Arkansas Tech University c All Rights Reserved

Fundamentals of Linear Algebra. Marcel B. Finan Arkansas Tech University c All Rights Reserved Fundamentals of Linear Algebra Marcel B. Finan Arkansas Tech University c All Rights Reserved 2 PREFACE Linear algebra has evolved as a branch of mathematics with wide range of applications to the natural

More information

Review Packet 1 B 11 B 12 B 13 B = B 21 B 22 B 23 B 31 B 32 B 33 B 41 B 42 B 43

Review Packet 1 B 11 B 12 B 13 B = B 21 B 22 B 23 B 31 B 32 B 33 B 41 B 42 B 43 Review Packet. For each of the following, write the vector or matrix that is specified: a. e 3 R 4 b. D = diag{, 3, } c. e R 3 d. I. For each of the following matrices and vectors, give their dimension.

More information

1300 Linear Algebra and Vector Geometry

1300 Linear Algebra and Vector Geometry 1300 Linear Algebra and Vector Geometry R. Craigen Office: MH 523 Email: craigenr@umanitoba.ca May-June 2017 Introduction: linear equations Read 1.1 (in the text that is!) Go to course, class webpages.

More information

Lesson U2.1 Study Guide

Lesson U2.1 Study Guide Lesson U2.1 Study Guide Sunday, June 3, 2018 2:05 PM Matrix operations, The Inverse of a Matrix and Matrix Factorization Reading: Lay, Sections 2.1, 2.2, 2.3 and 2.5 (about 24 pages). MyMathLab: Lesson

More information

8-15. Stop by or call (630)

8-15. Stop by or call (630) To review the basics Matrices, what they represent, and how to find sum, scalar product, product, inverse, and determinant of matrices, watch the following set of YouTube videos. They are followed by several

More information

Elementary Linear Algebra

Elementary Linear Algebra Matrices J MUSCAT Elementary Linear Algebra Matrices Definition Dr J Muscat 2002 A matrix is a rectangular array of numbers, arranged in rows and columns a a 2 a 3 a n a 2 a 22 a 23 a 2n A = a m a mn We

More information

Math 1314 Week #14 Notes

Math 1314 Week #14 Notes Math 3 Week # Notes Section 5.: A system of equations consists of two or more equations. A solution to a system of equations is a point that satisfies all the equations in the system. In this chapter,

More information

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C = CHAPTER I BASIC NOTIONS (a) 8666 and 8833 (b) a =6,a =4 will work in the first case, but there are no possible such weightings to produce the second case, since Student and Student 3 have to end up with

More information

Recitation 8: Graphs and Adjacency Matrices

Recitation 8: Graphs and Adjacency Matrices Math 1b TA: Padraic Bartlett Recitation 8: Graphs and Adjacency Matrices Week 8 Caltech 2011 1 Random Question Suppose you take a large triangle XY Z, and divide it up with straight line segments into

More information

Introduction to Matrices and Linear Systems Ch. 3

Introduction to Matrices and Linear Systems Ch. 3 Introduction to Matrices and Linear Systems Ch. 3 Doreen De Leon Department of Mathematics, California State University, Fresno June, 5 Basic Matrix Concepts and Operations Section 3.4. Basic Matrix Concepts

More information

Linear Algebra Practice Problems

Linear Algebra Practice Problems Math 7, Professor Ramras Linear Algebra Practice Problems () Consider the following system of linear equations in the variables x, y, and z, in which the constants a and b are real numbers. x y + z = a

More information

Chapter 2 Notes, Linear Algebra 5e Lay

Chapter 2 Notes, Linear Algebra 5e Lay Contents.1 Operations with Matrices..................................1.1 Addition and Subtraction.............................1. Multiplication by a scalar............................ 3.1.3 Multiplication

More information

Vector Spaces. 9.1 Opening Remarks. Week Solvable or not solvable, that s the question. View at edx. Consider the picture

Vector Spaces. 9.1 Opening Remarks. Week Solvable or not solvable, that s the question. View at edx. Consider the picture Week9 Vector Spaces 9. Opening Remarks 9.. Solvable or not solvable, that s the question Consider the picture (,) (,) p(χ) = γ + γ χ + γ χ (, ) depicting three points in R and a quadratic polynomial (polynomial

More information

MATH 54 - WORKSHEET 1 MONDAY 6/22

MATH 54 - WORKSHEET 1 MONDAY 6/22 MATH 54 - WORKSHEET 1 MONDAY 6/22 Row Operations: (1 (Replacement Add a multiple of one row to another row. (2 (Interchange Swap two rows. (3 (Scaling Multiply an entire row by a nonzero constant. A matrix

More information

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

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2 MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS SYSTEMS OF EQUATIONS AND MATRICES Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination Winfried Just, Ohio University September 22, 2017 Review: The coefficient matrix Consider a system of m linear equations in n variables.

More information

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han Linear Algebra for Beginners Open Doors to Great Careers Richard Han Copyright 2018 Richard Han All rights reserved. CONTENTS PREFACE... 7 1 - INTRODUCTION... 8 2 SOLVING SYSTEMS OF LINEAR EQUATIONS...

More information

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

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University Systems of Linear Equations By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University Standard of Competency: Understanding the properties of systems of linear equations, matrices,

More information

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

The matrix will only be consistent if the last entry of row three is 0, meaning 2b 3 + b 2 b 1 = 0. ) Find all solutions of the linear system. Express the answer in vector form. x + 2x + x + x 5 = 2 2x 2 + 2x + 2x + x 5 = 8 x + 2x + x + 9x 5 = 2 2 Solution: Reduce the augmented matrix [ 2 2 2 8 ] to

More information

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

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions. Review for Exam. Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions. x + y z = 2 x + 2y + z = 3 x + y + (a 2 5)z = a 2 The augmented matrix for

More information

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS

Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS 22M:33 J. Simon page 1 of 7 22M:33 Summer 06 J. Simon Example 1. Handout 1 EXAMPLES OF SOLVING SYSTEMS OF LINEAR EQUATIONS 2x 1 + 3x 2 5x 3 = 10 3x 1 + 5x 2 + 6x 3 = 16 x 1 + 5x 2 x 3 = 10 Step 1. Write

More information

An Introduction To Linear Algebra. Kuttler

An Introduction To Linear Algebra. Kuttler An Introduction To Linear Algebra Kuttler April, 7 Contents Introduction 7 F n 9 Outcomes 9 Algebra in F n Systems Of Equations Outcomes Systems Of Equations, Geometric Interpretations Systems Of Equations,

More information

Chapter 9: Systems of Equations and Inequalities

Chapter 9: Systems of Equations and Inequalities Chapter 9: Systems of Equations and Inequalities 9. Systems of Equations Solve the system of equations below. By this we mean, find pair(s) of numbers (x, y) (if possible) that satisfy both equations.

More information

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

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved. 7.5 Operations with Matrices Copyright Cengage Learning. All rights reserved. What You Should Learn Decide whether two matrices are equal. Add and subtract matrices and multiply matrices by scalars. Multiply

More information

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

Chapter 3. Linear Equations. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 1 / 33 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

More information

A First Course in Linear Algebra

A First Course in Linear Algebra A First Course in Li... Authored by Mr. Mohammed K A K... 6.0" x 9.0" (15.24 x 22.86 cm) Black & White on White paper 130 pages ISBN-13: 9781502901811 ISBN-10: 1502901811 Digital Proofer A First Course

More information

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics. The Basics of Linear Algebra

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics. The Basics of Linear Algebra Lecture Notes in Mathematics Arkansas Tech University Department of Mathematics The Basics of Linear Algebra Marcel B. Finan c All Rights Reserved Last Updated November 30, 2015 2 Preface Linear algebra

More information

CHAPTER 8: MATRICES and DETERMINANTS

CHAPTER 8: MATRICES and DETERMINANTS (Section 8.1: Matrices and Determinants) 8.01 CHAPTER 8: MATRICES and DETERMINANTS The material in this chapter will be covered in your Linear Algebra class (Math 254 at Mesa). SECTION 8.1: MATRICES and

More information

Review of matrices. Let m, n IN. A rectangle of numbers written like A =

Review of matrices. Let m, n IN. A rectangle of numbers written like A = Review of matrices Let m, n IN. A rectangle of numbers written like a 11 a 12... a 1n a 21 a 22... a 2n A =...... a m1 a m2... a mn where each a ij IR is called a matrix with m rows and n columns or an

More information

Solving Ax = b w/ different b s: LU-Factorization

Solving Ax = b w/ different b s: LU-Factorization Solving Ax = b w/ different b s: LU-Factorization Linear Algebra Josh Engwer TTU 14 September 2015 Josh Engwer (TTU) Solving Ax = b w/ different b s: LU-Factorization 14 September 2015 1 / 21 Elementary

More information

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33 Linear Algebra 1/33 Vectors A vector is a magnitude and a direction Magnitude = v Direction Also known as norm, length Represented by unit vectors (vectors with a length of 1 that point along distinct

More information