{
  "aliases": [
    "euclidean-distance"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "07PFYV65MB"
    }
  ],
  "body": "\n## Example\n\nLet $n \\ge 1$ be an integer.\nFor points $x = (x_1, \\ldots, x_n)$ and $y = (y_1, \\ldots, y_n)$ in $\\mathbb{R}^n$, let\n$$d_2(x, y) = \\sqrt{\\sum_{i=1}^{n} (x_i - y_i)^2}.$$\nThen $d_2$ is a [[metric|063W5JMY85]] on $\\mathbb{R}^n$, the Euclidean metric.\n\n## Remarks\n\nFor $n = 1$, $d_2(x, y) = |x - y|$, the [[usual metric on the real line|0KXJTZSW9B]].\nFor $n = 2$, the formula is the theorem of Pythagoras for the segment from $x$ to $y$.\nThe triangle inequality for $d_2$ follows from the Cauchy–Schwarz inequality.\n\n## Explanations\n\n### L1 human\n\nThe Euclidean metric is the length of the straight segment between two points.\nIn the plane, the distance from $(0, 0)$ to $(3, 4)$ is $\\sqrt{9 + 16} = 5$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "euclidean-distance"
    ],
    "instance_of": [
      "0VKD1TP7F3"
    ],
    "kind": "example",
    "msc": [
      "51M05"
    ],
    "name": "Euclidean metric",
    "sources": [
      {
        "locator": "Higher dimensions",
        "url": "https://en.wikipedia.org/wiki/Euclidean_distance"
      }
    ],
    "tag": "0E1MMCAY5B"
  },
  "kind": "example",
  "link": "https://math2.tamnd.com/node/0E1MMCAY5B/",
  "links": [
    {
      "field": "instance_of",
      "target": "0VKD1TP7F3"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0E1MMCAY5B.md",
  "msc": [
    "51M05"
  ],
  "name": "Euclidean metric",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0E1/0E1MMCAY5B.md",
  "status": null,
  "tag": "0E1MMCAY5B",
  "uri": "m2://0E1MMCAY5B",
  "url": "https://math2.tamnd.com/wiki/euclidean-metric/",
  "writing": {
    "tag": "0E1MMCAY5B",
    "kind": "example",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
