Mathematics · Ch 3 — Trigonometry
Law of Cosines
3.7.2
Law of Cosines
When to use the Law of Cosines. The sine rule cannot solve a triangle from two sides and the included angle (SAS), or from all three sides (SSS) — those data sets need the Law of Cosines. It is also the tool used to derive the area formula (§3.7.4) whenever two sides and the included angle are given.
Theorem 3.3 (Law of Cosines). In ,
Proof. Drop the altitude from onto line , meeting it at , so . In right triangle : , i.e. . Express and using the elements of the triangle: in right triangle , , and (since ). Substituting,
using . Hence , i.e. . Dropping the altitude from or from instead gives the other two formulas by exactly the same argument.
Remarks.
- reads: the square of a side equals the sum of the squares of the other two, diminished by twice their product times the cosine of the included angle. Any one of the three formulas gives the other two just by cycling the letters .
- When , and the formula collapses to — so the Law of Cosines is a genuine generalisation of the Pythagorean theorem (and, conversely, Pythagoras' theorem is exactly its right-angled special case).
- Unlike the sine function, cosine distinguishes acute from obtuse angles: a positive cosine means the angle is acute, a negative cosine means it is obtuse. This makes the Law of Cosines the safer tool whenever an obtuse angle might be present in the triangle. …