Problem to solve
Solve \[x-y+3z=2\], \[2x-3y=-4\], \[x+y+z=-2\]
Solution
STEP 1
Solve the following system:
{x - y + 3 z = 2 | (equation 1)
-3 y + 2 x = -4 | (equation 2)
x + y + z = -2 | (equation 3)
STEP 2
Swap equation 1 with equation 2:
{2 x - 3 y+0 z = -4 | (equation 1)
x - y + 3 z = 2 | (equation 2)
x + y + z = -2 | (equation 3)
STEP 3
Subtract 1/2 × (equation 1) from equation 2:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+y/2 + 3 z = 4 | (equation 2)
x + y + z = -2 | (equation 3)
STEP 4
Multiply equation 2 by 2:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+y + 6 z = 8 | (equation 2)
x + y + z = -2 | (equation 3)
STEP 5
Subtract 1/2 × (equation 1) from equation 3:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+y + 6 z = 8 | (equation 2)
0 x+(5 y)/2 + z = 0 | (equation 3)
STEP 6
Multiply equation 3 by 2:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+y + 6 z = 8 | (equation 2)
0 x+5 y + 2 z = 0 | (equation 3)
STEP 7
Swap equation 2 with equation 3:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+5 y + 2 z = 0 | (equation 2)
0 x+y + 6 z = 8 | (equation 3)
STEP 8
Subtract 1/5 × (equation 2) from equation 3:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+5 y + 2 z = 0 | (equation 2)
0 x+0 y+(28 z)/5 = 8 | (equation 3)
STEP 9
Multiply equation 3 by 5/4:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+5 y + 2 z = 0 | (equation 2)
0 x+0 y+7 z = 10 | (equation 3)
STEP 10
Divide equation 3 by 7:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+5 y + 2 z = 0 | (equation 2)
0 x+0 y+z = 10/7 | (equation 3)
STEP 11
Subtract 2 × (equation 3) from equation 2:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+5 y+0 z = -20/7 | (equation 2)
0 x+0 y+z = 10/7 | (equation 3)
STEP 12
Divide equation 2 by 5:
{2 x - 3 y+0 z = -4 | (equation 1)
0 x+y+0 z = -4/7 | (equation 2)
0 x+0 y+z = 10/7 | (equation 3)
STEP 13
Add 3 × (equation 2) to equation 1:
{2 x+0 y+0 z = -40/7 | (equation 1)
0 x+y+0 z = -4/7 | (equation 2)
0 x+0 y+z = 10/7 | (equation 3)
STEP 14
Divide equation 1 by 2:
{x+0 y+0 z = -20/7 | (equation 1)
0 x+y+0 z = -4/7 | (equation 2)
0 x+0 y+z = 10/7 | (equation 3)
STEP 15
Collect results:
Answer: | 
 | {x = -20/7
y = -4/7
z = 10/7