{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $ABCD$ be a convex [[cyclic quadrilateral|0RCP929Y1M]] in the Euclidean plane with side lengths $a$, $b$, $c$, $d$.\nLet $s = \\frac{1}{2}(a + b + c + d)$ be its semiperimeter.\nThen the area $K$ of $ABCD$ is\n$$K = \\sqrt{(s - a)(s - b)(s - c)(s - d)}.$$\n\n## Remarks\n\nThe diagonal $AC$ splits $ABCD$ into two triangles, and the opposite angles at $B$ and $D$ add up to $\\pi$ because $ABCD$ is cyclic.\nComputing $AC^2$ by the law of cosines in both triangles and adding the two areas gives the formula after factoring.\nExample: a $3 \\times 4$ rectangle is cyclic, $s = 7$, and $\\sqrt{4 \\cdot 3 \\cdot 4 \\cdot 3} = 12$.\nThe hypothesis that $ABCD$ is cyclic is needed.\nA rhombus with side $1$ and an angle $\\theta \\ne \\pi/2$ has area $\\sin \\theta \u003c 1$, but the formula would give $1$.\nLetting $d = 0$ turns the formula into [[Heron's formula|0FRBZ2X4HJ]] for a triangle.\n\n## Explanations\n\n### L1 human\n\nFor a quadrilateral whose corners all lie on one circle, the area depends only on the four side lengths.\nBrahmagupta's formula computes it directly from them.\nIt looks just like Heron's formula for triangles, with one more factor.\n\n### L2 human\n\nFor a general quadrilateral the four sides do not fix the area, since the shape can flex.\nAmong all quadrilaterals with given sides, the cyclic one has the largest area, and Brahmagupta's formula gives that maximum.\nBretschneider's formula extends it to all convex quadrilaterals by an extra term that involves the sum of two opposite angles.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "0RCP929Y1M"
    ],
    "kind": "statement",
    "msc": [
      "51M04",
      "51M25"
    ],
    "name": "Brahmagupta's formula",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1149348",
      "wikipedia": "Brahmagupta's formula"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Brahmagupta%27s_formula"
      }
    ],
    "tag": "C0NQDQAZ2Y",
    "uses": [
      "0RCP929Y1M"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/C0NQDQAZ2Y/",
  "links": [
    {
      "field": "about",
      "target": "0RCP929Y1M"
    },
    {
      "field": "uses",
      "target": "0RCP929Y1M"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/C0NQDQAZ2Y.md",
  "msc": [
    "51M04",
    "51M25"
  ],
  "name": "Brahmagupta's formula",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/C0N/C0NQDQAZ2Y.md",
  "status": null,
  "tag": "C0NQDQAZ2Y",
  "uri": "m2://C0NQDQAZ2Y",
  "url": "https://tamnd.github.io/math2/wiki/brahmaguptas-formula/",
  "writing": {
    "tag": "C0NQDQAZ2Y",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
