Distance Formula in Space

Before this, knowFind Distance and Perimeter Using Coordinates

Read · 1 min

Proof of the Distance Formula for any number of dimensions

Lemma 1. The distance between two points P1(x1,y1)P_1 (x_1, y_1) and P2(x2,y2)P_2 (x_2, y_2) is (x1−x2)2+(y1−y2)2\sqrt{(x_1-x_2)^2+(y_1-y_2)^2}

Proof of lemma 1: Draw a point P3(x2,y1)P_3 (x_2, y_1). Then since ∠P1P3P2\angle P_1P_3P_2 is a right angle, we have (P1P2)2=(P1P3)2+(P3P2)2(P_1 P_2)^2 = (P_1 P_3)^2 + (P_3 P_2)^2. But since P1P3P_1 P_3 is ∣x2−x1∣|x_2 - x_1| and P3P2P_3 P_2 is ∣y2−y1∣|y_2-y_1|, we have that P1P2P_1P_2 must be (x1−x2)2+(y1−y2)2\sqrt{(x_1-x_2)^2+(y_1-y_2)^2}.

Lemma 2. The distance formula between two points 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) is (x1−x2)2+(y1−y2)2+(z1−z2)2\sqrt{(x_1-x_2)^2+(y_1-y_2)^2 + (z_1-z_2)^2}.

Proof of lemma 2: Draw a point P3(x2,y2,z1)P_3 (x_2, y_2, z_1). Then by the distance formula for 2 dimensions, the distance P1P3P_1P_3 is (x1−x2)2+(y1−y2)2\sqrt{(x_1-x_2)^2+(y_1-y_2)^2}. Now P3P2P_3P_2 is parallel to the z−z-axis, so its length is ∣z2−z1∣|z_2-z_1|. Since the z−z-axis is perpendicular to the xy−xy-plane, the triangle formed by the three points and the length of P1P2P_1P_2 is (x1−x2)2+(y1−y2)2+(z1−z2)2\sqrt{(x_1-x_2)^2+(y_1-y_2)^2 + (z_1-z_2)^2} by the Pythagorean Theorem.

Now for the main theorem:

Let P1P_1(a1,a2,…,an)(a_1, a_2, \dots, a_n) and P2P_2(b1,b2,…,bn)(b_1, b_2, \dots, b_n) be two points in Rn\mathbb{R}^n. The distance P1P2P_1P_2 is equal to ∑1n(ai−bi)2\sqrt{\sum_1^n{(a_i-b_i)^2}}.

Proof: This can be proved inductively. We know it holds in Rk\mathbb{R}^k for k≤3k\le 3. Now assumes it holds for k=n−1k=n-1. So now we can draw P3(b1,…,bn−1,an)P_3(b_1, \dots, b_{n-1}, a_n), and the distance between P3P_3 and P1P_1 is given by the distance formula for Rn−1\mathbb{R}^{n-1}. The distance from P3P_3 to P2P_2 is simply the difference in their nnth coordinates, and thus the formula holds in any Rn\mathbb{R}^{n}.

Stretch your creativity

Contest problems rarely look like the examples you studied. Solving one means finding your own way in. These are real problems from the AMC 8, AMC 10, AMC 12 and AIME, the national math competitions for middle and high school students, each with a worked solution on LIVE by Po-Shen Loh.

Read · 1 min

Distances

Definition

Pythaorean Theorem

How to compute

Higher Dimensions

Applications

Exercises

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems