3.6.2 · D13D Geometry

Foundations — Distance formula in 3D

1,682 words8 min readBack to topic

This is the tool-shed page for Distance formula in 3D. Every symbol the parent note uses is unpacked here, in the order that each one leans on the one before it. If a line in the parent felt like it skipped a step, the missing step lives here.


0 · What a point in space even means

Look at the figure below. The point is pinned at the corner of a little box built out of three measuring sticks meeting at a shared corner — the origin.

Figure — Distance formula in 3D
  • The number tells you how far to slide along the x-axis (right).
  • The number tells you how far to slide along the y-axis (into the page).
  • The number tells you how far to climb along the z-axis (up).

Why the topic needs it: the distance formula compares two such points, so we must first be able to pin one point down unambiguously. The three-number address is what makes that possible.

The origin is the special point — the shared corner where all three sticks start. See Coordinate axes and octants in 3D for how these three axes carve space into eight regions.


1 · The subscript notation

Why the topic needs it: the formula subtracts same-named coordinates (). Without subscripts we could not even write "the x of Q minus the x of P".


2 · A coordinate difference

Figure — Distance formula in 3D

In the figure the three differences , , are the three edges of the box that has and at opposite corners. That is the whole reason the parent note says "drop into a box" — each difference is one edge.

Why the topic needs it: these three gaps are the raw ingredients. Everything downstream is built from squaring and adding them.


3 · The absolute value — and why we can drop it

The parent writes the box edges as etc. — with bars — because an edge length can never be negative. But then in the final formula the bars vanish. Why?

Why the topic needs it: this is exactly why the parent's third "common mistake" is true — order of subtraction does not matter. and differ only by a sign, and squaring kills that sign.


4 · Squaring and summing

Why does Pythagoras care about areas? Because the theorem is a statement about areas of squares, not lengths — see the next section.

Why the topic needs it: the formula sums three squared differences. Picturing each as a tile-area makes the addition meaningful rather than a mystery.


5 · The square root

Why the topic needs it: squaring and adding gives us the hypotenuse squared; the root brings us back to an actual length.


6 · Pythagoras' theorem — the engine

Figure — Distance formula in 3D

Read it in area-language (section 4): the tile on the long side has area equal to the two smaller tiles combined. That is why squares appear — Pythagoras is fundamentally about the balance of square areas.

Why the topic needs it: the 3D formula is Pythagoras applied twice — once for the floor diagonal, once tilting up. Master this triangle and the derivation is just repetition. See Distance formula in 2D for the single-Pythagoras version.


7 · The vector and its magnitude

So "distance " and "magnitude of " are two names for the same number. The parent's key-results box states this; here you see it is not a coincidence — the arrow's components are the box edges of section 2.

Why the topic needs it: it links this whole chapter to Vectors and magnitude and to Direction cosines and direction ratios, which are built from these same three differences.


Prerequisite map

Point with three coordinates

Subscripts label two points

Coordinate difference x2 minus x1

Absolute value gives edge length

Squaring makes tile areas

Sum of squares

Square root undoes squaring

Pythagoras right angle rule

Distance formula in 3D

Vector PQ and its magnitude


Equipment checklist

Self-test: can you answer each before revealing?

What do the three numbers in measure?
How far the point sits along the x, y, and z axes from the origin.
What does the subscript in tell you, and how is it different from ?
= "x of point 1" (a label written below); = "x times x" (a power written above).
What is the picture of in the box?
One edge of the box that has P and Q at opposite corners — the sideways gap along x.
Why can we drop the absolute-value bars in the final formula?
Because every difference is squared, and squaring already erases the sign.
What does look like geometrically?
The area of a square tile whose side is .
What question does answer?
"What positive side length gives a square of area ?"
State Pythagoras and the condition it needs.
, valid only when the two legs meet at a right angle.
Why does the distance equal ?
Because the arrow from P to Q has components equal to the coordinate differences, so its length is exactly the distance.

Connections