{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $n$ be a positive integer, let $a$ be a vector in $\\mathbb{R}^n$, and let $b$ be a nonzero vector in $\\mathbb{R}^n$. Let $a \\cdot b = a_1 b_1 + \\dots + a_n b_n$ be the dot product.\nThe vector projection of $a$ onto $b$ is the vector\n$$\\operatorname{proj}_b a = \\frac{a \\cdot b}{b \\cdot b} \\, b.$$\nThe scalar projection of $a$ onto $b$ is the real number $\\dfrac{a \\cdot b}{\\|b\\|}$, where $\\|b\\|$ is the [[length|0XKBKGTCPC]] of $b$.\n\n## Remarks\n\nThe vector $a - \\operatorname{proj}_b a$ is the vector rejection of $a$ from $b$. Its dot product with $b$ is $0$, so it is [[perpendicular to $b$|03NK6RSRQ1]].\nAmong all multiples $c b$ of $b$, the projection is the one that makes $\\|a - c b\\|$ smallest.\nIf $\\theta$ is the angle between $a \\neq 0$ and $b$, then the scalar projection is $\\|a\\| \\cos \\theta$.\n\n## Explanations\n\n### L1 human\n\nThe projection answers the question \"how much of $a$ points along $b$?\". For $a = (3, 4)$ and $b = (1, 0)$ the projection is $(3, 0)$. The rest, $(0, 4)$, is perpendicular to $b$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0JW13B48YP",
    "kind": "definition",
    "msc": [
      "51N20"
    ],
    "name": "Vector projection",
    "sources": [
      {
        "locator": "Definitions in terms of a and b",
        "url": "https://en.wikipedia.org/wiki/Vector_projection"
      }
    ],
    "tag": "0G78GP5TF1",
    "uses": [
      "0QN3D80AWP",
      "0XKBKGTCPC",
      "03NK6RSRQ1"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0G78GP5TF1/",
  "links": [
    {
      "field": "defines",
      "target": "0JW13B48YP"
    },
    {
      "field": "uses",
      "target": "0QN3D80AWP"
    },
    {
      "field": "uses",
      "target": "0XKBKGTCPC"
    },
    {
      "field": "uses",
      "target": "03NK6RSRQ1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0G78GP5TF1.md",
  "msc": [
    "51N20"
  ],
  "name": "Vector projection",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0G7/0G78GP5TF1.md",
  "status": null,
  "tag": "0G78GP5TF1",
  "uri": "m2://0G78GP5TF1",
  "url": "https://math2.tamnd.com/wiki/vector-projection-definition/",
  "writing": {
    "tag": "0G78GP5TF1",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
