We previously used the sine rule to help us find information in non-right-angled triangles. By relating sides and their opposite angles, we were able to find an unknown side or angle.
But there are situations where the sine rule is not useful:
In these situations, we will instead use the cosine rule.
The cosine rule (or the law of cosines) relates the lengths of the sides and the cosine of one of its angles. The cosine rule is useful for finding:
the third side of a triangle given two known side lengths and the angle between them, or
the angles of a triangle given all three sides lengths are known.
Notice that  Pythagoras' theorem c^2= a^2 + b^2 makes an appearance in the cosine rule c^2 = a^2 + b^2 - 2ab\cos C when C has a measure of 90\degree which makes the term 2ab\cos C equal to zero.
If the three side lengths in a triangle are a, \,b and c, with an angle C opposite the side with length c, then: c^2=a^2+b^2-2ab\cos C
We can see this relationship between the angle C and the opposite side length c by moving the slider on the interactive tool below.
As the size of angle C increases, the length of side c also increases.
Note: The formula can be written in terms of any of the sides or angles, familiarise yourself with the forms below and note the pattern. If a triangle is labelled differently we can adapt the rule using the pattern.
Find the length of a using the cosine rule. Round your answer to two decimal places.
Find the length of c using the cosine rule. Round your answer to two decimal places.
The cosine rule to find a side:
When looking to solve for an unknown angle, the equation can also be rearranged and written as: \cos C = \dfrac{a^2 +b^2 - c^2}{2ab}
To find a missing angle using the cosine rule, we need to know all three side lengths.
Find the value of angle W using the cosine rule. Round your answer to two decimal places.
The cosine rule to find an angle:
Mathematics is often thought of as being confined to the classroom and being separate from the real world. Students may ask themselves "What's the point of learning the cosine rule?" The truth is, part of the beauty in mathematics is that it can explain and measure so much of what is happening in the real and natural world.
Find the length of the diagonal, x, in parallelogram ABCD. Round your answer to two decimal places.
Dave leaves town along a road on a bearing of 169\degree and travels 26 \text{ km}. Maria leaves the same town on another road with a bearing of 289\degree and travels 9\text{ km}. Find the distance between them, x. Round your answer to the nearest \text{km}.
Use the cosine rule: