Steply

Distance (-2, 1, 0) (1, 2, 4)

Step by step, with the reason for every step · Points and distance in space · Calculus 3

Step by step

The question

Question: find the distance between (−2, 1, 0) and (1, 2, 4).

(−2, 1, 0) and (1, 2, 4)

1 Plot the points

Draw the three axes: x toward us, y right, z up.

Point A: (−2, 1, 0).

Point B: (1, 2, 4).

The distance is the length of this straight segment.

2 The differences

Along x: x goes from −2 to 1.

1 minus (−2) is 3.

1 − (−2) = 3

Along y: y goes from 1 to 2.

2 minus 1 is 1.

2 − 1 = 1

Up z: z goes from 0 to 4.

4 minus 0 is 4.

4 − 0 = 4

3 Square and add

On the flat, the x and y moves make a right triangle.

Its long side is this green line.

The green line and the move up z make a second right triangle.

Its long side is AB.

So Pythagoras works twice.

Square the three differences, add them, then take the square root.

d = √32 + 12 + 42

3 squared is 9.

1 squared is 1.

4 squared is 16.

d = √9 + 1 + 16

4 Take the square root

Add: 9 plus 1 plus 16 is 26.

d = √26

Careful!

26 is d squared.

We still take the square root.

Careful: not d = 26 ✗

26 is not a square number, so √26 is the exact answer.

d = √26

With a calculator, that is about 5.1, to the nearest tenth.

d ≈ 5.1

5 Check

Let's check: square the distance.

We get 26, the same as 9 plus 1 plus 16.

Right!

d² = 26 and 9 + 1 + 16 = 26

Going from B to A instead only changes the signs.

The squares are the same.

Right!

(−2 − 1)² = 9

Let's look back.

First: plot the points.

Then: the differences.

Then: square and add.

Then: take the square root.

Last: check.

Answer
d ≈ 5.1

Your turn

Try this one yourself, then check:

Find the distance between (−1, 3, 0) and (4, 5, 4)
Show the answer
d = 3√5 ≈ 6.7

More from Points and distance in space

The whole lesson: Points and distance in space →