7C

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

Cosine rule
$$c^2 = a^2 + b^2 - 2ab\cos C \qquad \cos C = \frac{a^2 + b^2 - c^2}{2ab}$$

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.

Side c as angle C opens

The curve shows side c for every angle C between sides a and b. Drag P along it.

Try this

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

Example 1●

In triangle $ABC$, $a = 7$ cm, $b = 9$ cm and $C = 60^\circ$. Find $c$ to $2$ decimal places.

$c^2 = 7^2 + 9^2 - 2 \times 7 \times 9 \times \cos 60^\circ$
Two sides and the angle between them: the cosine rule for a side.
$c^2 = 49 + 81 - 63 = 67$
cos 60° = 1/2, so the last term is 63.
$c = \sqrt{67} \approx 8.19$ cm
Don't forget the square root.

Finding an angle

Example 2●●

A triangle has sides $5$ m, $7$ m and $10$ m. Find its largest angle to $1$ decimal place.

$\cos C = \dfrac{5^2 + 7^2 - 10^2}{2 \times 5 \times 7} = \dfrac{25 + 49 - 100}{70} = -\dfrac{26}{70}$
The largest angle is opposite the longest side, so c = 10 and C is the angle we want.
$C = \cos^{-1}\left(-\dfrac{26}{70}\right) \approx 111.8^\circ$
A negative cosine means the angle is obtuse, and the inverse cosine handles that correctly.

Sine rule or cosine rule?

You knowUse
A side and its opposite angle, plus one more side or angleSine rule
Two sides and the angle between themCosine rule (find a side)
All three sidesCosine 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.

Flashcards
Cosine rule for a side
$c^2 = a^2 + b^2 - 2ab\cos C$
Cosine rule for an angle
$\cos C = \dfrac{a^2 + b^2 - c^2}{2ab}$
Cosine rule when C = 90°
It becomes Pythagoras: $c^2 = a^2 + b^2$.
Practice
  1. Which is the cosine rule?

  2. In triangle $ABC$, $a = 8$, $b = 6$ and $C = 90^\circ$. Use the cosine rule to find $c$.

  3. In triangle $ABC$, $a = 3$, $b = 5$ and $C = 60^\circ$. Find $c$ to $2$ decimal places.

  4. You know all three sides of a triangle and want an angle. You should use:

  5. A triangle has sides $5$, $6$ and $7$. Find its largest angle to $1$ decimal place.

  6. In triangle $ABC$, $a = 10$, $b = 12$ and $C = 120^\circ$. Find $c$ to $2$ decimal places.

  7. In triangle $ABC$, $a = 4$, $b = 6$ and $C = 60^\circ$. Find the exact value of $c^2$.

  8. Using the cosine rule, you find $\cos C = -0.3$. The angle $C$ is:

  9. 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?

  10. Challenge: a triangle has sides $7$, $8$ and $13$. Find its largest angle in degrees.

Formula sheet