Transcript m150cn-jm11

Chapter 11
Section 11.4
Solving Larger Systems of
Equations
Larger Systems of Equations
A system of equations that has 3 or more variables can be solved by combining both
the elimination method and the substitution method.
1. You eliminate variables from the other equations until you get down to one
equation with one variable.
2. Solve that one equation for the variable and substitute it back into the other
equations and solve for the one variable that remains.
Example Solve the System of Equations:
4 x  12 y  8 z  12
2x  5 y  4z  4
3x  9 y  9 z  0
x  3y  2z  3
 y
 2

 3 z  9
Multiply Equation 1 by ¼.
x  3y  2z  3
2x  5 y  4z  4
3 x  9 y  9 z  0 Multiply Equation 1 by -2
Multiply Equation 1 by -3
and add to Equation 3.
y
Solve Equation 3 for z.
x  3y  2z  3
 y
 2
z  3
and add to Equation 2.
x  3y  2z  3
 y
 2

 3 z  9
x  3y  2z  3
2
z  3
Substitute y and z into
Equation 1.
x  3  2  2  (3)  3
Solve Equation 2 for y.
x 6 6
x3
3
x  3y  2z  3
y
2
z  3
The solution is:
x = 3, y = 2, z = -3
Systems of Equations and Matrices
Systems of equations can be represented with matrices in a certain way.
1. Each row corresponds to an equation.
2. Each column to a variable and the last column to the constants.
We write the variables on one side of the equation and the constants on the other. In
the matrix separate the variables from the constants with a line (sometimes dashed).
The entries of the matrix are the coefficients of the variables. It is important that if a
variable does not show up in an equation that means the coefficient is 0 and that
entry in the matrix is 0. The entries on the other side of the line are the constants.
3x  4 y  7

9 x  y  8
3  4 7


9
1
8


system of
equations
Matrix
Sometimes algebra
might be needed to
change the equations
to a matrix.
x  3 y  5z  8

 xz 9
 4 y  3z  1

1 3  5 8 


1
0

1
9


0 4 3 1
system of
equations
Matrix
 y  3x  2

2( x  3)  5 y  10
 3x  y  2

2 x  6  5 y  10
 3x  y  2

2 x  5 y  16
 3 1  2 


2

5

16


Subscripted Variables
In systems of equations where more than 3 variables (sometime for 2 and 3
variables) are needed instead of using regular variable we use just one x but put
subscripts on it xi "read x sub i".
5 0 2 1  2 0 
 5 x1  2 x3  x4  2 x5  0



1

1
0
0
7
4
x

x

7
x

4


1
2
5

0 2 0 3
0  7
2 x2  3x4  7



x  x  x  x  x  8
1
1
1
1
1
8


 1 2 3 4 5
6 0 3  2 6 6 
 6 x1  3x3  2 x4  6


Matrices with 1's and 0's
A matrix that has 1's
down the diagonal from
top left to bottom right is
easy to read the
simultaneous solution of
system of equations right
from the matrix. They are
the entries in the
constants column.
Matrix
Equations
Simultaneous
Solution
1 0 4 


0
1

7


x  4

 y  7
4,7
1 0 0  3

1 
0
1
0
6 

0 0 1 8 
 x  3

1
y  6
z  8

 3, 16 ,8
Row Operations
We will use specific row
operations to change a matrix
from the original equation form
to the type with 1's down the
diagonal and 0's everywhere
else. The row operation we use
keep the simultaneous solution
 a11 a12 b1 


a21 a22 b2 
ROW
OPERATIONS
1 0 c1 


0 1 c 2 
 a11 a12

a21 a22
 


 an1 an 2
1

0


0
 a1n b1 

 a2 n b2 
  

 ann bn 
0  0 c1 

1  0 c2 
   

