A Quick Introduction to Row Reduction

Similar documents
Introduction to Systems of Equations

Designing Information Devices and Systems I Spring 2018 Lecture Notes Note 3

Methods for Solving Linear Systems Part 2

Chapter 4. Solving Systems of Equations. Chapter 4

Matrices, Row Reduction of Matrices

Quadratic Equations Part I

MTHSC 3110 Section 1.1

Determinants and Scalar Multiplication

Differential Equations

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 3

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

To factor an expression means to write it as a product of factors instead of a sum of terms. The expression 3x

4 Elementary matrices, continued

System of Equations: An Introduction

Topic 14 Notes Jeremy Orloff

4 Elementary matrices, continued

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

Linear Algebra, Summer 2011, pt. 2

Section Gaussian Elimination

MA 1B PRACTICAL - HOMEWORK SET 3 SOLUTIONS. Solution. (d) We have matrix form Ax = b and vector equation 4

Chapter 1: Linear Equations

Lecture 22: Section 4.7

Section 6.3. Matrices and Systems of Equations

Chapter 1: Linear Equations

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

Lecture 2 Systems of Linear Equations and Matrices, Continued

1. Solve each linear system using Gaussian elimination or Gauss-Jordan reduction. The augmented matrix of this linear system is

Matrix Solutions to Linear Equations

Matrix Factorization Reading: Lay 2.5

1 Last time: linear systems and row operations

22A-2 SUMMER 2014 LECTURE 5

Math 1314 Week #14 Notes

Advanced Structural Analysis Prof. Devdas Menon Department of Civil Engineering Indian Institute of Technology, Madras

1.4 Gaussian Elimination Gaussian elimination: an algorithm for finding a (actually the ) reduced row echelon form of a matrix. A row echelon form

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

2.3 Solving Equations Containing Fractions and Decimals

Linear Algebra Handout

Exercise Sketch these lines and find their intersection.

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

Notes on Row Reduction

Row Reduction

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

Lecture No. # 07 Linear System Part 4

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

1 - Systems of Linear Equations

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

Math 54 HW 4 solutions

Lecture 10: Powers of Matrices, Difference Equations

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

36 What is Linear Algebra?

Math 138: Introduction to solving systems of equations with matrices. The Concept of Balance for Systems of Equations

Chapter 1. Linear Equations

Math 3C Lecture 20. John Douglas Moore

Last Time. x + 3y = 6 x + 2y = 1. x + 3y = 6 y = 1. 2x + 4y = 8 x 2y = 1. x + 3y = 6 2x y = 7. Lecture 2

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

3 Fields, Elementary Matrices and Calculating Inverses

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

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

INVERSE OF A MATRIX [2.2]

Solutions to Exam I MATH 304, section 6

Relationships Between Planes

1300 Linear Algebra and Vector Geometry

DIRECTED NUMBERS ADDING AND SUBTRACTING DIRECTED NUMBERS

x + 2y + 3z = 8 x + 3y = 7 x + 2z = 3

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

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

Methods of Mathematics

Lecture 9: Elementary Matrices

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

Solving Linear Systems Using Gaussian Elimination

System of Linear Equations

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

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

MATRICES. a m,1 a m,n A =

Solution to Proof Questions from September 1st

40h + 15c = c = h

Essentials of Intermediate Algebra

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

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

Linear Methods (Math 211) - Lecture 2

September 12, Math Analysis Ch 1 Review Solutions. #1. 8x + 10 = 4x 30 4x 4x 4x + 10 = x = x = 10.

Ordinary Differential Equations Prof. A. K. Nandakumaran Department of Mathematics Indian Institute of Science Bangalore

Matrix-Vector Products and the Matrix Equation Ax = b

Sections 6.1 and 6.2: Systems of Linear Equations

Getting Started with Communications Engineering

31. TRANSFORMING TOOL #2 (the Multiplication Property of Equality)

18.06 Problem Set 3 Due Wednesday, 27 February 2008 at 4 pm in

