For right-angled triangles we have Pythagoras’ theorem. But what happens in a general triangle? The answer is the law of cosines.

Theorem — The law of cosines

In a general triangle ABCABC with sides a=BCa=BC, b=CAb=CA, c=ABc=AB opposite the vertices A,B,CA,B,C, we have: a2=b2+c22bccosA^.a^2 = b^2 + c^2 - 2bc\cos\widehat{A}. (And likewise for b2b^2 and c2c^2, by cyclic permutation.)

The theorem generalises Pythagoras’: if A^=π/2\widehat{A} = \pi/2, then cosA^=0\cos\widehat{A}=0 and the formula reduces to a2=b2+c2a^2 = b^2 + c^2. The “correction term” 2bccosA^-2bc\cos\widehat{A} measures how much the angle differs from a right angle.

Topics: Triangle trigonometry
Concepts: Solving triangles · The law of cosines · Carnot’s theorem · Pythagoras’ theorem
Functions: Cosine
Methods: Solving triangles
Skills: Using formulae