A Primer on Solving Systems of Linear Equations

Similar documents
1300 Linear Algebra and Vector Geometry

det(ka) = k n det A.

Matrices. Ellen Kulinsky

CPE 310: Numerical Analysis for Engineers

Matrices. Ellen Kulinsky

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

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

Matrices, Row Reduction of Matrices

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

MH1200 Final 2014/2015

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

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

Linear Algebra Tutorial for Math3315/CSE3365 Daniel R. Reynolds

y b where U. matrix inverse A 1 ( L. 1 U 1. L 1 U 13 U 23 U 33 U 13 2 U 12 1

Chapter 9: Gaussian Elimination

CHAPTER 8: MATRICES and DETERMINANTS

Relationships Between Planes

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

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 and differential equations (Math 54): Lecture 7

A2H Assignment #8 Cramer s Rule Unit 2: Matrices and Systems. DUE Date: Friday 12/2 as a Packet. 3x 2y = 10 5x + 3y = 4. determinant.

9 Appendix. Determinants and Cramer s formula

Numerical Analysis Fall. Gauss Elimination

MTH 306 Spring Term 2007

7.3. Determinants. Introduction. Prerequisites. Learning Outcomes

Linear algebra and differential equations (Math 54): Lecture 8

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

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

Math Linear Algebra Final Exam Review Sheet

Determinants: Uniqueness and more

Solving Linear Systems Using Gaussian Elimination. How can we solve


12.1 Systems of Linear equations: Substitution and Elimination

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Outcomes

Gaussian Elimination and Back Substitution

Math Camp Notes: Linear Algebra I

REVIEW FOR EXAM II. The exam covers sections , the part of 3.7 on Markov chains, and

Section 6.3. Matrices and Systems of Equations

MATH 2030: EIGENVALUES AND EIGENVECTORS

Matrices and Determinants

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

Cofactors and Laplace s expansion theorem

Chapter 5: Matrices. Daniel Chan. Semester UNSW. Daniel Chan (UNSW) Chapter 5: Matrices Semester / 33

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

Chapter 9: Systems of Equations and Inequalities

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

CHAPTER 8: MATRICES and DETERMINANTS

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

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

Chapter 4 Systems of Linear Equations; Matrices

Matrix Inverses. November 19, 2014

Solving Consistent Linear Systems

Linear Algebra and Matrix Inversion

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

a11 a A = : a 21 a 22

22A-2 SUMMER 2014 LECTURE 5

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

Volume in n Dimensions

CHAPTER 8: Matrices and Determinants

Algebra 2 Matrices. Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Find.

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

4.1 Matrix Operations

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

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

CIRCUIT ANALYSIS TECHNIQUES

Ex 3: 5.01,5.08,6.04,6.05,6.06,6.07,6.12

8.4. Systems of Equations in Three Variables. Identifying Solutions 2/20/2018. Example. Identifying Solutions. Solving Systems in Three Variables

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination

4 Elementary matrices, continued

Chapter 4. Solving Systems of Equations. Chapter 4

Linear Algebra II. 2 Matrices. Notes 2 21st October Matrix algebra

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

[ Here 21 is the dot product of (3, 1, 2, 5) with (2, 3, 1, 2), and 31 is the dot product of

Row Reduction

Announcements Wednesday, October 25

MA 527 first midterm review problems Hopefully final version as of October 2nd

(17) (18)

MATH 310, REVIEW SHEET 2

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

Unit 3: Matrices. Juan Luis Melero and Eduardo Eyras. September 2018

Vector and Affine Math

Matrix Algebra: Definitions and Basic Operations

1 Last time: determinants

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

MAC Module 1 Systems of Linear Equations and Matrices I

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Derivation of the Kalman Filter

Section 6.2 Larger Systems of Linear Equations

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

Linear Algebraic Equations

Determinant of a Matrix

Chapter 2. Solving Systems of Equations. 2.1 Gaussian elimination

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

EC5555 Economics Masters Refresher Course in Mathematics September 2014

ECON 331 Homework #2 - Solution. In a closed model the vector of external demand is zero, so the matrix equation writes:

Gauss-Jordan Row Reduction and Reduced Row Echelon Form

1 GSW Gaussian Elimination

MTH 2032 Semester II

1 Matrices and Systems of Linear Equations

Transcription:

A Primer on Solving Systems of Linear Equations In Signals and Systems, as well as other subjects in Unified, it will often be necessary to solve systems of linear equations, such as x + 2y + z = 2x + 5y + 2z = 2 () x + y + z = There are are at least three ways to solve this set of equations: Elimination of variables, Gaussian reduction, and Cramer s rule. These three approaches are discussed below. Elimination of Variables Elimination of variables is the method you learned in high school. In the example, you first eliminate x from the second two equations, by subtracting twice the first equation from the second, and subtracting the first equation from the third. The three equations then become x + 2y + z = y z = 0 (2) y 2z = 2 Next, y is eliminated from the third equation, by adding the (new) second equation to the third, yielding x + 2y + z = y z = 0 () 6z = 2 From the third equation, we conclude that From the second equation, we conclude that Finally, from the first equation, we find that z = () y = z = (5) x = 2y z = (6)

Gaussian Reduction A more organized way of solving the system of equations is Gaussian reduction. First, the augmented matrix of the system is formed: 2 2 (7) Each row of the augmented matrix corresponds to one equation in the system of equations. The first three elements of each row are the coefficients of x, y, and z in the equation. The fourth element in each row is the right-hand side of the corresponding equation. The goal of the reduction process is to apply row operations to the matrix to get zeros below the first diagonal of the matrix. To do this for the example, subtract twice the first row from the second, and the first row from the third, to obtain 2 0 0 (8) 0 2 2 This produces zeros in the first column below the diagonal. Then add the second row to the third to obtain 2 0 0 (9) 0 0 6 2 Normally, the process is stopped at this point, and back substitution is used to solve for the variables. That is, the array above is really the same as the last reduction we did in elimination of variables, so we can proceed as before. Alternatively, we could continue the process further, by dividing the third row by -6, and then eliminating terms above the diagonal as well, as follows: 2 0 0 (0) 0 0 Subtract times the third row from the first, and add times the third row to the second: 2 0 2 0 0 () 0 0 Finally, subtract 2 times the second row from the first: 0 0 0 0 (2) 0 0 2

from which we conclude that x = y = z = as before. There is really no need to repeatedly write down the augmented matrix. Instead, it is convenient to write down the matrix with space between the rows, and update a row at a time, crossing out the old row. (See attached page.) Note that the two methods, elimination of variables and Gaussian reduction, are really the same approach. The only real difference is that in Gaussian reduction, we don t bother to write down x, y, and z. Instead, the variables are associated with columns of the augmented matrix. Cramer s Rule Cramer s Rule is a method that is useful primarily for low-order systems, with two or three unknowns. Cramer s rules states that each unknown can be expressed as the ratio of two matrix determinants. For example, x (the first variable) is given by 2 28 x = = = () 2 6 The denominator is the determinant of the matrix of coefficients of the equation, i.e., 2 The numerator is the determinant of the same matrix, except with the first column replaced by the three numbers on the right-hand side of the equations. Likewise, y is found by a similar ratio, with the top matrix found by replacing the second column

of the denominator matrix by the right-hand side column: 2 2 2 8 y = = = 2 6 () Finally, z = 2 2 = = 2 6 Cramer s rule is very handy for second- and third-order systems. However, it is much less useful for larger systems, because the determinant calculation becomes prohibitive, if done in the conventional way. (See section below.) Determinants can also be found by Gaussian reduction; however, the reduction process does more than determine the determinant, it also solves the equations! So just use Cramer s rule for small toy problems. (5) Determinants Finally, you need to know how to take determinants of matrices. For second-order matrices, For third-order systems, a b c d = ad bc (6) a b c d e f = aei + bfg + cdh afh bdi ceg g h i (7) Both of these have an obvious pattern each of the terms is the product of diagonals, with a + sign for one direction of diagonal, and a sign for the other direction. Note that for the third-order case, the diagonals wrap around. For higher-order systems, there are two approaches to find the determinant. One approach is to do Gaussian reduction to obtain a triangular matrix. The determinant is then the product of the terms on the main diagonal. The other approach is to decompose the determinant along, say, the first row of the matrix. For each element A j along the first row of the matrix, find the matrix

formed by deleting the first row and jth column. Call the determinant of that matrix d j. Then a = A d A 2 d 2 +... ( ) n A n d n (8) For example, a b c d e f = a e f g h i h i b d f g i + c d e g h (9) Actually, we can expand on any row or column as above. When expanding on an even-numbered row or column, the sign of the determinant is changed. The only problem with the approach is that the amount of calculation required to calculate the determinant using this approach goes like n!, but only goes like n using Gaussian reduction. So it usually isn t used for systems much higher than third order. 5