{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe compute $\\sin \\gamma$ from the sides and insert it in the formula $T = \\frac{1}{2} ab \\sin \\gamma$.\n\n1. Let $a = d(B, C)$, $b = d(C, A)$ and $c = d(A, B)$, with the [[Euclidean distance|0NPPGHQNXQ]] $d$. Let $\\gamma = \\angle ACB$ be the [[angle|0GJAJC6TNZ]] at $C$, the angle between the sides of lengths $a$ and $b$. The vertices are distinct, so $a, b \u003e 0$.\n2. The [[area of the triangle|065JWMZW86]] is $T = \\frac{1}{2} ab \\sin \\gamma$.\n3. By the [[law of cosines|060ZVZBV3E]], $c^2 = a^2 + b^2 - 2ab \\cos \\gamma$. So $\\cos \\gamma = \\dfrac{a^2 + b^2 - c^2}{2ab}$.\n4. The [[sine|08WFZP6P89]] is nonnegative on $[0, \\pi]$, and $\\gamma \\in [0, \\pi]$. By the [[identity $\\sin^2 + \\cos^2 = 1$|03H7WZ4T3K]], $\\sin \\gamma = \\sqrt{1 - \\cos^2 \\gamma}$.\n5. By step 3, $1 - \\cos^2 \\gamma = \\dfrac{4a^2b^2 - (a^2 + b^2 - c^2)^2}{4a^2b^2}$. Let $Q = 4a^2b^2 - (a^2 + b^2 - c^2)^2$. Step 4 shows $Q \\geq 0$, and $\\sin \\gamma = \\dfrac{\\sqrt{Q}}{2ab}$.\n6. By steps 2 and 5, $T = \\frac{1}{2} ab \\cdot \\dfrac{\\sqrt{Q}}{2ab} = \\dfrac{\\sqrt{Q}}{4}$.\n7. As a difference of squares, $Q = (2ab - a^2 - b^2 + c^2)(2ab + a^2 + b^2 - c^2) = \\left( c^2 - (a - b)^2 \\right) \\left( (a + b)^2 - c^2 \\right)$.\n8. Two more differences of squares give $Q = (c - a + b)(c + a - b)(a + b - c)(a + b + c)$.\n9. Since $a + b + c = 2s$, the four factors are $-a + b + c = 2(s - a)$, $a - b + c = 2(s - b)$, $a + b - c = 2(s - c)$ and $a + b + c = 2s$.\n10. So $Q = 16 \\, s (s - a)(s - b)(s - c)$.\n11. By steps 6 and 10, $T = \\dfrac{\\sqrt{16 \\, s(s - a)(s - b)(s - c)}}{4} = \\sqrt{s (s - a)(s - b)(s - c)}$.\n\n## Idea\n\nTwo sides and the angle between them give the area, and the law of cosines gives that angle from the three sides. The expression under the square root factors completely by differences of squares. Each factor is twice $s$ or twice $s$ minus a side.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "51M25"
    ],
    "name": "Proof of Heron's formula from the law of cosines",
    "proves": "0FRBZ2X4HJ",
    "sources": [
      {
        "locator": "Trigonometric proof using the law of cosines",
        "url": "https://en.wikipedia.org/wiki/Heron%27s_formula"
      }
    ],
    "tag": "PM8PCNPR23",
    "uses": [
      "065JWMZW86",
      "0CTNFGYMM2",
      "0NPPGHQNXQ",
      "0GJAJC6TNZ",
      "060ZVZBV3E",
      "08WFZP6P89",
      "03H7WZ4T3K"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/PM8PCNPR23/",
  "links": [
    {
      "field": "proves",
      "target": "0FRBZ2X4HJ"
    },
    {
      "field": "uses",
      "target": "065JWMZW86"
    },
    {
      "field": "uses",
      "target": "0CTNFGYMM2"
    },
    {
      "field": "uses",
      "target": "0NPPGHQNXQ"
    },
    {
      "field": "uses",
      "target": "0GJAJC6TNZ"
    },
    {
      "field": "uses",
      "target": "060ZVZBV3E"
    },
    {
      "field": "uses",
      "target": "08WFZP6P89"
    },
    {
      "field": "uses",
      "target": "03H7WZ4T3K"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/PM8PCNPR23.md",
  "msc": [
    "51M25"
  ],
  "name": "Proof of Heron's formula from the law of cosines",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/PM8/PM8PCNPR23.md",
  "status": null,
  "tag": "PM8PCNPR23",
  "uri": "m2://PM8PCNPR23",
  "url": "https://math2.tamnd.com/wiki/proof-of-herons-formula-from-the-law-of-cosines/",
  "writing": {
    "tag": "PM8PCNPR23",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
