Steply

Solve x - y + 3z = 7, x + y - z = -1, x - y - z = 3

Step by step, with the reason for every step · Three equations in x, y, z · Algebra 1

Step by step

The question

Question: solve x − y + 3z = 7, x + y − z = −1 and x − y − z = 3.

x − y + 3z = 7①
x + y − z = −1②

We call them ①, ② and ③.

We want the x, y and z that make all three true.

x − y − z = 3③

The plan: remove one letter twice.

Then we have two equations with two letters, and we know how to solve those.

1 Remove y from ① and ②

Look at y in ① and ②: −y and y.

They are opposites, so adding removes y.

We write ① and ② under each other: x under x, y under y, z under z.

x − y + 3z = 7①
x + y − z = −1②

−y and y make zero.

Cross them out.

We add: the x parts, the z parts, and the numbers.

x + x = 2x.

3z − z = 2z.

7 + (−1) = 6.

x + x = 2x
3z − z = 2z
7 + (−1) = 6

Careful!

We add every part of both equations: each letter, and the numbers on the right too.

Careful: add every part, the numbers too

Now we have 2x + 2z = 6.

We call it ④.

It has no y.

2x + 2z = 6④

2 Remove y from ② and ③

Look at y in ② and ③: y and −y.

They are opposites, so adding removes y.

We write ② and ③ under each other: x under x, y under y, z under z.

x + y − z = −1②
x − y − z = 3③

y and −y make zero.

Cross them out.

We add: the x parts, the z parts, and the numbers.

x + x = 2x.

−z − z = −2z.

−1 + 3 = 2.

x + x = 2x
−z − z = −2z
−1 + 3 = 2

Now we have 2x − 2z = 2.

We call it ⑤.

It has no y.

2x − 2z = 2⑤

Now ④ and ⑤ are two equations with two letters: x and z.

We solve them like before, by elimination.

We write ④ and ⑤ again, in columns.

2x + 2z = 6④
2x − 2z = 2⑤

3 Add the equations

Look at z: 2z and −2z.

They are opposites.

Added, they make zero.

2z and −2z make zero.

Cross them out.

We add ④ and ⑤: the x parts together, and the numbers together.

2x + 2x = 4x.

6 + 2 = 8.

2x + 2x = 4x
6 + 2 = 8

Now we have 4x = 8.

4x = 8

4 Find x

4x means 4 times x.

We want just x.

To remove times 4, we divide by 4.

We do it on both sides, so they stay equal.

4x4 = 84

4 divided by 4 is 1.

So just x is left.

8 divided by 4 is 2.

84 = 2

So x = 2.

x = 2

5 Find z

We put x = 2 into ④.

2 times 2 is 4.

2(2) + 2z = 6

Now we have 4 + 2z = 6.

4 + 2z = 6

We want z by itself.

The 4 is in the way.

To remove 4, we take away 4.

We do it on both sides, so they stay equal.

4 + 2z − 4 = 6 − 4

4 and − 4 make zero.

Cross them out.

6 minus 4 is 2.

6 − 4 = 2

Now we have 2z = 2.

2z = 2

2z means 2 times z.

We want just z.

To remove times 2, we divide by 2.

We do it on both sides, so they stay equal.

2z2 = 22

2 divided by 2 is 1.

So just z is left.

On the right too: 2 divided by 2 is 1.

22 = 1

So z = 1.

z = 1

6 Find y

We put x = 2 and z = 1 into ②, the easiest one.

2 − 1 + y = −1

2 − 1 is 1.

1 + y = −1

We want y by itself.

The 1 is in the way.

To remove 1, we take away 1.

We do it on both sides, so they stay equal.

1 + y − 1 = −1 − 1

1 and − 1 make zero.

Cross them out.

−1 minus 1 is −2.

−1 − 1 = −2

So y = −2.

y = −2

So x = 2, y = −2 and z = 1, all at the same time.

We write it as (2, −2, 1).

(x, y, z) = (2, −2, 1)

7 Check

Let's check in every equation.

We put x = 2, y = −2, z = 1 into ①.

① 2 − (−2) + 3(1) = 2 + 2 + 3 = 7

We get 7, the same as the right side.

Now ②.

② 2 + (−2) − 1 = 2 − 2 − 1 = −1

We get −1, the same as the right side.

Now ③.

③ 2 − (−2) − 1 = 2 + 2 − 1 = 3

We get 3, the same as the right side.

All of them work.

So the answer is right!

Let's look back.

First: remove y from ① and ②.

Then: remove y from ② and ③.

Then: add the equations.

Then: find x.

Then: find z.

Then: find y.

Last: check.

Answer
(x, y, z) = (2, −2, 1)

Your turn

Try this one yourself, then check:

Solve x − y + 3z = 0, x + y − z = 0, x − y − z = −8
Show the answer
(x, y, z) = (−2, 4, 2)

More from Three equations in x, y, z

The whole lesson: Three equations in x, y, z →