Chapter 5 Simplifying Formulas and Solving Equations

(Refer Slide Time: 1:02)

MIDTERM 1 - SOLUTIONS

Math 2331 Linear Algebra

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Matrix multiplications that do row operations

Chemical Reactivity. S Objective: Relate the reactivity and stability of different families of elements to their atomic structure.

Error Correcting Codes Prof. Dr. P. Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore

MTH 464: Computational Linear Algebra

MATH 310, REVIEW SHEET 2

Linear Equations in Linear Algebra

PH1105 Lecture Notes on Linear Algebra.

Mon Feb Matrix algebra and matrix inverses. Announcements: Warm-up Exercise:

Transcription:

A Quick Introduction to Row Reduction Gaussian Elimination Suppose we are asked to solve the system of equations 4x + 5x 2 + 6x 3 = 7 6x + 7x 2 + 8x 3 = 9. That is, we want to find all values of x, x 2 and x 3 so that these equations are simultaneously satisfied. How do we go about this? One procedure for doing so is called Gaussian elimination. By adding multiples of the equations to each other we hope to simplify the system enough that we can just read off the solutions. For example, if we replace the second equation by itself plus 4 times the first equation we get the system 3x 2 6x 3 = 9 6x + 7x 2 + 8x 3 = 9. This system is simpler than the first in that its second equation no longer involves x. If we now multiply the first equation by 6 and add it to the third equation we get 3x 2 6x 3 = 9 5x 2 0x 3 = 5. Now we have eliminated x from both the first and second equations. Now let s see if we can t get x 2 out of some of the others. We can multiply the second equation by /3 to get 5x 2 0x 3 = 5.

Now if we multiply the second equation by 5 and add it to the third equation the system becomes The third equation is clearly redundant, but we leave it anyway. We can eliminate x 2 from the first equation by adding -2 times the second equation: x x 3 = 2 At this point it should be clear that any choice we make for x 3 results in a solution to the system by setting x = 2 + x 3 and x 2 = 3 2x 3. Another way to put it is: x = 2 + x 3 x 2 = 3 2x 3 is free. x 3 The procedure we just went through is justified because at each step we produced a system with the same solutions as the original system. This is true in general. If we are trying to solve a system of equations, the following operations on the system do not alter the solutions: () Adding a multiple of one equation to another. (2) Multiplying an equation by a nonzero constant. (3) Changing the order of the equations. The fundamental idea behind Gaussian elimination is to use these operations to successively eliminate variables from the equations until it is clear what the solutions are. In particular we try to proceed as follows: use the first equation to eliminate x from all the other equations; then use the second equation to eliminate x 2 from all the other equations; then use the third equation to eliminate x 3 from the other equations; etc. Let s look at another example. Consider the system 2x + 4x 2 + 5x 3 5x 4 = 3 3x 6x 2 6x 3 + 8x 4 = 3. Since it will be easier to eliminate x using the second equation, we move it to the top: 2x + 4x 2 + 5x 3 5x 4 = 3 3x 6x 2 6x 3 + 8x 4 = 3.

We now add 2 times the first equation to the second to get 3x 3 + x 4 = 3 3x 6x 2 6x 3 + 8x 4 = 3 and now add -3 times the first equation to the third: 3x 3 + x 4 = 3 3x 3 + x 4 = 3. Since x 2 is missing from the second and third equations we move on to x 3. That is, we use the second equation to get rid of x 3 in the first and third. Adding the second equation to the third gives 3x 3 + x 4 = 3 We now multiply the second equation by /3: x 3 + (/3)x 4 = and then add the second equation to the first: 0 = 0 x 2x 2 + (0/3)x 4 = x 3 + (/3)x 4 = 0 = 0 At this point we see that for any choice of x 2 and x 4 we have a solution. Therefore the solution is x = + 2x 2 (0/3)x 4 x 2 is free x 3 = (/3)x 4 is free. x 4 2 Row Reduction We can streamline the Gaussian elimination process by collecting all of the numbers appearing in our system in a matrix and dealing exclusively with it.

