Euclidean distance: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎History: Cauchy
swap sections because one refers to concepts from the other; add Euclid to history
Line 49: Line 49:


In the terminology of [[rational trigonometry]], squared Euclidean distance is also called "quadrance".<ref>{{citation|last=Henle|first=Michael|date=December 2007|issue=10|journal=[[American Mathematical Monthly]]|jstor=27642383|pages=933–937|title=Review of ''Divine Proportions'' by N. J. Wildberger|volume=114}}</ref>
In the terminology of [[rational trigonometry]], squared Euclidean distance is also called "quadrance".<ref>{{citation|last=Henle|first=Michael|date=December 2007|issue=10|journal=[[American Mathematical Monthly]]|jstor=27642383|pages=933–937|title=Review of ''Divine Proportions'' by N. J. Wildberger|volume=114}}</ref>

==History==
Concepts of [[length]] and [[distance]] are widespread across cultures, can be dated to the earliest surviving "protoliterate" bureaucratic documents from [[Sumer]] in the fourth millenium BC (far before [[Euclid]]),<ref>{{citation|last=Høyrup|first=Jens|author-link=Jens Høyrup|editor1-last=Jones|editor1-first=Alexander|editor2-last=Taub|editor2-first=Liba|editor2-link=Liba Taub|contribution=Mesopotamian mathematics|contribution-url=https://akira.ruc.dk/~jensh/Publications/2018%7Bj%7D_Mesopotamian%20Mathematics_S.pdf|pages=58–72|publisher=Cambridge University Press|title=The Cambridge History of Science, Volume 1: Ancient Science|year=2018}}</ref> and have been hypothesized to develop in children earlier than the related concepts of speed and time.<ref>{{citation|last1=Acredolo|first1=Curt|last2=Schmid|first2=Jeannine|doi=10.1037/0012-1649.17.4.490|issue=4|journal=[[Developmental Psychology (journal)|Developmental Psychology]]|pages=490–493|title=The understanding of relative speeds, distances, and durations of movement|volume=17|year=1981}}</ref> But the notion of a distance, as a number defined from two points, does not actually appear in [[Euclid's Elements|Euclid's ''Elements'']]. Instead, Euclid approaches this concept implicitly, through the [[Congruence (geometry)|congruence]] of line segments, through the comparison of lengths of line segments, and through the concept of [[Proportionality (mathematics)|proportionality]].<ref>{{citation|last=Henderson|first=David W.|authorlink=David W. Henderson|journal=[[Bulletin of the American Mathematical Society]]|pages=563–571|title=Review of ''Geometry: Euclid and Beyond'' by Robin Hartshorne|url=https://www.ams.org/journals/bull/2002-39-04/S0273-0979-02-00949-7|volume=39|year=2002}}</ref> The [[Pythagorean theorem]] is also ancient, but it only took its central role in the measurement of distances with the invention of [[Cartesian coordinates]] by [[René Descartes]] in 1637.<ref>{{citation|last=Maor|first=Eli|author-link=Eli Maor|isbn=9780691196886|page=133|publisher=Princeton University Press|title=The Pythagorean Theorem: A 4,000-Year History|url=https://books.google.com/books?id=XuWZDwAAQBAJ&pg=PA133|year=2019}}</ref> And although accurate measurements of long distances on the earth's surface, which are not Euclidean, had again been studied in many cultures since ancient times (see [[history of geodesy]]), the idea that Euclidean distance might not be the only way of measuring distances between points in mathematical spaces came even later, with the 19th-century formulation of [[non-Euclidean geometry]].<ref>{{citation|last=Milnor|first=John|author-link=John Milnor|doi=10.1090/S0273-0979-1982-14958-8|issue=1|journal=[[Bulletin of the American Mathematical Society]]|mr=634431|pages=9–24|title=Hyperbolic geometry: the first 150 years|volume=6|year=1982}}</ref> The definition of the Euclidean norm and Euclidean distance for geometries of more than three dimensions also first appeared in the 19th century, in the work of [[Augustin-Louis Cauchy]].<ref>{{citation|title=Foundations of Hyperbolic Manifolds|volume=149|series=[[Graduate Texts in Mathematics]]|first=John G.|last=Ratcliffe|edition=3rd|publisher=Springer|year=2019|isbn=9783030315979|page=32|url=https://books.google.com/books?id=yMO4DwAAQBAJ&pg=PA32}}</ref>


==Generalizations==
==Generalizations==
Line 62: Line 59:


For points on surfaces in three dimensions, the Euclidean distance should be distinguished from the [[geodesic|geodesic distance]], the length of a shortest curve that belongs to the surface. In particular, for measuring great-circle distances on the earth or other near-spherical surfaces, distances that have been used include the [[Haversine distance]] giving great-circle distances between two points on a sphere from their longitudes and latitudes, and [[Vincenty's formulae]] also known as "Vincent distance" for distance on a spheroid.
For points on surfaces in three dimensions, the Euclidean distance should be distinguished from the [[geodesic|geodesic distance]], the length of a shortest curve that belongs to the surface. In particular, for measuring great-circle distances on the earth or other near-spherical surfaces, distances that have been used include the [[Haversine distance]] giving great-circle distances between two points on a sphere from their longitudes and latitudes, and [[Vincenty's formulae]] also known as "Vincent distance" for distance on a spheroid.

==History==
Euclidean distance is the distance in [[Euclidean space]]; both concepts are named after ancient Greek mathematician [[Euclid]], whose [[Euclid's Elements|''Elements'']] became a standard textbook in geometry for many centuries.<ref>{{citation|title=Visualization for Information Retrieval|first=Jin|last=Zhang|publisher=Springer|year=2007|isbn=9783540751489}}</ref> Concepts of [[length]] and [[distance]] are widespread across cultures, can be dated to the earliest surviving "protoliterate" bureaucratic documents from [[Sumer]] in the fourth millenium BC (far before [[Euclid]]),<ref>{{citation|last=Høyrup|first=Jens|author-link=Jens Høyrup|editor1-last=Jones|editor1-first=Alexander|editor2-last=Taub|editor2-first=Liba|editor2-link=Liba Taub|contribution=Mesopotamian mathematics|contribution-url=https://akira.ruc.dk/~jensh/Publications/2018%7Bj%7D_Mesopotamian%20Mathematics_S.pdf|pages=58–72|publisher=Cambridge University Press|title=The Cambridge History of Science, Volume 1: Ancient Science|year=2018}}</ref> and have been hypothesized to develop in children earlier than the related concepts of speed and time.<ref>{{citation|last1=Acredolo|first1=Curt|last2=Schmid|first2=Jeannine|doi=10.1037/0012-1649.17.4.490|issue=4|journal=[[Developmental Psychology (journal)|Developmental Psychology]]|pages=490–493|title=The understanding of relative speeds, distances, and durations of movement|volume=17|year=1981}}</ref> But the notion of a distance, as a number defined from two points, does not actually appear in Euclid's ''Elements''. Instead, Euclid approaches this concept implicitly, through the [[Congruence (geometry)|congruence]] of line segments, through the comparison of lengths of line segments, and through the concept of [[Proportionality (mathematics)|proportionality]].<ref>{{citation|last=Henderson|first=David W.|authorlink=David W. Henderson|journal=[[Bulletin of the American Mathematical Society]]|pages=563–571|title=Review of ''Geometry: Euclid and Beyond'' by Robin Hartshorne|url=https://www.ams.org/journals/bull/2002-39-04/S0273-0979-02-00949-7|volume=39|year=2002}}</ref>

The [[Pythagorean theorem]] is also ancient, but it only took its central role in the measurement of distances with the invention of [[Cartesian coordinates]] by [[René Descartes]] in 1637.<ref>{{citation|last=Maor|first=Eli|author-link=Eli Maor|isbn=9780691196886|page=133|publisher=Princeton University Press|title=The Pythagorean Theorem: A 4,000-Year History|url=https://books.google.com/books?id=XuWZDwAAQBAJ&pg=PA133|year=2019}}</ref> And although accurate measurements of long distances on the earth's surface, which are not Euclidean, had again been studied in many cultures since ancient times (see [[history of geodesy]]), the idea that Euclidean distance might not be the only way of measuring distances between points in mathematical spaces came even later, with the 19th-century formulation of [[non-Euclidean geometry]].<ref>{{citation|last=Milnor|first=John|author-link=John Milnor|doi=10.1090/S0273-0979-1982-14958-8|issue=1|journal=[[Bulletin of the American Mathematical Society]]|mr=634431|pages=9–24|title=Hyperbolic geometry: the first 150 years|volume=6|year=1982}}</ref> The definition of the Euclidean norm and Euclidean distance for geometries of more than three dimensions also first appeared in the 19th century, in the work of [[Augustin-Louis Cauchy]].<ref>{{citation|title=Foundations of Hyperbolic Manifolds|volume=149|series=[[Graduate Texts in Mathematics]]|first=John G.|last=Ratcliffe|edition=3rd|publisher=Springer|year=2019|isbn=9783030315979|page=32|url=https://books.google.com/books?id=yMO4DwAAQBAJ&pg=PA32}}</ref>


==See also==
==See also==

Revision as of 18:22, 21 October 2020

Using the Pythagorean theorem to compute two-dimensional Euclidean distance

In mathematics, the Euclidean distance between two points in Euclidean space is a number, the length of a line segment between the two points. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem. It is occasionally called the Pythagorean distance, especially as a way to contrast three-dimensional Euclidean distance with geodesic distance, the length of a shortest curve along some surface such as that of the earth.

The distance between two objects that are not points is usually defined to be the smallest distance between any two points from the two objects. Various formulas are known for computing distances between different types of objects, such as the distance from a point to a line.

Distance formulas

One dimension

The distance between any two points on the real line is the absolute value of the numerical difference of their coordinates. Thus if and are two points on the real line, then the distance between them is given by:[1]

A more complicated formula, giving the same value, but generalizing more readily to higher dimensions, is:[1]

In this formula, squaring and then taking the square root leaves any positive number unchanged, but replaces any negative number by its absolute value.[1]

Two dimensions

In the Euclidean plane, let point have Cartesian coordinates and let point have coordinates . Then the distance between and is given by:[2]

This can be seen by applying the Pythagorean theorem to a right triangle with horizontal and vertical sides, having the line segment from to as its hypotenuse. The two squared formulas inside the square root give the areas of squares on the horizontal and vertical sides, and the outer square root converts the area of the square on the hypotenuse into the length of the hypotenuse.

It is also possible to compute the distance for points given by polar coordinates. If the polar coordinates of are and the polar coordinates of are , then their distance is[2]

When and are expressed as complex numbers in the complex plane, the same formula used for one-dimensional points expressed as real numbers can be used:[3]

Higher dimensions

Deriving the -dimensional Euclidean distance formula by repeatedly applying the Pythagorean theorem

In general, for points given by Cartesian coordinates in -dimensional Euclidean space, the distance is[4]

Other objects than points

For pairs of objects that are not both points, the distance can be defined as the smallest distance between any two points from the two objects. Formulas for computing distances between different types of objects include:

Squared Euclidean distance

In many applications, and in particular when comparing distances, it may be more convenient to omit the final square root in the calculation of Euclidean distances. The value resulting from this omission is the square of the Euclidean distance, and is called the squared Euclidean distance.[5] As an equation:

Beyond its application to distance comparison, squared Euclidean distance is of central importance in statistics, where it is used in the method of least squares, a standard method of fitting linear functions to data by finding the function that minimizes the average of the (one-dimensional) squared distances between the observed function values and the values predicted by the fit.[6] In cluster analysis, squared distances can be used to strengthen the effect of longer distances.[5]

Squared Euclidean distance is not a metric, as it does not satisfy the triangle inequality.[7] However it is a smooth, strictly convex function of the two points, unlike the distance, which is non-smooth for equal points and convex but not strictly convex. The squared distance is thus preferred in optimization theory, since it allows convex analysis to be used. Since squaring is a monotonic function of non-negative values, minimizing squared distance is equivalent to minimizing the Euclidean distance, so the optimization problem is equivalent in terms of either, but easier to solve using squared distance.

In the terminology of rational trigonometry, squared Euclidean distance is also called "quadrance".[8]

Generalizations

In more advanced areas of mathematics, Euclidean space and its distance provides a standard example of a metric space, called the Euclidean metric. When viewing Euclidean space as a vector space, its distance is associated with a norm called the Euclidean norm. It can be extended to more general vector spaces as the L2 norm or L2 distance.

Other common distances on Euclidean spaces and low-dimensional vector spaces include:

  • Chebyshev distance, which measures distance assuming only the most significant dimension is relevant.
  • Manhattan distance, which measures distance following only axis-aligned directions.
  • Minkowski distance, a generalization that unifies Euclidean distance, Manhattan distance, and Chebyshev distance.

For points on surfaces in three dimensions, the Euclidean distance should be distinguished from the geodesic distance, the length of a shortest curve that belongs to the surface. In particular, for measuring great-circle distances on the earth or other near-spherical surfaces, distances that have been used include the Haversine distance giving great-circle distances between two points on a sphere from their longitudes and latitudes, and Vincenty's formulae also known as "Vincent distance" for distance on a spheroid.

History

Euclidean distance is the distance in Euclidean space; both concepts are named after ancient Greek mathematician Euclid, whose Elements became a standard textbook in geometry for many centuries.[9] Concepts of length and distance are widespread across cultures, can be dated to the earliest surviving "protoliterate" bureaucratic documents from Sumer in the fourth millenium BC (far before Euclid),[10] and have been hypothesized to develop in children earlier than the related concepts of speed and time.[11] But the notion of a distance, as a number defined from two points, does not actually appear in Euclid's Elements. Instead, Euclid approaches this concept implicitly, through the congruence of line segments, through the comparison of lengths of line segments, and through the concept of proportionality.[12]

The Pythagorean theorem is also ancient, but it only took its central role in the measurement of distances with the invention of Cartesian coordinates by René Descartes in 1637.[13] And although accurate measurements of long distances on the earth's surface, which are not Euclidean, had again been studied in many cultures since ancient times (see history of geodesy), the idea that Euclidean distance might not be the only way of measuring distances between points in mathematical spaces came even later, with the 19th-century formulation of non-Euclidean geometry.[14] The definition of the Euclidean norm and Euclidean distance for geometries of more than three dimensions also first appeared in the 19th century, in the work of Augustin-Louis Cauchy.[15]

See also

References

  1. ^ a b c Smith, Karl (2013), Precalculus: A Functional Approach to Graphing and Problem Solving, Jones & Bartlett Publishers, p. 8, ISBN 9780763751777
  2. ^ a b Cohen, David (2004), Precalculus: A Problems-Oriented Approach (6th ed.), Cengage Learning, p. 698, ISBN 9780534402129
  3. ^ Andreescu, Titu; Andrica, Dorin (2014), "3.1.1 The Distance Between Two Points", Complex Numbers from A to ... Z (2nd ed.), Birkhäuser, pp. 57–58, ISBN 978-0-8176-8415-0
  4. ^ Tabak, John (2014), Geometry: The Language of Space and Form, Facts on File math library, Infobase Publishing, p. 150, ISBN 9780816068760
  5. ^ a b Spencer, Neil H. (2013), "5.4.5 Squared Euclidean Distances", Essentials of Multivariate Data Analysis, CRC Press, p. 95, ISBN 9781466584792
  6. ^ Randolph, Karen A.; Myers, Laura L. (2013), Basic Statistics in Multivariate Analysis, Pocket Guide to Social Work Research Methods, Oxford University Press, p. 116, ISBN 9780199764044
  7. ^ Mielke, Paul W.; Berry, Kenneth J. (2000), "Euclidean distance based permutation methods in atmospheric science", in Brown, Timothy J.; Mielke, Paul W. Jr. (eds.), Statistical Mining and Data Visualization in Atmospheric Sciences, Springer, pp. 7–27, doi:10.1007/978-1-4757-6581-6_2
  8. ^ Henle, Michael (December 2007), "Review of Divine Proportions by N. J. Wildberger", American Mathematical Monthly, 114 (10): 933–937, JSTOR 27642383
  9. ^ Zhang, Jin (2007), Visualization for Information Retrieval, Springer, ISBN 9783540751489
  10. ^ Høyrup, Jens (2018), "Mesopotamian mathematics" (PDF), in Jones, Alexander; Taub, Liba (eds.), The Cambridge History of Science, Volume 1: Ancient Science, Cambridge University Press, pp. 58–72
  11. ^ Acredolo, Curt; Schmid, Jeannine (1981), "The understanding of relative speeds, distances, and durations of movement", Developmental Psychology, 17 (4): 490–493, doi:10.1037/0012-1649.17.4.490
  12. ^ Henderson, David W. (2002), "Review of Geometry: Euclid and Beyond by Robin Hartshorne", Bulletin of the American Mathematical Society, 39: 563–571
  13. ^ Maor, Eli (2019), The Pythagorean Theorem: A 4,000-Year History, Princeton University Press, p. 133, ISBN 9780691196886
  14. ^ Milnor, John (1982), "Hyperbolic geometry: the first 150 years", Bulletin of the American Mathematical Society, 6 (1): 9–24, doi:10.1090/S0273-0979-1982-14958-8, MR 0634431
  15. ^ Ratcliffe, John G. (2019), Foundations of Hyperbolic Manifolds, Graduate Texts in Mathematics, vol. 149 (3rd ed.), Springer, p. 32, ISBN 9783030315979