The cosine rule: a² = b² + c² − 2bc cos A from Pythagoras, and finding the third side
Two hikers leave a camp A. One walks 5 km and the other 8 km, and the angle between their paths is 70°. How far apart are they? The sine rule cannot start, because we know no side together with its opposite angle. We need a new rule. Drop the perpendicular from C to the line AB in triangle ABC. With AB = c, AC = b and the angle A, the foot divides AB into b cos A and c − b cos A, and the height is b sin A. Pythagoras in the right triangle on BC gives a² = (b sin A)² + (c − b cos A)² = b² sin²A + c² − 2bc cos A + b² cos²A = b² + c² − 2bc cos A, using sin²A + cos²A = 1. This is the cosine rule. By the same argument, b² = a² + c² − 2ac cos B and c² = a² + b² − 2ab cos C: the angle is always the one opposite the side on the left. For the hikers, a² = 5² + 8² − 2(5)(8) cos 70° = 89 − 80(0.3420) = 61.64, so a ≈ 7.85 km. When A = 90°, cos A = 0 and the rule becomes a² = b² + c², Pythagoras, so the cosine rule is the general form of Pythagoras. For an obtuse angle cos A is negative, so −2bc cos A is positive and a is larger. A surveyor measures two sides 150 m and 210 m of a field with the angle 52° between them: the third side is √(150² + 210² − 2(150)(210) cos 52°) ≈ 166.8 m. Keep all lengths in the same unit (metres here).
Why the minus? Take b = c = 5 and A = 120° and A = 60° and compare the third side. Which angle gives the longer side, and what sign does cos A have?