Steply

Solve x - y + z = 4, x + 3y - z = 10, x - y - z = -2

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 + z = 4, x + 3y − z = 10 and x − y − z = −2.

x − y + z = 4①
x + 3y − z = 10②

We call them ①, ② and ③.

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

x − y − z = −2③

The plan: remove one letter twice.

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

1 Remove z from ① and ②

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

They are opposites, so adding removes z.

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

x − y + z = 4①
x + 3y − z = 10②

z and −z make zero.

Cross them out.

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

x + x = 2x.

−y + 3y = 2y.

4 + 10 = 14.

x + x = 2x
−y + 3y = 2y
4 + 10 = 14

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 + 2y = 14.

We call it ④.

It has no z.

2x + 2y = 14④

2 Remove z from ① and ③

Look at z in ① and ③: z and −z.

They are opposites, so adding removes z.

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

x − y + z = 4①
x − y − z = −2③

z and −z make zero.

Cross them out.

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

x + x = 2x.

−y − y = −2y.

4 + (−2) = 2.

x + x = 2x
−y − y = −2y
4 + (−2) = 2

Now we have 2x − 2y = 2.

We call it ⑤.

It has no z.

2x − 2y = 2⑤

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

We solve them like before, by elimination.

We write ④ and ⑤ again, in columns.

2x + 2y = 14④
2x − 2y = 2⑤

3 Add the equations

Look at y: 2y and −2y.

They are opposites.

Added, they make zero.

2y and −2y make zero.

Cross them out.

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

2x + 2x = 4x.

14 + 2 = 16.

2x + 2x = 4x
14 + 2 = 16

Now we have 4x = 16.

4x = 16

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 = 164

4 divided by 4 is 1.

So just x is left.

16 divided by 4 is 4.

164 = 4

So x = 4.

x = 4

5 Find y

We put x = 4 into ④.

2 times 4 is 8.

2(4) + 2y = 14

Now we have 8 + 2y = 14.

8 + 2y = 14

We want y by itself.

The 8 is in the way.

To remove 8, we take away 8.

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

8 + 2y − 8 = 14 − 8

8 and − 8 make zero.

Cross them out.

14 minus 8 is 6.

14 − 8 = 6

Now we have 2y = 6.

2y = 6

2y means 2 times y.

We want just y.

To remove times 2, we divide by 2.

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

2y2 = 62

2 divided by 2 is 1.

So just y is left.

6 divided by 2 is 3.

62 = 3

So y = 3.

y = 3

6 Find z

We put x = 4 and y = 3 into ①, the easiest one.

4 − 3 + z = 4

4 − 3 is 1.

1 + z = 4

We want z 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 + z − 1 = 4 − 1

1 and − 1 make zero.

Cross them out.

4 minus 1 is 3.

4 − 1 = 3

So z = 3.

z = 3

So x = 4, y = 3 and z = 3, all at the same time.

We write it as (4, 3, 3).

(x, y, z) = (4, 3, 3)

7 Check

Let's check in every equation.

We put x = 4, y = 3, z = 3 into ①.

① 4 − 3 + 3 = 4

We get 4, the same as the right side.

Now ②.

② 4 + 3(3) − 3 = 4 + 9 − 3 = 10

We get 10, the same as the right side.

Now ③.

③ 4 − 3 − 3 = −2

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

All of them work.

So the answer is right!

Let's look back.

First: remove z from ① and ②.

Then: remove z from ① and ③.

Then: add the equations.

Then: find x.

Then: find y.

Then: find z.

Last: check.

Answer
(x, y, z) = (4, 3, 3)

Your turn

Try this one yourself, then check:

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

More from Three equations in x, y, z

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