{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "031JV5S54D"
    },
    {
      "field": "uses",
      "target": "03J4NZFYRX"
    },
    {
      "field": "uses",
      "target": "0G78GP5TF1"
    },
    {
      "field": "uses",
      "target": "0T4QHJXSD4"
    },
    {
      "field": "uses",
      "target": "0XYP2KKSPC"
    }
  ],
  "body": "\n## Statement\n\nLet $n$ be a positive integer, and let $u$ and $v$ be nonzero vectors in $\\mathbb{R}^n$, with dot product $u \\cdot v = u_1 v_1 + \\dots + u_n v_n$.\nLet $\\theta$ be the [[angle between $u$ and $v$|0ZEHZY85E6]].\nThen $u \\cdot v = 0$ if and only if $\\theta = \\pi / 2$.\n\n## Remarks\n\nThe proof uses the [[geometric formula for the dot product|070TXS9AXM]]: $u \\cdot v = \\|u\\| \\, \\|v\\| \\cos \\theta$ with $\\|u\\| \\neq 0$ and $\\|v\\| \\neq 0$, and $\\cos \\theta = 0$ for $0 \\leq \\theta \\leq \\pi$ only when $\\theta = \\pi / 2$.\nTwo vectors $u$ and $v$ with $u \\cdot v = 0$ are called orthogonal. With this word, the zero vector is orthogonal to each vector.\nIn Mathlib the angle with the zero vector is $\\pi / 2$, so the equivalence holds there for all vectors.\n\n## Explanations\n\n### L1 human\n\nThis gives a quick test for a right angle. The vectors $(2, 1)$ and $(-1, 2)$ have dot product $-2 + 2 = 0$, so they are perpendicular. You do not need to draw them or measure an angle.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "51N20"
    ],
    "name": "Vectors are perpendicular if and only if their dot product is zero",
    "role": "proposition",
    "sources": [
      {
        "locator": "Scalar projection and first properties",
        "url": "https://en.wikipedia.org/wiki/Dot_product"
      },
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Perpendicular"
      }
    ],
    "tag": "03NK6RSRQ1",
    "uses": [
      "0ZEHZY85E6",
      "070TXS9AXM"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/03NK6RSRQ1/",
  "links": [
    {
      "field": "uses",
      "target": "0ZEHZY85E6"
    },
    {
      "field": "uses",
      "target": "070TXS9AXM"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/03NK6RSRQ1.md",
  "msc": [
    "51N20"
  ],
  "name": "Vectors are perpendicular if and only if their dot product is zero",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/03N/03NK6RSRQ1.md",
  "status": null,
  "tag": "03NK6RSRQ1",
  "uri": "m2://03NK6RSRQ1",
  "url": "https://math2.tamnd.com/wiki/vectors-are-perpendicular-if-and-only-if-their-dot-product-is-zero/",
  "writing": {
    "tag": "03NK6RSRQ1",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
