<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Distance_Between_Two_Points</id>
	<title>Distance Between Two Points - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Distance_Between_Two_Points"/>
	<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;action=history"/>
	<updated>2026-08-10T17:13:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3012&amp;oldid=prev</id>
		<title>Lila: /* Squared Euclidean distance */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3012&amp;oldid=prev"/>
		<updated>2021-10-26T19:33:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Squared Euclidean distance&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:33, 26 October 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot; &gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Squared Euclidean distance ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Squared Euclidean distance ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:3d-function-5.svg|A cone, the graph of Euclidean distance from the origin in the plane]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:3d-function-5.svg&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|frame&lt;/ins&gt;|A cone, the graph of Euclidean distance from the origin in the plane]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:3d-function-2.svg|A paraboloid, the graph of squared Euclidean distance from the origin]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:3d-function-2.svg&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|frame&lt;/ins&gt;|A paraboloid, the graph of squared Euclidean distance from the origin]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;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'''. As an equation, it can be expressed as a sum of squares:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;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'''. As an equation, it can be expressed as a sum of squares:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3011&amp;oldid=prev</id>
		<title>Lila: /* Squared Euclidean distance */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3011&amp;oldid=prev"/>
		<updated>2021-10-26T19:32:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Squared Euclidean distance&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:32, 26 October 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot; &gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Squared Euclidean distance ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Squared Euclidean distance ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{multiple image&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Image:&lt;/ins&gt;3d-function-5.svg|A cone, the graph of Euclidean distance from the origin in the plane&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|image1=&lt;/del&gt;3d-function-5.svg&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Image:&lt;/ins&gt;3d-function-2.svg|A paraboloid, the graph of squared Euclidean distance from the origin&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;caption1=&lt;/del&gt;A cone, the graph of Euclidean distance from the origin in the plane&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|image2=&lt;/del&gt;3d-function-2.svg&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;caption2=&lt;/del&gt;A paraboloid, the graph of squared Euclidean distance from the origin&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;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'''. As an equation, it can be expressed as a sum of squares:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;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'''. As an equation, it can be expressed as a sum of squares:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3010&amp;oldid=prev</id>
		<title>Lila at 19:27, 26 October 2021</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3010&amp;oldid=prev"/>
		<updated>2021-10-26T19:27:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:27, 26 October 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The distance between any two points on the real line is the absolute value of the numerical difference of their coordinates. Thus if &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are two points on the real line, then the distance between them is given by:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The distance between any two points on the real line is the absolute value of the numerical difference of their coordinates. Thus if &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are two points on the real line, then the distance between them is given by:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = |p-q|.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = |p-q|.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A more complicated formula, giving the same value, but generalizing more readily to higher dimensions, is:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref name=smith /&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A more complicated formula, giving the same value, but generalizing more readily to higher dimensions, is:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(p-q)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(p-q)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this formula, squaring and then taking the square root leaves any positive number unchanged, but replaces any negative number by its absolute value.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref name=smith /&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this formula, squaring and then taking the square root leaves any positive number unchanged, but replaces any negative number by its absolute value.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Two dimensions ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Two dimensions ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the Euclidean plane, let point &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; have Cartesian coordinates &amp;lt;math&amp;gt;(p_1,p_2)&amp;lt;/math&amp;gt; and let point &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; have coordinates &amp;lt;math&amp;gt;(q_1,q_2)&amp;lt;/math&amp;gt;. Then the distance between &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; is given by:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref name=cohen&amp;gt;{{citation|title=Precalculus: A Problems-Oriented Approach|first=David|last=Cohen|edition=6th|publisher=Cengage Learning|year=2004|isbn=978-0-534-40212-9|page=698|url=https://books.google.com/books?id=_6ukev29gmgC&amp;amp;pg=PA698}}&amp;lt;/ref&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the Euclidean plane, let point &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; have Cartesian coordinates &amp;lt;math&amp;gt;(p_1,p_2)&amp;lt;/math&amp;gt; and let point &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; have coordinates &amp;lt;math&amp;gt;(q_1,q_2)&amp;lt;/math&amp;gt;. Then the distance between &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; is given by:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(q_1-p_1)^2 + (q_2-p_2)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(q_1-p_1)^2 + (q_2-p_2)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This can be seen by applying the Pythagorean theorem to a right triangle with horizontal and vertical sides, having the line segment from &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; 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.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This can be seen by applying the Pythagorean theorem to a right triangle with horizontal and vertical sides, having the line segment from &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; 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.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is also possible to compute the distance for points given by polar coordinates. If the polar coordinates of &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(r,\theta)&amp;lt;/math&amp;gt; and the polar coordinates of &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(s,\psi)&amp;lt;/math&amp;gt;, then their distance is&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref name=cohen /&amp;gt; &lt;/del&gt;given by the law of cosines:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is also possible to compute the distance for points given by polar coordinates. If the polar coordinates of &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(r,\theta)&amp;lt;/math&amp;gt; and the polar coordinates of &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(s,\psi)&amp;lt;/math&amp;gt;, then their distance is given by the law of cosines:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q)=\sqrt{r^2 + s^2 - 2rs\cos(\theta-\psi)}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q)=\sqrt{r^2 + s^2 - 2rs\cos(\theta-\psi)}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot; &gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In three dimensions, for points given by their Cartesian coordinates, the distance is&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In three dimensions, for points given by their Cartesian coordinates, the distance is&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q)=\sqrt{(p_1-q_1)^2 + (p_2-q_2)^2 + (p_3-q_3)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q)=\sqrt{(p_1-q_1)^2 + (p_2-q_2)^2 + (p_3-q_3)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In general, for points given by Cartesian coordinates in &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-dimensional Euclidean space, the distance is&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref&amp;gt;{{citation|title=Geometry: The Language of Space and Form|series=Facts on File math library|first=John|last=Tabak|publisher=Infobase Publishing|year=2014|isbn=978-0-8160-6876-0|page=150|url=https://books.google.com/books?id=r0HuPiexnYwC&amp;amp;pg=PA150}}&amp;lt;/ref&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In general, for points given by Cartesian coordinates in &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-dimensional Euclidean space, the distance is&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(p_1- q_1)^2 + (p_2 - q_2)^2+\cdots+(p_i - q_i)^2+\cdots+(p_n - q_n)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(p_1- q_1)^2 + (p_2 - q_2)^2+\cdots+(p_i - q_i)^2+\cdots+(p_n - q_n)^2}.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot; &gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|caption2=A paraboloid, the graph of squared Euclidean distance from the origin&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|caption2=A paraboloid, the graph of squared Euclidean distance from the origin&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;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'''.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref name=spencer /&amp;gt; &lt;/del&gt;As an equation, it can be expressed as a sum of squares:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;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'''. As an equation, it can be expressed as a sum of squares:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d^2(p,q) = (p_1 - q_1)^2 + (p_2 - q_2)^2+\cdots+(p_i - q_i)^2+\cdots+(p_n - q_n)^2.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=block&amp;gt;d^2(p,q) = (p_1 - q_1)^2 + (p_2 - q_2)^2+\cdots+(p_i - q_i)^2+\cdots+(p_n - q_n)^2.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3009&amp;oldid=prev</id>
		<title>Lila at 19:26, 26 October 2021</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=3009&amp;oldid=prev"/>
		<updated>2021-10-26T19:26:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;amp;diff=3009&amp;amp;oldid=2954&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=2954&amp;oldid=prev</id>
		<title>Lila: Lila moved page Distance Between Two Points in the Real Numbers to Distance Between Two Points</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=2954&amp;oldid=prev"/>
		<updated>2021-10-25T19:49:00Z</updated>

		<summary type="html">&lt;p&gt;Lila moved page &lt;a href=&quot;/wiki/index.php?title=Distance_Between_Two_Points_in_the_Real_Numbers&quot; class=&quot;mw-redirect&quot; title=&quot;Distance Between Two Points in the Real Numbers&quot;&gt;Distance Between Two Points in the Real Numbers&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php?title=Distance_Between_Two_Points&quot; title=&quot;Distance Between Two Points&quot;&gt;Distance Between Two Points&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:49, 25 October 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=2951&amp;oldid=prev</id>
		<title>Lila: Created page with &quot;Using the Pythagorean theorem to compute two-dimensional Euclidean distance In mathematics, the '''Euclidean distance...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Distance_Between_Two_Points&amp;diff=2951&amp;oldid=prev"/>
		<updated>2021-10-25T19:38:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php?title=File:Euclidean_distance_2d.svg&quot; title=&quot;File:Euclidean distance 2d.svg&quot;&gt;thumb|upright=1.35|Using the Pythagorean theorem to compute two-dimensional Euclidean distance&lt;/a&gt; In &lt;a href=&quot;/wiki/index.php?title=Mathematics&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Mathematics (page does not exist)&quot;&gt;mathematics&lt;/a&gt;, the &amp;#039;&amp;#039;&amp;#039;Euclidean distance...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Euclidean distance 2d.svg|thumb|upright=1.35|Using the Pythagorean theorem to compute two-dimensional Euclidean distance]]&lt;br /&gt;
In [[mathematics]], the '''Euclidean distance''' between two points in [[Euclidean space]] is the length of a [[line segment]] between the two points.&lt;br /&gt;
It can be calculated from the [[Cartesian coordinate]]s of the points using the [[Pythagorean theorem]], therefore occasionally being called the '''Pythagorean distance'''. These names come from the ancient Greek mathematicians [[Euclid]] and [[Pythagoras]], although Euclid did not represent distances as numbers, and the connection from the Pythagorean theorem to distance calculation was not made until the 18th century.&lt;br /&gt;
&lt;br /&gt;
The distance between two objects that are not points is usually defined to be the smallest distance among pairs of points from the two objects. Formulas are known for computing distances between different types of objects, such as the [[distance from a point to a line]]. In advanced mathematics, the concept of distance has been generalized to abstract [[metric space]]s, and other distances than Euclidean have been studied. In some applications in statistics and optimization, the square of the Euclidean distance is used instead of the distance itself.&lt;br /&gt;
&lt;br /&gt;
== Distance formulas ==&lt;br /&gt;
=== One dimension ===&lt;br /&gt;
The distance between any two points on the [[real line]] is the [[absolute value]] of the numerical difference of their coordinates. Thus if &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are two points on the real line, then the distance between them is given by:&amp;lt;ref name=smith&amp;gt;{{citation|title=Precalculus: A Functional Approach to Graphing and Problem Solving|first=Karl|last=Smith|publisher=Jones &amp;amp; Bartlett Publishers|year=2013|isbn=978-0-7637-5177-7|page=8|url=https://books.google.com/books?id=ZUJbVQN37bIC&amp;amp;pg=PA8}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q) = |p-q|.&amp;lt;/math&amp;gt;&lt;br /&gt;
A more complicated formula, giving the same value, but generalizing more readily to higher dimensions, is:&amp;lt;ref name=smith /&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(p-q)^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
In this formula, [[square (algebra)|squaring]] and then taking the [[square root]] leaves any positive number unchanged, but replaces any negative number by its absolute value.&amp;lt;ref name=smith /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Two dimensions ===&lt;br /&gt;
In the [[Euclidean plane]], let point &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; have [[Cartesian coordinates]] &amp;lt;math&amp;gt;(p_1,p_2)&amp;lt;/math&amp;gt; and let point &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; have coordinates &amp;lt;math&amp;gt;(q_1,q_2)&amp;lt;/math&amp;gt;. Then the distance between &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; is given by:&amp;lt;ref name=cohen&amp;gt;{{citation|title=Precalculus: A Problems-Oriented Approach|first=David|last=Cohen|edition=6th|publisher=Cengage Learning|year=2004|isbn=978-0-534-40212-9|page=698|url=https://books.google.com/books?id=_6ukev29gmgC&amp;amp;pg=PA698}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(q_1-p_1)^2 + (q_2-p_2)^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
This can be seen by applying the [[Pythagorean theorem]] to a [[right triangle]] with horizontal and vertical sides, having the line segment from &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; 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.&amp;lt;ref&amp;gt;{{citation|title=College Trigonometry|first1=Richard N.|last1=Aufmann|first2=Vernon C.|last2=Barker|first3=Richard D.|last3=Nation|edition=6th|publisher=Cengage Learning|year=2007|isbn=978-1-111-80864-8|page=17|url=https://books.google.com/books?id=kZ8HAAAAQBAJ&amp;amp;pg=PA17}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is also possible to compute the distance for points given by [[Polar coordinate system|polar coordinates]]. If the polar coordinates of &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(r,\theta)&amp;lt;/math&amp;gt; and the polar coordinates of &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are &amp;lt;math&amp;gt;(s,\psi)&amp;lt;/math&amp;gt;, then their distance is&amp;lt;ref name=cohen /&amp;gt; given by the [[law of cosines]]:&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q)=\sqrt{r^2 + s^2 - 2rs\cos(\theta-\psi)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; are expressed as [[complex number]]s in the [[complex plane]], the same formula for one-dimensional points expressed as real numbers can be used:&amp;lt;ref&amp;gt;{{citation|title=Complex Numbers from A to ... Z|first1=Titu|last1=Andreescu|first2=Dorin|last2=Andrica|publisher=Birkhäuser|year=2014|edition=2nd|isbn=978-0-8176-8415-0|contribution=3.1.1 The Distance Between Two Points|pages=57–58}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q)=|p-q|.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Higher dimensions ===&lt;br /&gt;
[[File:Euclidean distance 3d 2 cropped.png|thumb|upright=1.2|Deriving the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-dimensional Euclidean distance formula by repeatedly applying the Pythagorean theorem]]&lt;br /&gt;
In three dimensions, for points given by their Cartesian coordinates, the distance is&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q)=\sqrt{(p_1-q_1)^2 + (p_2-q_2)^2 + (p_3-q_3)^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
In general, for points given by Cartesian coordinates in &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-dimensional Euclidean space, the distance is&amp;lt;ref&amp;gt;{{citation|title=Geometry: The Language of Space and Form|series=Facts on File math library|first=John|last=Tabak|publisher=Infobase Publishing|year=2014|isbn=978-0-8160-6876-0|page=150|url=https://books.google.com/books?id=r0HuPiexnYwC&amp;amp;pg=PA150}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q) = \sqrt{(p_1- q_1)^2 + (p_2 - q_2)^2+\cdots+(p_i - q_i)^2+\cdots+(p_n - q_n)^2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Objects other than points ===&lt;br /&gt;
For pairs of objects that are not both points, the distance can most simply be defined as the smallest distance between any two points from the two objects, although more complicated generalizations from points to sets such as [[Hausdorff distance]] are also commonly used.&amp;lt;ref&amp;gt;{{citation|title=Metric Spaces|series=Springer Undergraduate Mathematics Series|first=Mícheál|last=Ó Searcóid|publisher=Springer|year=2006|isbn=978-1-84628-627-8|contribution=2.7 Distances from Sets to Sets|pages=29–30|url=https://books.google.com/books?id=aP37I4QWFRcC&amp;amp;pg=PA29}}&amp;lt;/ref&amp;gt; Formulas for computing distances between different types of objects include:&lt;br /&gt;
*The [[distance from a point to a line]], in the Euclidean plane&amp;lt;ref name=baljer&amp;gt;{{citation|last1=Ballantine|first1=J. P.|last2=Jerbert|first2=A. R.|date=April 1952|department=Classroom notes|doi=10.2307/2306514|issue=4|journal=[[American Mathematical Monthly]]|jstor=2306514|pages=242–243|title=Distance from a line, or plane, to a point|volume=59}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
*The [[distance from a point to a plane]] in three-dimensional Euclidean space&amp;lt;ref name=baljer /&amp;gt;&lt;br /&gt;
*The [[Skew lines#Distance|distance between two lines]] in three-dimensional Euclidean space&amp;lt;ref&amp;gt;{{citation|last=Bell|first=Robert J. T.|author-link=Robert J. T. Bell|edition=2nd|contribution=49. The shortest distance between two lines|contribution-url=https://archive.org/details/elementarytreati00bell/page/56/mode/2up|pages=57–61|publisher=Macmillan|title=An Elementary Treatise on Coordinate Geometry of Three Dimensions|year=1914}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
The Euclidean distance is the prototypical example of the distance in a [[metric space]],&amp;lt;ref&amp;gt;{{citation|title=Easy as π?: An Introduction to Higher Mathematics|first=Oleg A.|last=Ivanov|publisher=Springer|year=2013|isbn=978-1-4612-0553-1|page=140|url=https://books.google.com/books?id=reALBwAAQBAJ&amp;amp;pg=PA140}}&amp;lt;/ref&amp;gt; and obeys all the defining properties of a metric space:&amp;lt;ref name=strichartz&amp;gt;{{citation|title=The Way of Analysis|first=Robert S.|last=Strichartz|publisher=Jones &amp;amp; Bartlett Learning|year=2000|isbn=978-0-7637-1497-0|page=357|url=https://books.google.com/books?id=Yix09oVvI1IC&amp;amp;pg=PA357}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
*It is ''symmetric'', meaning that for all points &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d(p,q)=d(q,p)&amp;lt;/math&amp;gt;. That is (unlike road distance with one-way streets) the distance between two points does not depend on which of the two points is the start and which is the destination.&amp;lt;ref name=strichartz /&amp;gt;&lt;br /&gt;
*It is ''positive'', meaning that the distance between every two distinct points is a [[positive number]], while the distance from any point to itself is zero.&amp;lt;ref name=strichartz /&amp;gt;&lt;br /&gt;
*It obeys the [[triangle inequality]]: for every three points &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;d(p,q)+d(q,r)\ge d(p,r)&amp;lt;/math&amp;gt;. Intuitively, traveling from &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; via &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; cannot be any shorter than traveling directly from &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;.&amp;lt;ref name=strichartz /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another property, [[Ptolemy's inequality]], concerns the Euclidean distances among four points &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt;. It states that&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d(p,q)\cdot d(r,s)+d(q,r)\cdot d(p,s)\ge d(p,r)\cdot d(q,s).&amp;lt;/math&amp;gt;&lt;br /&gt;
For points in the plane, this can be rephrased as stating that for every [[quadrilateral]], the products of opposite sides of the quadrilateral sum to at least as large a number as the product of its diagonals. However, Ptolemy's inequality applies more generally to points in Euclidean spaces of any dimension, no matter how they are arranged.&amp;lt;ref&amp;gt;{{citation|title=Rays, Waves, and Scattering: Topics in Classical Mathematical Physics|series=Princeton Series in Applied Mathematics|first=John A.|last=Adam|publisher=Princeton University Press|year=2017|isbn=978-1-4008-8540-4|pages=26–27|chapter-url=https://books.google.com/books?id=DnygDgAAQBAJ&amp;amp;pg=PA26|chapter=Chapter 2. Introduction to the &amp;quot;Physics&amp;quot; of Rays|doi=10.1515/9781400885404-004}}&amp;lt;/ref&amp;gt; Euclidean [[distance geometry]] studies properties of Euclidean distance such as Ptolemy's inequality, and their application in testing whether given sets of distances come from points in a Euclidean space.&amp;lt;ref&amp;gt;{{citation|title=Euclidean Distance Geometry: An Introduction|series=Springer Undergraduate Texts in Mathematics and Technology|first1=Leo|last1=Liberti|first2=Carlile|last2=Lavor|publisher=Springer|year=2017|isbn=978-3-319-60792-4|page=xi|url=https://books.google.com/books?id=jOQ2DwAAQBAJ&amp;amp;pg=PP10}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Squared Euclidean distance ==&lt;br /&gt;
{{multiple image&lt;br /&gt;
|image1=3d-function-5.svg&lt;br /&gt;
|caption1=A [[cone]], the [[Graph of a function|graph]] of Euclidean distance from the origin in the plane&lt;br /&gt;
|image2=3d-function-2.svg&lt;br /&gt;
|caption2=A [[paraboloid]], the graph of squared Euclidean distance from the origin&lt;br /&gt;
}}&lt;br /&gt;
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 (algebra)|square]] of the Euclidean distance, and is called the '''squared Euclidean distance'''.&amp;lt;ref name=spencer /&amp;gt; As an equation, it can be expressed as a [[sum of squares]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt;d^2(p,q) = (p_1 - q_1)^2 + (p_2 - q_2)^2+\cdots+(p_i - q_i)^2+\cdots+(p_n - q_n)^2.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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 statistical estimates to data by minimizing the average of the squared distances between observed and estimated values.&amp;lt;ref&amp;gt;{{citation|title=Basic Statistics in Multivariate Analysis|series=Pocket Guide to Social Work Research Methods|first1=Karen A.|last1=Randolph|author1-link=Karen Randolph|first2=Laura L.|last2=Myers|publisher=Oxford University Press|year=2013|isbn=978-0-19-976404-4|page=116|url=https://books.google.com/books?id=WgSnudjEsrMC&amp;amp;pg=PA116}}&amp;lt;/ref&amp;gt; The addition of squared distances to each other, as is done in least squares fitting, corresponds to an operation on (unsquared) distances called [[Pythagorean addition]].&amp;lt;ref&amp;gt;{{citation |author=Moler, Cleve and Donald Morrison |title=Replacing Square Roots by Pythagorean Sums |journal=IBM Journal of Research and Development |volume=27 |issue=6 |pages=577–581 |year=1983 |url=http://www.research.ibm.com/journal/rd/276/ibmrd2706P.pdf |doi=10.1147/rd.276.0577 | citeseerx = 10.1.1.90.5651 }}&amp;lt;/ref&amp;gt; In [[cluster analysis]], squared distances can be used to strengthen the effect of longer distances.&amp;lt;ref name=spencer&amp;gt;{{citation|title=Essentials of Multivariate Data Analysis|first=Neil H.|last=Spencer|publisher=CRC Press|year=2013|isbn=978-1-4665-8479-2|contribution=5.4.5 Squared Euclidean Distances|page=95|contribution-url=https://books.google.com/books?id=EG3SBQAAQBAJ&amp;amp;pg=PA95}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Squared Euclidean distance does not form a metric space, as it does not satisfy the triangle inequality.&amp;lt;ref&amp;gt;{{citation|last1=Mielke|first1=Paul W.|last2=Berry|first2=Kenneth J.|editor1-last=Brown|editor1-first=Timothy J.|editor2-last=Mielke|editor2-first=Paul W. Jr.|contribution=Euclidean distance based permutation methods in atmospheric science|doi=10.1007/978-1-4757-6581-6_2|pages=7–27|publisher=Springer|title=Statistical Mining and Data Visualization in Atmospheric Sciences|year=2000}}&amp;lt;/ref&amp;gt; However it is a smooth, strictly [[convex function]] of the two points, unlike the distance, which is non-smooth (near pairs of 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.&amp;lt;ref&amp;gt;{{citation|title=Maxima and Minima with Applications: Practical Optimization and Duality|volume=51|series=Wiley Series in Discrete Mathematics and Optimization|first=Wilfred|last=Kaplan|publisher=John Wiley &amp;amp; Sons|year=2011|isbn=978-1-118-03104-9|page=61|url=https://books.google.com/books?id=bAo6KNZcUP0C&amp;amp;pg=PA61}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The collection of all squared distances between pairs of points from a finite set may be stored in a [[Euclidean distance matrix]], and is used in this form in distance geometry.&amp;lt;ref&amp;gt;{{citation|title=Euclidean Distance Matrices and Their Applications in Rigidity Theory|first=Abdo Y.|last=Alfakih|publisher=Springer|year=2018|isbn=978-3-319-97846-8|page=51|url=https://books.google.com/books?id=woJyDwAAQBAJ&amp;amp;pg=PA51}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generalizations ==&lt;br /&gt;
In more advanced areas of mathematics, when viewing Euclidean space as a [[vector space]], its distance is associated with a [[Norm (mathematics)|norm]] called the [[Norm (mathematics)#Euclidean norm|Euclidean norm]], defined as the distance of each vector from the [[Origin (mathematics)|origin]]. One of the important properties of this norm, relative to other norms, is that it remains unchanged under arbitrary rotations of space around the origin.&amp;lt;ref&amp;gt;{{citation|title=Relativistic Celestial Mechanics of the Solar System|first1=Sergei|last1=Kopeikin|first2=Michael|last2=Efroimsky|first3=George|last3=Kaplan|publisher=John Wiley &amp;amp; Sons|year=2011|isbn=978-3-527-63457-6|page=106|url=https://books.google.com/books?id=uN5_DQWSR14C&amp;amp;pg=PA106}}&amp;lt;/ref&amp;gt; By [[Dvoretzky's theorem]], every finite-dimensional [[normed vector space]] has a high-dimensional subspace on which the norm is approximately Euclidean; the Euclidean norm is the&lt;br /&gt;
only norm with this property.&amp;lt;ref&amp;gt;{{citation|last=Matoušek|first=Jiří|author-link=Jiří Matoušek (mathematician)|isbn=978-0-387-95373-1|page=349|publisher=Springer|series=[[Graduate Texts in Mathematics]]|title=Lectures on Discrete Geometry|url=https://books.google.com/books?id=K0fhBwAAQBAJ&amp;amp;pg=PA349|year=2002}}&amp;lt;/ref&amp;gt; It can be extended to infinite-dimensional vector spaces as the [[Lp space|L&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; norm]] or L&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; distance.&amp;lt;ref&amp;gt;{{citation|title=Linear and Nonlinear Functional Analysis with Applications|first=Philippe G.|last=Ciarlet|publisher=Society for Industrial and Applied Mathematics|year=2013|isbn=978-1-61197-258-0|page=173|url=https://books.google.com/books?id=AUlWAQAAQBAJ&amp;amp;pg=PA173}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other common distances on Euclidean spaces and low-dimensional vector spaces include:&amp;lt;ref&amp;gt;{{citation|last=Klamroth|first=Kathrin|author-link=Kathrin Klamroth|contribution=Section 1.1: Norms and Metrics|doi=10.1007/0-387-22707-5_1|pages=4–6|publisher=Springer|series=Springer Series in Operations Research|title=Single-Facility Location Problems with Barriers|year=2002}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
*[[Chebyshev distance]], which measures distance assuming only the most significant dimension is relevant.&lt;br /&gt;
*[[Manhattan distance]], which measures distance following only axis-aligned directions.&lt;br /&gt;
*[[Minkowski distance]], a generalization that unifies Euclidean distance, Manhattan distance, and Chebyshev distance.&lt;br /&gt;
&lt;br /&gt;
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 spherical or 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 &amp;quot;Vincent distance&amp;quot; for distance on a spheroid.&amp;lt;ref&amp;gt;{{citation|title=Computing in Geographic Information Systems|first=Narayan|last=Panigrahi|publisher=CRC Press|year=2014|isbn=978-1-4822-2314-9|contribution=12.2.4 Haversine Formula and 12.2.5 Vincenty's Formula|pages=212–214|url=https://books.google.com/books?id=kjj6AwAAQBAJ&amp;amp;pg=PA212}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Licensing==&lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclidean_distance Euclidean distance, Wikipedia] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
</feed>