{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $F$ be a [[field|04C5ZBG1WT]].\nA *quaternion algebra* over $F$ is a [[central simple algebra|5HRKJBAY2V]] over $F$ of dimension $4$.\n\nLet the [[characteristic|0F6ES3BRYP]] of $F$ be different from $2$, and let $a, b \\in F$ be nonzero.\nThe quaternion algebra $\\left(\\frac{a, b}{F}\\right)$ is the [[associative algebra|3CTW1P4HBP]] over $F$ with basis $1, i, j, k$ and multiplication determined by\n$$i^2 = a, \\qquad j^2 = b, \\qquad ij = -ji = k.$$\n\n## Remarks\n\nWhen the characteristic of $F$ is not $2$, every quaternion algebra over $F$ is isomorphic to $\\left(\\frac{a, b}{F}\\right)$ for some nonzero $a, b$.\nIn this algebra $k^2 = -ab$.\n\nExample: $\\left(\\frac{-1, -1}{\\R}\\right)$ is Hamilton's algebra $\\mathbb{H}$ of quaternions.\nThe element $q = x + yi + zj + wk$ has $q \\bar{q} = x^2 + y^2 + z^2 + w^2$ for $\\bar{q} = x - yi - zj - wk$, so every $q \\ne 0$ is invertible, and $\\mathbb{H}$ is a division algebra.\n\nExample: $\\left(\\frac{1, 1}{F}\\right) \\cong M_2(F)$, through $i \\mapsto \\begin{pmatrix} 1 \u0026 0 \\\\ 0 \u0026 -1 \\end{pmatrix}$ and $j \\mapsto \\begin{pmatrix} 0 \u0026 1 \\\\ 1 \u0026 0 \\end{pmatrix}$.\n\nNon-example: the algebra $F[x, y]/(x^2 - a, y^2 - b, xy - yx)$ also has dimension $4$, but it is commutative, so its center is not $F$ and it is not a quaternion algebra.\n\nEvery quaternion algebra is either a division algebra or isomorphic to $M_2(F)$.\nThe algebra $\\left(\\frac{a, b}{F}\\right)$ is isomorphic to $M_2(F)$ if and only if the equation $a x^2 + b y^2 = 1$ has a solution with $x, y \\in F$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "ZWXW0T3EAC",
    "kind": "definition",
    "msc": [
      "16K20",
      "11R52"
    ],
    "name": "Quaternion algebra",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Quaternion_algebra"
      }
    ],
    "tag": "AM07TESJED",
    "uses": [
      "04C5ZBG1WT",
      "0F6ES3BRYP",
      "3CTW1P4HBP",
      "5HRKJBAY2V"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/AM07TESJED/",
  "links": [
    {
      "field": "defines",
      "target": "ZWXW0T3EAC"
    },
    {
      "field": "uses",
      "target": "04C5ZBG1WT"
    },
    {
      "field": "uses",
      "target": "0F6ES3BRYP"
    },
    {
      "field": "uses",
      "target": "3CTW1P4HBP"
    },
    {
      "field": "uses",
      "target": "5HRKJBAY2V"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/AM07TESJED.md",
  "msc": [
    "16K20",
    "11R52"
  ],
  "name": "Quaternion algebra",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/AM0/AM07TESJED.md",
  "status": null,
  "tag": "AM07TESJED",
  "uri": "m2://AM07TESJED",
  "url": "https://tamnd.github.io/math2/wiki/quaternion-algebra-definition/",
  "writing": {
    "tag": "AM07TESJED",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
