You can put this solution on YOUR website! Given:
.
x-2y=2
2x-z=-2
x-y-2z=4
.
A clue to this one is that x is the only variable that appears in all three of these
equations. Therefore let's solve the top equation for y in terms of x. Then let's
solve the middle equation for z in terms of x. When we do those two things we can substitute
for y and z in the bottom equation. If we do that, then the bottom equation will have only
x as a variable and we can, therefore, solve that equation for x and back solve to get
y and z.
.
That's the plan. Let's see how it develops.
.
The first equation is: . Let's solve it for y in terms of x.
.
First subtract x from both sides to get:
.
.
Next divide all terms on both sides by -2 to solve for y. The answer is:
.
.
Remember that . We'll use it later.
.
Next solve the middle equation for z in terms of x. Start with:
.
.
Subtract 2x from both sides to eliminate the 2x on the left side and get:
.
.
Next multiply all terms on both sides by -1 to change -z to + z. The result is:
.
.
Remember this also. We'll be using it shortly.
.
Next go to the bottom one of the three given equations. It is:
.
.
Substitute the right side of the equations we got above for y and z. When you do this
equation becomes:
.
.
This reduces to:
.
.
Double all the terms to get rid of the denominator of 2 and you get:
.
.
Combine the x terms on the left side to get:
.
.
Combine the numbers on the left side to get -6 and then add +6 to both sides to get rid
of the number -10 on the left side. The result is:
.
.
and if you divide both sides by -7 you find that:
.
.
Now that we know we can return to the given top equation, substitute -2 for x and
solve for y to get:
. =
.
Add +2 to both sides to get rid of the - 2 on the left side. The equation then becomes:
.
.
and dividing both sides by - 2 your get that .
.
Now take the value of x and substitute it into the middle one of the given equations
to get:
. =
.
Do the multiplication on the left side:
.
.
Add 4 to both sides to eliminate the -4 on the left side and you get:
.
.
Finally multiply both sides by -1 so that you are finding +z. You end up with:
.
.
Interesting. All three variables (x, y, and z) equal -2.
.
Hope this method helps you to understand the substitution method of working with three linear
equations that have a total of three variables.