Skip to content

Mathematics · Ch 9 — Three-Dimensional Geometry

Coordinates of a Point and Distance Between Two Points

3

Coordinates of a Point and Distance Between Two Points

Coordinates of a point. Once the three coordinate axes and origin OO are fixed (Section 2), every point PP of space corresponds to a unique ordered triple of real numbers (x,y,z)(x, y, z) -- its coordinates -- and conversely every ordered triple corresponds to exactly one point. Geometrically, (x,y,z)(x,y,z) are obtained by drawing a rectangular box with one corner at the origin OO and the opposite corner at PP, with edges parallel to the three axes; xx, yy, zz are then the (signed) lengths of the three edges meeting at OO.

Distance of a point from the origin. Let P(x,y,z)P(x,y,z) be any point, and let AA be the foot of the perpendicular from PP to the XYXY-plane, so A=(x,y,0)A=(x,y,0) and APAP is a segment of length ∣z∣|z| parallel to the zz-axis. In the XYXY-plane, by the ordinary 2D distance formula, OA=x2+y2OA=\sqrt{x^2+y^2}. Since OAOA lies in the XYXY-plane and APAP is perpendicular to that plane, the triangle OAPOAP has a right angle at AA, so by the Pythagorean theorem,

OP=OA2+AP2=x2+y2+z2.OP=\sqrt{OA^2+AP^2}=\sqrt{x^2+y^2+z^2}.

This is the distance of P(x,y,z)P(x,y,z) from the origin.

Distance between two general points -- derivation. Let P1(x1,y1,z1)P_1(x_1,y_1,z_1) and P2(x2,y2,z2)P_2(x_2,y_2,z_2) be any two points of space. Draw a rectangular box with P1P2P_1P_2 as one diagonal and edges parallel to the coordinate axes; the three edges meeting at P1P_1 have lengths ∣x2−x1∣|x_2-x_1|, ∣y2−y1∣|y_2-y_1|, ∣z2−z1∣|z_2-z_1|. Applying the Pythagorean theorem twice -- once in the base face of the box to find the diagonal of that face, and once more between that face-diagonal and the vertical edge to find the box's main diagonal P1P2P_1P_2 -- gives

P1P2=(x2−x1)2+(y2−y1)2+(z2−z1)2.P_1P_2=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.

This is the distance formula in three dimensions; setting P1P_1 at the origin recovers the special case above. …