Trigonometry · SS 1, SS 2

Cosine rule

Find the third side from two sides and the angle between them, or an angle from three sides.

  • a2 = b2 + c2 − 2bc cos A
  • cos A = b2 + c2 − a22bc

What the letters mean

a
the side opposite angle A
b, c
the two sides that make angle A

Worked example

Two sides of a triangle are 5 cm and 8 cm with 60° between them. Find the third side.

  1. Step 1: Put in the numbers

    a2 = 52 + 82 − 2 × 5 × 8 × cos 60°

  2. Step 2: cos 60° = 0.5

    a2 = 25 + 64 − 40 = 49

  3. Step 3: Square root

    a = 7 cm

Final answer: 7 cm

When A = 90°, cos A = 0 and the cosine rule becomes Pythagoras.

When to use it

Use the cosine rule in a triangle without a right angle in two situations: you know two sides and the angle between them and want the third side, or you know all three sides and want an angle. If you know a side and the angle opposite it, the sine rule is usually quicker. For right-angled triangles, use Pythagoras or SOH CAH TOA.

Why it works

The cosine rule is Pythagoras with a correction. In a right-angled triangle, a2 = b2 + c2. If angle A is smaller than 90°, side a is shorter, so we subtract something; if A is bigger, a is longer, so we add. The correction is 2bc cos A. Since cos A is positive for acute angles and negative for obtuse ones, the single formula handles both cases automatically.

Try it yourself

A triangle has sides a = 13 cm, b = 7 cm and c = 8 cm. Find angle A, which is opposite the 13 cm side.

Try it first, then show the solution
  1. Use cos A = b2 + c2 − a22bc
  2. cos A = 49 + 64 − 1692 × 7 × 8 = −56112 = −0.5
  3. cos A is negative, so A is obtuse: A = cos−1 (−0.5) = 120°

Answer: A = 120°

See it

Play with this picture from the Bearings and Distances lesson.

NNAB6 km

Bearing of B from A

065°

Back bearing (A from B)

245°

065° + 180° = 245°

B is 2.54 km north and 5.44 km east of A.

Distance A to B6 km

Common mistakes

  • Working left to right as b2 + c2 − 2bc, then multiplying by cos A. Find 2bc cos A as one number first, then subtract it from b2 + c2.
  • Being surprised by a negative cosine and changing its sign. A negative value is correct: it simply means the angle is obtuse, between 90° and 180°.

In BECE and WASSCE

The cosine rule is an SS topic examined in WASSCE Paper 2, not BECE. It often appears in bearings questions, for example finding how far apart two boats or travellers are after moving on different bearings. You may need the cosine rule for one part and the sine rule for the next.

Questions students ask

Which angle should I find first using the cosine rule?

If you know three sides, find the largest angle first, the one opposite the longest side. It is the only angle that can be obtuse, and the cosine rule will show this clearly with a negative value.

How do I know whether to use the sine rule or the cosine rule?

If you have a side with its opposite angle, use the sine rule. If you have two sides and the angle between them, or all three sides, use the cosine rule.