Mathematics · Ch 14 — Properties of Triangles
Cosine Rule
Cosine Rule
10.2 The Cosine Rule
Theorem. In any ,
Equivalently, and cyclically.
Proof. Place the triangle in coordinates with at the origin and on the positive -axis, so (since ). Then lies at , because and the angle between and is . The side is the distance between and :
using . Solving for gives . Placing or at the origin instead gives the other two forms by the identical argument.
Remark — solving a triangle by SAS/SSS. The cosine rule is the tool of choice exactly when the sine rule cannot get started: given two sides and the included angle (SAS), or all three sides (SSS) with no angle at all. In the SAS case it gives the third side directly; in the SSS case it gives (and hence ) directly from the three known sides, after which the sine rule finishes the remaining angles.
Special case. When , and the rule collapses to , the Pythagorean theorem — the cosine rule is a genuine generalisation of it to non-right triangles.
Worked example. For : , so .
Detecting the triangle's shape. Because the sign of is fixed by , the cosine rule doubles as an angle-classification test: if then is acute; if then ; if then is obtuse. This is often faster than computing the angle numerically when a problem only asks whether the largest angle is obtuse.
A second worked example. For : since is the largest side, check . As , angle is obtuse, so this triangle is obtuse-angled at — found without ever computing itself. …