Solve for #x,y and z# given that: #2x-y+2z=-7 ;color(white)("d") -x+2y-4z=5 ;color(white)("d")x+4y-6z=-1 ?#
4 Answers
In general
Eliminate a variable with any 2 equations.
Then eliminate the same variable with 2 different equations.
Now you have 2 eq w 2 unknows ..... qed
Given set of equations is
Let us eliminate
1).
#2xx(-x+2y-4z=5)#
#=>-2x+4y-8z=10#
2).#(-2x+4y-8z=10)+(# #2x-y+2z=-7)#
we get
#3y-6z=3# ........(4)
Now adding equations (2) and (3) we get
#6y-10z=4# ......(5)
Now eliminating
#2xx(3y-6z=3)#
#=>6y-12z=6# #(6y-10z=4)-(6y-12z=6)#
we get
#2z=-2#
#=>z=-1# .......(6)
Inserting this value in equation (4) we get
#3y-6(-1)=3#
#=>3y=-3#
#=>y=-1# .......(7)
Inserting values of
#x+4(-1)-6(-1)=-1#
#x-4+6=-1#
#x=-3# ........(8)
Create an augmented matrix from the equations.
Perform elementary row operations, until the left side is an identity matrix.
The values for x, y, and z are in the column vector on the right.
Explanation:
Write the equation,
Note: I chose to write the last equation first because the x coefficient is 1 and the identity matrix
has a 1 in position, row 1, column 1; this will save us some work.
Write the equation,
Write the equation,
Perform elementary row operations.
Make position row 2 column 1 become 0 by adding Row 1 to Row 2 and putting the result in Row 2:
Make position row 3 column 1 become 0 by multiplying row 1 by -2 adding it to row 3 and putting the result in row 3:
Please observe that we have 1 in first row of the first column and 0s in all other rows of the first column; this looks like the first column in the identity matrix
Usually, we would make row 2 column 2 become 1 but not every element of the row is evenly divisible by 6 and we cannot swap in row 3 and make is coefficient become 1 for the same reason so we shall postpone this. Instead, will we put a 0 in position row 3 column 2 by multiplying row 2 by
We can make position row 3 column 1 become 1 by multiplying the row by -1:
Because we have a 1 in the third row of the third column, it is easy to make 0s in that column of the other 2 rows:
Now Row 2 is evenly divisible by 6
The only thing that we have left is to make the 4 become 0:
We have an identity matrix on the left, therefore, the column vector on the right contains the solution values.
This is more about demonstrating the method. I have done some of the working out for you.
Explanation:
Have a look at https://socratic.org/help/symbols as a guide to formatting. Note in particular the hash symbol at the beginning and end of the maths part. That indicates to the site's system that it is to format that bit using mathematical structure.
Given:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Notice that
Add
Subtract 4 from both sides
Divide both sides by 10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using
Now we have only 2 unknowns. The
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So lets try another combination.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Now that I have demonstrated the way of thinking about this type of question I decided to leave the rest for you to try.
By the way. I have not checked my numbers. So I would suggest that you run through them to make sure I have not 'dropped a clanger'.