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

Similar documents
Solving Equations Quick Reference

Algebra & Trig Review

STEP Support Programme. Hints and Partial Solutions for Assignment 17

2017 SUMMER REVIEW FOR STUDENTS ENTERING GEOMETRY

1 Introduction. 2 Solving Linear Equations

1 Introduction. 2 Solving Linear Equations. Charlotte Teacher Institute, Modular Arithmetic

Quadratic Equations Part I

Chapter 1 Review of Equations and Inequalities

A-Level Notes CORE 1

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

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Algebra Exam. Solutions and Grading Guide

Geometry 21 Summer Work Packet Review and Study Guide

Math Precalculus I University of Hawai i at Mānoa Spring

Introduction. So, why did I even bother to write this?

MEI Core 1. Basic Algebra. Section 1: Basic algebraic manipulation and solving simple equations. Manipulating algebraic expressions

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Math Lecture 3 Notes

Algebra 31 Summer Work Packet Review and Study Guide

Solving Quadratic & Higher Degree Equations

SCIE 4101 Fall Math Review Packet #2 Notes Patterns and Algebra I Topics

Polynomials; Add/Subtract

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

Physics Motion Math. (Read objectives on screen.)

Answers to the problems will be posted on the school website, go to Academics tab, then select Mathematics and select Summer Packets.

Unit 7: Factoring Quadratic Polynomials

Lesson 21 Not So Dramatic Quadratics

32. SOLVING LINEAR EQUATIONS IN ONE VARIABLE

COLLEGE ALGEBRA. Paul Dawkins

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

Math Precalculus I University of Hawai i at Mānoa Spring

9.4 Radical Expressions

ABE Math Review Package

Part 2 - Beginning Algebra Summary

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

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

2-7 Solving Quadratic Inequalities. ax 2 + bx + c > 0 (a 0)

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.

Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities)

Math 120. x x 4 x. . In this problem, we are combining fractions. To do this, we must have

SCIE 4101 Spring Math Review Packet #2 Notes Algebra I

Conceptual Explanations: Simultaneous Equations Distance, rate, and time

MA094 Part 2 - Beginning Algebra Summary

Prealgebra. Edition 5

Algebra Review. Finding Zeros (Roots) of Quadratics, Cubics, and Quartics. Kasten, Algebra 2. Algebra Review

CHAPTER 1 LINEAR EQUATIONS

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

WSMA Algebra - Expressions Lesson 14

( )( b + c) = ab + ac, but it can also be ( )( a) = ba + ca. Let s use the distributive property on a couple of

Algebra 2 Segment 1 Lesson Summary Notes

Solving Quadratic & Higher Degree Equations

Algebra 2 Summer Work Packet Review and Study Guide

Lesson 3-2: Solving Linear Systems Algebraically

Chapter 5 Simplifying Formulas and Solving Equations

Basic ALGEBRA 2 SUMMER PACKET

MA 1128: Lecture 08 03/02/2018. Linear Equations from Graphs And Linear Inequalities

MITOCW ocw-18_02-f07-lec02_220k

Ch. 12 Higher Degree Equations Rational Root

Section 2.7 Solving Linear Inequalities

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

CH 59 SQUARE ROOTS. Every positive number has two square roots. Ch 59 Square Roots. Introduction

Edexcel AS and A Level Mathematics Year 1/AS - Pure Mathematics

POLYNOMIAL EXPRESSIONS PART 1

Math 302 Module 4. Department of Mathematics College of the Redwoods. June 17, 2011

Section 1.1: Patterns in Division

Please bring the task to your first physics lesson and hand it to the teacher.

How to use these notes

CH 73 THE QUADRATIC FORMULA, PART II

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

June If you want, you may scan your assignment and convert it to a.pdf file and it to me.

Take the Anxiety Out of Word Problems

Math 5a Reading Assignments for Sections

Secondary Math 2H Unit 3 Notes: Factoring and Solving Quadratics

Chapter 1. Foundations of GMAT Math. Arithmetic

Chapter 2A - Solving Equations

Are you ready for Algebra 3? Summer Packet *Required for all Algebra 3/Trigonometry Students*

CS1800: Mathematical Induction. Professor Kevin Gold

Differential Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Quadratic Equations

1.2 The Role of Variables

Provide Computational Solutions to Power Engineering Problems SAMPLE. Learner Guide. Version 3

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

Suppose we have the set of all real numbers, R, and two operations, +, and *. Then the following are assumed to be true.

