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.