Steply

Solve x + 3y + z = 3, 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 + 3y + z = 3, x − y + z = −1 and x − y − z = 3.

x + 3y + z = 3①
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 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 + 3y + z = 3①
x − y − z = 3③

z and −z make zero.

Cross them out.

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

x + x = 2x.

3y − y = 2y.

3 + 3 = 6.

x + x = 2x
3y − y = 2y
3 + 3 = 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 + 2y = 6.

We call it ④.

It has no z.

2x + 2y = 6④

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 = −1②
x − y − z = 3③

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.

−1 + 3 = 2.

x + x = 2x
−y − y = −2y
−1 + 3 = 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 = 6④
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.

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 y

We put x = 2 into ④.

2 times 2 is 4.

2(2) + 2y = 6

Now we have 4 + 2y = 6.

4 + 2y = 6

We want y 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 + 2y − 4 = 6 − 4

4 and − 4 make zero.

Cross them out.

6 minus 4 is 2.

6 − 4 = 2

Now we have 2y = 2.

2y = 2

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

2 divided by 2 is 1.

So just y is left.

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

22 = 1

So y = 1.

y = 1

6 Find z

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

2 − 1 + z = −1

2 − 1 is 1.

1 + z = −1

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 = −1 − 1

1 and − 1 make zero.

Cross them out.

−1 minus 1 is −2.

−1 − 1 = −2

So z = −2.

z = −2

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

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

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

7 Check

Let's check in every equation.

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

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

We get 3, the same as the right side.

Now ②.

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

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

Now ③.

③ 2 − 1 − (−2) = 2 − 1 + 2 = 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 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) = (2, 1, −2)

Your turn

Try this one yourself, then check:

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

More from Three equations in x, y, z

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