0  1 cn 
For a matrix A there are 4 row operations that are allowed. The way you refer to
each row operation below the second way is how the TI-83 graphing calculator
refers to them.
Ri Rj
RowSwap([A],i,j)
Interchange the ith and jth rows.
Ri+Rj
Row+([A],i,j)
Add the ith row to the jth row.
mRi
*Row(m,[A],i)
Multiply the ith row by the number m.
mRi+Rj
*Row+(m,[A],i,j)
Multiply the ith row by the number m
and add it to the jth row.
Examples of row operations.
RowSwap
Row+
0 4  3 4 


A  0 2 8 5 
1 1  2 3
R1R3
 2 6  4 8


A   0 2 8 5
 2 1  2 3
R1+R3
RowSwap([A],1,3)
Row+([A],1,3)
1 1  2 3


0
2
8
5


0 4  3 4
2 6  4 8 


0
2
8
5


0 7  6 11
*Row
*Row+
4 12  16 4


A  0 5
9 2
6  7  3 5
1 3  4 1 


9 2
0 5
6  7  3 5
1 2  5 3


A   0 2 8 5
2 3  4 1
¼R1
-2R1+R3
*Row(¼,[A],1)
*Row+(-2,[A],1,3)
1 2  5 3 


8 5
0 2
0  1 6  5
Pivoting
Pivot Position
The process of using elementary row operations
to "clear out" a column and get a 1 in the
diagonal position in the column and then zeros
in all others is called pivoting. Only the row
operations are allowed when doing this process.
The diagonal entries are the pivot positions.
1 a12

0 a22
 

0 an 2
1 4  6
Ans  

0

3
42


2 8  12
A

3
9
24


½R1
1 4  6


3
9
24


1 4  6


0

3
42


*Row(½,[A],1)
-3R1+R2
*Row+(-3,[Ans],1,2)
The first column
is "cleared out"!
1 4  6 


0
1

14


1 0 50 


0
1
14


 a1n b1 

 a2 n b2 
  

 ann bn 
-⅓R2
*Row(-⅓,[Ans],2)
-4R2+R1
*Row+(-4,[Ans],2,1)
The second column
is "cleared out"!
Gauss-Jordan Elimination
Gauss-Jordan Elimination is a process
of pivoting column by column until you
have all but the last column "cleared".
0  2  8
A

4
2
24


4 2 24 


0

2

8


1 1 2 6 


0

2

8


1

0
6

1 4
1
2
1 0 4


0
1
4


R1R2
RowSwap([A],1,2)
¼R1
*Row(¼,[Ans],1)
-½R2
*Row(-½,[Ans],2)
-½R2+R1
*Row+(-½,[Ans],2,1)
0 1 5 1 


A  2 6 4 24
0 2 12 4 
2 6 4 24


0
1
5
1


0 2 12 4 
1 3 2 12


0
1
5
1


0 2 12 4 
R1R2
RowSwap([A],1,2)
½R1
*Row(½,[Ans],1)
-3R2+R1
*Row+(-3,[Ans],2,1)
-2R2+R3
1 0  13 9  *Row+(-2,[Ans],2,3)


0 1
0 0
5 1
2 2
1 0  13 9


0 1 5 1 
0 0 1 1
½R3
*Row(½,[Ans],3)
13R3+R1
*Row+(13,[Ans],3,1)
1 0 0 22 
-5R3+R2


0 1 0  4 *Row+(-5,[Ans],3,2)
0 0 1 1 
Putting it Together
3
Lets use matrix
simplification (i.e. Gauss- A  2

Jordan Elimination) to
solve the system of
1
equations below.
3x  7 y  9

2 x  5 y  7
We form the matrix.
3 7 9 


2 5 7 
Call this A and simplify it
3 7 9 
A

2 5 7 

2
1

0
1

0
7 9

5 7
⅓R1
*Row(⅓,[A],1)
3

5 7
7
7
1
3
3
-2R1+R2
3 *Row+(-2,[Ans],1,2)

1
3 
3

1 3
7
3R2
*Row(3,[Ans],2)
3
-7/3R2+R1
*Row+(- 7/3,[Ans],2,1)
1 0  4


0
1
3


Converting
back to
equations
gives:
 x  4

y  3
(4,3)
Check:
3(4)  7(3)
 12  21
9
2(4)  5(3)
 8  15
7