Menu

The Law of Cosines

Part of the Triangles Without Right Angles section of Coddy's Trigonometry journey. Lesson 9 of 37.

Two sides and the angle between them (SAS) give no complete pair, so the law of sines is stuck. The law of cosines finds the third side, with C the angle between the sides a and b:

c2=a2+b2−2⋅a⋅b⋅cos⁡(C){c}^{2} = {a}^{2}+{b}^{2}-2\cdot a\cdot b\cdot \cos\left(C\right)

It is Pythagoras with a correction. At C = 90° the cosine is 0 and the last term vanishes. An angle under 90° squeezes the sides together, the cosine is positive and the term takes some length away.

Sides 8 and 15 with an angle of 60° between them

Sides 8 and 15 with 60° between them: c2=82+152−2⋅8⋅15⋅cos⁡(60∘){c}^{2} = {8}^{2}+{15}^{2}-2\cdot 8\cdot 15\cdot \cos\left(60^{\circ}\right), which is 64 + 225 − 120 = 169. c² = 169 gives c = 13 or c = −13, and a length is positive, so the side is 13. On the board the negative root is ruled out on its own.

challenge icon

Challenge

Two sides of a triangle are 16 cm and 10 cm, with an angle of 60° between them. Find the third side x exactly, then press Check.

Try it yourself

Use the figure to find x

Use the figure to find x

All lessons in Triangles Without Right Angles