using matrices to solve systems of equations matrix equations l we have solved systems using...

24
Using Matrices to Solve Systems of Equations

Upload: junior-walsh

Post on 16-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Using Matrices to Solve Systems of

Equations

Page 2: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Matrix Equations We have solved systems using

graphing, but now we learn how to do it using matrices. This will be particularly useful when we have equations with three variables.

Page 3: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Matrix Equation Before you start, make sure

that both of your equations are in standard form and the variables are in the same order (alphabetical usually is best).

Page 4: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Setting up the Matrix Equation

Given a system of equations-2x - 6y = 0

3x + 11y = 4 Since there are 2 equations, there

will be 2 rows. Since there are 2 variables, there

will be 2 columns.

Page 5: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

There are 3 parts to a matrix equation

1)The coefficient matrix,

2)the variable matrix, and

3)the constant matrix.

Setting up the Matrix Equation

Page 6: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

-2x - 6y = 03x + 11y = 4

The coefficients are placed into the coefficient matrix.

2 6

3 11

Page 7: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

-2x - 6y = 03x + 11y = 4

Your variable matrix will consist of a column.

x

y

Page 8: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

-2x - 6y = 03x + 11y = 4

The matrices are multiplied and represent the left side of our matrix equation.

x

y

2 6

3 11

Page 9: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

-2x - 6y = 03x + 11y = 4

The right side consists of our constants. Two equations = two rows.

0

4

Page 10: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

-2x - 6y = 03x + 11y = 4

Now put them together.

2 6

3 11

x

y

0

4

We’ll solve it later!

Page 11: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Create a matrix equation 3x - 2y = 7

y + 4x = 8 Put them in Standard Form. Write your equation.

3 2

4 1

x

y

7

8

Page 12: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

3a - 5b + 2c = 9

4a + 7b + c = 3

2a - c = 123 5 2

4 7 1

2 0 1

a

b

c

9

3

12

Create a matrix equation

Page 13: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

To solve matrix equations, get the variable matrix alone on one side.

Get rid of the coefficient matrix by multiplying by its inverse

Solving a matrix equation

Page 14: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

2 6

3 11

x

y

0

4

When solving matrix equations we will always multiply by the inverse matrix on the left of the coefficient and constant matrix. (remember commutative property does not hold!!)

Page 15: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

The left side of the equation simplifies to the identity times the variable matrix. Giving us just the variable matrix.

x

y

2 6

3 11

1 0

4

2 6

3 11

1 2 6

3 11

x

y

2 6

3 11

1 0

4

Page 16: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Using the calculator we can simplify the left side. The coefficient matrix will be A and the constant matrix will be B. We then find A-1B.

x

y

2 6

3 11

1 0

4

Page 17: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

The right side simplifies to give us our answer.

x = -6 y = 2 You can check the systems by

graphing, substitution or elimination.

x

y

6

2

Page 18: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Advantages

Basically, all you have to do is put in the coefficient matrix as A and the constant matrix as B. Then find A-1B. This will always work!!!

NO SOLVING FOR Y!!!!! :)

Page 19: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Solve: Plug in the coeff. matrix as A Put in the const. matrix as B Calculate A-1B.

3 2

4 1

x

y

7

8

x

y

2111 411

Page 20: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Solve: r - s + 3t = -8 2s - t = 15 3r + 2t = -7

1 1 3

0 2 1

3 0 2

r

s

t

8

15

7

r

s

t

3

8

1

Page 21: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Word Problem Systems The sum of three numbers

is 12. The 1st is 5 times the 2nd. The sum of the 1st and 3rd is 9. Find the numbers.

Page 22: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Word Problem Systems The sum of three numbers is 12. x + y + z = 12 The 1st is 5 times the 2nd. x = 5y The sum of the 1st and 3rd is 9. x + z = 9

Page 23: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Word Problem Systems x + y + z = 12 x =

5y => x - 5y = 0 x + z = 9

1 1 1

1 5 0

1 0 1

x

y

z

12

0

9

Page 24: Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices

Word Problem Systems x + y + z = 12 x -

5y = 0 x + z = 9

x

y

z

15

3

6