# Distance Formula

## Key Questions

Let's see.

#### Explanation: I have drawn a graph in which there are two points color(red)(p_1(x_1,y_1))" and "color(red)(p_2(x_2,y_2).

• We can easily say that

$\text{ "bar(OD)=x_1" ; "bar(OE)=x_2" ; "bar(AD)=y_1" ; } \overline{E B} = {y}_{2}$

We also have a rectangle $\square O C E D$. So, color(red)(bar(AC)=bar(DE)) " and "color(red)(bar(AD)=bar(CE)

Now,

• $\overline{A C} = \overline{D E} = \overline{O E} - \overline{O D} = \left({x}_{2} - {x}_{1}\right)$

• $\overline{B C} = \overline{B E} - \overline{C E} = \overline{B E} - \overline{A D} = \left({y}_{2} - {y}_{1}\right)$

With the help of Pythagorean theorem,

${\overline{A B}}^{2} = {\overline{B C}}^{2} + {\overline{A C}}^{2}$

${\overline{A B}}^{2} = {\left({x}_{2} - {x}_{1}\right)}^{2} + {\left({y}_{2} - {y}_{1}\right)}^{2}$

bar(AB)=sqrt((x_2-x_1)^2+(y_2-y_1)^2

N.B:- As it is a square value , you may take $\left({x}_{1} - {x}_{2}\right)$ or, $\left({x}_{2} - {x}_{1}\right)$. I mean you have to take difference.That's (x_1~x_2)

So, the required formula is proved that

If the distance between two points color(green)(p_1(x_1,y_1) and color(green)(p_2(x_2,y_2) is color(red)(r,

then, color(red)(ul(bar(|color(green)(r=sqrt((x_1-x_2)^2+(y_1-y_2)^2))|

Hope it helps...
Thank you...

• Distance Formula

The distance $D$ between two points $\left({x}_{1} , {y}_{1}\right)$ and $\left({x}_{2} , {y}_{2}\right)$ can be found by

$D = \sqrt{{\left({x}_{2} - {x}_{1}\right)}^{2} + {\left({y}_{2} - {y}_{1}\right)}^{2}}$

Example

Find the distance between the points $\left(1 , - 2\right)$ and $\left(5 , 1\right)$.

Let $\left({x}_{1} , {y}_{1}\right) = \left(1 , - 2\right)$ and $\left({x}_{2} , {y}_{2}\right) = \left(5 , 1\right)$.

By Distance Formula above,

$D = \sqrt{{\left(5 - 1\right)}^{2} + {\left[1 - \left(- 2\right)\right]}^{2}} = \sqrt{16 + 9} = \sqrt{25} = 5$

I hope that this was helpful.

• Given the two points $\left({x}_{1} , {y}_{1}\right)$ and $\left({x}_{2} , {y}_{2}\right)$ the distance between these points is given by the formula:

$d = \sqrt{{\left({x}_{2} - {x}_{1}\right)}^{2} + {\left({y}_{2} - {y}_{1}\right)}^{2}}$

All you have to do is plug in the given points given to the distance formula and solve.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7782988,"math_prob":1.0000093,"size":2000,"snap":"2023-40-2023-50","text_gpt3_token_len":770,"char_repetition_ratio":0.11973948,"word_repetition_ratio":0.016597511,"special_character_ratio":0.3795,"punctuation_ratio":0.11111111,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000029,"pos_list":[0,1,2],"im_url_duplicate_count":[null,9,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-04T20:39:33Z\",\"WARC-Record-ID\":\"<urn:uuid:c9696ff3-170b-479b-b0f6-8ae3cfeebc3b>\",\"Content-Length\":\"629410\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f8d38b59-6f05-475e-b0ef-4636ad5f4512>\",\"WARC-Concurrent-To\":\"<urn:uuid:ddb586a7-1edf-4304-99c1-d7ba51db5d52>\",\"WARC-IP-Address\":\"216.239.34.21\",\"WARC-Target-URI\":\"https://socratic.org/algebra/radicals-and-geometry-connections/distance-formula\",\"WARC-Payload-Digest\":\"sha1:SKL2SMP2KW2JYS7UIARIA5KOIYWRUGYI\",\"WARC-Block-Digest\":\"sha1:HTXHP3EGL65MEQHA2QFJ7PS53F6XAXFS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100534.18_warc_CC-MAIN-20231204182901-20231204212901-00329.warc.gz\"}"}