Lesson 3 of 8 · 16 min
The cosine rule
Use the cosine rule to find the third side from two sides and the included angle, and to find any angle from three sides.
What you will be able to do
- Recognise when the sine rule cannot start: two sides and the included angle (SAS), or three sides (SSS).
- Use to find the third side.
- Rearrange it to and find any angle, including an obtuse one.
- Explain the cosine rule as Pythagoras' theorem with a correction term.
Two roads leave a roundabout at an angle of . One town is 5 km along the first road and another is 7 km along the second. How far apart are the towns, as the crow flies?
Try the sine rule: you know , and the angle between them, but not , the side opposite . No complete pair, so the sine rule is stuck. The cosine rule is built for exactly this.
Two sides and the angle between them (SAS). The cosine rule finds the side opposite that angle.
Key idea
The cosine rule
In any triangle ,
The angle in the cosine term is the one between the two sides on the right, and opposite the side on the left. The formula book writes the same rule with other letters: .
If , then and the rule becomes : Pythagoras' theorem. The term is a correction. When is acute, , so is shorter than the hypotenuse would be; when is obtuse, , so is longer.
Put at the origin. Then is at and is the distance from to .
Proof of the cosine rule
With at the origin and along the -axis, and , by the unit circle definitions scaled by . By the distance formula,
The Pythagorean identity makes the bracket 1, so . The coordinates work for an obtuse too, so the rule holds in every triangle.
Worked example
Find the third side with the cosine rule
In triangle , m, m and . Find , correct to two decimal places.
Step 1: Identify the case
Angle is between sides and (SAS), so use the cosine rule for the side opposite .
Step 2: Substitute
Step 3: Evaluate in one line
Typing the whole expression at once avoids the order-of-operations slip of multiplying by .
Step 4: Take the square root
m
Step 5: Check it is reasonable
Any third side must lie between and . With a fairly small angle of between the sides, it should also be much shorter than . Both hold.
Try it yourself first, then check the working one step at a time.
Answer
m.
Method
Check the angle is between the two known sides.
Substitute into .
Evaluate in one line, then take the square root.
Watch out for
Forgetting the square root and giving .
Adding instead of subtracting it.
In triangle , , and . Find the exact length of , without a calculator.
If all three sides are known, rearrange the rule to make the cosine the subject. The angle you want goes in the cosine; its opposite side is the one being subtracted.
Tip
The cosine rule never lies about obtuse angles
gives angles from to , and every cosine value in that range belongs to exactly one angle. A negative cosine means an obtuse angle. That is why the cosine rule has no ambiguous case.
Worked example
Find an obtuse angle from three sides
A triangle has sides 5 cm, 7 cm and 10 cm. Find its largest angle, correct to one decimal place.
Step 1: Choose the angle
The largest angle is opposite the longest side, 10 cm. Call it .
Step 2: Write the rearranged cosine rule
The side opposite the angle is the one subtracted on top.
Step 3: Evaluate
Step 4: Take the inverse cosine
The cosine is negative, so the angle is obtuse. returns it directly; there is no second angle to consider.
Try it yourself first, then check the working one step at a time.
Answer
The largest angle is about .
Method
Pick the angle; its opposite side is subtracted.
Evaluate .
Use ; a negative cosine means an obtuse angle.
Watch out for
Subtracting the wrong side, which finds a different angle.
Dropping the minus sign and getting .
A triangle has sides 3 cm, 5 cm and 7 cm. Find its largest angle, without a calculator.
Common mistake
Evaluating the cosine rule in the wrong order
means "subtract ". Working left to right on a calculator as gives nonsense. Type the whole right-hand side in one line, then take the square root.
This is the roundabout problem: km. Push past and watch become longer than . Choose "All three sides" to find an angle instead.
Summary
Use the cosine rule for SAS (two sides and the included angle) or SSS (three sides).
Side: , then take the square root.
Angle: , with the side opposite the angle subtracted.
A negative cosine means an obtuse angle; the cosine rule is never ambiguous.
With it is Pythagoras' theorem; the term corrects for the angle.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.