Student Instruction Sheet: Unit 3, Lesson 3. Solving Quadratic Relations

Matrices, Row Reduction of Matrices

Algebra 1: Hutschenreuter Chapter 10 Notes Adding and Subtracting Polynomials

Chapter 3 Representations of a Linear Relation

Solving and Graphing a Linear Inequality of a Single Variable

No Solution Equations Let s look at the following equation: 2 +3=2 +7

STARTING WITH CONFIDENCE

Module 3 Study Guide. GCF Method: Notice that a polynomial like 2x 2 8 xy+9 y 2 can't be factored by this method.

When they compared their results, they had an interesting discussion:

CALCULUS I. Review. Paul Dawkins

Algebra One Dictionary

Solving Equations by Adding and Subtracting

Lesson 5b Solving Quadratic Equations

Getting Started with Communications Engineering

CAHSEE on Target UC Davis, School and University Partnerships

Math 119 Main Points of Discussion

Check boxes of Edited Copy of Sp Topics (was 261-pilot)

Transcription:

Math 138: Introduction to solving systems of equations with matrices. Pedagogy focus: Concept of equation balance, integer arithmetic, quadratic equations. The Concept of Balance for Systems of Equations Before beginning to investigate lines and parabolas with matrices, we must talk about three principles of balance for equation solving. Balance Principle #1 (Adding rows to rows OK): Equal Quantities added to Equal Quantities results in still Equal Quantities. To explain BP#1 further: There is no doubt that 2 = 2 And similarly it is clear that 3 = 3 So, if we add them both together, is it not clear that 2 + 3 = 2 + 3 5=5? Another way to think about it is with a balance scale. If you have 2 unit weights on each side of a scale and you put on 3 unit weights on each side, the scale is still in balance and now has 5 weights on each side. What this essentially means, when we work with matrices which will represent equations, is that adding rows to rows does not change the information or solutions created by the initial system.

Balance Principle #2 (Multiplying a Row by a Number OK): If equal quantities are both multiplied by the same number, the result is still equal quantities. This is really just the same thing as BP#1 if one recalls that multiplication is defined as repeated addition, or n a = a + + a. Using the example as above, n times Clearly 2=2 Doesn t 3 2 = 3 2? or; 2 + 2 + 2 = 2 + 2 + 2? Yes, since 3 2 = 2 + 2 + 2, and if we add the same number of 2 s to both sides of a balance scale, it will still be in balance. Also note that since division can be thought of as multiplication by a fraction, then BP#2 also means we can divide an equation, or row of a matrix, and still have a true balanced equation. For example, 4 = 1 4 = 2, so: 2 2 Balance Principle #3 (Row Switching is OK) If two sets of equal quantities are equal, the order they are presented does not matter. This is perhaps the easiest principle to understand, which essentially says that the order of equations in a given system does not change the solution, or information, given in the system. For example, 2=2 and 3=3 is the same as: 3=3 and 2=2.

Example. Let s suppose we wish to find two numbers such that they both add to 7 and the largest minus the smaller equals 1. What are the two numbers? Solution: If we let the larger number be x and the smaller number be y then we get the following system of linear (1 st degree) equations: x + y = 7 x y = 1 Now, we will put this system into a matrix as follows: x y # 1 1 7 1 1 1 Note: The two columns of numbers towards the left represent the coefficients multiplying the variables x and y. The basic idea for solving the system with a matrix is to keep applying the three principles of balance in order to achieve a matrix representation like: x y # 1 0 ω 0 1 φ If we can get these left two columns of numbers, 1 0 to show up while keeping the 0 1 overall system in balance, then we will have solved the system, since this would result in: 1 x + 0 y = x = ω and 0 x + 1 y = y = φ where the symbols ω and φ just represent some numbers which are the solutions to the system. So, let s proceed to solve this system using the balance steps:

1 1 7 1 1 1 1. Our first goal is to achieve a 1 in the upper left corner. In this case we have that, but if we didn t we could switch rows if there is a one in the right position in the bottom row; or, we could divide the row to make a 1 (division is actually the same as multiplication since 4 = 1 4 ). We call these numbers on the diagonal pivots. 2 2 2. Our next goal, after having a 1 in the pivot position, is to make zeros underneath the 1. Remember we can add rows to other rows and we can multiply rows also; but, we can also multiply AND add a row to another row. In our method, we will always ADD rows so that we don t get confused. Below the pivot is a 1, so I would like to add a 1 to it so that I can zero it out. So, to do this we will multiply ALL of row 1 by 1 and then add that row to row 2. We can write this like: R1 + R2 for our new row 2. It is helpful to pencil-in the row that you are adding underneath the second row as such: 1 1 7 1 1 1 + 1 1 7 This gives us the new matrix, which is still in balance: 1 1 7 0 2 6 3. Working in a kind of counter clockwise direction, we next want to make a 1 in the pivot position of the second row (currently occupied by the number 2). When making this pivot, one would not want to add row 1 at all, since that would destroy the nice zero we just made, so it is best to divide the row at this point, which in this case would be a step such as: 1 R2, which would give us: 2 1 1 7 0 1 3

