Distance Formula in 3D Space
Problem
Find the distance between points (1, 2, 3) and (4, 6, 3) in 3D space using d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²]. Show the 3D coordinate system with the distance as the space diagonal of a rectangular box.
Explanation
The 3D distance formula extends the 2D Pythagorean theorem by adding a third dimension:
For to : .
The distance is the space diagonal of a rectangular box with sides , , . In this case, since , the two points lie in the same horizontal plane and the 3D distance equals the 2D distance. But try changing the z-coordinates to see the full 3D effect.
Try it in the visualization
Adjust the coordinates of both points and watch the distance update. The rectangular box shows how the space diagonal is built from three perpendicular components. Rotate the 3D view to see the geometry from different angles.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.