3.6.2 · D53D Geometry

Question bank — Distance formula in 3D

1,318 words6 min readBack to topic

Before we start, one word we will lean on: a degenerate case just means an input pushed to an extreme — two points sitting on top of each other, or all on one line, or one coordinate frozen to zero. These edges are where formulas quietly break, so we test them on purpose.


True or false — justify

and give different distances.
False — each difference is squared, and , so the order is invisible in the answer. The two subtractions differ only in sign, which the square erases.
The distance can be negative if is "below" .
False — it is a square root of a sum of squares, and each square is , so always. "Below" only flips a sign inside a bracket, which squaring removes.
If two points share the same and but differ in , the formula reduces to .
True — the and brackets are zero, leaving . The square root of a single square is the absolute value, not just .
is impossible for two genuine points.
False — exactly when all three brackets vanish, i.e. and are the same point. A sum of squares is zero only if every term is zero.
Swapping the roles of and changes the distance.
False — swapping negates every bracket, and squaring undoes that, so . Distance is symmetric by construction.
The 2D distance formula is just this 3D one with .
True — equal makes the third bracket zero, collapsing to , the 2D formula. 3D genuinely contains 2D as a flat slice.
For points on the same coordinate axis, distance equals the plain difference of their non-zero coordinates.
True in magnitude — two other brackets are zero, so you get the absolute value of the surviving difference. Still an , so never negative.
can be simplified to .
False — in general (try : vs ). Square-root of a sum is not the sum of roots.

Spot the error

"."
The squares and the outer root are gone. Adding legs is only valid along a single axis; a true straight-line gap is a hypotenuse, so it must be square-add-root.
"."
Coordinates are cross-matched. You must subtract same-named coordinates: with , with , with — mixing them measures nothing geometric.
"Distance from origin of is ."
A minus sign leaked in from the raw coordinate . Every term is a square, hence positive; it should be .
", so ."
The final square root was dropped. ; the formula always ends with the outer root undoing the sum of squares.
" always."
Only true when ; in general . Forgetting the absolute value flips signs in axis-aligned distances.
"We applied Pythagoras once to get the body diagonal."
It takes twice — once for the floor diagonal , then again with the vertical leg to reach . Skipping a step loses the term.
"To prove collinear, just check ."
Equal short distances only means is a midpoint-ish balance, not that the three lie on a line — they could form an isosceles triangle. Collinearity needs the largest distance to equal the sum of the other two.

Why questions

Why does squaring appear in the formula at all?
Because distance is the hypotenuse of a right triangle, and Pythagoras relates squares of the sides — the squaring is inherited from , applied twice.
Why is Pythagoras allowed twice — what makes each triangle right-angled?
The , , axes are mutually perpendicular, so the floor edges meet at , and the vertical -leg is perpendicular to the whole floor (hence to the floor diagonal too). Two clean right angles, two Pythagoras uses.
Why don't we need absolute-value bars in the final formula?
Because each bracket is squared, and squaring already discards sign. The we'd use on individual edges becomes redundant once everything is squared.
Why is the same as the magnitude of the vector ?
Because and its length (see Vectors and magnitude) is — literally the same expression. Distance and vector length are two names for one quantity.
Why does the formula treat all three axes identically?
Because space is isotropic in this coordinate system — no axis is special, so , , enter symmetrically. That symmetry is why the sphere built from it is perfectly round.
Why can the same distance equation give two answers when solving for an unknown coordinate?
Because after squaring you meet , which has two roots . Geometrically, two points on a line can sit equally far on either side of the reference point.

Edge cases

What does the formula give for two identical points and ?
Zero — every bracket is , so . This is the only way a distance can vanish, and it correctly says "no gap".
If all three points lie exactly on the -axis, is collinearity even a question?
They are automatically collinear — sharing forces them onto one line, so the "sum of distances" test will pass trivially. The formula still gives correct pairwise gaps as differences of .
Two points differ only in a single coordinate — does 3D distance "waste" the other two terms?
Not wasted — the unused brackets are simply and drop out, leaving the plain axis distance. The formula gracefully degenerates to a 1D difference.
What happens to the formula if a point sits at the origin?
Then , and it collapses to using only the other point's coordinates. The origin case is not special — it's the general formula with one corner pinned to .
Can three distinct points give yet not be collinear?
No — equality in the triangle inequality forces onto the straight segment . Strict collinearity and that equality are equivalent for distinct points.
If a point lies on a coordinate plane (say ), does anything in the formula change?
No — just makes that point's -term equal of the other, nothing degenerates. Lying on a plane is not an edge case for distance, only for which octant you're in.
Is there any input for which the square root is undefined?
No — the argument is a sum of squares, always , so the real square root is always defined. The formula never fails on valid coordinates.

Connections