4. We have almost reached our goal of making 1 0 0 1 show up for the coefficients of the variables. All that is needed to be done is to make a zero above the pivot in the second row. To do this we will use row 2 since when we add the correct multiple of that row to row 1, the 0 in row 2 will never disturb the pivot in row 1. So, at this point, 1 R2 + R1 would achieve our goal: giving us our solution matrix: + 0 1 3 1 1 7 0 1 3 1 0 4 0 1 3 LOOKING BACK Going back to the original system of equations, let s see if x = 4 and y = 3 forms a solution for both of the equations: 4 + 3 = 7 4 3 = 1 in which case, we observe that the solutions work and we have found the two numbers. 3.1.2 Example. Now for a similar example involving fractions, suppose that twice a number plus another number is 17, and twice the first number plus three times the second number is 27. What are the two numbers? Solution: Reading the last sentence first, we can assign the typical variables, x and y for the unknown first and second numbers, respectively. Working with the given information, we have the following system:

2x + y = 17 2x + 3y = 27 giving us the following matrix system to reduce: 2 1 17 2 3 27 1. Remember our first goal is to get a 1 in the upper-left pivot position, but in this case we did not already have a 1. It is usually the case to divide the first row by 2, but since there is also a 2 below it, if we wanted, we could knock out the 2 below the 2 in the first row now. (instead of subtracting, we always add to avoid confusion, so in this case we have row1 + row2: 2 1 17 2 3 27 + 2 1 17 which gives us: 2 1 17 0 2 10 2. We can now confront the need to do the operation row1. (or we could make a 1 in 2 the second row by dividing by a 2, it is totally up to you!) 1 1 17 2 2 0 2 10 3. Since, in the way we are showing the steps, we didn t make the 1 in the second row yet, we now do this with the row operation row2 2 : 1 1 2 17 2 0 1 5

4. Almost finished! This one is a bit harder because it involves fractions. Just keep a steady focus and keep performing the correct balance operations until your goal matrix is achieved. We would like to make a zero above the pivot in the second row, we need to add 1 2 row2 + row1 as follows: + 0 1 5 2 2 1 1 17 2 2 0 1 5 giving us our goal coefficient matrix and subsequent solution: 1 0 12 2 0 6 1 0 1 5 0 1 5 The two numbers are 6 and 5! LOOKING BACK A quick check shows that the solutions fit the original equations and make sense in the overall problem: 2 6 + 5 = 12 + 5 = 17 2 6 + 3 5 = 12 + 15 = 27 Finding Equations of Lines through Two Points The familiar approach to finding the equation of a line through two points runs something like this: 3.2.1 Example. Find the equation of the line through the points (3, 3) and ( 2,7). (Recall that the y intercept form for the equation of a line is: y = mx + b, and the slope going through two points (x 1, y 1 ) and (x 2, y 2 ) is defined as: m = y 2 y 1 x 2 x 1 ).

m = 3 7 3 ( 2) = 10 = 2 y = 2x + b 5 Now by plugging in either point, we can solve for b: 3 = 2 3 + b b = 3 + 6 = 3 The y intercept form for the equation of a line is: y = 2x + 3. Sometimes, the standard form of a line is asked for, which is of the form Ax + By = C, which essentially requires bring the x and y monomial terms to one side of the equation: LOOKING BACK 2x + y = 2x + ( 2x) + 3 = 0 + 3 = 3 2x + y = 3 Let s see if the given points satisfy the equation in standard form: 2(3) + ( 3) = 6 + ( 3) = 3 and 2( 2) + 7 = 4 + 7 = 3 verifies we found the correct equation through the two points In the next example, it will be demonstrated how to find the same equation through the given points, using a matrix to solve for the two unknowns, m and b. Example. Find the equation of the line through the points (3, 3) and ( 2,7) using a matrix approach. Plug in the given points into mx + b = yand develop a 2 2 system of equations as follows: m(3) + b = 3 and m( 2) + b = 7 3m + b = 3 2m + b = 7 Now, we can use our three principles of balance to find the unknown variables m and b:

1 2 R1+R2 3 1 3 3 R1 1 1 3 1 2 1 7 2 1 7 1 1 3 0 1 + 2 3 1 2 + 7 1 1 3 5 0 3 1 5 1 0 2 0 1 3 1 0 5 15 1 1 3 3 R2 1 5 R2 1 1 3 1 1 0 1 3 1 3 R2+R1 1 3 + 1 3 ( 1) + ( 1) 0 1 3 The final matrix reveals that m = 2 and b = 3 in agreement with the previous example s result that y = 2x + 3 as can be verified in the graph in Figure 3.1. Figure 1.1 Graph of y = 2x + 3 through two given points.

Solving 3 3 Systems for finding Equations of Parabolas When working with matrices, many of you might be thinking, why should we do these matrix methods since I can easily find these equations using methods I have already learned such as substitution. Well, it is true that you can solve a system using substitution, but the fact of the matter is that when working with much larger systems, the advantages of using matrices becomes more evident. As an example, imagine you were locked in a room, and the only way you could get out would be to solve a 10 10 system of equations. Well, using substitution, you might be in the room a long, long time; but, by using matrices and applying the exact same three balance principles we ve discussed, you could get out in about 10-15 minutes once you get the hang of it! So, let s up the system to the 3 3 level and begin to learn the general pattern. Example. I am thinking of three integers such that they all add to 19, five less than the sum of the first two numbers is the third number and the first number is twice the third number. What are the three numbers? Solution: Reading the last sentence first, we need to find three numbers, so let s use the standard algebra letters x, y, and z for the first, second and third numbers, respectively. The first relationship is not too difficult and comes out to: x + y + z = 19 In the second relationship, one must read carefully and understand the subtleties in the sentence. If you read it carefully enough, you should see that it amounts to the algebraic equation: (x + y) 5 = z For our matrix systems, the equations must have all of the letters on the left, and the numbers on the right; so, it is important to order the variables the same way. Using the typical convention, order the variables as x, y, z and rearrange the equation to get:

x + y z = 5 Try it on your own and see if you get the same result. In the above case the parentheses were really not needed, but they were included to emphasize that the 5 was being taken away from the entire sum of x + y. If you had been given a problem where it said that the third number was x + y less than the number 5, it would be important to understand that the x + y was grouped together; so, that statement would amount to an equation like: z = 5 (x + y) = 5 x y, and would have to be converted to x + y + z = 5. This little digression is not meant to confuse you, but make you aware of how careful one must be when converting words into equations in relation to the use of grouping symbols like parentheses. It is not a topic you can instantly understand, but must master through practice, making a few mistakes and finally getting successful results which you can check on your own by looking back. Back to the problem, the last relationship can also present some confusion when trying to write the equation. Many times when working with a relationship such as this, students pick the wrong variable to multiply by a number. To prevent this problem, try and identify which is the larger number. The statement says that the first number is twice the third number. Clearly it is the first number that is larger, so that would lead to the equation x = 2z. Remember, though, that for our matrix approach, we need all of the variables on the left side and in the correct order, leading to the equation: x 2z = 0. Now that we have the equations, we will further rewrite them by remembering to place all of the 0 s in for coefficients of variables which are not present in the equations: x + y + z = 19 x + y z = 5 x + 0 y 2z = 0 Having the equations in this form, we are finally ready to write down the matrix:

1 1 1 19 1 1 1 5 1 0 2 0 1. In the 3 3 case, our new goal coefficient matrix for the first three columns is 1 0 0 0 1 0. We are lucky we already have a 1 in the first pivot position, so now we will 0 0 1 do 2 balance operations at once and make 0 s underneath the 1 in the upper left position. This can easily be accomplished by doing row1 + row2 and row1 + row3. You might be wondering why I picked row1 as the row I used. You can actually pick any rows to use, since if you are using the principles of balance correctly, the system will still be in balance and contain the original information that was given in the problem. After doing a lot of this, one finds that it is easiest to just use the first row to do the elimination on all of the lower rows. If you did those operations, you would get the matrix: 1 1 1 19 0 0 2 14 0 1 3 19 2. Next, one could do BP#3 and then BP#2 by exchanging the second and third rows and then multiply the second row by 1. The reason for this is to focus on getting 1 0 0 the 1 in the second pivot position, in the second row (like my goal matrix 0 1 0 0 0 1 has in the position circled. Performing these operations gives us the matrix system: 1 1 1 19 0 1 3 19 0 0 2 14 3. Now, the focus can again move kind of counter-clockwise to the pivot in the third 1 0 0 row (i.e., 0 1 0 ), in which case we can make a 1 by the operation 1 row3, 2 0 0 1 giving us:

1 1 1 19 0 1 3 19. 0 0 1 7 4. Now, what is left is to begin making 0 s in the spots above the pivot positions. To make things faster, we can use row3 twice to zero out the numbers in row1 and row2. Try and think about why the following operations would do this: 3 row3 + row2 and 1 row3 + row1, in which case we would have the new representation: 1 1 0 12 0 1 0 2. 0 0 1 7 5. Almost finished since once the 1 is zeroed out above the second pivot, we will have our goal matrix! To do this we need only apply the balance operation, 1 row2 + row1, to get our answer: 1 0 0 14 0 1 0 2. 0 0 1 7 LOOKING BACK Let s check now and see if these solutions are the correct numbers by putting them into the original equations: 14 + ( 2) + 7 = 12 + 7 = 19 14 + ( 2) 7 = 12 7 = 5 14 2 7 = 14 14 = 0

Example. Find the equation of the parabola, in the form ax 2 + bx + c = y, running through the points (1,4), ( 1,12) and (2,9). First notice that if only two points are chosen, such as (1,4) and (2,9) then there are an infinite variety of parabolas that can go through those points. When we list the third point, it really narrows the choices down to only one unique parabola. This fact directly corresponds to the need for three equations, when solving for three unknowns, just as in the previous line example, only two equations/points are necessary to find the equation of a line. 1. First, we generate three equations by plugging in the given (x, y) ordered pair points: (1,4) a (1) 2 + b 1 + c = 4 a + b + c = 4 ( 1,12) a ( 1) 2 + b ( 1) + c = 12 a b + c = 12 (2,1) a (2) 2 + b (2) + c = 9 4a + 2b + c = 9 2. Now we can form a system matrix which solves for the unknowns a, b and c: 1 1 1 4 1 1 1 12 4 2 1 9 3. Finally, we simply apply the three principles of balance which reduces the matrix and finds the unknowns: 1 1 1 4 1 1 1 12 4 2 1 9 R1+R2 1 1 1 4 0 2 0 8 4 2 1 9 4R1+R3 1 1 1 4 0 2 0 8 0 2 3 7 1 2 R2 1 1 1 4 0 1 0 4 0 2 3 7 2 R2+R3 1 0 1 8 0 1 0 4 0 0 1 5 1 1 1 4 0 1 0 4 0 0 3 15 R3+R1 1 3 R3 1 1 4 1 1 0 0 3 0 1 0 4 0 0 1 5 0 1 0 4 0 0 1 5. R2+R1

LOOKING BACK The balance principles have yielded the result that a = 3, b = 4 and c = 5, suggesting that the unknown parabola has the equation: y = 3x 2 4x + 5. Checking to see that this parabola runs through the given points: 3(1) 2 4(1) + 5 = 3 4 + 5 = 4 3( 1) 2 4( 1) + 5 = 3 + 4 + 5 = 12 3(2) 2 4(2) + 5 = 3 4 8 + 5 = 12 8 + 5 = 9 confirming that we found the correct equation of a parabola, as can also be seen from the graph in Figure 3.2 Graph of y = 3x 2 4x + 5 through three given points.

Math 138 HP M1 homework continued: 8. I am thinking of three numbers such that the third number is three times the first number, the numbers all add to 55 and the third number is twice the second number. What are the three numbers. 9. Find the quadratic equation of the form y = ax 2 + bx + c going through the points (1,0); (-1,8); and (2,5). Enter the Matrix and Destroy Voldemort! 10. To find the magic number that Harry Potter needs to utter to destroy Lord Voldemort, he needs to figure out the formula for a quadratic equation, based on the inscription of three ordered pairs of integers found on the front of Dumbledore s tomb. If the equation, in the form of ax 2 + bx + c=y, can be found, then all Harry need do is to plug in the perfect number x=7 into the equation of the parabola the matrix finds, and then say the corresponding y digit to Voldemort, before casting the Havra Cadavre spell. The points on the tomb for the mystic parabola were ( 1,22) (1,6) and (2,1). What is the number he needs to say?