What is the distance between two points

  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
  • Tags Tags
    Points
Click For Summary
SUMMARY

The distance between two points A(x1, y1) and B(x2, y2) in a Cartesian coordinate system is calculated using the formula d = √((x2 - x1)² + (y2 - y1)²). This formula derives from the Pythagorean theorem, where the distance represents the magnitude of the vector AB. Additionally, the distance from the origin (0,0) to a point M(x,y) is given by d = √(x² + y²). Understanding this concept is fundamental in both Euclidean geometry and applications in fields such as cosmology.

PREREQUISITES
  • Understanding of Cartesian coordinate systems
  • Familiarity with the Pythagorean theorem
  • Basic knowledge of vector mathematics
  • Concept of Euclidean and non-Euclidean spaces
NEXT STEPS
  • Explore advanced distance metrics in non-Euclidean spaces
  • Learn about vector operations in higher dimensions
  • Study applications of distance calculations in computer graphics
  • Investigate the role of distance in machine learning algorithms
USEFUL FOR

Students of mathematics, educators teaching geometry, computer scientists working with graphics, and researchers in fields requiring spatial analysis will benefit from this discussion.

Messages
19,853
Reaction score
10,831
Definition/Summary

In the plane with coordinate system (O, \vec{i}, \vec{j}) are given the points A(x_1,y_1) and B(x_2,y_2) (see the picture). We want to determine the distance d between the points A and B.

Equations

distance between two points (x_1,y_1) and (x_2,y_2):

d=|\vec{AB}|=\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

distance from (0,0) to point M(x,y):

d=|\vec{OM}|=\sqrt{x^2+y^2}

Extended explanation

Because of the fact that the distance is equal of the module of \vec{AB},

d=|AB|

we need to find the module of the vector \vec{AB}=(x,y). Because of the rectangular triangle ACB (see the picture), satisfying the Pythagorean theorem, we have:

|\vec{AB}|^2=|\vec{AC}|^2+|\vec{CB}|^2 \ \ \ \ (1)

Because of:

|\vec{AC}|=|\vec{A'B'}|=|x_2-x_1| and |\vec{CB}|=|\vec{A''B''}|=|y_2-y_1|,

substituting in (1) we have:

|\vec{AB}|^2 = |x_2-x_1|^2 + |y_2 - y_1|^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2

So, for finding the distance d between two points we have the formula:

d=|\vec{AB}|=\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

If the distance d, is from the point (0,0) to arbitary point M(x,y), which d=|\vec{OM}|, then we have:

d=|\vec{OM}|=\sqrt{x^2+y^2}

* This entry is from our old Library feature. If you know who wrote it, please let us know so we can attribute a writer. Thanks!
 
Mathematics news on Phys.org
For a more general view one could do a forum and / or insight search on the keyword "metric". The definition above is basically the theorem of Pythagoras, but distances can also be defined on non Euclidean spaces which is e.g. necessary in cosmology!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K