The Cosine Rule
Key Terms
- Cosine rule (finding a side)
- c² = a² + b² − 2ab cos C — a generalisation of Pythagoras’ theorem.
- Cosine rule (finding an angle)
- cos C = (a² + b² − c²) / (2ab).
- When to use
- Use when two sides + the included angle (SAS) are given, or all three sides are known (SSS).
- Included angle
- The angle between the two given sides; must be C in the formula above when using SAS.
- Relationship to Pythagoras
- If C = 90°, then cos 90° = 0 and the cosine rule reduces to c² = a² + b².
- Sine vs cosine rule
- If two angles are known, use sine rule. If the included angle or all three sides are known, use cosine rule.
The Cosine Rule
The cosine rule applies to any triangle. It connects all three sides and one angle. Side c is opposite angle C, which lies between sides a and b.
QCAA Formula Sheet
• SAS (2 sides + included angle): cosine rule to find the third side.
• SSS (3 sides): cosine rule to find any angle.
• AAS or ASA (2 angles + 1 side): sine rule.
• SSA (2 sides + non-included angle): sine rule (ambiguous case possible).
Worked Example 1 — Finding a Side (SAS)
Problem: In triangle ABC, a = 8, b = 11, C = 63°. Find side c.
Step 1: Identify: C = 63° is the angle between sides a = 8 and b = 11. Use cosine rule for c.
Worked Example 2 — Finding All Angles (SSS)
Problem: A triangle has sides a = 7, b = 10, c = 14. Find all angles.
Step 1: Find the largest angle first (opposite longest side c = 14). This is angle C.
Step 2: Find angle A (opposite a = 7):
Step 3: B = 180° − 109.6° − 28.1° = 42.3°
Check: 109.6 + 28.1 + 42.3 = 180.0° ✓
Where Does the Cosine Rule Come From?
Drop a perpendicular from C to side c. Call the foot D and the height h. Then:
- AD = b cos A, CD = b sin A
- BD = c − AD = c − b cos A
- In right triangle BCD: a² = h² + BD² = (b sin A)² + (c − b cos A)²
- Expanding: a² = b²sin²A + c² − 2bc cos A + b²cos²A = b² + c² − 2bc cos A
This is the cosine rule. Pythagoras' theorem is the special case when A = 90° (cos 90° = 0).
Step-by-Step: Finding a Side
- Identify the angle C and its two adjacent sides a and b.
- Substitute into c² = a² + b² − 2ab cos C.
- Calculate the right-hand side, then take the square root.
Step-by-Step: Finding an Angle
- Identify which angle you want (usually the largest first).
- Substitute all three sides into cos C = (a² + b² − c²) / (2ab).
- Use cos&sup8;&sup9; to get C. If the result is negative, C is obtuse.
- Find remaining angles using sine rule or angle sum.
Guide Example
Problem: Two sides 12 cm and 16 cm, included angle 100°. Find the third side.
Note: cos 100° is negative, so we are adding the last term — the third side is longer than Pythagoras would predict, as expected for an obtuse triangle.
Mastery Practice
-
Fluency
Find the missing side using the cosine rule (SAS):
- a = 7, b = 10, C = 45°. Find c.
- a = 15, b = 20, C = 110°. Find c.
- b = 8, c = 12, A = 72°. Find a.
-
Fluency
Find the missing angle using the cosine rule (SSS):
- a = 5, b = 8, c = 10. Find angle C.
- a = 12, b = 9, c = 15. Find all three angles.
- a = 6, b = 6, c = 9. Find the angle between the two equal sides.
- Fluency A triangle has sides 14 cm, 18 cm and 22 cm. Find all three angles. View Solution
- Understanding Two forces of 50 N and 70 N act at an angle of 58° to each other. Using the triangle of forces (the resultant is the third side of a triangle with the two force magnitudes as the other sides, and the included angle is 180° − 58° = 122°), find the magnitude of the resultant force. View Solution
-
Understanding
A ship travels 45 km on a bearing of 030°, then 60 km on a bearing of 135°. Find the straight-line distance from the starting point to the finishing point.
Hint: Find the angle between the two legs of the journey using the bearings, then apply the cosine rule.
View Solution -
Understanding
A triangular piece of land has sides 85 m, 110 m and 140 m. Find:
- All three angles.
- The largest angle.
- The area of the land using Area = ½ab sin C.
-
Understanding
For each part below, state whether you would use the sine rule or cosine rule and why, then find the required unknown:
- B = 55°, a = 14, b = 18. Find angle A.
- a = 8, b = 12, C = 47°. Find c.
- A = 32°, B = 69°, c = 15. Find a.
-
Understanding
Two forest rangers A and B are 12 km apart. Ranger A sees a fire at an angle of 52° from the line AB. Ranger B sees the fire at an angle of 74° from the line BA. Find:
- The distances from each ranger to the fire (use the sine rule).
- Verify the result using the cosine rule on the triangle formed.
-
Problem Solving
A triangular park has two sides of 280 m and 350 m. The angle between these sides is 120°. Find:
- The length of the third side.
- All three angles.
- The area of the park.
- The perimeter of the park.
-
Problem Solving
Three towns P, Q, R have distances: PQ = 45 km, QR = 72 km, PR = 61 km. A new road is to be built from Q, perpendicular to PR. Find:
- Angle QPR (using cosine rule).
- The length of the perpendicular from Q to the line PR.
- The point on PR where the road meets it (distance from P).