{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. Let $B$ be an $m \\times n$ complex matrix, and let $A = B^* B$, where $^*$ is the [[conjugate transpose|0EX045E2BP]]. Then $A$ is $n \\times n$.\n2. For matrices $X$ and $Y$ with $XY$ defined, $(XY)^* = Y^* X^*$. This is the [[transpose of a product|09GK5PS824]] with all entries conjugated.\n3. By step 2, $A^* = B^* (B^*)^* = B^* B = A$. So $A$ is [[Hermitian|0EKZCX4K3P]].\n4. For a vector $y \\in \\C^m$, we have $y^* y = \\sum_{i=1}^m \\abs{y_i}^2 \\ge 0$, with equality only if $y = 0$.\n5. Let $x \\in \\C^n$. By step 2, $x^* A x = x^* B^* B x = (Bx)^* (Bx)$.\n6. By steps 4 and 5 with $y = Bx$, we get $x^* A x \\ge 0$. So $A$ is [[positive semidefinite|0880F9EQCP]].\n7. Let $b_1, \\dots, b_n$ be the columns of $B$. Then $Bx = x_1 b_1 + \\cdots + x_n b_n$.\n8. By steps 4 and 5, $x^* A x = 0$ holds if and only if $Bx = 0$.\n9. Suppose the columns are [[linearly independent|0EVHJFTG9Z]], and let $x \\ne 0$. By step 7, $Bx \\ne 0$. By step 8, $x^* A x \u003e 0$. So $A$ is [[positive definite|0QQCG3JWJ4]].\n10. Conversely, suppose the columns are linearly dependent. Then there is $x \\ne 0$ with $x_1 b_1 + \\cdots + x_n b_n = 0$, that is, $Bx = 0$.\n11. By step 8, $x^* A x = 0$ for this $x \\ne 0$. So $A$ is not positive definite.\n12. By steps 9 to 11, $B^* B$ is positive definite if and only if the columns of $B$ are linearly independent.\n\n## Idea\n\nThe number $x^* B^* B x$ is the squared length of the vector $Bx$. A squared length is never negative, and it is zero only for the zero vector. The vector $Bx$ is a combination of the columns of $B$, so it vanishes for some $x \\ne 0$ exactly when the columns are dependent.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "15B57",
      "15A63"
    ],
    "name": "Proof that Gram matrices are positive semidefinite",
    "proves": "0AM050KCAW",
    "sources": [
      {
        "locator": "Decomposition",
        "url": "https://en.wikipedia.org/wiki/Definite_matrix"
      }
    ],
    "tag": "1KF3RPY39H",
    "uses": [
      "0880F9EQCP",
      "0QQCG3JWJ4",
      "0EKZCX4K3P",
      "0EX045E2BP",
      "09GK5PS824",
      "0EVHJFTG9Z"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/1KF3RPY39H/",
  "links": [
    {
      "field": "proves",
      "target": "0AM050KCAW"
    },
    {
      "field": "uses",
      "target": "0880F9EQCP"
    },
    {
      "field": "uses",
      "target": "0QQCG3JWJ4"
    },
    {
      "field": "uses",
      "target": "0EKZCX4K3P"
    },
    {
      "field": "uses",
      "target": "0EX045E2BP"
    },
    {
      "field": "uses",
      "target": "09GK5PS824"
    },
    {
      "field": "uses",
      "target": "0EVHJFTG9Z"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/1KF3RPY39H.md",
  "msc": [
    "15B57",
    "15A63"
  ],
  "name": "Proof that Gram matrices are positive semidefinite",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/1KF/1KF3RPY39H.md",
  "status": null,
  "tag": "1KF3RPY39H",
  "uri": "m2://1KF3RPY39H",
  "url": "https://math2.tamnd.com/wiki/proof-that-gram-matrices-are-positive-semidefinite/",
  "writing": {
    "tag": "1KF3RPY39H",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
