One of the most elegant proofs of the law of cosines uses vectors and the scalar product.
Proof — Via the scalar product
We interpret the sides as vectors: AB=c, AC=b, BC=a. Chasles’ relation holds:
a=BC=AC−AB=b−c.
We compute the squared modulus using the scalar product:
∣a∣2=a⋅a=(b−c)⋅(b−c)=∣b∣2−2b⋅c+∣c∣2.
But b⋅c=∣b∣∣c∣cosA, because the angle between AB and AC is precisely A. Substituting and using ∣a∣=a, ∣b∣=b, ∣c∣=c:
a2=b2+c2−2bccosA.■