CSCA Mathematics · Geometry & Trigonometry · Section 7 of 15
Law of Cosines
The Law of Cosines (余弦定理) is the generalisation of the Pythagorean theorem to any triangle.
Formula: c² = a² + b² - 2ab·cos C
When C = 90°, cos C = 0, and this reduces to c² = a² + b² — the Pythagorean theorem!
When to Use It
- You know all three sides (SSS) — to find an angle.
- You know two sides and the included angle (SAS) — to find the third side.
Finding an Angle (SSS)
Rearrange: cos C = (a² + b² - c²) / (2ab).
Acute, right or obtuse? Only the sign of a² + b² − c² matters, with c the longest side: a² + b² > c² → acute triangle; = c² → right; < c² → obtuse. For sides 3, 4, 6: 9 + 16 = 25 < 36, so the triangle is obtuse, with no arccos needed.
Example: Triangle with a = 5, b = 7, c = 8. Find angle C.
- cos C = (25 + 49 - 64) / (2·5·7) = 10/70 = 1/7.
- C = arccos(1/7) ≈ 81.8°.
Strategy for Choosing the Right Law
- Know an angle and its opposite side → Law of Sines.
- Know two sides and the included angle → Law of Cosines.
- Know all three sides → Law of Cosines (to find angles).
The Law of Cosines is also used to solve problems involving vectors, navigation, and physics force diagrams.
Bearings
A bearing is measured clockwise from north and always written with three figures — 060°, not 60°. Two rules cover most questions. The difference of two bearings is the angle the ship turns through, and the angle inside the triangle at the turning point is 180° minus that turn. A ship sailing on 060° and then on 150° turns through 90°, so the angle in the triangle is 90° too and the distance is a straight Pythagoras calculation; sailing on 030° and then on 090° it turns through 60°, and the angle in the triangle is 120°, not 60°. And the back bearing — the bearing of A from B when you know the bearing of B from A — differs by exactly 180°: add 180° if the bearing is under 180°, subtract it otherwise, so 040° becomes 220°.
Chinese papers usually give directions as 方向角 phrases instead: 北偏东 60° (N 60° E) is the bearing 060°, and 南偏西 30° (S 30° W) is 210°. (In Chinese, 方位角 is the bearing itself, measured clockwise from north.)
Angles of Elevation and Depression
The angle of elevation is measured UP from the horizontal to an object above you; the angle of depression is measured DOWN from the horizontal to an object below. Because the two horizontals are parallel, the angle of depression from a cliff top to a boat equals the angle of elevation from the boat to the cliff top — which is what lets you drop the angle into the triangle at the bottom. From a 100 m cliff at a depression of 30°, the horizontal distance is 100/tan 30° ≈ 173 m. Always draw the right-angled triangle and label which side is opposite the angle before reaching for a ratio.
Length of a Median
For the median from A to the midpoint of BC, Apollonius’ theorem gives
m² = (2b² + 2c² − a²)/4
with a, b and c the sides opposite A, B and C as usual. It saves finding the midpoint coordinates when only the side lengths are known.
Key takeaway: c² = a² + b² - 2ab·cosC. Use for SAS (find side) or SSS (find angle). Reduces to Pythagoras when C = 90°.
Key Formulas
c² = a²+b²-2ab·cosCcosC = (a²+b²-c²)/(2ab)
Worked Example 1
Example 1: Find c if a = 6, b = 10, C = 60°.
c² = 36 + 100 - 2(6)(10)cos60° = 136 - 120(0.5) = 136 - 60 = 76.
c = √76 ≈ 8.72.
Worked Example 2
Example 2: Find angle A if a = 7, b = 5, c = 8.
cosA = (25+64-49)/(2·5·8) = 40/80 = 0.5. A = arccos(0.5) = 60°.
Exam Tips
To decide between Law of Sines and Cosines: if you have an angle and its opposite side, use Sines. Otherwise, use Cosines.
When finding the largest angle, put the longest side as c in the formula.
Common Mistakes
Forgetting the minus sign: It is c² = a²+b² MINUS 2ab·cosC, not plus.
Using the wrong angle: C must be the angle BETWEEN sides a and b.
Try This Yourself
Sides: a=3, b=4, c=6. Find angle C.
Show the answer
cosC = (9+16-36)/(2·3·4) = -11/24 ≈ -0.458. C = arccos(-0.458) ≈ 117.3°.