The first system above gives rise to the augmented matrix 4x + 5x 2 + 6x 3 = 7 6x + 7x 2 + 8x 3 = 9. 2 3 4 4 5 6 7 6 7 8 9 The first three columns correspond to the coefficients in front of the variables whereas the last column represents the numbers to the right of the equals signs. We now carry out Gaussian elimination on this matrix. The steps are the same as before, but instead of equations we talk about rows. We add -4 times the first row to the second row to get 2 3 4 0 3 6 9 6 7 8 9 and then add -6 times the first row to the third: 2 3 4 0 3 6 9 0 5 0 5 Now we multiply the second row by /3, yielding 2 3 4 0 2 3 0 5 0 5 We then add 5 times the second row to the third: 2 3 4 0 2 3 0 0 0 0 and add -2 times the second row to the first: 0 2 0 2 3 0 0 0 0 At this point we can turn this back into a system, remembering that the numbers in the first three columns are the coefficients of the variables and the last column is what goes to the right of the equals signs: x x 3 = 2

This is exactly what we ended up with before. The process of Gaussian elimination when applied to a matrix is typically called row reduction. We can now rephrase the allowable steps in solving a system of equations in terms of rows of a matrix: () Adding a multiple of one row to another. (2) Multiplying a row by a nonzero constant. (3) Changing the order of the rows. These operations are called elementary row operations. Since they correspond to the operations that we are allowed to perform on a system of equations we have the following fact: If a matrix A represents a system of linear equations, then any matrix gotten from A by elementary row operations represents the same system. 3 The Matrix Equation Ax = b. Let A = 2 3 2 0 5 3,, x = x x 2 x 3, b = 0 Recall the definition of matrix-vector multiplication: 2 x + 2x 2 + x 3 Ax = x 3 + x 2 + x 3 2 = 3x x 2 + 2x 3 0 5 3 5x 2 + 3x 3 We therefore see that the matrix equation is exactly the same as the system Ax = b x + 2x 2 + x 3 = 0 3x x 2 + 2x 3 = 5x 2 + 3x 3 = Therefore, solving Ax = b for x is exactly the same as solving this system of equations, and this we know how to do via row reduction. We form the augmented matrix and row reduce. The augmented matrix is 3 2 2 0 0 5 3 0

Add 3 times row to row 2: Add - times row 2 to row 3: Multiply row 3 by -/2: 2 0 0 5 5 0 5 3 2 0 0 5 5 0 0 2 2 Add -5 times row 3 to row 2: 2 0 0 5 5 0 0 2 Add - times row 3 to row : Multiply row 2 by /5: 2 0 0 5 0 4 2 0 0 0 5 0 4 2 0 0 0 4/5 Finally, add -2 times row 2 to row : 0 0 3/5 0 0 4/5 This final matrix is equivalent to the system x = 3/5 x 2 = 4/5 x 3 =. In other words, the solution to Ax = b is x = 3/5 4/5

This example demonstrates a slight variant of the Gaussian elimination method from the first section. Namely (thinking in terms of equations again) we try to use the first equation to eliminate x from all equations below. Then we try to use the second equation to eliminate x 2 from all the equations below. Then we try to use the third equation to eliminate x 3 from all the equations below, etc.. Once we ve done this, we work from the bottom row up, eliminating variables as we go. A final note: when we try to solve a system of the form Ax = 0, we often just row reduce A without building an augmented matrix. This is because row operations on the augmented matrix ( A 0 ) wouldn t change the last column: it will always be a column of zeros. Therefore, we leave off the last column and just imagine that it s there. For example, if we wanted to solve ( ) x = 0 we would just row reduce ( Add row to row 2: ( 0 0 Now we remember that we re supposed to imagine an extra column of zeros. Therefore, this is equivalent to the system ). ). x + x 2 = 0 It is clear that x 2 can be anything and x = x 2. In other words, the solutions to Ax = 0 are ( ) ( ) x x = = x 0 2 where x 2 is free to take on any value.