The cosine rule
The cosine rule for finding a side from two sides and the included angle, and finding an angle from three sides.
The sine rule needs a side and its opposite angle. Sometimes you don't have that pair, for example when you know two sides and the angle between them, or all three sides. The cosine rule fills that gap. It is Pythagoras' theorem with a correction term for angles that aren't $90^\circ$.
The rule
The angle $C$ is the one between sides $a$ and $b$, opposite side $c$. The second form is the first one rearranged, ready for finding an angle.
The curve shows side c for every angle C between sides a and b. Drag P along it.
Set $a = 5$ and $b = 5$. Drag $P$ to find the angle $C$ that makes $c = 5$ too. Why does that angle make sense? Then drag $P$ to $90^\circ$ and compare $c$ with the Pythagoras value.
Finding a side
In triangle $ABC$, $a = 7$ cm, $b = 9$ cm and $C = 60^\circ$. Find $c$ to $2$ decimal places.
Finding an angle
A triangle has sides $5$ m, $7$ m and $10$ m. Find its largest angle to $1$ decimal place.
Sine rule or cosine rule?
| You know | Use |
|---|---|
| A side and its opposite angle, plus one more side or angle | Sine rule |
| Two sides and the angle between them | Cosine rule (find a side) |
| All three sides | Cosine rule (find an angle) |
Your turn
Two hikers leave camp at the same time. One walks $6$ km on a bearing of $030^\circ$. The other walks $8$ km on a bearing of $110^\circ$. How far apart are they?
Show the working
The angle between their paths is $110^\circ - 30^\circ = 80^\circ$. $d^2 = 6^2 + 8^2 - 2 \times 6 \times 8 \times \cos 80^\circ \approx 100 - 16.67 = 83.33$, so $d \approx 9.13$ km.
Which is the cosine rule?
$c^2 = a^2 + b^2 - 2ab\cos C$, where $C$ is the angle between $a$ and $b$.
In triangle $ABC$, $a = 8$, $b = 6$ and $C = 90^\circ$. Use the cosine rule to find $c$.
$\cos 90^\circ = 0$, so $c^2 = 64 + 36 - 0 = 100$ and $c = 10$.
In triangle $ABC$, $a = 3$, $b = 5$ and $C = 60^\circ$. Find $c$ to $2$ decimal places.
$c^2 = 9 + 25 - 2 \times 3 \times 5 \times 0.5 = 34 - 15 = 19$. $c = \sqrt{19} \approx 4.36$.
You know all three sides of a triangle and want an angle. You should use:
With no angles known, the sine rule has no matching pair. The cosine rule finds an angle from three sides.
A triangle has sides $5$, $6$ and $7$. Find its largest angle to $1$ decimal place.
The largest angle is opposite $7$: $\cos C = \dfrac{25 + 36 - 49}{2 \times 5 \times 6} = \dfrac{12}{60} = 0.2$. $C = \cos^{-1}(0.2) \approx 78.5^\circ$.
In triangle $ABC$, $a = 10$, $b = 12$ and $C = 120^\circ$. Find $c$ to $2$ decimal places.
$\cos 120^\circ = -0.5$, so $c^2 = 100 + 144 - 2 \times 10 \times 12 \times (-0.5) = 244 + 120 = 364$. $c = \sqrt{364} \approx 19.08$.
In triangle $ABC$, $a = 4$, $b = 6$ and $C = 60^\circ$. Find the exact value of $c^2$.
$c^2 = 16 + 36 - 2 \times 4 \times 6 \times \tfrac12 = 52 - 24 = 28$.
Using the cosine rule, you find $\cos C = -0.3$. The angle $C$ is:
Cosine is negative for angles between $90^\circ$ and $180^\circ$.
Challenge: one ship sails $20$ km on a bearing of $040^\circ$ from port, and another sails $30$ km on a bearing of $150^\circ$. How far apart are they, in km, to $2$ decimal places?
The angle between their paths is $150 - 40 = 110^\circ$. $d^2 = 400 + 900 - 2 \times 20 \times 30 \times \cos 110^\circ \approx 1300 + 410.42 = 1710.42$. $d \approx 41.36$ km.
Challenge: a triangle has sides $7$, $8$ and $13$. Find its largest angle in degrees.
$\cos C = \dfrac{49 + 64 - 169}{2 \times 7 \times 8} = \dfrac{-56}{112} = -0.5$, so $C = 120^\circ$ exactly.
Coaching Centre