When the matching pair is missing
The sine rule was useful when we had an angle and the side directly opposite it. That matching pair gave us a doorway into the triangle.
The cosine rule is for a different situation. Sometimes the triangle gives us two sides and the angle squeezed between them. Sometimes it gives us all three sides. In both cases, there may be no clean way to use the sine rule.
The formula looks a little heavier than the sine rule, but the picture is simple. Side is opposite angle . The other two sides, and , make the angle .
The rule
The formula can be used in any direction. The sides and are simply the two arms that create angle . Swapping them makes no difference to the math.
The cosine rule is closely connected to Pythagoras theorem. When the angle is , the extra cosine part becomes zero.
So for a right-angled triangle, the cosine rule turns back into Pythagoras theorem.
But if the angle is not a right angle, the triangle opens wider or closes tighter. The cosine part handles that change.
Example 1
Two sides of a triangle are and . The angle between them is . Find the side opposite the angle, correct to one decimal place.
Notice the square root at the end. The formula gives , not .
The cosine rule can also work backwards. If you know all three sides, you can rearrange the formula to isolate the angle instead.
The side being subtracted must always be the side directly opposite the angle you are trying to find.
The side lengths now tell us exactly how open the angle must be.
Example 2
A triangle has side lengths , , and . Find the angle opposite the side of length , correct to one decimal place.
Choosing between sine rule and cosine rule
Sine rule
Use it when you can see an opposite angle-side pair.
Cosine rule
Use it for two sides with the included angle, or for all three sides.