The cosine rule gives cosA in terms of the three sides, but many later results — Heron's formula, and every inradius/exradius theorem — turn out to be cleanest when expressed through the half-angles2A,2B,2C instead. Writing s=2a+b+c (the semi-perimeter), the half-angle formulas state:
The quantities s−a,s−b,s−c are always positive for a genuine triangle (triangle inequality), and they are exactly the tangent lengths from each vertex to the incircle/excircles — so once you have the half-angle formulas in this form, the incircle and excircle theorems become almost immediate substitutions rather than fresh derivations.
Where they come from
Start from the cosine rule cosA=2bcb2+c2−a2 and the double-angle identities cosA=1−2sin22A and cosA=2cos22A−1. Substituting and factoring a2−(b−c)2=(a−b+c)(a+b−c) and (b+c)2−a2=(b+c−a)(b+c+a) — both differences of squares — converts everything into products of (s−a),(s−b),(s−c),s, after dividing by 2 throughout.
A common trap
It's tempting to take sin2A=±⋯, but because 0<A<180∘ forces 0<2A<90∘, bothsin2A and cos2A must be positive — the negative root is never physically valid here, unlike in some other trigonometric contexts.
Both the numerator and denominator sums here reduce to standard triangle identities in terms of the area Δ and semi-perimeter s — the half-angle cotangent sum equals s2/Δ, and the full-angle cotangent sum equals (a2+b2+c2)/4Δ — so dividing them gives the required ratio. …
Express both the numerator and denominator sums using standard triangle identities in terms of the area Δ and semi-perimeter s; the Δ cancels, and 4s2=(a+b+c)2 gives the result.
Numerator: sum of half-angle cotangents. Using tan2A=s−ar (the incircle radius relation), so cot2A=rs−a, and similarly for B,C: