The cosine rule
Use the cosine rule to find a side from two sides and the included angle, or an angle from three sides, and see how it extends Pythagoras' theorem.
The sine rule needs a side and its opposite angle. When you know two sides and the angle between them, or all three sides, there is no such pair, and the sine rule can't start. The cosine rule handles exactly these two cases.
The cosine rule
The same pattern works for any side: the side on the left is opposite the angle on the right, and the other two sides appear in the rest. For example $a^2 = b^2 + c^2 - 2bc\cos A$.
When $C = 90^\circ$, $\cos C = 0$ and the rule is Pythagoras' theorem. The term $-2ab\cos C$ is the correction: if $C$ is acute, $\cos C \gt 0$ and $c$ is shorter than Pythagoras would give; if $C$ is obtuse, $\cos C \lt 0$ and $c$ is longer.
C is at the origin and B is at (6, 0). Drag A. The true length AB is compared with what Pythagoras would give.
Try this: drag $A$ until angle $C$ is $90^\circ$ and check that the two lengths agree. Then make angle $C$ obtuse: which is bigger now, the true $AB$ or the Pythagoras value? Finally place $A$ so that $CA = 5$ and $AB = 7$, predict angle $C$ from $\cos C = \dfrac{36 + 25 - 49}{60}$, and compare with the readout.
Finding a side
In $\triangle ABC$, $b = 7$, $c = 11$ and $A = 38^\circ$. Find $a$, to 1 decimal place.
Finding an angle
Rearranging gives the angle directly. There is no ambiguous case here: $\cos\theta$ is positive for acute angles and negative for obtuse ones, so the sign of the fraction tells you which, and $\cos^{-1}$ on the calculator gives the right answer either way.
A triangle has sides $5$, $8$ and $11$. Find its largest angle, to the nearest degree.
In $\triangle PQR$, $q = 5$, $r = 8$ and $P = 60^\circ$. Find the exact length of $p$.
Your turn
A triangle has sides $7$, $8$ and $13$. Find the exact size of its largest angle.
Show the working
The largest angle is opposite $13$: $\cos\theta = \dfrac{49 + 64 - 169}{2 \times 7 \times 8} = \dfrac{-56}{112} = -\dfrac12$. Cos is negative, so the angle is obtuse, with related angle $60^\circ$: $\theta = 120^\circ$.
Which information calls for the cosine rule?
With three sides there is no known angle, so the sine rule can't start. The cosine rule in the form $\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}$ gives an angle directly.
In $\triangle ABC$, $a = 3$, $b = 8$ and $C = 60^\circ$. Find $c$.
$c^2 = 9 + 64 - 2 \times 3 \times 8 \times \tfrac12 = 73 - 24 = 49$, so $c = 7$.
The cosine rule with $C = 90^\circ$ becomes:
$\cos 90^\circ = 0$, so the correction term vanishes and $c^2 = a^2 + b^2$.
In $\triangle ABC$, $b = 6$, $c = 9$ and $A = 47^\circ$. Find $a$, to 2 decimal places.
$a^2 = 36 + 81 - 2 \times 6 \times 9 \times \cos 47^\circ \approx 117 - 73.656 = 43.344$, so $a \approx 6.58$.
A triangle has sides $4$, $6$ and $8$. The angle opposite $8$ is:
$4^2 + 6^2 - 8^2 = 16 + 36 - 64 = -12 \lt 0$, so its cosine is negative and the angle is obtuse.
Find the largest angle of a triangle with sides $3$, $5$ and $7$, in degrees.
Opposite $7$: $\cos\theta = \dfrac{9 + 25 - 49}{2 \times 3 \times 5} = \dfrac{-15}{30} = -\tfrac12$. So $\theta = 120^\circ$.
Find the smallest angle of a triangle with sides $5$, $8$ and $9$, to the nearest degree.
The smallest angle is opposite the shortest side, $5$: $\cos\theta = \dfrac{64 + 81 - 25}{2 \times 8 \times 9} = \dfrac{120}{144} \approx 0.833$. So $\theta = \cos^{-1} 0.833 \approx 33.56^\circ$, which is $34^\circ$.
In $\triangle XYZ$, $x = 7$, $y = 8$ and $Z = 120^\circ$. Find $z$.
$z^2 = 49 + 64 - 2 \times 7 \times 8 \times \cos 120^\circ = 113 - 112 \times \left(-\tfrac12\right) = 113 + 56 = 169$, so $z = 13$.
Exam style: two ships leave port at the same time. One sails $12$ km on a bearing of $040^\circ\text{T}$, the other $15$ km on a bearing of $120^\circ\text{T}$. How far apart are they, to 1 decimal place?
The angle at port between the two paths is $120^\circ - 40^\circ = 80^\circ$. Then $d^2 = 144 + 225 - 2 \times 12 \times 15 \times \cos 80^\circ \approx 369 - 62.51 = 306.49$, so $d \approx 17.5$ km.
Exam style: in $\triangle ABC$, $b = 5$, $c = 3$ and $\cos A = \dfrac{3}{5}$. Find $a$.
$a^2 = 25 + 9 - 2 \times 5 \times 3 \times \tfrac35 = 34 - 18 = 16$, so $a = 4$. (It is a $3, 4, 5$ triangle with the right angle at $B$, opposite the longest side $b$.)
Coaching Centre