SOLUTION: x+2y-z=3 2x-y+z=22 x+3y-z=4 x,y,z

Algebra ->  Systems-of-equations -> SOLUTION: x+2y-z=3 2x-y+z=22 x+3y-z=4 x,y,z      Log On


   



Question 1134190: x+2y-z=3
2x-y+z=22
x+3y-z=4
x,y,z

Found 2 solutions by MathLover1, greenestamps:
Answer by MathLover1(20850) About Me  (Show Source):
You can put this solution on YOUR website!

x%2B2y-z=3.....eq.1
2x-y%2Bz=22....eq.2
x%2B3y-z=4+.....eq.3
start with
x%2B2y-z=3.....eq.1
x%2B3y-z=4+.....eq.3
---------------------------------subtract
x%2B2y-z-%28x%2B3y-z%29=3-4
x%2B2y-z-x-3y%2Bz=-1
cross%28x%29%2B2y-cross%28z%29-cross%28x%29-3y%2Bcross%28z%29=-1
2y-3y=-1
-y=-1
highlight%28y=1%29
2x-y%2Bz=22....eq.2.... plug in y=1
2x-1%2Bz=22
2x%2Bz=23........solve for z
z=-2x%2B23........eq.2a
x%2B3y-z=4+.....eq.3...plug in y=1
x%2B3%2A1-z=4+
x%2B3-z=4+.....solve for z
x%2B3-4=z+
z=x-1+....eq.3a
from eq.2a and eq.3a we have
x-1=-2x%2B23
x%2B2x=23%2B1
3x=24
highlight%28x=8%29
go to z=x-1+....eq.3a plug in x value
z=8-1+
highlight%28z=7%29+
solutions: highlight%288%29,highlight%281%29,highlight%287%29+


Answer by greenestamps(13200) About Me  (Show Source):
You can put this solution on YOUR website!


There are always a huge number of different ways you could go about solving a system of equations like this. Unless you have a huge amount of experience solving them, you don't know what paths are going to make the solution easy and which will make it a mess.

The solution by tutor @MathLover1 starts by observing that the first and third equations have the same coefficients for x and z, so subtracting one equation from the other immediately allows you to solve for y. But the path from there to the solution turns out to be a bit messy.

Usually, with a system of three linear equations in three variables, you look for ways to eliminate one variable at a time. The easiest variable to eliminate first is nearly always the one that has the "least complicated" coefficients in the three equations.

In your example, with "-z" in two of the equations and "+z" in the other, the path to the solution is probably going to be easiest if we eliminate z first.

So add the first and second equations to eliminate z, and do the same with the second and third equations. The two resulting equations are

3x%2By+=+25
3x%2B2y+=+26

It turns out this path makes the solution VERY easy, because subtracting one of these equations from the other gives us y=1.

Then substituting y=1 in either of those two equations gives x=8; then substituting x=8 and y=1 in any of the original equations gives z=7.