{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe expand a squared length, which proves both directions at once.\n\n1. Let $x = A - B$ and $y = C - B$. With the [[Euclidean distance|0NPPGHQNXQ]] and the [[length|0XKBKGTCPC]], $d(A, B) = \\norm{x}$, $d(B, C) = \\norm{y}$ and $d(A, C) = \\norm{x - y}$.\n2. The [[dot product|0S52TNNTH9]] is bilinear and symmetric. So $\\norm{x - y}^2 = \\norm{x}^2 + \\norm{y}^2 - 2 \\, x \\cdot y$.\n3. By steps 1 and 2, $d(A, C)^2 = d(A, B)^2 + d(B, C)^2$ holds if and only if $x \\cdot y = 0$.\n4. The vertices of the [[triangle|0CTNFGYMM2]] are not collinear, so they are distinct. Thus $x \\neq 0$ and $y \\neq 0$.\n5. By definition, the [[angle|0GJAJC6TNZ]] $\\angle ABC$ is the angle between $x$ and $y$. Since both are nonzero, $x \\cdot y = 0$ holds [[if and only if this angle is $\\pi / 2$|03NK6RSRQ1]].\n6. Steps 3 and 5 give: $d(A, C)^2 = d(A, B)^2 + d(B, C)^2$ if and only if $\\angle ABC = \\pi / 2$.\n\n## Idea\n\nThe square of the side $AC$ is the sum of the squares of the other two sides, minus twice a dot product. This correction term vanishes exactly when the two sides at $B$ are perpendicular. So one computation gives the theorem and its converse.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "51M04"
    ],
    "name": "Proof of the Pythagorean theorem and its converse with the dot product",
    "proves": "0VP3A1290K",
    "sources": [
      {
        "locator": "Using vectors",
        "url": "https://en.wikipedia.org/wiki/Law_of_cosines"
      }
    ],
    "tag": "J157D5FVP4",
    "uses": [
      "0CTNFGYMM2",
      "0GJAJC6TNZ",
      "0NPPGHQNXQ",
      "0XKBKGTCPC",
      "0S52TNNTH9",
      "03NK6RSRQ1"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/J157D5FVP4/",
  "links": [
    {
      "field": "proves",
      "target": "0VP3A1290K"
    },
    {
      "field": "uses",
      "target": "0CTNFGYMM2"
    },
    {
      "field": "uses",
      "target": "0GJAJC6TNZ"
    },
    {
      "field": "uses",
      "target": "0NPPGHQNXQ"
    },
    {
      "field": "uses",
      "target": "0XKBKGTCPC"
    },
    {
      "field": "uses",
      "target": "0S52TNNTH9"
    },
    {
      "field": "uses",
      "target": "03NK6RSRQ1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/J157D5FVP4.md",
  "msc": [
    "51M04"
  ],
  "name": "Proof of the Pythagorean theorem and its converse with the dot product",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/J15/J157D5FVP4.md",
  "status": null,
  "tag": "J157D5FVP4",
  "uri": "m2://J157D5FVP4",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-pythagorean-theorem-and-its-converse-with-the-dot-product/",
  "writing": {
    "tag": "J157D5FVP4",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
