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\vec{AB} = \vec{c}, AC=b\vec{AC} = \vec{b}, BC=a\vec{BC} = \vec{a}. Chasles’ relation holds: a=BC=ACAB=bc.\vec{a} = \vec{BC} = \vec{AC} - \vec{AB} = \vec{b} - \vec{c}. We compute the squared modulus using the scalar product: a2=aa=(bc)(bc)=b22bc+c2.|\vec{a}|^2 = \vec{a}\cdot\vec{a} = (\vec{b}-\vec{c})\cdot(\vec{b}-\vec{c}) = |\vec{b}|^2 - 2\,\vec{b}\cdot\vec{c} + |\vec{c}|^2. But bc=bccosA^\vec{b}\cdot\vec{c} = |\vec{b}|\,|\vec{c}|\cos\widehat{A}, because the angle between AB\vec{AB} and AC\vec{AC} is precisely A^\widehat{A}. Substituting and using a=a|\vec{a}|=a, b=b|\vec{b}|=b, c=c|\vec{c}|=c: a2=b2+c22bccosA^.a^2 = b^2 + c^2 - 2bc\cos\widehat{A}. \qquad \blacksquare

Topics: Triangle trigonometry
Concepts: Scalar product · The law of cosines
Functions: Cosine
Skills: Proving