# Distance between two points on a line [closed]

Distance between two points is the length of the line segment that connects the two points in a line. The formula to find the distance between the two points is usually given by $$d=|x_2 – x_1|$$. How do I prove it?

• That's the definition. Unless you have some other definition that you are trying to reconcile with, but in that case you need to specify the other definition.
– lulu
Mar 18 at 18:38
• Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
– Community Bot
Mar 18 at 18:47
• Prove it in what context? It's usually taken as given. Please edit your post to clarify (as opposed to answering in the comments). Also, this is not hausdorff-distance. I'll find a better tag, but in the future, please read the tag descriptions carefully to make sure it fits your question. Mar 25 at 18:19
• What are $x_1$ and $x_2$ in your formula $d=|x_2 – x_1|$ ? Mar 25 at 18:25